/* MAP · Portal Damasceno
   Layout no padrao das ferramentas do Clube de Rede: menu fixo a esquerda, barra no topo,
   meio claro com cartoes brancos. Modo claro: menu azul do Portal. Modo escuro: tudo azul-marinho. */

:root {
  --azul: #005fcb; --azul-forte: #004fa8; --laranja: #ff6600;
  --verde: #16a34a; --amarelo: #d97706; --vermelho: #dc2626; --cinza: #94a3b8;
  --fundo: #eef2f8; --card: #fff; --borda: #e2e8f0; --txt: #1e293b; --sub: #64748b; --fraco: #94a3b8;
  --campo: #f8fafc; --hover: #f1f5fb; --topo: linear-gradient(90deg, #00357a, #005fcb); --topo-borda: transparent; --titulo: #0a3b7c;
  --lado-txt: #fff; --lado-sub: rgba(255,255,255,.62); --lado-hover: rgba(255,255,255,.12); --lado-on: rgba(255,255,255,.2);
  --lado: linear-gradient(175deg, #00357a 0%, #004aa5 55%, #005fcb 100%);
  --sombra: 0 1px 2px rgba(15,23,42,.05), 0 4px 14px rgba(15,23,42,.04);
}
html[data-tema="escuro"] {
  color-scheme: dark;
  --fundo: #070c16; --card: #111a2e; --borda: #1f2b44; --txt: #e2e8f0; --sub: #94a3b8; --fraco: #64748b;
  --campo: #0b1222; --hover: #16233d; --topo: #0b1324; --topo-borda: #1f2b44; --titulo: #e2e8f0;
  --lado: #0b1324; --lado-txt: #e2e8f0; --lado-sub: #64748b; --lado-hover: #16233d; --lado-on: #13254a;
  --azul: #3b82f6; --sombra: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14.5px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--fundo); color: var(--txt); min-height: 100vh; }
a { color: var(--azul); }
svg { display: block; }

/* ---------- menu lateral ---------- */
body.com-menu { padding-left: 252px; }
.lado { position: fixed; inset: 0 auto 0 0; width: 252px; z-index: 60; background: var(--lado); color: var(--lado-txt);
  display: flex; flex-direction: column; padding: 16px 12px 12px; overflow-y: auto; scrollbar-width: thin;
  box-shadow: 2px 0 14px rgba(15,23,42,.12); transition: transform .2s ease; }
html[data-tema="escuro"] .lado { border-right: 1px solid var(--borda); box-shadow: none; }
/* marca do MAP: so o nome, como na primeira versao */
.marca { display: block; padding: 4px 8px 16px; color: inherit; text-decoration: none; }
.marca b { display: block; font-size: 24px; font-weight: 800; letter-spacing: 2px; line-height: 1.1; }
.marca small { display: block; color: var(--lado-sub); font-size: 12px; margin-top: 2px; }
.grp { display: flex; align-items: center; margin: 14px 0 4px; padding: 4px 8px; border-radius: 7px; cursor: pointer; user-select: none;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lado-sub); }
.grp:hover { color: var(--lado-txt); }
.grp i { margin-left: auto; font-style: normal; font-size: 10px; transition: transform .15s; }
.grp.fechado i { transform: rotate(-90deg); }
.itens.escondido { display: none; }
.mi { display: flex; align-items: center; gap: 10px; padding: 7px 9px; min-height: 36px; border-radius: 9px; color: var(--lado-txt);
  text-decoration: none; font-weight: 500; }
.mi:hover { background: var(--lado-hover); }
.mi.on { background: var(--lado-on); font-weight: 700; }
html[data-tema="escuro"] .mi.on { color: #93c5fd; }
.mi .mt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi.breve { opacity: .5; cursor: default; }
.mi.breve:hover { background: none; }
.mi em { font-style: normal; font-size: 10px; color: var(--lado-sub); }
.ic { width: 20px; height: 20px; flex: none; opacity: .92; }
.ic svg { width: 20px; height: 20px; }
html[data-tema="escuro"] .ic-inicio { color: #60a5fa; } html[data-tema="escuro"] .ic-painel { color: #a5b4fc; }
html[data-tema="escuro"] .ic-usuarios { color: #5eead4; } html[data-tema="escuro"] .ic-backups { color: #4ade80; }
html[data-tema="escuro"] .ic-sistema { color: #fdba74; }
.pe { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; gap: 6px; }
html[data-tema="escuro"] .pe { border-top-color: var(--borda); }
.quem { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 9px; color: inherit; text-decoration: none; }
.quem:hover { background: var(--lado-hover); }
.quem b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quem small { color: var(--lado-sub); font-size: 11px; }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--laranja); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.sair { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--lado-sub); }
.sair:hover { background: var(--lado-hover); color: var(--lado-txt); }
.sair svg { width: 18px; height: 18px; }
.credito { margin: 10px 4px 0; font-size: 10.5px; line-height: 1.45; color: var(--lado-sub); }
.credito span { opacity: .8; }
.credito.solto { text-align: center; color: var(--fraco); margin: 0 0 18px; }

/* ---------- barra do topo ---------- */
.topo { position: sticky; top: 0; z-index: 45; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 26px;
  background: var(--topo); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--topo-borda); }
.topo h1 { margin: 0; font-size: 17px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.topo h1 .onde { font-weight: 500; color: rgba(255,255,255,.72); }
.topo h1 .trilha { color: inherit; text-decoration: none; }
.topo h1 .trilha:hover { color: #ffd2b3; }
.topo .bt-ic { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }
.topo .bt-ic:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); color: #fff; }
html:not([data-tema="escuro"]) .lado { box-shadow: 2px 0 14px rgba(15,23,42,.12); }
.topo a.bt-ic { text-decoration: none; }
.topo h1 .onde:not(:first-child)::before { content: "›"; color: rgba(255,255,255,.5); margin-right: 8px; font-weight: 400; }
.topo .esp { flex: 1; }
.bt-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid var(--borda); background: var(--card); color: var(--sub);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.bt-ic:hover { border-color: var(--azul); color: var(--azul); background: var(--card); }
.bt-ic svg { width: 18px; height: 18px; }
.bt-menu { display: none; }
html[data-tema="escuro"] .so-claro, html:not([data-tema="escuro"]) .so-escuro { display: none; }

/* ---------- conteudo ---------- */
.conteudo { padding: 22px 26px 32px; max-width: 1200px; }
body.sem-menu .conteudo { max-width: none; padding: 0; }
.ola { margin: 0 0 4px; font-size: 24px; }
.ola-sub { margin: 0 0 20px; color: var(--sub); }
h2 { font-size: 12px; margin: 0 0 12px; color: var(--sub); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 18px; }
.cartao { background: var(--card); border: 1px solid var(--borda); border-top: 4px solid var(--azul); border-radius: 16px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.05); margin-bottom: 16px; }
.cartao.largo { margin-bottom: 18px; }
.cartao.estreito { max-width: 580px; margin-bottom: 18px; }

/* grade de servicos (estilo da vitrine) */
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.bloco { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--card); border: 1px solid var(--borda);
  border-radius: 14px; color: inherit; text-decoration: none; box-shadow: var(--sombra); transition: border-color .15s, transform .15s; }
a.bloco:hover { border-color: var(--azul); transform: translateY(-2px); }
.bloco .selo { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #e8f0fd; color: var(--azul); margin-bottom: 6px; }
html[data-tema="escuro"] .bloco .selo { background: #13254a; color: #93c5fd; }
.bloco .selo svg { width: 24px; height: 24px; }
.bloco .tit { font-weight: 700; font-size: 15px; }
.bloco .txt { color: var(--sub); font-size: 13px; }
.bloco .fita { position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fff1e6; color: #c2410c; }
html[data-tema="escuro"] .bloco .fita { background: #3b1f0b; color: #fdba74; }
.bloco.breve { opacity: .75; }

/* estados */
.estado { font-weight: 600; margin: 0 0 10px; padding-left: 18px; position: relative; }
.estado::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--cinza); }
.estado.verde::before { background: var(--verde); } .estado.amarelo::before { background: var(--amarelo); } .estado.vermelho::before { background: var(--vermelho); }
.estado.vermelho { color: var(--vermelho); }
dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; font-size: 13.5px; }
dt { color: var(--sub); } dd { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--borda); }
th { color: var(--sub); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover td { background: var(--hover); }
tr.inativo td { opacity: .55; }
.ok { color: var(--verde); font-weight: 600; } .falha { color: var(--vermelho); } .pendente { color: var(--amarelo); font-weight: 600; }
.nota { color: var(--sub); font-size: 12.5px; margin-top: 12px; }
.linha-titulo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.linha-titulo h2 { margin: 0; }
.tabela-rola { overflow-x: auto; }

/* botoes e formularios */
button, .botao, .botao-sec { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 9px; padding: 9px 16px; font: inherit;
  font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; }
button, .botao { background: var(--azul); color: #fff; }
button:hover, .botao:hover { background: var(--azul-forte); }
button.perigo { background: var(--vermelho); }
.botao-sec { background: transparent; border: 1px solid var(--borda); color: var(--txt); padding: 6px 12px; font-size: 12.5px; }
.botao-sec:hover { border-color: var(--azul); color: var(--azul); }
.formulario { display: grid; gap: 13px; }
.formulario label { display: grid; gap: 5px; font-size: 12.5px; color: var(--sub); font-weight: 600; }
input { font: inherit; font-size: 14px; padding: 11px 12px; border: 1.5px solid var(--borda); border-radius: 10px; background: var(--campo); color: var(--txt); }
input:focus { background: var(--card); }
input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(0,95,203,.15); }
fieldset { border: 1px solid var(--borda); border-radius: 10px; padding: 8px 12px 10px; margin: 0; display: grid; gap: 6px; }
legend { font-size: 12.5px; color: var(--sub); padding: 0 4px; font-weight: 600; }
.formulario .opcao { display: flex; gap: 8px; align-items: center; color: var(--txt); font-size: 13.5px; font-weight: 400; }
.opcao input { padding: 0; }
.aviso { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--borda); background: var(--card); margin: 0 0 16px; }
.aviso.verde { color: var(--verde); border-color: rgba(22,163,74,.4); }
.aviso.vermelho { color: var(--vermelho); border-color: rgba(220,38,38,.4); }
.aviso.amarelo { color: var(--amarelo); border-color: rgba(217,119,6,.4); }

/* ---------- login ---------- */
.entrada { min-height: calc(100vh - 40px); display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(0,95,203,.16), transparent 70%); }
.entrada form { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--borda); border-radius: 18px; padding: 32px;
  box-shadow: 0 24px 60px rgba(15,23,42,.12); display: grid; gap: 14px; }
.entrada h1 { margin: 4px 0 0; text-align: center; font-size: 38px; font-weight: 800; letter-spacing: 4px; color: var(--azul); }
.entrada .logo-portal { height: 38px; width: auto; margin: 8px auto 0; padding-top: 16px; border-top: 1px solid var(--borda); box-sizing: content-box; }
.entrada .sub { margin: -8px 0 6px; text-align: center; color: var(--sub); font-size: 13px; }
.entrada label { display: grid; gap: 5px; font-size: 12.5px; color: var(--sub); font-weight: 600; }
.entrada button { justify-content: center; padding: 12px; margin-top: 4px; }

/* ---------- celular ---------- */
.veu { display: none; }
@media (max-width: 900px) {
  body.com-menu { padding-left: 0; }
  .lado { transform: translateX(-102%); }
  html.menu-aberto .lado { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  html.menu-aberto .veu { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(15,23,42,.45); }
  .bt-menu { display: inline-flex; }
  .topo { padding: 8px 14px; min-height: 54px; }
  .conteudo { padding: 14px 14px 26px; }
}

/* ---------- botoes (padrao da Documentacao de Rede) ---------- */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1.5px solid transparent; border-radius: 10px;
  padding: 10px 16px; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; transition: all .15s; white-space: nowrap; }
.bt svg { width: 17px; height: 17px; flex: none; }
.bt-pri, button.bt-pri { background: linear-gradient(135deg, #1a78e6, #004fa8); color: #fff; box-shadow: 0 4px 14px rgba(0,95,203,.28); }
.bt-pri:hover { box-shadow: 0 6px 18px rgba(0,95,203,.38); transform: translateY(-1px); background: linear-gradient(135deg, #1a78e6, #004fa8); }
.bt-cl, button.bt-cl { background: var(--card); color: var(--txt); border-color: var(--borda); box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.bt-cl:hover { border-color: var(--azul); color: var(--azul); background: var(--card); }
.bt-laranja, button.bt-laranja { background: linear-gradient(135deg, #ff8a2b, #f05a00); color: #fff; box-shadow: 0 4px 14px rgba(255,102,0,.28); }
.bt-laranja:hover { transform: translateY(-1px); background: linear-gradient(135deg, #ff8a2b, #f05a00); }
.bt-perigo, button.bt-perigo { background: var(--card); color: #b91c1c; border-color: #fecaca; }
.bt-perigo:hover { background: #fef2f2; border-color: #f87171; }
html[data-tema="escuro"] .bt-perigo { background: transparent; color: #fca5a5; border-color: #7f1d1d; }
.bt-peq { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.bt-peq svg { width: 15px; height: 15px; }
.acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.direita { text-align: right; }

/* ---------- cabecalho da pagina e dos cartoes ---------- */
.cab-pag { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.cab-pag > div { flex: 1; min-width: 200px; }
.titulo-pag { margin: 0; font-size: 22px; font-weight: 800; color: var(--titulo); text-transform: none; letter-spacing: 0; }
.sub-pag { margin: 2px 0 0; color: var(--sub); font-size: 13.5px; }
.bt-voltar { padding: 8px 13px 8px 9px; }
.cab-cartao { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cab-cartao h3 { margin: 0; font-size: 15.5px; }
.cab-cartao p { margin: 1px 0 0; color: var(--sub); font-size: 12.5px; }
.chip { width: 40px; height: 40px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #e6effc; color: var(--azul); }
.chip svg { width: 21px; height: 21px; }
.chip-laranja { background: #fff1e6; color: #f05a00; } .chip-vermelho { background: #fef2f2; color: #dc2626; } .chip-verde { background: #ecfdf3; color: #16a34a; }
html[data-tema="escuro"] .chip { background: #13254a; color: #93c5fd; }
html[data-tema="escuro"] .chip-laranja { background: #3b1f0b; color: #fdba74; } html[data-tema="escuro"] .chip-vermelho { background: #3a1214; color: #fca5a5; } html[data-tema="escuro"] .chip-verde { background: #0f2e1c; color: #86efac; }
.cartao-laranja { border-top-color: #ff6600; } .cartao-vermelho { border-top-color: #dc2626; } .cartao-verde { border-top-color: #16a34a; }

/* ---------- formulario em grade, com blocos de escolha ---------- */
.grade-form { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grade-form > .cartao:only-child { max-width: 760px; }
.grade-form:has(> .cartao:only-child) { grid-template-columns: 1fr; }
.coluna { display: grid; gap: 0; }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duas:has(> :only-child) { grid-template-columns: 1fr; }
.rotulo { font-size: 12.5px; font-weight: 600; color: var(--sub); margin-bottom: -6px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; display: flex !important; align-items: center; gap: 11px; padding: 12px 14px; border: 1.5px solid var(--borda); border-radius: 12px;
  background: var(--campo); cursor: pointer; transition: all .15s; }
.tile:hover { border-color: #9cc0f2; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--card); color: var(--sub); border: 1px solid var(--borda); }
.tile-ic svg { width: 18px; height: 18px; }
.tile-txt b { display: block; font-size: 13.5px; color: var(--txt); }
.tile-txt small { display: block; font-size: 12px; color: var(--sub); font-weight: 400; }
.tile:has(input:checked) { border-color: var(--azul); background: #eef5ff; box-shadow: 0 0 0 3px rgba(0,95,203,.12); }
.tile:has(input:checked) .tile-ic { background: var(--azul); color: #fff; border-color: var(--azul); }
.tile:has(input:checked)::after { content: "✓"; position: absolute; top: 8px; right: 10px; font-size: 12px; font-weight: 800; color: var(--azul); }
html[data-tema="escuro"] .tile:has(input:checked) { background: #13254a; }

/* ---------- tabela de pessoas ---------- */
.pessoa { display: flex; align-items: center; gap: 10px; }
.pessoa .avatar { width: 34px; height: 34px; font-size: 14px; }
.pessoa b { display: block; font-size: 13.5px; }
.pessoa small { display: block; color: var(--sub); font-size: 12px; }
.etiqueta { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #eef2f7; color: #475569; }
.et-azul { background: #e6effc; color: #004fa8; } .et-verde { background: #e7f8ee; color: #15803d; }
.et-laranja { background: #fff1e6; color: #c2410c; } .et-vermelho { background: #fef2f2; color: #b91c1c; }
html[data-tema="escuro"] .etiqueta { background: #1c2740; color: #cbd5e1; } html[data-tema="escuro"] .et-azul { background: #13254a; color: #93c5fd; }
html[data-tema="escuro"] .et-verde { background: #0f2e1c; color: #86efac; } html[data-tema="escuro"] .et-laranja { background: #3b1f0b; color: #fdba74; }
html[data-tema="escuro"] .et-vermelho { background: #3a1214; color: #fca5a5; }

/* ---------- menu recolhido: vira uma faixa azul ---------- */
.bt-recolher { position: fixed; top: 74px; left: 239px; z-index: 70; width: 26px; height: 26px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center; background: #fff; color: var(--azul); border: 1px solid #cfdff6;
  box-shadow: 0 2px 8px rgba(0,40,100,.2); cursor: pointer; transition: left .2s ease, transform .2s ease; }
.bt-recolher:hover { background: #fff; transform: scale(1.08); }
.bt-recolher svg { width: 15px; height: 15px; transition: transform .2s; }
html[data-tema="escuro"] .bt-recolher { background: #111a2e; border-color: var(--borda); color: #93c5fd; }
body.com-menu { transition: padding-left .2s ease; }
@media (min-width: 901px) {
  html.recolhido body.com-menu { padding-left: 16px; }
  html.recolhido .lado { width: 16px; padding: 0; overflow: hidden; cursor: pointer; }
  html.recolhido .lado > * { visibility: hidden; }
  html.recolhido .lado:hover { filter: brightness(1.15); }
  html.recolhido .bt-recolher { left: 3px; }
  html.recolhido .bt-recolher svg { transform: rotate(180deg); }
}
@media (max-width: 900px) { .bt-recolher { display: none; } .duas, .tiles, .grade-form { grid-template-columns: 1fr; } }

/* ---------- vitrine: lista e editor de cartoes ---------- */
.linha-cartao { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid var(--borda); }
.linha-cartao:last-child { border-bottom: 0; }
.linha-cartao.apagado { opacity: .55; }
.ordem { display: flex; flex-direction: column; gap: 4px; }
.ordem form, .lc-acoes form { margin: 0; }
.bt-mini { width: 28px; height: 24px; padding: 0; border-radius: 7px; }
.bt-mini svg { width: 14px; height: 14px; }
.bt[disabled] { opacity: .35; cursor: default; box-shadow: none; }
.lc-txt { flex: 1; min-width: 0; }
.lc-txt b { display: block; font-size: 14.5px; }
.lc-txt small { display: block; color: var(--sub); font-size: 12.5px; }
.lc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.lc-tags .etiqueta { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-acoes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.icones-escolha { display: grid; grid-template-columns: repeat(auto-fill, 44px); gap: 8px; }
.ic-op { display: block !important; cursor: pointer; }
.ic-op input { position: absolute; opacity: 0; pointer-events: none; }
.ic-op span { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 11px; border: 1.5px solid var(--borda); background: var(--campo); color: var(--sub); }
.ic-op span svg { width: 21px; height: 21px; }
.ic-op:hover span { border-color: #9cc0f2; }
.ic-op input:checked + span { background: var(--azul); border-color: var(--azul); color: #fff; box-shadow: 0 0 0 3px rgba(0,95,203,.15); }
.marcar { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; color: var(--txt) !important; }
.marcar input { width: 17px; height: 17px; padding: 0; }
.previa { pointer-events: none; }
@media (max-width: 700px) { .linha-cartao { flex-wrap: wrap; } .lc-acoes { width: 100%; justify-content: flex-start; } }

/* ---------- vitrine: sem menu lateral, barra azul em cima (como a vitrine do Clube) ---------- */
.vt-topo { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 10px 24px; min-height: 68px; overflow: hidden;
  background: linear-gradient(90deg, #00357a, #005fcb); color: #fff; box-shadow: 0 2px 12px rgba(0,40,100,.18); }
html[data-tema="escuro"] .vt-topo { background: #0b1324; border-bottom: 1px solid var(--borda); box-shadow: none; }
.vt-topo .esp { flex: 1; }
.vt-marca { display: flex; align-items: baseline; gap: 10px; color: #fff; text-decoration: none; }
.vt-marca b { font-size: 21px; font-weight: 800; letter-spacing: 2px; }
.vt-marca span { font-size: 13px; opacity: .75; }
.vt-bt { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: 10px; font: inherit; font-size: 13.5px; font-weight: 600;
  color: #fff; text-decoration: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); cursor: pointer; }
.vt-bt:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); }
button.vt-bt:hover { background: rgba(255,255,255,.22); }
.vt-bt svg { width: 18px; height: 18px; }
.vt-bt .avatar { width: 26px; height: 26px; font-size: 12px; margin-left: -6px; }
.vt-ic { width: 38px; padding: 0; justify-content: center; }
.vt-voltar { max-width: 1100px; margin: 18px auto -6px; padding: 0 28px; }
body.vitrine .conteudo { max-width: 1100px; margin: 0 auto; padding: 26px 28px 40px; }
@media (max-width: 700px) {
  .vt-topo { padding: 8px 12px; gap: 6px; }
  .vt-marca span, .vt-bt span:not(.avatar):not(.so-claro):not(.so-escuro) { display: none; }
  .vt-bt { padding: 0 9px; }
  body.vitrine .conteudo { padding: 18px 14px 30px; }
  .vt-voltar { padding: 0 14px; }
}

/* saudacao e logo do Portal dentro da barra azul */
.vt-fundo { position: absolute; left: 46%; top: 50%; transform: translate(-50%, -50%); height: 86px; width: auto; opacity: .1; filter: brightness(0) invert(1); pointer-events: none; }
.vt-topo > *:not(.vt-fundo) { position: relative; }
.vt-div { width: 1px; height: 30px; background: rgba(255,255,255,.25); margin: 0 10px; }
.vt-ola b { display: block; font-size: 15.5px; line-height: 1.2; }
.vt-ola span { display: block; font-size: 12.5px; opacity: .75; }
.vt-voltar-adm { background: #ff6600; border-color: #ff6600; }
.vt-voltar-adm:hover { background: #f05a00; border-color: #f05a00; }
.faixa-previa { background: #fff1e6; color: #c2410c; text-align: center; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-bottom: 1px solid #fed7aa; }
html[data-tema="escuro"] .faixa-previa { background: #3b1f0b; color: #fdba74; border-color: #5a2e0e; }
@media (max-width: 700px) { .vt-div, .vt-ola span, .vt-fundo { display: none; } .vt-ola b { font-size: 14px; } }

/* botao Abrir vitrine na barra azul da Administracao */
.bt-topo { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: #fff; text-decoration: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.bt-topo:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); }
.bt-topo svg { width: 17px; height: 17px; }
.ola-adm { margin: 0 0 18px; font-size: 15px; color: var(--sub); }
.ola-adm b { font-size: 20px; color: var(--titulo); margin-right: 6px; }
html[data-tema="escuro"] .ola-adm b { color: var(--txt); }
@media (max-width: 700px) { .bt-topo span { display: none; } .bt-topo { width: 36px; padding: 0; justify-content: center; } }

/* ---------- ferramenta de projetos de rede ---------- */
.linha-link { color: inherit; text-decoration: none; border-radius: 10px; }
.linha-link:hover { background: var(--hover); }
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.numeros > div { background: var(--card); border: 1px solid var(--borda); border-radius: 14px; padding: 12px 16px; box-shadow: var(--sombra); }
.numeros b { display: block; font-size: 24px; color: var(--titulo); line-height: 1.1; }
html[data-tema="escuro"] .numeros b { color: var(--txt); }
.numeros span { color: var(--sub); font-size: 12.5px; }
.verif { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin-bottom: 8px; padding: 9px 12px; border-radius: 10px;
  font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; border: 1px solid; }
.verif span { width: 22px; height: 22px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; color: #fff; }
.verif em { margin-left: auto; font-style: normal; font-size: 12px; text-decoration: underline; opacity: .8; }
.verif.erro { background: #fef2f2; color: #991b1b; border-color: #fecaca; } .verif.erro span { background: #dc2626; }
.verif.atencao { background: #fff7ed; color: #9a3412; border-color: #fed7aa; } .verif.atencao span { background: #f97316; }
button.verif:hover { filter: brightness(.97); background-image: none; }
html[data-tema="escuro"] .verif.erro { background: #3a1214; color: #fca5a5; border-color: #7f1d1d; }
html[data-tema="escuro"] .verif.atencao { background: #3b1f0b; color: #fdba74; border-color: #7c3a12; }
.baixar { display: grid; gap: 8px; }
.baixar .bt { justify-content: flex-start; }
.bt.desligado { opacity: .5; cursor: not-allowed; }
.ajustes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ajuste { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--borda); border-radius: 12px; background: var(--campo); align-content: start; }
.ajuste b { font-size: 13px; }
.ajuste .linha { display: flex; gap: 6px; }
.ajuste input, .ajuste select { min-width: 0; flex: 1; padding: 7px 9px; font-size: 13px; }
select { font: inherit; font-size: 13.5px; padding: 9px 10px; border: 1.5px solid var(--borda); border-radius: 10px; background: var(--card); color: var(--txt); }
.barra-tabela { position: sticky; top: 58px; z-index: 5; background: var(--card); padding: 4px 0 10px; display: grid; gap: 8px; border-bottom: 1px solid var(--borda); margin-bottom: 4px; }
.filtros, .acoes-tabela { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filtro { background: var(--campo); color: var(--txt); border: 1px solid var(--borda); padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.filtro em { font-style: normal; color: var(--sub); margin-left: 4px; }
.filtro.on, .filtro:hover { background: var(--azul); color: #fff; border-color: var(--azul); }
.filtro.on em, .filtro:hover em { color: rgba(255,255,255,.8); }
#busca { flex: 1; min-width: 180px; padding: 7px 12px; font-size: 13px; }
.sel-info { font-size: 12.5px; color: var(--sub); margin: 0 4px 0 8px; }
.tab-caixas td { padding: 5px 6px; vertical-align: middle; }
.tab-caixas td b { display: block; font-size: 13px; }
.tab-caixas td small { display: block; color: var(--sub); font-size: 11.5px; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-caixas input.n2, .tab-caixas input.n4 { padding: 5px 6px; font-size: 13px; text-align: center; }
.tab-caixas input.n2 { width: 3.2em; } .tab-caixas input.n4 { width: 4.6em; text-transform: uppercase; }
.tab-caixas select { padding: 4px 6px; font-size: 12.5px; }
.tab-caixas .final { font-family: "DejaVu Sans Mono", Menlo, Consolas, monospace; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.tab-caixas .final.exp { color: #c2410c; }
.arquivo { display: block !important; cursor: pointer; }
.arquivo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.arquivo span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px; border: 2px dashed #9cc0f2; border-radius: 14px; background: #f3f8ff; color: var(--azul); }
.arquivo span svg { width: 28px; height: 28px; }
.arquivo span small { color: var(--sub); font-weight: 500; }
html[data-tema="escuro"] .arquivo span { background: #0f1a30; border-color: #2a4a7a; }
.tiles.tres { grid-template-columns: repeat(3, 1fr); }
.tiles.tres .tile { justify-content: center; text-align: center; padding: 10px; }
.marcas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
input[type=color] { height: 42px; padding: 4px; cursor: pointer; }
input[type=range] { padding: 0; accent-color: var(--azul); }
.avulsas { display: flex; flex-wrap: wrap; gap: 6px; max-height: 240px; overflow-y: auto; }
.avulsas .mini { display: inline-flex !important; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid var(--borda); border-radius: 8px;
  font-family: "DejaVu Sans Mono", Menlo, monospace; font-size: 12px; color: var(--txt) !important; cursor: pointer; }
.avulsas .mini.exp { border-color: #fdba74; }
.avulsas .mini input { padding: 0; }

/* previa do adesivo (aproximada; o PDF sai com as medidas exatas) */
.previas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.ad { --escuro: #00264f; position: relative; width: 210px; height: 300px; border-radius: 12px; padding: 13px; display: flex; flex-direction: column; gap: 8px; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.ad.com-corte { outline: 1.5px dashed #eb008c; outline-offset: -4px; }
.ad-logo { height: 74px; border-radius: 9px; border: 1.3px solid rgba(255,255,255,.65); background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.ad-logo img { max-height: 44px; max-width: 85%; filter: brightness(0) invert(1); }
.ad[data-logo="colorido"] .ad-logo { background: #fff; border-color: #fff; box-shadow: 1px 2px 0 rgba(0,0,0,.22); }
.ad[data-logo="colorido"] .ad-logo img { filter: none; }
.ad[data-logo="nenhum"] .ad-logo { display: none; }
.ad-cod { flex: 1; border-radius: 9px; border: 1.3px solid rgba(255,255,255,.65); background: rgba(255,255,255,.1); display: grid; grid-template-rows: repeat(2, 1fr); }
.ad-cod > div { display: flex; align-items: center; padding: 0 10px; border-top: 1px solid rgba(255,255,255,.25); }
.ad-cod > div:first-child { border-top: 0; }
.ad-cod span { display: none; font-size: 10px; line-height: 1; opacity: .85; letter-spacing: .08em; }
.ad-cod > div { position: relative; }
.ad.com-etiqueta .ad-cod span { display: block; position: absolute; top: 4px; left: 0; right: 0; text-align: center; }
.ad-cod b { flex: 1; text-align: center; font-family: "DejaVu Sans Mono", Menlo, Consolas, monospace; font-size: 42px; font-weight: 700; line-height: 1; white-space: nowrap;
  -webkit-text-stroke: 4px var(--escuro); paint-order: stroke fill; text-shadow: 2px 3px 0 var(--escuro); }
.ad.sem-contorno .ad-cod b { -webkit-text-stroke: 0; }
.ad.sem-sombra .ad-cod b { text-shadow: none; }
.ad.sem-quadros .ad-cod, .ad.sem-quadros:not([data-logo="colorido"]) .ad-logo { border-color: transparent; background: transparent; }
.ad.sem-quadros .ad-cod > div { border-top-color: transparent; }
.ad-sgp { text-align: center; font-size: 10.5px; opacity: .9; }
@media (max-width: 700px) { .tiles.tres, .marcas { grid-template-columns: 1fr; } .barra-tabela { top: 54px; } }
.conferir { display: grid; gap: 6px; margin-top: 14px; padding: 12px; border: 1px dashed var(--borda); border-radius: 12px; }
.conferir b { font-size: 13px; } .conferir small { color: var(--sub); font-size: 12px; }
.conferir .linha { display: flex; gap: 8px; align-items: center; }
.conferir input[type=file] { flex: 1; min-width: 0; font-size: 12.5px; padding: 6px; }
.docs { display: grid; gap: 8px; margin-bottom: 12px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--borda); border-radius: 12px; background: var(--campo); }
.doc form { margin: 0; }
.doc-ic { width: 40px; height: 46px; flex: none; border-radius: 7px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; box-shadow: inset 0 10px 0 rgba(255,255,255,.18); }
.doc-novo { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 12px; border-top: 1px dashed var(--borda); }
.doc-novo input[name=titulo] { flex: 1; min-width: 200px; padding: 8px 10px; font-size: 13px; }
.doc-novo input[type=file] { font-size: 12.5px; padding: 6px; max-width: 260px; }
.doc-novo select { padding: 8px 10px; }
table td small { display: block; color: var(--sub); font-size: 11.5px; }

/* ---------- integracoes (abas), telegram e avisos ---------- */
.abas-pag { display: flex; gap: 6px; margin: -4px 0 16px; flex-wrap: wrap; }
.abas-pag a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 13.5px;
  color: var(--sub); background: var(--card); border: 1px solid var(--borda); }
.abas-pag a svg { width: 16px; height: 16px; }
.abas-pag a.on { color: #fff; background: var(--azul); border-color: var(--azul); }
.passos-tg { margin: 0 0 14px; padding-left: 20px; font-size: 13.5px; display: grid; gap: 6px; }
.passos-tg code { background: var(--campo); padding: 1px 6px; border-radius: 5px; }
.descobertos { margin: 10px 0; padding: 10px; border: 1px dashed var(--borda); border-radius: 12px; }
.descobertos form { margin: 0; }
.nome-destino { flex: 1; padding: 7px 10px; font-size: 13px; }
.camadas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.camada { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--borda); background: var(--card); display: grid; }
.camada b { font-size: 14px; } .camada span { color: var(--sub); font-size: 12px; }
.camada.c1 { border-left: 4px solid #dc2626; } .camada.c2 { border-left: 4px solid #f59e0b; opacity: .7; } .camada.c3 { border-left: 4px solid #0b5fd0; opacity: .7; }
.grade-avisos { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.aviso-regra { margin-bottom: 0; border-top-color: #dc2626; }
.aviso-regra.desligado { opacity: .6; border-top-color: var(--cinza); }
.aviso-titulo { font-size: 15px; margin-left: 4px; }
textarea { font: inherit; font-size: 13px; padding: 10px 12px; border: 1.5px solid var(--borda); border-radius: 10px; background: var(--campo); color: var(--txt); resize: vertical; }
.vars { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: -4px; }
.vars small { color: var(--sub); margin-left: auto; }
.var { background: var(--campo); color: var(--azul); border: 1px solid var(--borda); padding: 3px 8px; border-radius: 7px; font-family: "DejaVu Sans Mono", Menlo, monospace; font-size: 11.5px; font-weight: 600; }
.var:hover { background: #e6effc; color: var(--azul); }
.chave-liga { position: relative; display: inline-block !important; width: 42px; height: 24px; }
.chave-liga input { opacity: 0; width: 0; height: 0; }
.chave-liga span { position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: .2s; }
.chave-liga span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.chave-liga input:checked + span { background: var(--verde); }
.chave-liga input:checked + span::before { transform: translateX(18px); }
@media (max-width: 700px) { .camadas { grid-template-columns: 1fr; } .grade-avisos { grid-template-columns: 1fr; } }

/* avisos em menus que expandem */
.atalho-destino { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13.5px; color: var(--sub); }
.atalho-destino select { padding: 6px 10px; }
.lista-avisos { padding: 6px; }
.item-aviso { border-radius: 12px; }
.item-aviso + .item-aviso { border-top: 1px solid var(--borda); }
.item-aviso summary, .historico summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; border-radius: 12px; }
.item-aviso summary::-webkit-details-marker, .historico summary::-webkit-details-marker { display: none; }
.item-aviso summary:hover { background: var(--hover); }
.item-aviso[open] { background: var(--campo); border-top-color: transparent; }
.item-aviso[open] + .item-aviso { border-top-color: transparent; }
.ponto { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--cinza); }
.ponto.on { background: var(--verde); box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.ponto.meio { background: var(--amarelo); box-shadow: 0 0 0 4px rgba(217,119,6,.15); }
.ia-titulo { flex: 1; min-width: 0; }
.ia-titulo b { display: block; font-size: 14.5px; }
.ia-titulo small { display: block; color: var(--sub); font-size: 12.5px; }
.ia-destinos { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.seta { width: 18px; height: 18px; flex: none; color: var(--sub); transition: transform .15s; }
.seta svg { width: 18px; height: 18px; }
details[open] > summary .seta { transform: rotate(90deg); }
.item-aviso.desligado summary b { color: var(--sub); }
.ia-corpo { padding: 4px 16px 16px 36px; }
.liga-texto { display: flex !important; align-items: center; gap: 8px; font-size: 13px !important; color: var(--txt) !important; }
.destinos-esc { display: flex; gap: 8px; flex-wrap: wrap; }
.dest { display: inline-flex !important; cursor: pointer; }
.dest input { position: absolute; opacity: 0; pointer-events: none; }
.dest span { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--borda); background: var(--card); color: var(--txt); font-size: 13px; font-weight: 600; }
.dest span small { color: var(--sub); font-weight: 400; margin-left: 4px; }
.dest input:checked + span { background: var(--azul); border-color: var(--azul); color: #fff; }
.dest input:checked + span small { color: rgba(255,255,255,.8); }
.historico { padding: 0; }
.historico summary { padding: 16px 18px; }
.historico .tabela-rola { padding: 0 18px 16px; }
@media (max-width: 700px) { .item-aviso summary { flex-wrap: wrap; } .ia-destinos { width: 100%; justify-content: flex-start; padding-left: 22px; } .ia-corpo { padding-left: 16px; } }
.bot-tg { margin-bottom: 16px; } .bot-corpo { padding: 0 18px 16px; } .bot-corpo .linha-cartao { padding: 9px 4px; }

/* ---------- Sistema com graficos ---------- */
.periodo { display: inline-flex; background: var(--card); border: 1px solid var(--borda); border-radius: 10px; padding: 3px; }
.periodo button { background: transparent; color: var(--sub); padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.periodo button:hover { background: var(--hover); color: var(--txt); }
.periodo button.on { background: var(--azul); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--borda); border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.05);
  display: flex; flex-direction: column; align-items: flex-start; animation: subir .4s ease both; }
.kpi:nth-child(2) { animation-delay: .05s; } .kpi:nth-child(3) { animation-delay: .1s; } .kpi:nth-child(4) { animation-delay: .15s; }
@keyframes subir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.kpi h2 { margin-bottom: 8px; }
.kpi-anel { width: 112px; height: 112px; align-self: center; }
.kpi-sub { margin: 8px 0 0; color: var(--sub); font-size: 12.5px; align-self: center; text-align: center; }
.kpi-estado { margin: 0; } .kpi-estado .estado { margin: 0; }
.kpi-grande { margin: 10px 0 0; font-size: 34px; font-weight: 800; color: var(--titulo); line-height: 1; }
html[data-tema="escuro"] .kpi-grande { color: var(--txt); }
.anel { width: 100%; height: 100%; }
.anel-fundo { fill: none; stroke: var(--borda); stroke-width: 9; }
.anel-arco { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.anel.verde .anel-arco { stroke: var(--verde); } .anel.amarelo .anel-arco { stroke: var(--amarelo); } .anel.vermelho .anel-arco { stroke: var(--vermelho); }
.anel-num { font-size: 22px; font-weight: 800; text-anchor: middle; fill: var(--txt); }
.anel-sub { font-size: 9.5px; text-anchor: middle; fill: var(--sub); text-transform: uppercase; letter-spacing: .06em; }
.dias { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; margin-top: 12px; width: 100%; }
.dia { aspect-ratio: 1; border-radius: 4px; background: var(--borda); }
.dia.ok { background: var(--verde); } .dia.falha { background: var(--vermelho); }
.graficos { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.grafico { margin-bottom: 0; }
.area-grafico { position: relative; min-height: 150px; }
.sem-dados { color: var(--sub); font-size: 13px; margin: 40px 0; text-align: center; }
svg.linha { width: 100%; height: auto; display: block; overflow: visible; }
.linha .grade { stroke: var(--borda); stroke-width: 1; }
.linha .eixo { font-size: 10.5px; fill: var(--sub); }
.linha .traco { fill: none; stroke: var(--azul); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.linha .area { fill: var(--azul); opacity: .10; }
.linha .guia { stroke: var(--sub); stroke-width: 1; stroke-dasharray: 3 3; }
.linha .ponto-hover { fill: var(--azul); stroke: var(--card); stroke-width: 2; }
.balao { position: absolute; pointer-events: none; min-width: 110px; padding: 6px 10px; border-radius: 9px; background: var(--txt); color: var(--card);
  font-size: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.18); display: grid; text-align: center; }
.balao b { font-size: 14px; }
.graficos + .cartao { margin-top: 16px; }
.pilulas { display: flex; flex-wrap: wrap; gap: 8px; }
.pilula { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--campo); border: 1px solid var(--borda); }
.pilula i { width: 8px; height: 8px; border-radius: 50%; background: var(--cinza); }
.pilula.ok i { background: var(--verde); box-shadow: 0 0 0 3px rgba(22,163,74,.18); animation: pulsar 2.4s ease-in-out infinite; }
.pilula.falha { color: var(--vermelho); } .pilula.falha i { background: var(--vermelho); }
@keyframes pulsar { 50% { box-shadow: 0 0 0 6px rgba(22,163,74,0); } }
@media (max-width: 700px) { .graficos { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .kpi, .pilula.ok i { animation: none; } .anel-arco { transition: none; } }

/* ---------- modo TV ---------- */
body.tv { background: radial-gradient(ellipse 80% 60% at 50% -10%, #0f2a57, #070c16 70%); color: #e2e8f0; min-height: 100vh; overflow: hidden; }
.tv-topo { display: flex; align-items: center; gap: 20px; padding: 18px 32px; }
.tv-marca b { font-size: 26px; letter-spacing: 3px; } .tv-marca span { display: block; color: #64748b; font-size: 13px; }
.tv-pontos { flex: 1; display: flex; justify-content: center; gap: 8px; }
.tv-pontos button { background: rgba(255,255,255,.06); color: #94a3b8; border: 1px solid #1f2b44; border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.tv-pontos button.on { background: #005fcb; color: #fff; border-color: #005fcb; }
.tv-hora { text-align: right; } .tv-hora b { font-size: 30px; display: block; line-height: 1; } .tv-hora span { color: #64748b; font-size: 13px; text-transform: capitalize; }
.tv-bt { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid #1f2b44; color: #cbd5e1; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 16px; padding: 0; }
.tv-progresso { height: 3px; background: rgba(255,255,255,.05); margin: 0 32px; border-radius: 3px; overflow: hidden; }
.tv-progresso i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #005fcb, #ff6600); }
.tv-telas { position: relative; height: calc(100vh - 150px); margin: 0 32px; }
.tv-tela { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; pointer-events: none; padding-top: 18px; }
.tv-tela.on { opacity: 1; transform: none; pointer-events: auto; }
.tv-tela h1 { font-size: 30px; margin: 0 0 22px; font-weight: 700; }
.tv-grade4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; height: calc(100% - 80px); }
.tv-linha2 { display: grid; grid-template-columns: 3fr 1fr; gap: 22px; } .tv-linha2.iguais { grid-template-columns: 1fr 1fr; }
.tv-card { background: rgba(17,26,46,.75); border: 1px solid #1f2b44; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; }
.tv-card h2 { color: #64748b; font-size: 14px; }
.tv-card .estado { font-size: 20px; }
.tv-num { font-size: 64px; font-weight: 800; margin: 14px 0 0; line-height: 1; color: #fff; }
.tv-sub { color: #64748b; margin: 10px 0 0; font-size: 15px; }
.tv-lado { justify-content: center; }
.tv-anel { width: min(100%, 240px); aspect-ratio: 1; margin: auto; }
.tv .anel-fundo { stroke: #1f2b44; } .tv .anel-num { fill: #fff; } .tv .anel-sub { fill: #94a3b8; }
.tv .dias { margin-top: auto; } .tv .dia { background: #1f2b44; } .tv .dia.ok { background: var(--verde); } .tv .dia.falha { background: var(--vermelho); }
.tv .linha .grade { stroke: #1f2b44; } .tv .linha .eixo { fill: #64748b; font-size: 12px; } .tv .linha .traco { stroke: #3b82f6; stroke-width: 2.5; } .tv .linha .area { fill: #3b82f6; opacity: .15; }
.tv-credito { position: fixed; bottom: 8px; left: 0; right: 0; color: #334155 !important; }
@media (max-width: 900px) { body.tv { overflow: auto; } .tv-grade4 { grid-template-columns: 1fr 1fr; height: auto; } .tv-linha2, .tv-linha2.iguais { grid-template-columns: 1fr; } .tv-telas { height: auto; min-height: 120vh; } .tv-pontos { display: none; } }
.cab-pag > .periodo { flex: none; min-width: 0; }
.balao[hidden] { display: none; }
.tv-logo { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.tv-topo .esp { flex: 1; }
.tv-pontos[hidden] { display: none; }
.link-tv { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.link-tv input { flex: 1; min-width: 220px; font-family: "DejaVu Sans Mono", Menlo, monospace; font-size: 12px; padding: 8px 10px; }
.telas-esc { display: grid; gap: 8px; }
.tela-op { display: flex !important; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--borda); border-radius: 12px; background: var(--campo); cursor: pointer; }
.tela-op:has(input[type=checkbox]:checked) { border-color: var(--azul); background: #eef5ff; }
html[data-tema="escuro"] .tela-op:has(input[type=checkbox]:checked) { background: #13254a; }
.tela-op input[type=checkbox] { width: 17px; height: 17px; padding: 0; }
.tela-nome { flex: 1; color: var(--txt); font-weight: 600; font-size: 13.5px; }
.tela-ordem { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sub); font-weight: 500; }
.tela-ordem input { width: 60px; padding: 5px 8px; text-align: center; }

/* ---------- Cerebro: o grafo do cofre. O palco e SEMPRE escuro, nos dois temas (decisao do Ednardo: no fundo claro
   o cerebro perde a magnitude e parece brinquedo). O resto da pagina segue o tema. ---------- */
.cerebro-palco { --cp-vidro: rgba(10,16,30,.86); --cp-borda: #1f2b44; --cp-txt: #e2e8f0; --cp-sub: #94a3b8; --cp-hover: #1e293b;
  position: relative; height: calc(100vh - 230px); min-height: 460px; border-radius: 16px; overflow: hidden; margin-bottom: 16px;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #0d1a33 0%, #060a14 70%); border: 1px solid #1f2b44;
  box-shadow: 0 10px 30px rgba(6,10,20,.18); }
.cerebro-palco canvas, .tv-cerebro canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.cerebro-equipe { height: calc(100vh - 230px); margin-top: 16px; }
.cerebro-dica { position: absolute; right: 16px; bottom: 12px; margin: 0; font-size: 12px; color: var(--cp-sub); opacity: .8; pointer-events: none; }
.cerebro-busca { position: absolute; top: 14px; left: 14px; }
.cerebro-busca input { width: 240px; background: var(--cp-vidro); border-color: var(--cp-borda); color: var(--cp-txt); padding: 8px 12px; font-size: 13px; backdrop-filter: blur(6px); }
.cerebro-legenda { position: absolute; left: 14px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 70%; }
.cerebro-legenda button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; font-size: 12px; border-radius: 999px; font-weight: 600;
  background: var(--cp-vidro); border: 1px solid var(--cp-borda); color: var(--cp-txt); backdrop-filter: blur(6px); }
.cerebro-legenda button:hover { background: var(--cp-hover); border-color: var(--c); }
.cerebro-legenda button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.cerebro-legenda button em { font-style: normal; color: var(--cp-sub); font-weight: 500; }
.cerebro-legenda button.fora { opacity: .4; }
.cerebro-lado { position: absolute; top: 14px; right: 14px; bottom: 44px; width: 300px; overflow: auto; padding: 18px; border-radius: 14px;
  background: var(--cp-vidro); border: 1px solid var(--cp-borda); color: var(--cp-txt); backdrop-filter: blur(10px); box-shadow: 0 8px 30px rgba(15,23,42,.12); }
.cerebro-lado[hidden] { display: none; }
.cerebro-lado h3 { margin: 8px 0 12px; font-size: 18px; line-height: 1.3; color: var(--cp-txt); }
.cerebro-lado h4 { margin: 16px 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--cp-sub); }
.cerebro-lado dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.cerebro-lado dt { color: var(--cp-sub); }
.cerebro-lado .bt { margin-top: 14px; width: 100%; justify-content: center; }
.cerebro-pasta { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: var(--c); border: 1px solid var(--c); }
.cerebro-fechar { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; padding: 0; border-radius: 8px; background: transparent; color: var(--cp-sub); border: 1px solid var(--cp-borda); }
.cerebro-fechar:hover { background: var(--cp-hover); color: var(--cp-txt); }
.cerebro-viz { display: flex; flex-direction: column; gap: 4px; }
.cerebro-viz button { text-align: left; padding: 6px 10px 6px 12px; font-size: 13px; font-weight: 500; border-radius: 8px; background: var(--cp-hover);
  color: var(--cp-txt); border: 0; border-left: 3px solid var(--c); }
.cerebro-viz button:hover { filter: brightness(.96); }
body.cerebro-sem-nomes .cerebro-busca, body.cerebro-sem-nomes .cerebro-legenda { display: none; }
.cerebro-legenda.so-rede button i { background: var(--cp-sub); box-shadow: none; }
.cerebro-visual { position: absolute; top: 14px; right: 14px; width: 260px; padding: 14px 16px; border-radius: 14px; z-index: 2;
  background: var(--cp-vidro); border: 1px solid var(--cp-borda); color: var(--cp-txt); backdrop-filter: blur(10px); box-shadow: 0 8px 30px rgba(15,23,42,.14); }
.cerebro-visual[hidden] { display: none; }
.cerebro-visual h4 { margin: 10px 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--cp-sub); }
.cerebro-visual h4:first-child { margin-top: 0; }
.cerebro-visual .periodo { display: flex; }
.cerebro-visual .periodo button { flex: 1; font-size: 12px; }
.cerebro-visual input[type=range] { width: 100%; padding: 0; accent-color: var(--azul); }
.cerebro-visual .acoes { margin-top: 12px; }
.cerebro-cores { display: flex; gap: 8px; }
.cerebro-cores button { width: 26px; height: 26px; padding: 0; border-radius: 50%; background: var(--c); border: 2px solid transparent; box-shadow: 0 0 0 1px var(--cp-borda); }
.cerebro-cores button.on { border-color: var(--cp-vidro); box-shadow: 0 0 0 2px var(--c); }
.cerebro-modos { margin: 0 0 14px; padding-left: 18px; color: var(--sub); font-size: 13.5px; display: grid; gap: 4px; }
.cerebro-modos b { color: var(--txt); }
.tv-cerebro { display: flex; flex-direction: column; }
.tv-cerebro canvas { flex: 1; min-height: 0; }
@media (max-width: 760px) { .cerebro-lado { left: 10px; right: 10px; width: auto; top: auto; height: 55%; } .cerebro-busca input { width: 170px; } .cerebro-dica { display: none; } }

/* ---------- globo do cerebro ao lado do nome MAP ---------- */
.marca b, .vt-marca b { display: flex; align-items: center; gap: 8px; }
canvas.globo { width: 30px; height: 30px; flex: none; display: block; }
.vt-marca canvas.globo { width: 24px; height: 24px; }
html.recolhido .lado canvas.globo { display: none; }

/* ---------- foto da pessoa ---------- */
.avatar.com-foto { background: none; overflow: hidden; padding: 0; }
.avatar.com-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.foto-linha { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.foto-linha .esp { flex: 1; }
.foto-grande .avatar { width: 64px; height: 64px; font-size: 26px; }

/* ---------- historico: fechado ate clicar ---------- */
details.historico-pessoa > summary { cursor: pointer; list-style: none; margin-bottom: 0; }
details.historico-pessoa > summary::-webkit-details-marker { display: none; }
details.historico-pessoa[open] > summary { margin-bottom: 12px; }
details.historico-pessoa .bt { margin-top: 12px; }
.filtro-hist { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.filtro-hist label { display: grid; gap: 4px; font-size: 12.5px; color: var(--sub); font-weight: 600; }
.logo-previa { background: #0b1a33; border-radius: 12px; padding: 18px; display: flex; justify-content: center; margin-bottom: 12px; }
.logo-previa img { max-width: 100%; max-height: 110px; }
.perfis-marcar { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.qr-app { display: flex; justify-content: center; }
.qr-app svg { width: 210px; height: 210px; border-radius: 12px; border: 1px solid var(--borda); }
.instalar .formulario { display: grid; gap: 12px; }
.instalar-ola { margin: 0; }
.instalar-passos { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; }
.instalar-passos span { display: block; color: var(--sub); margin-top: 2px; }
.instalar-passos span[hidden] { display: none; }
.instalar-passos .bt { margin-top: 8px; }
.instalar > .formulario { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--borda); border-radius: 18px; padding: 28px; box-shadow: var(--sombra); }
.instalar form { padding: 0; border: 0; background: none; max-width: none; box-shadow: none; display: grid; gap: 12px; }
.instalar h1, .instalar .sub { text-align: center; }
.copia-cola { display: grid; gap: 5px; font-size: 12.5px; color: var(--sub); font-weight: 600; margin: 10px 0; }
.copia-cola textarea { font: 13px/1.45 inherit; font-family: inherit; padding: 10px 12px; border: 1.5px solid var(--borda); border-radius: 10px; background: var(--campo); color: var(--txt); resize: vertical; }
.ad.ad-fino .ad-cod b { -webkit-text-stroke: 1.3px var(--escuro); text-shadow: 1.5px 2px 0 var(--escuro); font-size: 34px; }
.ad.ad-fino .ad-logo { height: 52px; }

/* ---------- folhear o plano de fusao ---------- */
.folhear select.folhear-doc { width: 100%; margin-bottom: 10px; }
.folhear-palco { display: flex; align-items: center; gap: 8px; }
.folhear-img { flex: 1; position: relative; display: block; min-height: 160px; background: var(--fundo); border: 1px solid var(--borda); border-radius: 10px; overflow: hidden; }
.folhear-img img { display: block; width: 100%; height: auto; transition: opacity .2s; }
.folhear-carregando { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sub); font-size: 13px; }
.folhear-carregando[hidden] { display: none; }
.folhear-seta { width: 38px; height: 64px; padding: 0; border-radius: 10px; font-size: 30px; line-height: 1; background: var(--card); color: var(--azul); border: 1px solid var(--borda); }
.folhear-seta:hover:not(:disabled) { background: var(--azul); color: #fff; }
.folhear-seta:disabled { opacity: .35; cursor: default; }
.folhear-pe { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--sub); }

/* ---------- projetos de rede (equipe, so leitura) ---------- */
.rede-busca { display: flex; gap: 8px; margin: 14px 0; max-width: 520px; }
.rede-busca input { flex: 1; text-transform: uppercase; }
.rede-cidades { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.rede-cidades .bloco { text-decoration: none; color: inherit; }
.rede-mapa-cartao { padding: 12px; }
.rede-mapa-topo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rede-mapa-topo .esp { flex: 1; }
.rede-mapa-topo input { width: 220px; padding: 8px 10px; text-transform: uppercase; }
.rede-mapa { height: 62vh; min-height: 360px; border-radius: 12px; overflow: hidden; z-index: 0; }
.rede-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sub); }
.rede-leg i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--borda); }
.rede-leg i.az { background: #005fcb; } .rede-leg i.la { background: #ff6600; margin-left: 6px; }
.rede-pop-cod { font-family: "DejaVu Sans Mono", Menlo, monospace; font-size: 14px; }
.rede-pop-bt { margin-top: 8px; color: #fff !important; }
.rede-leg i.ci { background: #94a3b8; margin-left: 6px; }
.rede-mapa-palco { position: relative; }
.rede-camadas { position: absolute; top: 10px; right: 10px; z-index: 500; width: 300px; max-height: 70%; overflow: auto; padding: 12px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--borda); box-shadow: 0 8px 24px rgba(15,23,42,.18); display: grid; gap: 6px; font-size: 13px; }
.rede-camadas[hidden] { display: none; }
.rede-camadas em { font-style: normal; color: var(--sub); font-size: 11.5px; }
.rede-camadas label { font-weight: 500 !important; }
.rotulo-caixa, .rotulo-ponto { display: none; background: rgba(255,255,255,.92); border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.25); padding: 1px 6px;
  font: 700 11px "DejaVu Sans Mono", Menlo, monospace; color: #0f172a; }
.rotulo-caixa::before, .rotulo-ponto::before { display: none; }
.com-rotulos .rotulo-caixa, .rotulo-ponto { display: block; }
.paginas-pon { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; }
.paginas-pon label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--sub); }
.paginas-pon input { width: 80px; }
.paginas-pon .acoes { flex-basis: 100%; }

/* mapa em tela cheia (cobre a tela; funciona tambem no iPhone) */
.rede-sair { display: none; }
.rede-mapa-palco.cheia { position: fixed; inset: 0; z-index: 2000; background: #000; }
.rede-mapa-palco.cheia .rede-mapa { height: 100vh; height: 100dvh; border-radius: 0; }
.rede-mapa-palco.cheia .rede-sair { display: block; position: absolute; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 1001;
  padding: 9px 16px; border-radius: 999px; background: rgba(15,23,42,.85); color: #fff; font-weight: 700; font-size: 14px; border: 0; }
.rede-mapa-palco.cheia .rede-camadas { top: 60px; }
body.sem-rolagem { overflow: hidden; }
/* plano de fusao grande */
.folhear-grande { position: fixed; inset: 0; z-index: 2100; background: rgba(2,6,23,.94); display: flex; flex-direction: column; }
.folhear-grande[hidden] { display: none; }
.folhear-barra { display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; color: #e2e8f0; font-size: 14px; }
.folhear-barra .esp { flex: 1; }
.folhear-barra button { width: 40px; height: 40px; padding: 0; border-radius: 10px; font-size: 20px; background: rgba(255,255,255,.12); color: #fff; border: 0; }
.folhear-rolar { flex: 1; overflow: auto; display: flex; align-items: flex-start; justify-content: center; -webkit-overflow-scrolling: touch; }
.folhear-rolar img { width: 100%; height: auto; display: block; max-width: none; }
.folhear-grande .folhear-seta { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(15,23,42,.7); color: #fff; border: 0; width: 44px; height: 72px; }
.folhear-grande .g-esq { left: 8px; } .folhear-grande .g-dir { right: 8px; }
.convite-push { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--borda); border-left: 4px solid var(--azul); font-size: 13.5px; }
.convite-push[hidden] { display: none; }
.convite-push svg { width: 20px; height: 20px; color: var(--azul); }
.convite-push span { flex: 1; min-width: 180px; }

/* globo na tela de entrada e de instalar */
.entrada h1.marca-entrada { display: flex; align-items: center; justify-content: center; gap: 12px; }
canvas.globo-entrada { width: 44px; height: 44px; }

/* ---------- Chamados da semana (TV, PC e celular). Segue o tema; a TV e sempre escura ---------- */
.ch { --ch-fundo: transparent; --ch-cx: var(--card); --ch-cx2: var(--fundo); --ch-borda: var(--borda); --ch-txt: var(--txt); --ch-sub: var(--sub); --ch-cd: #f1f5f9;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto 1fr auto; gap: 12px; color: var(--ch-txt); }
html[data-tema="escuro"] .ch, body.tv .ch { --ch-cx: #111a2e; --ch-cx2: #0d1426; --ch-borda: #1f2b44; --ch-txt: #e2e8f0; --ch-sub: #94a3b8; --ch-cd: #16213a; }
.ch-topo { grid-column: 1 / 3; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ch-topo h2 { margin: 0; font-size: 22px; text-transform: none; letter-spacing: 0; color: var(--ch-txt); }
.ch-topo span { color: var(--ch-sub); font-size: 13px; }
.ch-k { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.ch-k div { background: var(--ch-cx); border: 1px solid var(--ch-borda); border-radius: 12px; padding: 6px 14px; text-align: center; min-width: 92px; }
.ch-k b { display: block; font-size: 24px; line-height: 1.15; }
.ch-k small { color: var(--ch-sub); font-size: 11.5px; white-space: nowrap; }
.ch-k .r b { color: #ef4444; } .ch-k .y b { color: #f59e0b; } .ch-k .g b { color: #16a34a; }
.ch-rolar { grid-column: 1; grid-row: 2; overflow-x: auto; min-width: 0; }
.ch-grade { display: grid; grid-template-columns: 34px 160px 160px repeat(7, minmax(110px, 1fr)); grid-template-rows: auto minmax(120px, auto) minmax(120px, auto); gap: 5px; min-width: 1150px; }
.ch-cab { background: var(--ch-cx); border-radius: 8px; padding: 7px 6px; text-align: center; font-weight: 700; font-size: 12.5px; }
.ch-cab.vazio { background: none; } .ch-cab.hj { background: #1d4ed8; color: #fff; }
.ch-cab u { text-decoration: none; font-size: 10px; background: #fff; color: #1d4ed8; border-radius: 6px; padding: 1px 5px; margin-left: 3px; }
.ch-cab.atr { background: #fee2e2; color: #b91c1c; } .ch-cab.sem { background: #fef3c7; color: #92400e; }
html[data-tema="escuro"] .ch-cab.atr, body.tv .ch-cab.atr { background: #450a0a; color: #fca5a5; }
html[data-tema="escuro"] .ch-cab.sem, body.tv .ch-cab.sem { background: #3b2f0a; color: #fcd34d; }
.ch-cab b { margin-left: 5px; }
.ch-per { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; color: var(--ch-sub); font-weight: 700; letter-spacing: .1em; font-size: 12px; background: var(--ch-cx2); border-radius: 8px; }
.ch-col { background: var(--ch-cx2); border: 1px solid var(--ch-borda); border-radius: 8px; padding: 5px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.ch-col.hj { border-color: #3b82f6; }
.ch-col.atr { border-color: #fca5a5; } .ch-col.sem { border-color: #fcd34d; }
html[data-tema="escuro"] .ch-col.atr, body.tv .ch-col.atr { border-color: #7f1d1d; }
html[data-tema="escuro"] .ch-col.sem, body.tv .ch-col.sem { border-color: #713f12; }
.ch .cd { display: flex; align-items: center; gap: 5px; background: var(--ch-cd); border-left: 5px solid var(--c); border-radius: 6px; padding: 4px 6px; font-size: 12px; }
.ch .cd i { font-style: normal; font-size: 11px; }
.ch .cd .n { font: 700 11px "DejaVu Sans Mono", Menlo, monospace; color: var(--ch-sub); }
.ch .cd b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ch .cd em { font-style: normal; color: #ef4444; font-size: 11px; white-space: nowrap; } .ch .ch-col.sem .cd em { color: #d97706; }
.ch .cd em.h { color: var(--ch-sub); }
.ch .cd s { width: 9px; height: 9px; border-radius: 50%; text-decoration: none; display: inline-block; flex: none; }
.ch .cd.ok { opacity: .45; } .ch .cd.ok b::after { content: " ✓"; color: #16a34a; }
.ch .cd.pend { border-left-style: dashed; }
.ch .cd.exec { animation: ch-pisca 1.4s ease-in-out infinite; }
@keyframes ch-pisca { 50% { box-shadow: 0 0 0 2px var(--c); } }
.ch .cd.grp span { color: var(--c); letter-spacing: 1px; } .ch .cd.grp em { color: var(--ch-txt); }
.ch .cd.clica { cursor: pointer; } .ch .cd.clica:hover { filter: brightness(.95); outline: 1px solid var(--c); }
.ch-mais { margin: 2px 0 0; color: var(--ch-sub); font-size: 11px; text-align: center; }
.ch-dir { grid-column: 2; grid-row: 2 / 4; background: var(--ch-cx2); border: 1px solid var(--ch-borda); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ch-dir h3 { margin: 0 0 4px; font-size: 15px; } .ch-dir h3 small { color: var(--ch-sub); font-weight: 400; }
.ch-semtec { background: #fee2e2; color: #b91c1c; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
html[data-tema="escuro"] .ch-semtec, body.tv .ch-semtec { background: #450a0a; color: #fca5a5; }
.ch-semtec b { font-size: 22px; margin-right: 6px; }
.ch-tc { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; position: relative; }
.ch-tc.livre { background: rgba(22,163,74,.12); outline: 1px solid rgba(22,163,74,.5); }
.ch-tc .bola { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.ch-tc .nm { flex: 1; min-width: 0; } .ch-tc .nm b { font-size: 13.5px; } .ch-tc .nm small { display: block; color: var(--ch-sub); font-size: 11px; }
.ch-tc .barra { height: 5px; background: var(--ch-borda); border-radius: 3px; margin-top: 4px; } .ch-tc .barra i { display: block; height: 100%; border-radius: 3px; }
.ch-anel { width: 40px; height: 40px; flex: none; } .ch-anel circle { fill: none; stroke: var(--ch-borda); stroke-width: 4; } .ch-anel .v { stroke: #16a34a; }
.ch-anel text { fill: var(--ch-txt); font-size: 9px; text-anchor: middle; font-weight: 700; }
span.ch-anel.vazio { display: grid; place-items: center; color: var(--ch-sub); }
.ch-tc .pode { position: absolute; right: 52px; top: 2px; font-style: normal; font-size: 10px; background: #16a34a; color: #fff; border-radius: 6px; padding: 1px 6px; }
.ch-leg { margin-top: auto; color: var(--ch-sub); font-size: 11px; }
.ch-rec { grid-column: 1; grid-row: 3; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--ch-cx2); border: 1px solid var(--ch-borda); border-radius: 12px; padding: 10px 12px; }
.ch-rec .rt { margin-right: 4px; font-size: 14px; } .ch-rec .rt span { display: block; color: var(--ch-sub); font-weight: 400; font-size: 12px; }
.ch-rec .rc { display: flex; align-items: center; gap: 4px; background: var(--ch-cx); border-radius: 8px; padding: 5px 8px; font-size: 12px; }
.ch-rec .rc b { margin-right: 3px; }
.ch-rec .rc span, .ch-rec .leg span { border-radius: 5px; padding: 1px 6px; font-weight: 700; font-size: 11px; }
.ch-rec .a { background: #dcfce7; color: #166534; } .ch-rec .b { background: #fef3c7; color: #92400e; } .ch-rec .c { background: #fee2e2; color: #991b1b; }
html[data-tema="escuro"] .ch-rec .a, body.tv .ch-rec .a { background: #14532d; color: #86efac; }
html[data-tema="escuro"] .ch-rec .b, body.tv .ch-rec .b { background: #713f12; color: #fde68a; }
html[data-tema="escuro"] .ch-rec .c, body.tv .ch-rec .c { background: #7f1d1d; color: #fecaca; }
.ch-rec .leg { margin-left: auto; display: flex; gap: 4px; }
@media (max-width: 1100px) { .ch { grid-template-columns: 1fr; } .ch-dir, .ch-rec, .ch-rolar { grid-column: 1; grid-row: auto; } .ch-k { margin-left: 0; } }
/* detalhe do chamado (so no MAP) */
.ch-det { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 1500; background: var(--card); border-left: 1px solid var(--borda);
  box-shadow: -12px 0 30px rgba(15,23,42,.2); padding: 18px 20px; overflow: auto; }
.ch-det[hidden] { display: none; }
.ch-det h3 { margin: 6px 0 2px; font-size: 20px; } .ch-det .sub { color: var(--sub); margin: 0 0 12px; }
.ch-det dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; } .ch-det dt { color: var(--sub); }
.ch-det .txt { white-space: pre-wrap; background: var(--fundo); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 12px; }
.ch-det .fechar { position: absolute; top: 12px; right: 12px; }
.tv-chamados { padding-top: 6px; } .tv-chamados .ch-topo h2 { font-size: 26px; } body.tv .ch .cd { font-size: 13px; }
/* na TV tudo cabe na tela: a lista de tecnicos corta embaixo (os mais carregados ficam em cima) */
.tv-chamados > div { height: 100%; }
.tv-chamados .ch { height: 100%; grid-template-rows: auto minmax(0, 1fr) auto; }
.tv-chamados .ch-rolar { overflow: hidden; } .tv-chamados .ch-grade { min-width: 0; height: 100%; grid-template-rows: auto 1fr 1fr; }
.tv-chamados .ch-dir { overflow: hidden; }
.tv-chamados .ch-leg { display: none; }

/* telas largas (agenda de chamados): usam a janela inteira, sem a margem da direita */
body.largo .conteudo, body.vitrine.largo .conteudo { max-width: none; }
body.largo .ch { grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
body.largo .ch-grade { grid-template-columns: 34px 180px 180px repeat(7, minmax(120px, 1fr)); gap: 6px;
  grid-template-rows: auto minmax(220px, auto) minmax(220px, auto); }
body.largo .ch .cd { padding: 6px 8px; font-size: 12.5px; }
body.largo .ch-col { padding: 6px; gap: 5px; }

/* cartao em duas linhas (PC e celular) */
.ch .cd.duas { display: block; padding: 5px 7px; }
.ch .cd.duas .l1 { display: flex; align-items: center; gap: 5px; }
.ch .cd.duas .l1 em { margin-left: auto; }
.ch .cd.duas > b { display: block; font-size: 12px; margin-top: 1px; }
body.largo .ch { grid-template-columns: minmax(0, 1fr) 290px; }
body.largo .ch-grade { grid-template-columns: 30px 150px 150px repeat(7, minmax(96px, 1fr)); min-width: 0; }
/* tela menor: a carga por tecnico desce para baixo da agenda, em colunas */
@media (max-width: 1560px) {
  body.largo .ch { grid-template-columns: minmax(0, 1fr); }
  body.largo .ch-rolar { grid-column: 1; grid-row: 2; }
  body.largo .ch-rec { grid-column: 1; grid-row: 3; }
  body.largo .ch-dir { grid-column: 1; grid-row: 4; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 14px; }
  body.largo .ch-dir h3, body.largo .ch-dir .ch-semtec, body.largo .ch-dir .ch-leg { grid-column: 1 / -1; }
}
@media (max-width: 900px) { body.largo .ch-grade { min-width: 1000px; } }

/* a semana sempre inteira na tela, sem rolar para o lado */
body.largo .ch-rolar { overflow: visible; }
body.largo .ch-grade { grid-template-columns: 22px minmax(0, .85fr) minmax(0, .85fr) repeat(7, minmax(0, 1fr)); min-width: 0 !important; gap: 4px; }
body.largo .ch-cab { font-size: 11.5px; padding: 6px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.largo .ch .cd.duas { padding: 4px 5px; } body.largo .ch .cd .n { font-size: 10.5px; } body.largo .ch .cd.duas > b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.largo .ch .cd.duas .l1 { flex-wrap: nowrap; overflow: hidden; }
@media (max-width: 900px) { body.largo .ch-grade { min-width: 0 !important; } body.largo .ch .cd .n { display: none; } }
.ch-modo { margin-left: 6px; vertical-align: middle; } .ch-modo button { padding: 4px 12px; font-size: 12.5px; }
/* modo Hoje: tela toda para o dia */
.ch-hoje { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ch-hj-col { background: var(--ch-cx2); border: 1px solid var(--ch-borda); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ch-hj-col h3 { margin: 0 0 2px; font-size: 15px; } .ch-hj-col h3 small { color: var(--ch-sub); font-weight: 600; }
.ch-hj-col.alerta { border-color: #fca5a5; }
.ch .cg { background: var(--ch-cd); border-left: 6px solid var(--c); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.ch .cg.ok { opacity: .5; } .ch .cg.exec { animation: ch-pisca 1.4s ease-in-out infinite; }
.ch .cg1 { display: flex; align-items: center; gap: 8px; font-size: 14px; } .ch .cg1 i { font-style: normal; } .ch .cg1 span { margin-left: auto; color: var(--ch-sub); font-weight: 700; }
.ch .cg2 { font-size: 13px; margin: 2px 0; } .ch .cg3 { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ch-sub); }
.ch .cg3 .bola { width: 10px; height: 10px; border-radius: 50%; } .ch .cg3 em { margin-left: auto; font-style: normal; }
@media (max-width: 900px) { .ch-hoje { grid-template-columns: 1fr; } }

.ch .cd.fora { --c: #94a3b8 !important; opacity: .7; } .ch .cd.fora .n::after { content: " ⚠"; color: #d97706; }
.ch-saiu { background: #fef3c7; color: #92400e; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
html[data-tema="escuro"] .ch-saiu, body.tv .ch-saiu { background: #3b2f0a; color: #fcd34d; }
.ch-saiu summary { cursor: pointer; } .ch-saiu summary b { font-size: 18px; margin-right: 4px; } .ch-saiu summary small { text-decoration: underline; margin-left: 4px; }
.ch-saiu div { margin-top: 4px; font-weight: 600; } .ch-saiu div span { font-weight: 400; opacity: .85; }
.tecs-lista { display: grid; gap: 6px; margin: 10px 0 14px; font-size: 13.5px; }

/* ---------- pendencias de OS ---------- */
.faixa-pend { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; text-decoration: none;
  background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; font-size: 14px; animation: pend-pulso 2s ease-in-out infinite; }
html[data-tema="escuro"] .faixa-pend { background: #3b1f0b; color: #fdba74; border-color: #7c2d12; }
.faixa-pend[hidden] { display: none; } .faixa-pend svg { width: 20px; height: 20px; } .faixa-pend b { font-size: 17px; }
@keyframes pend-pulso { 50% { box-shadow: 0 0 0 4px rgba(249,115,22,.25); } }
.pend-abas { margin: 4px 0 14px; } .pend-abas b { margin-left: 4px; }
.pend-lista { display: grid; gap: 8px; }
.pend { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--card); border: 1px solid var(--borda); border-radius: 12px; cursor: pointer; }
.pend:hover { border-color: var(--azul); } .pend.tratando { opacity: .75; }
.pend-regra { flex: none; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: #fee2e2; color: #b91c1c; }
.pend-regra.r-sem_agendamento, .pend-regra.r-sem_resolucao { background: #fef3c7; color: #92400e; } .pend-regra.r-redistribuicao { background: #e0e7ff; color: #3730a3; }
.pend-txt { flex: 1; min-width: 0; } .pend-txt b { display: block; } .pend-txt small { display: block; color: var(--sub); font-size: 12.5px; }
.pend-txt .pend-par { color: #15803d; } .pend em { font-style: normal; color: var(--sub); font-size: 12.5px; white-space: nowrap; }
.pend-form { margin-top: 14px; border-top: 1px solid var(--borda); padding-top: 12px; } .pend-form h4, .ch-det h4 { margin: 0 0 8px; }
.pend-form textarea, .pend-form select { width: 100%; } .pend-form label[hidden] { display: none; }
.pend-hist { display: grid; gap: 8px; font-size: 13px; } .pend-hist > div { background: var(--fundo); border-radius: 8px; padding: 8px 10px; }
.pend-pessoas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; } .pend-pessoas div { background: var(--card); border: 1px solid var(--borda); border-radius: 10px; padding: 8px 12px; }
.pend-pessoas b { display: block; } .pend-pessoas span { color: var(--sub); font-size: 12.5px; }
.pend-regra-cfg { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--borda); } .pend-h input { width: 80px; padding: 6px 8px; }
@media (max-width: 700px) { .pend { flex-wrap: wrap; } .pend em { width: 100%; } }

/* ---------- Configuracoes: grupos e abas ---------- */
.cfg-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 18px; padding: 10px 12px; background: var(--card); border: 1px solid var(--borda); border-radius: 14px; }
.cfg-grp { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cfg-grp span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--fraco); font-weight: 700; margin-right: 4px; }
.cfg-grp a { text-decoration: none; color: var(--sub); font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 8px; }
.cfg-grp a:hover { background: var(--fundo); color: var(--txt); }
.cfg-grp a.on { background: var(--azul); color: #fff; }
.bola-cor { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }

/* ---------- quadro de aviso no canto (pendencias de OS): a cor escala ---------- */
.quadro-pend { position: fixed; right: 18px; bottom: 18px; z-index: 1400; width: 280px; padding: 14px 16px; border-radius: 16px;
  background: #fefce8; color: #713f12; border: 2px solid #eab308; box-shadow: 0 12px 30px rgba(15,23,42,.18); }
.quadro-pend[hidden] { display: none; }
.qp-topo { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.qp-topo b { font-size: 34px; line-height: 1; }
.quadro-pend p { margin: 6px 0 10px; font-size: 13.5px; line-height: 1.4; }
.qp-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.qp-tratar { background: #eab308; color: #fff; border: 0; }
.quadro-pend.nivel-laranja { background: #fff7ed; color: #7c2d12; border-color: #f97316; } .nivel-laranja .qp-tratar { background: #f97316; }
.quadro-pend.nivel-vermelho { background: #fef2f2; color: #7f1d1d; border-color: #dc2626; animation: qp-pulso 1.2s ease-in-out infinite; }
.nivel-vermelho .qp-tratar { background: #dc2626; }
@keyframes qp-pulso { 50% { box-shadow: 0 0 0 8px rgba(220,38,38,.25), 0 12px 30px rgba(15,23,42,.18); } }
html[data-tema="escuro"] .quadro-pend { background: #2a2306; color: #fde68a; }
html[data-tema="escuro"] .quadro-pend.nivel-laranja { background: #2c1606; color: #fdba74; }
html[data-tema="escuro"] .quadro-pend.nivel-vermelho { background: #2a0a0a; color: #fecaca; }
@media (max-width: 600px) { .quadro-pend { left: 12px; right: 12px; width: auto; bottom: 12px; } }

/* ---------- calendario das pendencias ---------- */
.pend-barra { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; } .pend-barra .pend-abas { margin: 0; }
.pcal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; }
.pcal-antes { background: var(--card); border: 1px solid var(--borda); border-radius: 12px; padding: 10px; align-self: start; display: grid; gap: 6px; }
.pcal-antes h4 { margin: 0 0 4px; font-size: 13px; } .pcal-antes h4 small { color: var(--sub); }
.pcal-antes summary { cursor: pointer; font-size: 13px; padding: 4px 2px; } .pcal-antes summary b { float: right; }
.pcal-antes details[open] { display: grid; gap: 4px; }
.pcal-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pcal.quinzena .pcal-grade { grid-template-columns: repeat(15, minmax(0, 1fr)); }
.pcal-cab { text-align: center; font-size: 12px; font-weight: 700; color: var(--sub); padding: 4px; }
.pcal-dia { min-height: 92px; background: var(--card); border: 1px solid var(--borda); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pcal-dia.hj { border-color: var(--azul); box-shadow: inset 0 0 0 1px var(--azul); } .pcal-dia.fora { opacity: .45; }
.pcal-n { font-size: 11px; font-weight: 700; color: var(--sub); }
.pc { border-radius: 6px; padding: 3px 5px; font-size: 11.5px; cursor: pointer; border-left: 4px solid; background: var(--fundo); min-width: 0; }
.pc b { display: block; font-size: 11.5px; } .pc span, .pc em { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: normal; color: var(--sub); font-size: 10.5px; }
.pc.n-amarelo { border-color: #eab308; background: #fefce8; } .pc.n-laranja { border-color: #f97316; background: #fff7ed; } .pc.n-vermelho { border-color: #dc2626; background: #fef2f2; }
html[data-tema="escuro"] .pc.n-amarelo { background: #2a2306; } html[data-tema="escuro"] .pc.n-laranja { background: #2c1606; } html[data-tema="escuro"] .pc.n-vermelho { background: #2a0a0a; }
.pc.ok { opacity: .5; border-color: #16a34a; } .pc:hover { outline: 1px solid var(--azul); }
@media (max-width: 900px) { .pcal { grid-template-columns: 1fr; } .pcal-dia { min-height: 60px; } }
.qp-dica { display: block; margin-top: 6px; font-size: 11.5px; opacity: .8; } .qp-dica[hidden] { display: none; }
/* o quadro fica no canto superior direito, onde as notificacoes de outros sistemas aparecem */
.quadro-pend { top: 76px; bottom: auto; }
body.vitrine .quadro-pend { top: 86px; }
@media (max-width: 600px) { .quadro-pend { top: 66px; bottom: auto; } }

/* ---------- Configuracoes no menu lateral (abre os itens embaixo) ---------- */
.mi-cfg > summary { list-style: none; cursor: pointer; } .mi-cfg > summary::-webkit-details-marker { display: none; }
.mi-cfg .seta-cfg { margin-left: auto; font-size: 10px; transition: transform .15s; opacity: .8; }
.mi-cfg:not([open]) .seta-cfg { transform: rotate(-90deg); }
.cfg-sub { display: grid; gap: 1px; margin: 2px 0 6px 18px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.18); }
.cfg-rot { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--lado-sub); margin: 8px 0 2px; font-weight: 700; }
.cfg-rot:first-child { margin-top: 4px; }
.cfg-it { display: block; padding: 5px 8px; border-radius: 7px; color: var(--lado-txt); text-decoration: none; font-size: 13px; opacity: .85; }
.cfg-it:hover { background: rgba(255,255,255,.1); opacity: 1; }
.cfg-it.on { background: rgba(255,255,255,.18); opacity: 1; font-weight: 700; }
html.recolhido .cfg-sub { display: none; }
.lado { overflow-y: auto; }

/* menus expandidos com outro tom, como um painel por cima do menu: da para perceber o que abriu */
.lado .itens { background: rgba(0,0,0,.12); border-radius: 10px; padding: 4px; margin: 2px 0 6px; }
.cfg-sub { background: rgba(0,0,0,.22); border-left: 0; border-radius: 12px; margin: 4px 0 8px; padding: 6px 8px 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 14px rgba(0,0,0,.18); }
.mi-cfg[open] > summary { background: var(--lado-on); }
.cfg-it.on { background: #fff; color: var(--azul); }
html[data-tema="escuro"] .lado .itens { background: rgba(255,255,255,.03); }
html[data-tema="escuro"] .cfg-sub { background: #101c33; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 6px 14px rgba(0,0,0,.35); }
html[data-tema="escuro"] .cfg-it.on { background: #1d4ed8; color: #fff; }
/* o painel expandido fica num azul mais claro que o menu (decisao do Ednardo) */
.lado .itens { background: rgba(255,255,255,.07); }
.cfg-sub { background: rgba(255,255,255,.16); box-shadow: 0 6px 14px rgba(0,0,0,.14); }
html[data-tema="escuro"] .lado .itens { background: rgba(255,255,255,.04); }
html[data-tema="escuro"] .cfg-sub { background: #1a2b4a; }

/* ---------- ajuda "?" de cada tela ---------- */
.ajuda-bt { position: fixed; top: 76px; right: 312px; z-index: 1300; width: 34px; height: 34px; padding: 0; border-radius: 50%;
  background: var(--card); color: var(--azul); border: 2px solid var(--azul); font-weight: 800; font-size: 17px; box-shadow: 0 4px 12px rgba(15,23,42,.12); }
.ajuda-bt:hover { background: var(--azul); color: #fff; }
body:not(:has(.quadro-pend:not([hidden]))) .ajuda-bt { right: 18px; }
.ajuda-painel { position: fixed; top: 118px; right: 18px; z-index: 1450; width: min(380px, calc(100vw - 36px)); max-height: calc(100vh - 140px); overflow: auto;
  background: var(--card); border: 1px solid var(--borda); border-top: 4px solid var(--azul); border-radius: 14px; padding: 16px 18px; box-shadow: 0 16px 40px rgba(15,23,42,.22); }
.ajuda-painel[hidden] { display: none; }
.ajuda-painel h3 { margin: 2px 0 8px; font-size: 18px; } .ajuda-painel h4 { margin: 12px 0 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--sub); }
.ajuda-painel p, .ajuda-painel li { font-size: 13.5px; line-height: 1.5; margin: 0; } .ajuda-painel ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ajuda-rot { font-size: 11px; font-weight: 800; color: var(--azul); text-transform: uppercase; letter-spacing: .08em; }
.ajuda-dica { margin-top: 12px !important; background: var(--fundo); border-radius: 10px; padding: 8px 10px; }
.ajuda-fechar { position: absolute; top: 10px; right: 10px; }
@media (max-width: 600px) { .ajuda-bt { top: auto; bottom: 16px; right: 16px; } }

/* "Como funciona?" ao lado do titulo da tela */
.ajuda-bt { position: static; width: auto; height: auto; border-radius: 999px; font-size: 12.5px; font-weight: 700; padding: 4px 12px;
  margin-left: 10px; vertical-align: middle; background: var(--card); color: var(--azul); border: 1.5px solid var(--azul); box-shadow: none; }
.ajuda-bt:hover { background: var(--azul); color: #fff; }
body:not(:has(.quadro-pend:not([hidden]))) .ajuda-bt { right: auto; }
.ajuda-bt:not(.no-titulo) { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 1300; }
@media (max-width: 600px) { .ajuda-bt { bottom: auto; right: auto; } }
.ajuda-bt.no-topo { margin: 0 0 10px; display: inline-block; }
.bt.ajuda-bt { color: var(--azul); border: 1.5px solid var(--azul); background: transparent; }
.bt.ajuda-bt:hover { background: var(--azul); color: #fff; }

/* logo como marca d'agua no fundo da area da vitrine (mesma medida da vitrine do Clube: opacidade .055) */
.marca-agua { position: fixed; left: 50%; top: 58%; transform: translate(-50%, -50%); width: min(520px, 66vw); opacity: .055;
  pointer-events: none; z-index: 0; user-select: none; }
html[data-tema="escuro"] .marca-agua { filter: brightness(0) invert(1); opacity: .06; }
body.vitrine .conteudo { position: relative; z-index: 1; }
/* vitrine: o "Desenvolvido por" fica sempre no pe da pagina; os cartoes ficam no meio, sem empurrar o rodape */
body.vitrine { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.vitrine > .conteudo { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
body.vitrine > .credito.solto { margin-top: auto; flex: none; }

/* ---------- cor da barra escolhida pela pessoa (modo claro; no escuro vale o tema escuro) ---------- */
html[data-cor="preto"]:not([data-tema="escuro"]) { --topo: linear-gradient(90deg, #0f172a, #334155); --lado: linear-gradient(175deg, #0f172a 0%, #1e293b 55%, #334155 100%); --titulo: #0f172a; }
html[data-cor="roxo"]:not([data-tema="escuro"]) { --topo: linear-gradient(90deg, #4c1d95, #7c3aed); --lado: linear-gradient(175deg, #4c1d95 0%, #6d28d9 55%, #7c3aed 100%); --titulo: #4c1d95; }
html[data-cor="verde"]:not([data-tema="escuro"]) { --topo: linear-gradient(90deg, #064e3b, #059669); --lado: linear-gradient(175deg, #064e3b 0%, #047857 55%, #059669 100%); --titulo: #064e3b; }
.cores-barra { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cor-op { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); color: var(--txt); border: 1.5px solid var(--borda); text-align: left; }
.cor-op i { width: 34px; height: 22px; border-radius: 6px; background: linear-gradient(90deg, var(--a), var(--b)); flex: none; }
.cor-op span { flex: 1; font-weight: 600; font-size: 13.5px; } .cor-op em { font-style: normal; font-size: 11px; color: var(--azul); font-weight: 700; }
.cor-op:hover { border-color: var(--b); background: var(--card); } .cor-op.on { border-color: var(--b); box-shadow: 0 0 0 2px var(--b); }
html:not([data-tema="escuro"]) .vt-topo { background: var(--topo); }

/* ---------- botao Aparencia (topo): modo e cor ---------- */
.aparencia { position: relative; }
.ap-bt { display: inline-flex; align-items: center; gap: 6px; } .ap-bt svg { width: 17px; height: 17px; }
.ap-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 1600; width: 230px; padding: 10px; border-radius: 14px; background: var(--card); color: var(--txt);
  border: 1px solid var(--borda); box-shadow: 0 14px 34px rgba(15,23,42,.22); display: grid; gap: 4px; }
.ap-menu[hidden] { display: none; }
.ap-rot { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--sub); font-weight: 700; margin: 4px 2px 2px; }
.ap-modos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ap-menu button { background: var(--fundo); color: var(--txt); border: 1.5px solid transparent; border-radius: 10px; padding: 7px 9px; font-size: 13px; text-align: left; font-weight: 600; }
.ap-menu button:hover { border-color: var(--borda); background: var(--hover); } .ap-menu button.on { border-color: var(--azul); }
.ap-cor { display: flex; align-items: center; gap: 8px; } .ap-cor i { width: 26px; height: 16px; border-radius: 5px; background: linear-gradient(90deg, var(--a), var(--b)); flex: none; }
@media (max-width: 700px) { .ap-txt { display: none; } }
/* roxo mais suave e fechado (pedido do Ednardo) */
html[data-cor="roxo"]:not([data-tema="escuro"]) { --topo: linear-gradient(90deg, #3b2d5c, #5b4a8b); --lado: linear-gradient(175deg, #2f2449 0%, #43356d 55%, #5b4a8b 100%); --titulo: #3b2d5c; }
/* botoes e seletores dentro do palco escuro do cerebro, tambem no tema claro */
.cerebro-palco .bt-cl { background: #1e293b; color: #e2e8f0; border-color: #334155; }
.cerebro-palco .bt-cl:hover { background: #273449; }
.cerebro-palco .periodo { background: #111a2e; border-color: #263452; }
.cerebro-palco .periodo button { color: #94a3b8; }
.cerebro-palco .periodo button.ativo, .cerebro-palco .periodo button[aria-pressed="true"] { background: #1e293b; color: #e2e8f0; }
.cerebro-palco .nota { color: #94a3b8; }
/* Configuracoes > Empresa: logo do MAP para grupos (WhatsApp e Telegram) */
.lg-cartao { grid-column: 1 / -1; }
.lg-grade { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.lg-previa { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; border-radius: 14px; background: var(--fundo, #f1f5f9); }
.lg-previa canvas { width: 200px; height: 200px; border-radius: 50%; box-shadow: 0 6px 18px rgba(15,23,42,.18); }
.lg-previa small { color: var(--sub); font-size: 12px; text-align: center; }
.lg-opcoes h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--sub); }
.lg-opcoes h4 span { text-transform: none; letter-spacing: 0; color: var(--txt); font-weight: 600; margin-left: 6px; }
.lg-cores { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.lg-cor { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: 0 0 0 1px var(--borda); }
.lg-cor.on { border-color: #fff; box-shadow: 0 0 0 2px var(--titulo, #00357a); }
.lg-textos { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.lg-textos .on { border-color: var(--titulo, #00357a); color: var(--titulo, #00357a); font-weight: 700; }
.lg-opcoes input { width: 100%; max-width: 320px; margin-bottom: 14px; }
@media (max-width: 720px) { .lg-grade { grid-template-columns: 1fr; } }
/* Acompanhamento de OS: fluxo em 4 passos, situacao e exemplos das regras */
.pend-fluxo { margin-bottom: 16px; }
.pend-passos { list-style: none; counter-reset: passo; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pend-passos li { counter-increment: passo; position: relative; padding: 12px 12px 12px 46px; border-radius: 12px; background: var(--fundo); display: grid; gap: 3px; }
.pend-passos li::before { content: counter(passo); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--titulo, #00357a); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.pend-passos b { font-size: 14px; } .pend-passos span { font-size: 12.5px; color: var(--sub); line-height: 1.4; }
@media (max-width: 900px) { .pend-passos { grid-template-columns: 1fr 1fr; } }
.pend-situacao { margin-bottom: 16px; }
.sit-opcoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sit-op { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: start; padding: 12px; border: 1.5px solid var(--borda); border-radius: 12px; cursor: pointer; }
.sit-op input { grid-row: span 2; margin-top: 3px; } .sit-op span { font-size: 12.5px; color: var(--sub); line-height: 1.4; }
.sit-op:has(input:checked) { border-color: var(--titulo, #00357a); background: var(--fundo); }
.sit-op:has(input[value=desligado]:checked) { border-color: #64748b; } .sit-op:has(input[value=teste]:checked) { border-color: #d97706; } .sit-op:has(input[value=valendo]:checked) { border-color: #16a34a; }
.sit-zero { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #f0fdf4; color: #14532d; align-items: flex-start; }
html[data-tema="escuro"] .sit-zero { background: #052e16; color: #bbf7d0; }
@media (max-width: 900px) { .sit-opcoes { grid-template-columns: 1fr; } }
.pend-ex { display: block; font-size: 12px; color: var(--sub); font-style: italic; }
/* Como funciona?: passos, termos e os "mini prints" de exemplo (base do manual) */
.ajuda-painel { width: min(420px, calc(100vw - 36px)); }
.aj-termos { margin: 0; display: grid; gap: 6px; } .aj-termos dt { font-weight: 700; font-size: 13px; } .aj-termos dd { margin: 0 0 4px; font-size: 13px; line-height: 1.45; color: var(--sub); }
.aj-ex { margin: 8px 0 12px; } .aj-ex figcaption { font-size: 12px; color: var(--sub); margin-top: 5px; line-height: 1.4; }
.mp-quadro { border: 2px solid #eab308; background: #fefce8; color: #713f12; border-radius: 12px; padding: 9px 11px; font-size: 12px; }
.mp-quadro.mp-laranja { border-color: #f97316; background: #fff7ed; color: #7c2d12; } .mp-quadro.mp-vermelho { border-color: #dc2626; background: #fef2f2; color: #7f1d1d; }
.mp-q-topo { display: flex; justify-content: space-between; align-items: center; font-weight: 800; text-transform: uppercase; font-size: 10.5px; letter-spacing: .04em; }
.mp-q-topo b { font-size: 18px; } .mp-quadro p { margin: 4px 0 7px !important; font-size: 12px !important; color: inherit; }
.mp-q-bts { display: flex; gap: 6px; } .mp-q-bts i { font-style: normal; font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 7px; background: #ca8a04; color: #fff; }
.mp-laranja .mp-q-bts i:first-child { background: #f97316; } .mp-vermelho .mp-q-bts i:first-child { background: #dc2626; }
.mp-q-bts i.cl { background: #fff; color: #334155; border: 1px solid #cbd5e1; }
.mp-tg { border-radius: 12px; overflow: hidden; background: #dfe7ee; font-size: 12px; }
html[data-tema="escuro"] .mp-tg { background: #0e1621; }
.mp-tg-cab { display: flex; align-items: center; gap: 7px; padding: 6px 9px; background: #517da2; color: #fff; font-weight: 700; }
.mp-tg-cab i { width: 20px; height: 20px; border-radius: 50%; background: #fff3; display: grid; place-items: center; font-style: normal; font-size: 11px; }
.mp-tg-msg { margin: 8px; padding: 7px 9px; background: #fff; color: #0f172a; border-radius: 10px 10px 10px 2px; max-width: 92%; position: relative; }
html[data-tema="escuro"] .mp-tg-msg { background: #182533; color: #e2e8f0; }
.mp-tg-msg p { margin: 0 0 2px !important; font-size: 12px !important; } .mp-tg-msg small { display: block; text-align: right; font-size: 10px; color: #64748b; }
.mp-cel { background: linear-gradient(160deg, #1e293b, #0f172a); border-radius: 14px; padding: 10px; }
.mp-cel-not { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start; background: #ffffffe6; color: #0f172a; border-radius: 11px; padding: 8px 9px; font-size: 12px; }
.mp-cel-not i img { width: 24px; height: 24px; border-radius: 6px; display: block; } .mp-cel-not b { display: block; font-size: 12px; } .mp-cel-not span { color: #334155; line-height: 1.35; } .mp-cel-not small { color: #64748b; font-size: 10px; }
.mp-voz { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--fundo); border: 1px dashed var(--borda); font-size: 12.5px; }
.mp-voz p { margin: 0 !important; font-style: italic; }
.mp-txt { padding: 8px 10px; border-radius: 10px; background: var(--fundo); font-size: 12.5px; }
/* Fluxos: o fluxograma de cada ferramenta, montado da configuracao */
.fl-lista { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.fl-cartao { display: grid; gap: 3px; min-width: 220px; padding: 12px 14px; border-radius: 14px; background: var(--card, #fff); border: 1.5px solid var(--borda); color: var(--txt); text-decoration: none; position: relative; }
.fl-cartao b { font-size: 14.5px; } .fl-cartao span { font-size: 12.5px; color: var(--sub); padding-right: 70px; }
.fl-cartao.on { border-color: var(--titulo, #00357a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--titulo, #00357a) 15%, transparent); }
.fl-cartao .fl-sit { position: absolute; top: 12px; right: 12px; }
.fl-sit { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: #dcfce7; color: #166534; white-space: nowrap; }
.fl-sit-teste { background: #fef3c7; color: #92400e; } .fl-sit-desligado { background: #e2e8f0; color: #475569; }
.fl-grade { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1200px) { .fl-grade { grid-template-columns: 1fr; } .fl-painel { position: static; } }
.fl-desenho svg { max-width: 820px; margin: 0 auto; }
.fl-topo { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .fl-topo h3 { margin: 0; } .fl-topo .bt { margin-left: auto; }
.fl-desenho svg { width: 100%; height: auto; display: block; }
.fl-linha { stroke: #94a3b8; stroke-width: 1.4; fill: none; }
.fl-rot { font-size: 12px; fill: var(--sub); font-weight: 600; }
.fl-no { cursor: pointer; outline: none; } .fl-no rect { stroke-width: 1; transition: filter .15s; }
.fl-no:hover rect, .fl-no:focus rect { filter: brightness(.96); } .fl-no.on rect { stroke-width: 2.5; }
.fl-t { font-size: 14px; font-weight: 700; } .fl-s { font-size: 12px; }
.fl-neutro rect { fill: #f1f5f9; stroke: #94a3b8; } .fl-neutro .fl-t { fill: #1e293b; } .fl-neutro .fl-s { fill: #475569; }
.fl-cac rect { fill: #eeedfe; stroke: #7f77dd; } .fl-cac .fl-t { fill: #3c3489; } .fl-cac .fl-s { fill: #534ab7; }
.fl-decisao rect { fill: #faeeda; stroke: #ba7517; } .fl-decisao .fl-t { fill: #633806; } .fl-decisao .fl-s { fill: #854f0b; }
.fl-adm rect { fill: #faece7; stroke: #d85a30; } .fl-adm .fl-t { fill: #712b13; } .fl-adm .fl-s { fill: #993c1d; }
.fl-fim rect { fill: #e1f5ee; stroke: #1d9e75; } .fl-fim .fl-t { fill: #085041; } .fl-fim .fl-s { fill: #0f6e56; }
.fl-off { opacity: .4; } .fl-off rect { stroke-dasharray: 5 4; }
html[data-tema="escuro"] .fl-neutro rect { fill: #1e293b; stroke: #64748b; } html[data-tema="escuro"] .fl-neutro .fl-t { fill: #e2e8f0; } html[data-tema="escuro"] .fl-neutro .fl-s { fill: #94a3b8; }
html[data-tema="escuro"] .fl-cac rect { fill: #26215c; stroke: #afa9ec; } html[data-tema="escuro"] .fl-cac .fl-t { fill: #eeedfe; } html[data-tema="escuro"] .fl-cac .fl-s { fill: #cecbf6; }
html[data-tema="escuro"] .fl-decisao rect { fill: #412402; stroke: #ef9f27; } html[data-tema="escuro"] .fl-decisao .fl-t { fill: #faeeda; } html[data-tema="escuro"] .fl-decisao .fl-s { fill: #fac775; }
html[data-tema="escuro"] .fl-adm rect { fill: #4a1b0c; stroke: #f0997b; } html[data-tema="escuro"] .fl-adm .fl-t { fill: #faece7; } html[data-tema="escuro"] .fl-adm .fl-s { fill: #f5c4b3; }
html[data-tema="escuro"] .fl-fim rect { fill: #04342c; stroke: #5dcaa5; } html[data-tema="escuro"] .fl-fim .fl-t { fill: #e1f5ee; } html[data-tema="escuro"] .fl-fim .fl-s { fill: #9fe1cb; }
.fl-legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--sub); margin-top: 6px; }
.fl-legenda span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.l-cac::before { background: #afa9ec; } .l-decisao::before { background: #ef9f27; } .l-adm::before { background: #f0997b; } .l-fim::before { background: #5dcaa5; } .l-off::before { border: 1.5px dashed #94a3b8; }
.fl-painel { position: sticky; top: 90px; } .fl-painel h3 { margin: 0 0 8px; } .fl-painel p { font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
.fl-aj { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--fundo); margin-bottom: 12px; }
.fl-aj span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--sub); font-weight: 700; } .fl-aj b { font-size: 13px; }
/* Pendencias: a tratativa e feita no SGP (o MAP percebe sozinho) */
.pend-sgp { display: grid; gap: 8px; margin: 14px 0 4px; padding: 12px; border-radius: 12px; background: var(--fundo); }
.pend-sgp .bt { justify-self: start; } .pend-sgp .nota { margin: 0; }
.ch-det #dSgp { margin-top: 12px; }
/* Fluxos da esquerda para a direita: o desenho ocupa a largura toda, o painel fica embaixo; icones dos botoes no tamanho normal */
.fl-grade { grid-template-columns: 1fr !important; }
.fl-painel { position: static !important; }
.fl-rolar { overflow-x: auto; }
.fl-desenho svg { max-width: none !important; width: 100%; }
.fl-topo .bt svg, .fl-painel .bt svg { width: 16px; height: 16px; flex: none; }
.fl-t { font-size: 13.5px; }
/* flag das pendencias de OS na barra do topo (sempre a vista); o quadro do canto so abre no vermelho ou no clique */
.qp-flag { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12.5px; cursor: pointer; }
.qp-flag[hidden] { display: none !important; }
.qp-flag .qp-ponto { width: 9px; height: 9px; border-radius: 50%; background: #eab308; box-shadow: 0 0 0 2px rgba(255,255,255,.35); flex: none; }
.qp-flag b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #eab308; color: #422006; font-size: 12px; display: inline-grid; place-items: center; }
.qp-flag.qp-n-laranja .qp-ponto, .qp-flag.qp-n-laranja b { background: #f97316; color: #fff; }
.qp-flag.qp-n-vermelho .qp-ponto, .qp-flag.qp-n-vermelho b { background: #ef4444; color: #fff; }
@keyframes qp-piscar { 50% { opacity: .35; transform: scale(.85); } }
@media (prefers-reduced-motion: no-preference) {
  .qp-flag.qp-n-laranja .qp-ponto { animation: qp-piscar 1.6s ease-in-out infinite; }
  .qp-flag.qp-n-vermelho .qp-ponto { animation: qp-piscar .9s ease-in-out infinite; }
  .qp-flag.qp-n-vermelho b { animation: qp-piscar 1.8s ease-in-out infinite; }
}
.qp-fechar { margin-left: 8px; width: 24px; height: 24px; padding: 0; border-radius: 7px; border: 1px solid currentColor; background: transparent; color: inherit; opacity: .6; cursor: pointer; font-size: 12px; }
.qp-fechar:hover { opacity: 1; }
.qp-topo b { margin-left: auto; }
/* mais sutil: quadro menor e sem pulsar o tempo todo */
.quadro-pend { width: 260px; padding: 12px 14px; }
.quadro-pend.nivel-vermelho { animation: qp-pulso 1.2s ease-in-out 3; }
.qp-topo b { font-size: 28px; }
/* X do quadro: so o desenho, sem caixinha; um circulo leve no passar do mouse */
.qp-fechar { margin-left: 6px; width: 28px; height: 28px; padding: 0; border: 0 !important; border-radius: 50%; background: transparent; color: inherit; opacity: .55; display: inline-grid; place-items: center; }
.qp-fechar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.qp-fechar:hover { opacity: 1; background: rgba(0,0,0,.07); }
html[data-tema="escuro"] .qp-fechar:hover { background: rgba(255,255,255,.1); }

/* ================= Tarefas (1a entrega, 29/11/2026): visual aprovado na maquete ================= */
.tf-bomdia { display: flex; gap: 14px; align-items: center; padding: 14px 18px; margin: 0 0 18px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--borda); border-left: 0; box-shadow: var(--sombra); position: relative; overflow: hidden; }
.tf-bomdia::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, #1a78e6, #004fa8); }
.tf-bomdia .tf-voz { width: 42px; height: 42px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e6effc; color: var(--azul); font-size: 20px; }
.tf-bomdia b { display: block; font-size: 16px; color: var(--titulo); }
.tf-bomdia span { color: var(--sub); font-size: 13.5px; }
.tf-bomdia .esp { flex: 1; }
.bloco .tf-cont { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.bloco.vivo { border-color: #9cc0f2; box-shadow: 0 0 0 3px rgba(0,95,203,.08); }

.tf-barra { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.tf-barra .esp { flex: 1; }
.tf-grade { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .tf-grade { grid-template-columns: 1fr; } }
.tf-sec { margin: 0 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--sub); display: flex; align-items: center; gap: 10px; }
.tf-sec.vermelho { color: var(--vermelho); }
.tf-prog { flex: 1; height: 6px; border-radius: 99px; background: var(--borda); overflow: hidden; max-width: 160px; }
.tf-prog i { display: block; height: 100%; background: var(--verde); }
.tf-lista { background: var(--card); border: 1px solid var(--borda); border-radius: 16px; padding: 4px 14px; margin-bottom: 16px; box-shadow: var(--sombra); }
.tf-it { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--borda); cursor: pointer; }
.tf-it:last-child { border-bottom: 0; }
.tf-it:hover { background: var(--hover); margin: 0 -14px; padding: 12px 16px; }
.tf-it.on { background: #eef5ff; margin: 0 -14px; padding: 12px 16px; }
.tf-ck { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 2px solid #94a3b8; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 800; }
.tf-ck.feito { background: var(--verde); border-color: var(--verde); }
.tf-ck.atras { border-color: var(--vermelho); }
.tf-tit { flex: 1; min-width: 0; }
.tf-tit b { display: block; font-size: 14px; font-weight: 600; color: var(--txt); }
.tf-tit small { display: block; font-size: 12px; color: var(--sub); margin-top: 1px; }
.tf-it.feita .tf-tit b { text-decoration: line-through; color: var(--sub); font-weight: 400; }
.tf-ics { display: flex; gap: 6px; color: var(--sub); font-size: 13px; align-items: center; }
.tf-ic { font-size: 12px; padding: 2px 7px; border-radius: 99px; background: var(--campo); border: 1px solid var(--borda); white-space: nowrap; }
.tf-hora { font-size: 12px; font-weight: 700; color: var(--azul); white-space: nowrap; }
.tf-hora.atras { color: var(--vermelho); }
.tf-cal { background: var(--card); border: 1px solid var(--borda); border-radius: 16px; padding: 14px 16px; box-shadow: var(--sombra); }
.tf-cal h3 { margin: 0 0 10px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.tf-cal .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 12.5px; }
.tf-cal .g span { padding: 6px 0 2px; border-radius: 9px; position: relative; color: var(--txt); }
.tf-cal .g .cab { color: var(--sub); font-size: 11px; font-weight: 700; }
.tf-cal .g .fora { color: var(--fraco); }
.tf-cal .g .hoje { background: var(--azul); color: #fff; font-weight: 700; }
.tf-cal .g i { display: block; width: 5px; height: 5px; border-radius: 50%; margin: 2px auto 0; }
.tf-cal .g i.c { background: #94a3b8; } .tf-cal .g i.v { background: var(--vermelho); } .tf-cal .g i.a { background: #3b82f6; } .tf-cal .g .hoje i { background: #fff; }
.tf-cal .leg { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--sub); margin-top: 10px; }
.tf-cal .leg i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }
.tf-pede { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 13px; margin: 12px 0; }
.tf-falta { color: var(--vermelho); font-size: 12.5px; font-weight: 600; margin: 8px 0 0; }
.tf-anexo { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--borda); border-radius: 10px; font-size: 13px; margin-top: 8px; background: var(--campo); }
.tf-ckl { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13.5px; } .tf-ckl li { padding: 4px 0; }
.tf-hist { font-size: 12.5px; color: var(--sub); border-top: 1px solid var(--borda); margin-top: 14px; padding-top: 10px; line-height: 1.7; }

.tf-veu { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 1400; display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; overflow: auto; }
.tf-modal { width: min(560px, 100%); background: var(--card); border-radius: 18px; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); position: relative; border-top: 4px solid var(--azul); }
.tf-modal h3 { margin: 0 0 14px; font-size: 19px; color: var(--titulo); }
.tf-modal .fechar { position: absolute; top: 14px; right: 14px; }
.tf-campo { display: grid; gap: 5px; font-size: 12.5px; color: var(--sub); font-weight: 600; margin-bottom: 12px; }
.tf-campo .v { border: 1.5px solid var(--borda); border-radius: 10px; padding: 9px 12px; font-size: 14px; color: var(--txt); font-weight: 400; background: var(--campo); }
.tf-campo .v.ph { color: var(--fraco); min-height: 60px; }
.tf-dois { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tf-aviso { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fef3c7; color: #92400e; font-size: 13px; margin: 4px 0 14px; border: 1px solid #fde68a; }
.tf-liga { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--borda); border-radius: 12px; margin-bottom: 12px; }
.tf-liga div { flex: 1; } .tf-liga b { display: block; font-size: 13.5px; } .tf-liga small { color: var(--sub); font-size: 12px; }
.tf-opcoes { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; }
.tf-op { padding: 6px 11px; border-radius: 99px; border: 1.5px solid var(--borda); font-size: 12.5px; color: var(--sub); }
.tf-op.on { border-color: var(--azul); background: #eef5ff; color: var(--azul); font-weight: 700; }
.tf-acoes { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }

.tf-pessoas { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tf-pessoas th { text-align: left; font-size: 11.5px; color: var(--sub); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; border-bottom: 1px solid var(--borda); }
.tf-pessoas td { padding: 10px; border-bottom: 1px solid var(--borda); }
.tf-pessoas tr:last-child td { border-bottom: 0; }
.tf-pessoas .quem { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tf-mini { display: inline-block; width: 90px; height: 6px; border-radius: 99px; background: var(--borda); overflow: hidden; vertical-align: middle; margin-right: 8px; }
.tf-mini i { display: block; height: 100%; background: var(--verde); }
.tf-kpi .num { font-size: 32px; font-weight: 800; color: var(--titulo); line-height: 1; margin-top: 8px; }
.tf-kpi .num.vermelho { color: var(--vermelho); }
.tf-kpi small { color: var(--sub); font-size: 12.5px; }


/* cores por situacao e a tarefa que some ao concluir (pedido do Ednardo, 29/11/2026) */
.tf-it { max-height: 120px; overflow: hidden; transition: opacity .45s ease, transform .45s ease, max-height .45s ease, padding .45s ease, margin .45s ease, border-width .45s; }
.tf-it .tf-ck { background: transparent; cursor: pointer; padding: 0; transition: background .2s, border-color .2s, transform .2s; }
.tf-it.tf-verde .tf-ck { border-color: var(--verde); } .tf-it.tf-verde .tf-hora { color: var(--verde); }
.tf-it.tf-laranja .tf-ck { border-color: #f97316; background: #fff7ed; } .tf-it.tf-laranja .tf-hora { color: #ea580c; }
.tf-it.tf-vermelho .tf-ck { border-color: var(--vermelho); background: #fef2f2; } .tf-it.tf-vermelho .tf-hora { color: var(--vermelho); }
.tf-it.tf-laranja { box-shadow: inset 3px 0 0 #f97316; } .tf-it.tf-vermelho { box-shadow: inset 3px 0 0 var(--vermelho); } .tf-it.tf-verde { box-shadow: inset 3px 0 0 var(--verde); }
.tf-it { padding-left: 10px !important; }
.tf-it .tf-ck:hover { transform: scale(1.12); }
.tf-it .tf-ck:hover::after { content: "✓"; color: var(--verde); font-size: 13px; font-weight: 800; }
.tf-it.feita-agora .tf-ck { background: var(--verde); border-color: var(--verde); transform: scale(1.15); }
.tf-it.feita-agora .tf-ck::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 800; }
.tf-it.saindo { opacity: 0; transform: translateX(30px); max-height: 0; padding-top: 0 !important; padding-bottom: 0 !important; border-bottom-width: 0; }
.tf-it.feita { opacity: .7; } .tf-it.feita .tf-ck.feito { background: var(--verde); border-color: var(--verde); }
.tf-feitas { margin: -6px 0 14px; } .tf-feitas summary { cursor: pointer; font-size: 12.5px; color: var(--sub); font-weight: 700; padding: 4px 2px; }
.tf-feitas .tf-lista { margin-top: 8px; }
.tf-leg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--sub); margin: 0 0 16px; }
.tf-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.tf-leg i.v { background: var(--verde); } .tf-leg i.l { background: #f97316; } .tf-leg i.r { background: var(--vermelho); }
.tf-toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 2900; background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
@media (prefers-reduced-motion: reduce) { .tf-it { transition: none; } }

/* passo a passo dentro da tarefa */
.tf-passos { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.tf-passos li { display: flex; gap: 12px; padding: 10px 10px; border-radius: 12px; border: 1px solid var(--borda); background: var(--card); }
.tf-passos li .n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; background: var(--campo); border: 2px solid var(--borda); color: var(--sub); }
.tf-passos li b { display: block; font-size: 13.5px; } .tf-passos li small { display: block; color: var(--sub); font-size: 12.5px; margin: 2px 0 6px; }
.tf-passos li.ok { opacity: .7; } .tf-passos li.ok .n { background: var(--verde); border-color: var(--verde); color: #fff; } .tf-passos li.ok b { text-decoration: line-through; }
.tf-passos li.agora { border-color: #9cc0f2; background: #eef5ff; } .tf-passos li.agora .n { border-color: var(--azul); color: var(--azul); }
.tf-copia { position: relative; background: var(--campo); border: 1px dashed var(--borda); border-radius: 10px; padding: 9px 10px 38px; font-size: 13px; }
.tf-copia .bt { position: absolute; right: 8px; bottom: 6px; }

/* o cartao Tarefas chama a atencao quando ha tarefa aberta (pedido do Ednardo: no proprio cartao, laranja, piscando) */
@keyframes tf-chamar { 0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,.0), 0 8px 24px rgba(15,23,42,.05); border-color: #fdba74; }
  50% { box-shadow: 0 0 0 6px rgba(249,115,22,.18), 0 8px 24px rgba(15,23,42,.05); border-color: #f97316; } }
.bloco.tf-chama { border: 1.5px solid #fdba74; background: linear-gradient(180deg, #fff7ed 0%, var(--card) 70%); animation: tf-chamar 2.2s ease-in-out infinite; }
html[data-tema="escuro"] .bloco.tf-chama { background: linear-gradient(180deg, rgba(249,115,22,.12) 0%, var(--card) 70%); }
.bloco.tf-chama .selo { background: #ffedd5; color: #ea580c; }
.tf-fita { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #f97316; color: #fff; }
.tf-fita i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulsar 1.4s ease-in-out infinite; }
.bloco.tf-chama .tf-carrossel { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #fdba74; height: 30px; }
@media (prefers-reduced-motion: reduce) { .bloco.tf-chama, .tf-fita i { animation: none; } }

/* categorias (visao do administrador) */
.tf-cat-grade { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .tf-cat-grade { grid-template-columns: 1fr; } }
.tf-cats { background: var(--card); border: 1px solid var(--borda); border-radius: 16px; padding: 12px; box-shadow: var(--sombra); }
.tf-cats-busca { border: 1.5px solid var(--borda); border-radius: 10px; padding: 7px 10px; font-size: 13px; color: var(--fraco); margin-bottom: 6px; background: var(--campo); }
.tf-grupo { margin: 12px 4px 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--sub); }
.tf-cat { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 10px; font-size: 13.5px; cursor: pointer; }
.tf-cat:hover { background: var(--hover); } .tf-cat.on { background: #eef5ff; color: var(--azul); font-weight: 700; }
.tf-cat i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.tf-cat span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-cat em { font-style: normal; font-size: 11.5px; color: var(--sub); background: var(--campo); border: 1px solid var(--borda); padding: 0 7px; border-radius: 99px; }
.tf-cat b.r { font-size: 11px; color: #fff; background: var(--vermelho); padding: 0 6px; border-radius: 99px; }
.tf-mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.tf-mini-kpis div { background: var(--campo); border: 1px solid var(--borda); border-radius: 12px; padding: 9px 12px; }
.tf-mini-kpis small { display: block; font-size: 11.5px; color: var(--sub); } .tf-mini-kpis b { font-size: 18px; color: var(--titulo); margin-right: 8px; }
.periodo a.tf-aba { color: var(--sub); padding: 6px 12px; font-size: 13px; border-radius: 8px; text-decoration: none; }
.periodo a.tf-aba:hover { background: var(--hover); color: var(--txt); }

/* flag no topo e carrossel (o mesmo estilo da maquete) */
.tf-flag { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.tf-flag[hidden] { display: none !important; }
.tf-flag .bola { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
.tf-flag.laranja .bola { background: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.25); }
.tf-flag.vermelho .bola { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.3); animation: pulsar 1.6s ease-in-out infinite; }
.tf-carrossel { position: relative; height: 22px; overflow: hidden; margin-top: 6px; font-size: 13px; }
.tf-carrossel span { position: absolute; inset: 0; display: flex; align-items: center; gap: 7px; opacity: 0; transform: translateY(100%); transition: opacity .4s, transform .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--txt); font-weight: 600; }
.tf-carrossel span.on { opacity: 1; transform: none; } .tf-carrossel span.sai { opacity: 0; transform: translateY(-100%); }
.tf-carrossel i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tf-carrossel i.v { background: var(--verde); } .tf-carrossel i.l { background: #f97316; } .tf-carrossel i.r { background: var(--vermelho); }

/* abas, listas e formularios da tela real */
.periodo.tf-abas { flex-wrap: wrap; }
.periodo.tf-abas a { color: var(--sub); padding: 6px 12px; font-size: 13px; border-radius: 8px; text-decoration: none; white-space: nowrap; }
.periodo.tf-abas a:hover { background: var(--hover); color: var(--txt); }
.periodo.tf-abas a.on { background: var(--azul); color: #fff; }
.tf-tit { color: inherit; text-decoration: none; }
.tf-cat-pt { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.tf-cat-selo { width: 40px; height: 40px; border-radius: 12px; flex: none; opacity: .9; }
.tf-vazio { color: var(--sub); font-size: 13.5px; padding: 14px 2px; margin: 0; }
.tf-conta { text-transform: none; font-weight: 600; }
a.tf-cat { color: inherit; text-decoration: none; }
.tf-pausada td { opacity: .55; }
.tf-campo input.v, .tf-campo select.v, .tf-campo textarea.v { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; color: var(--txt); }
.tf-campo small { color: var(--sub); }
.tf-modal { max-height: calc(100vh - 80px); overflow: auto; }
.tf-dias { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; }
.tf-dias label { cursor: pointer; } .tf-dias input { display: none; }
.tf-dias span { display: inline-block; padding: 6px 11px; border-radius: 99px; border: 1.5px solid var(--borda); font-size: 12.5px; color: var(--sub); }
.tf-dias input:checked + span { border-color: var(--azul); background: #eef5ff; color: var(--azul); font-weight: 700; }
.tf-op { cursor: pointer; }
.tf-cores { display: flex; gap: 8px; flex-wrap: wrap; }
.tf-cores label { cursor: pointer; } .tf-cores input { display: none; }
.tf-cores i { display: block; width: 24px; height: 24px; border-radius: 8px; border: 3px solid transparent; }
.tf-cores input:checked + i { border-color: var(--txt); }
.tf-nova-cat, .tf-edita-cat { margin-top: 12px; } .tf-nova-cat summary, .tf-edita-cat summary { list-style: none; cursor: pointer; }
.tf-nova-cat summary::-webkit-details-marker, .tf-edita-cat summary::-webkit-details-marker { display: none; }
.tf-edita-cat[open] { flex-basis: 100%; }
.tf-arq { cursor: pointer; }
.tf-concluir { margin-top: 14px; }
.tf-det .tf-passos li .n { cursor: default; } .tf-det .tf-passos button.n { cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800; }
a.tf-anexo { color: inherit; text-decoration: none; } a.tf-anexo:hover { border-color: var(--azul); }
.tf-bd-txt b { display: block; font-size: 16px; color: var(--titulo); } .tf-bd-txt span { color: var(--sub); font-size: 13.5px; }
.tf-bd-voz { background: none; border: 0; color: var(--sub); font-size: 12px; cursor: pointer; padding: 4px; }
.tf-bt-roxo { background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important; box-shadow: none !important; }
@media (max-width: 640px) {
  .tf-dois { grid-template-columns: 1fr; }
  .tf-it { flex-wrap: wrap; } .tf-ics { order: 3; margin-left: 34px; }
  .tf-bomdia { flex-wrap: wrap; } .tf-bomdia .esp { display: none; }
  .tf-veu { padding: 12px; } .tf-modal { padding: 18px 16px; }
}
/* modo escuro: os fundos claros fixos da tela de tarefas */
html[data-tema="escuro"] .tf-it.on, html[data-tema="escuro"] .tf-cat.on, html[data-tema="escuro"] .tf-dias input:checked + span,
html[data-tema="escuro"] .tf-op.on, html[data-tema="escuro"] .tf-passos li.agora { background: #13254a; }
html[data-tema="escuro"] .tf-pede { background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.35); color: #fdba74; }
html[data-tema="escuro"] .tf-aviso { background: rgba(217,119,6,.15); border-color: rgba(217,119,6,.35); color: #fcd34d; }
html[data-tema="escuro"] .tf-it.tf-laranja .tf-ck { background: rgba(249,115,22,.15); } html[data-tema="escuro"] .tf-it.tf-vermelho .tf-ck { background: rgba(239,68,68,.15); }
html[data-tema="escuro"] .bloco.tf-chama .selo { background: rgba(249,115,22,.2); }
html[data-tema="escuro"] .tf-bomdia .tf-voz { background: #13254a; }
.tf-aviso[hidden], .tf-dias[hidden], .tf-opcoes[hidden], .tf-falta[hidden], .tf-toast[hidden] { display: none !important; }
.tf-cria-cat { margin-top: 14px; width: 100%; justify-content: center; }

/* ================= Tarefas, modulo completo: rotinas (fluxo), conferencia, resultados ================= */
.tf-construtor { width: min(1100px, 100%); }
.tf-dados-rot { background: var(--campo); border: 1px solid var(--borda); border-radius: 12px; padding: 10px 14px; }
.tf-dados-rot summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--titulo); }
.tf-fluxo { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 8px 2px 12px; }
.tf-no { flex: none; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 150px; max-width: 190px; min-height: 74px;
  padding: 10px 12px; border-radius: 14px; border: 2px solid var(--borda); background: var(--card); color: var(--txt); text-decoration: none; box-shadow: var(--sombra); }
.tf-no b { font-size: 13.5px; line-height: 1.25; } .tf-no small { font-size: 11.5px; color: var(--sub); }
.tf-no em { position: absolute; top: -10px; left: 10px; font-style: normal; font-size: 11px; font-weight: 800; background: var(--azul); color: #fff; border-radius: 99px; padding: 1px 8px; }
a.tf-no:hover { border-color: var(--azul); } .tf-no.on { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(0,95,203,.15); }
.tf-no-normal { border-color: #c4b5fd; } .tf-no-conferencia { border-color: #fcd34d; } .tf-no-automatica { border-color: #94a3b8; border-style: dashed; }
.tf-no-conferencia em { background: #d97706; } .tf-no-automatica em { background: #64748b; }
.tf-no-tag { position: absolute; top: -10px; right: 10px; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: #fef3c7; color: #92400e; }
.tf-no-ini, .tf-no-fim, .tf-no-mais { min-width: 74px; align-items: center; text-align: center; }
.tf-no-ini { border-radius: 99px; min-height: 52px; font-weight: 800; color: var(--azul); }
.tf-no-fim { border-color: #5eead4; background: #f0fdfa; } .tf-no-fim b { color: #0f766e; }
.tf-no-mais { border-style: dashed; color: var(--azul); font-size: 20px; font-weight: 800; }
.tf-seta { flex: none; width: 34px; height: 2px; background: var(--sub); position: relative; opacity: .6; }
.tf-seta::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--sub); border-right: 0; }
.tf-est-feita { opacity: .75; border-color: var(--verde) !important; } .tf-est-feita em { background: var(--verde) !important; }
.tf-est-atual { border-color: var(--azul) !important; box-shadow: 0 0 0 4px rgba(0,95,203,.18); animation: tf-atual 2s ease-in-out infinite; }
@keyframes tf-atual { 50% { box-shadow: 0 0 0 7px rgba(0,95,203,.08); } }
.tf-est-falta { opacity: .55; }
.tf-etapa-form { margin-top: 10px; padding: 14px; border: 1.5px solid var(--azul); border-radius: 14px; background: var(--card); }
.tf-etapa-form h4 { margin: 0 0 10px; color: var(--titulo); }
.tf-rot-faixa { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 6px 0 4px; padding: 8px 10px; border-radius: 10px; background: #eef5ff; color: #1e3a8a; font-size: 13px; text-decoration: none; }
.tf-rot-faixa span { margin-left: auto; font-weight: 700; }
.tf-anexo-linha { display: flex; gap: 6px; align-items: center; } .tf-anexo-linha .tf-anexo { flex: 1; }
.tf-anexo-linha form { margin-top: 8px; }
.tf-quem[hidden] { display: none !important; }
html[data-tema="escuro"] .tf-no-fim { background: rgba(20,184,166,.1); } html[data-tema="escuro"] .tf-rot-faixa { background: #13254a; color: #bfdbfe; }
@media (prefers-reduced-motion: reduce) { .tf-est-atual { animation: none; } }

/* ================= Avisos: comunicados (quadro no centro), convites (estilo live) e permissoes ================= */

.av-modal { width: min(620px, 100%); background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.av-cab { display: flex; gap: 14px; align-items: center; padding: 18px 22px; background: linear-gradient(90deg, #00357a, #005fcb); color: #fff; }
.av-cab .av-ic { width: 46px; height: 46px; flex: none; border-radius: 14px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.av-cab .av-ic svg { width: 24px; height: 24px; }
.av-cab small { display: block; opacity: .8; font-size: 12.5px; } .av-cab b { display: block; font-size: 19px; line-height: 1.3; }
.av-corpo { padding: 18px 22px 6px; font-size: 15px; line-height: 1.6; color: var(--txt); } .av-corpo p { margin: 0 0 10px; }
.av-pe { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 22px 18px; border-top: 1px solid var(--borda); margin-top: 8px; }
.av-pe .bt { font-size: 15px; padding: 11px 20px; }
.av-faixa { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin: 0 0 14px; border-radius: 14px; background: linear-gradient(90deg, #fff7ed, #ffedd5); border: 1.5px solid #fb923c; animation: tf-chamar 2.2s ease-in-out infinite; }
.av-sino { font-size: 22px; animation: av-balanca 1.2s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes av-balanca { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(14deg); } 75% { transform: rotate(-14deg); } }
.av-ft { flex: 1; min-width: 200px; } .av-ft b { display: block; color: #9a3412; font-size: 15px; } .av-ft span { color: #c2410c; font-size: 13px; }
.av-cont { font-size: 12.5px; font-weight: 700; color: #c2410c; }
tr.av-sel td { background: #fff7ed; }
@media (prefers-reduced-motion: reduce) { .av-faixa, .av-sino { animation: none; } }

/* comunicado: quadro no centro, a frente de tudo, com o fundo travado e desfocado */
.av-trava { position: fixed; inset: 0; z-index: 1600; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(10,20,40,.55); backdrop-filter: blur(7px) saturate(.7); -webkit-backdrop-filter: blur(7px) saturate(.7); perspective: 1200px; }
.av-quadro { width: min(440px, 100%); background: var(--card); border-radius: 24px; padding: 30px 28px 20px; text-align: center; position: relative;
  box-shadow: 0 2px 0 rgba(255,255,255,.6) inset, 0 1px 3px rgba(0,0,0,.2), 0 18px 40px rgba(0,0,0,.28), 0 50px 100px rgba(0,30,80,.45);
  border: 1px solid rgba(255,255,255,.7); animation: av-entra .6s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes av-entra { from { opacity: 0; transform: translateY(40px) rotateX(18deg) scale(.9); } to { opacity: 1; transform: none; } }
.av-quadro::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 24px 24px 0 0; background: linear-gradient(90deg, #1a78e6, #004fa8); }
.av-selo { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #1a78e6, #004fa8); box-shadow: 0 10px 24px rgba(0,95,203,.4); }
.av-selo svg { width: 32px; height: 32px; }
.av-de { display: block; color: var(--sub); font-size: 12.5px; font-weight: 600; }
.av-quadro h3 { margin: 4px 0 12px; font-size: 22px; color: var(--titulo); }
.av-quadro p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--txt); }
.av-bts { display: grid; gap: 8px; margin-top: 16px; } .av-bts .bt { width: 100%; padding: 12px; font-size: 15px; }
.av-rodape { display: block; margin-top: 12px; color: var(--sub); font-size: 11.5px; }
@media (prefers-reduced-motion: reduce) { .av-quadro { animation: none; } }

/* convite: no estilo do aviso de live que vai comecar */
.av-live { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; margin: 0 0 14px; border-radius: 16px;
  background: #0f0f0f; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.35); border: 1px solid #272727; }
.av-tela { width: 120px; height: 68px; flex: none; border-radius: 10px; position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1f1f1f, #3a3a3a); color: #aaa; }
.av-tela svg { width: 28px; height: 28px; }
.av-aovivo { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.75); color: #fff; }
.av-aovivo i { width: 7px; height: 7px; border-radius: 50%; background: #ff0033; }
.av-live.agora .av-aovivo { background: #cc0000; } .av-live.agora .av-aovivo i { background: #fff; animation: pulsar 1.2s infinite; }
.av-live .av-ft { flex: 1; min-width: 200px; } .av-live .av-ft b { display: block; font-size: 16px; color: #fff; }
.av-live .av-ft span { display: block; color: #aaa; font-size: 13px; } .av-live .av-conta { color: #fff !important; margin-top: 4px; } .av-live .av-conta b { color: #ff4e45; font-size: 15px; display: inline; }
.av-entrar { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #cc0000; color: #fff; font-weight: 700; text-decoration: none; font-size: 14px; }
.av-entrar svg { width: 18px; height: 18px; } .av-entrar:hover { background: #e00; }
.av-live.agora .av-entrar { animation: av-pulso 1.4s ease-in-out infinite; }
@keyframes av-pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,0,51,.5); } 50% { box-shadow: 0 0 0 8px rgba(255,0,51,0); } }
.av-x { background: transparent; border: 1px solid #3f3f3f; color: #ccc; border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer; }

/* comunicado: a pagina atras fica travada; o texto longo rola dentro do quadro */
html.av-travado, html.av-travado body { overflow: hidden; }
.av-trava { z-index: 4000; }
.av-texto { text-align: left; max-height: 40vh; overflow: auto; font-size: 14.5px; line-height: 1.6; color: var(--txt); margin: 0 0 10px; }
.av-quadro .tf-anexo { text-align: left; }
.av-tela { font-size: 26px; }
.av-live[hidden] { display: none !important; }
.av-live .av-conta b { font-size: 15px; }
/* liberar permissoes (uma vez por aparelho) */
.av-perm { display: grid; gap: 6px; padding: 14px 16px; margin: 0 0 14px; border-radius: 14px; background: var(--card); border: 1.5px dashed var(--azul); }
.av-perm > b { color: var(--titulo); } .av-perm > span { color: var(--sub); font-size: 13px; }
.av-perm-passos, .av-perm-fim { display: flex; gap: 8px; flex-wrap: wrap; } .av-perm-fim { justify-content: flex-end; }
.av-perm-dica { color: var(--txt); font-size: 12.5px; background: var(--campo); border-radius: 10px; padding: 8px 10px; }
.av-perm-dica[hidden] { display: none; }
.tf-busca { border: 1.5px solid var(--borda); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; background: var(--card); color: var(--txt); min-width: 220px; }
.tf-proc-txt { white-space: pre-wrap; font-size: 14.5px; line-height: 1.65; margin: 12px 0; }
.tf-video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; margin: 12px 0; border-radius: 12px; overflow: hidden; background: #000; }
.tf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tf-pessoas-esc summary { cursor: pointer; font-size: 13px; color: var(--azul); font-weight: 700; margin: 4px 0; }
html[data-tema="escuro"] tr.av-sel td { background: rgba(249,115,22,.08); }
html[data-tema="escuro"] .av-quadro { border-color: var(--borda); }
/* TV: Tarefas da equipe (so numeros e equipes, sem nomes) */
.tv-tarefas h1 { margin: 0 0 24px; }
.tvt-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw; margin-bottom: 4vh; }
.tvt-kpis div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 2.4vh 2vw; }
.tvt-kpis b { display: block; font-size: 6vh; line-height: 1; color: #fff; } .tvt-kpis b small { font-size: 2.6vh; color: #94a3b8; }
.tvt-kpis span { color: #94a3b8; font-size: 2.2vh; } .tvt-kpis .r b { color: #f87171; }
.tvt-eq { display: grid; grid-template-columns: 22vw 1fr 8vw 14vw; align-items: center; gap: 1.5vw; padding: 1.6vh 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 2.6vh; color: #e2e8f0; }
.tvt-barra { height: 1.6vh; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; } .tvt-barra i { display: block; height: 100%; background: #22c55e; }
.tvt-eq em { font-style: normal; color: #f87171; font-weight: 700; } .tvt-eq em.ok { color: #4ade80; }

/* comunicado: tipo em botoes, imagem colada (Ctrl+V) e a imagem no quadro */
.av-cab-op .tf-op { font-size: 12.5px; }
.av-cab-outro { width: 100%; box-sizing: border-box; margin: -4px 0 12px; border: 1.5px solid var(--borda); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; background: var(--campo); color: var(--txt); }
.av-cab-outro[hidden] { display: none; }
.av-colar { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; margin: -2px 0 12px; padding: 10px; border: 1.5px dashed var(--borda); border-radius: 12px; background: var(--campo); color: var(--sub); font-size: 13px; text-align: center; }
.av-colar.sobre, .av-colar:focus { border-color: var(--azul); outline: none; }
.av-colar img { max-width: 100%; max-height: 220px; border-radius: 8px; }
.av-colar #avTirar { position: absolute; top: 6px; right: 6px; }
.av-escolher { color: var(--azul); font-weight: 700; cursor: pointer; text-decoration: underline; }
.av-img { display: block; max-width: 100%; max-height: 38vh; margin: 4px auto 12px; border-radius: 12px; border: 1px solid var(--borda); }

/* ---------- Cockpit (29/11/2026): o cerebro de hoje no centro do palco escuro e os instrumentos do motor nas laterais.
   O palco e sempre escuro, nos dois temas (igual ao cerebro). ---------- */
.ck { --ck-borda: #1f2b44; --ck-cx: rgba(13,22,40,.72); --ck-txt: #e2e8f0; --ck-sub: #8b97ab; --ck-azul: #5b8def;
  display: grid; grid-template-columns: 210px minmax(0, 1fr) 210px; grid-template-rows: minmax(0, 1fr) auto; gap: 12px;
  height: calc(100vh - 210px); min-height: 600px; padding: 14px; border-radius: 16px; margin-bottom: 8px; color: var(--ck-txt);
  background: radial-gradient(ellipse 60% 60% at 50% 45%, #0d1a33 0%, #060a14 72%); border: 1px solid #1f2b44; box-shadow: 0 10px 30px rgba(6,10,20,.18); }
.ck .ck-centro { height: auto; min-height: 0; margin: 0; background: none; border: 0; box-shadow: none; border-radius: 12px; }
.ck-col { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; scrollbar-width: none; }
.ck-tit { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ck-sub); padding: 2px 2px 0; }
.ck-i { background: var(--ck-cx); border: 1px solid var(--ck-borda); border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; gap: 3px; }
.ck-i.alerta { border-color: #6b5214; }
.ck-r { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: var(--ck-sub); }
.ck-r span { color: var(--ck-txt); font-weight: 600; }
.ck-v { font-size: 19px; font-weight: 600; color: #fff; line-height: 1.2; }
.ck-txt { font-size: 13px; font-weight: 600; color: #fff; }
.ck-s { font-size: 11.5px; color: var(--ck-sub); line-height: 1.35; }
.ck-barra { height: 6px; border-radius: 3px; background: #1a2438; overflow: hidden; margin: 3px 0 1px; }
.ck-barra i { display: block; height: 100%; border-radius: 3px; background: var(--ck-azul); transition: width .8s; }
.ck-barra i.n-amarelo { background: #f0b429; } .ck-barra i.n-vermelho { background: #ef5b5b; }
.ck-spark { width: 100%; height: 26px; display: block; }
.ck-spark polyline { fill: none; stroke: var(--ck-azul); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ck-rede { display: flex; gap: 14px; font-size: 12px; color: var(--ck-sub); }
.ck-rede b { color: #fff; font-size: 14px; }
.ck-luz { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: #475569; }
.ck-luz.ok { background: #3fcf8e; box-shadow: 0 0 6px rgba(63,207,142,.6); } .ck-luz.amarelo { background: #f0b429; box-shadow: 0 0 6px rgba(240,180,41,.6); }
.ck-luz.vermelho { background: #ef5b5b; box-shadow: 0 0 6px rgba(239,91,91,.7); }
.ck-fita { display: flex; gap: 2px; margin: 4px 0 1px; }
.ck-fita i { flex: 1; height: 13px; border-radius: 2px; background: #1a2438; }
.ck-fita i.ok { background: #3fcf8e; } .ck-fita i.vermelho { background: #ef5b5b; }
.ck-srv { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; margin-top: 3px; }
.ck-srv span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-fala { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 30px; padding-top: 8px;
  border-top: 1px solid var(--ck-borda); color: #cbd5e1; font-size: 14px; }
.ck-fala svg { width: 18px; height: 18px; color: var(--ck-azul); flex: none; }
.ck-fala em { font-style: normal; transition: opacity .5s; }
.ck-rod { font-size: 12.5px; color: var(--sub, #64748b); margin: 0 0 16px; }
#ajustes summary { cursor: pointer; list-style: none; }
#ajustes summary::-webkit-details-marker { display: none; }
#ajustes summary h2::after { content: " ▾"; font-size: 13px; color: var(--sub, #64748b); }
#ajustes[open] summary { margin-bottom: 10px; }
@media (max-width: 1100px) {
  .ck { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; min-height: 0; }
  .ck .ck-centro { grid-column: 1 / -1; grid-row: 1; height: 60vh; min-height: 380px; }
  .ck-col { overflow: visible; }
}
@media (max-width: 640px) { .ck { grid-template-columns: 1fr; } }

/* ================= Fluxo de tarefas: o construtor (estilo ManyChat, aprovado em 29/11/2026) ================= */
.fx-topo { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 10px; padding-right: 40px; }
.fx-topo > div { flex: 1; min-width: 240px; }
.fx-grade { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .fx-grade { grid-template-columns: 1fr; } }
.fx-palco { background: var(--card); border: 1px solid var(--borda); border-radius: 16px; padding: 10px; overflow-x: auto;
  background-image: radial-gradient(var(--borda) 1px, transparent 1px); background-size: 18px 18px; }
.fx-svg { width: 100%; height: auto; display: block; font-family: inherit; }
.fx-lin { fill: none; stroke-width: 2; } .fx-lin.volta { stroke-dasharray: 5 4; }
.fx-rot { font-size: 11.5px; font-weight: 800; paint-order: stroke; stroke: var(--card); stroke-width: 4px; }
.fx-n rect:first-child { fill: var(--card); stroke: #c4b5fd; stroke-width: 2; }
.fx-n.fx-dec rect:first-child { stroke: #f59e0b; } .fx-n.fx-auto rect:first-child { stroke: #94a3b8; stroke-dasharray: 5 4; }
.fx-n.on rect:first-child { stroke: var(--azul); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(0,95,203,.35)); }
.fx-n.est-feita rect:first-child { stroke: #16a34a; } .fx-n.est-feita { opacity: .8; }
.fx-n.est-atual rect:first-child { stroke: var(--azul); stroke-width: 3; animation: tf-atual 2s ease-in-out infinite; }
.fx-n .t { font-size: 13px; font-weight: 700; fill: var(--txt); } .fx-n .s { font-size: 11.5px; fill: var(--sub); }
.fx-n .bt-t { font-size: 11px; font-weight: 800; fill: #fff; }
.fx-tag { font-size: 10px; font-weight: 800; fill: var(--azul); text-transform: uppercase; letter-spacing: .04em; }
a:hover .fx-n rect:first-child { stroke: var(--azul); }
.fx-ini rect { fill: #e6effc; stroke: var(--azul); stroke-width: 2; } .fx-ini text { font-size: 12px; font-weight: 800; fill: var(--azul); }
.fx-fim rect { fill: #f0fdfa; stroke: #14b8a6; stroke-width: 2; } .fx-fim text { font-size: 12.5px; font-weight: 800; fill: #0f766e; }
.fx-mais circle { fill: var(--azul); stroke: var(--card); stroke-width: 2; } .fx-mais text { fill: #fff; font-size: 15px; font-weight: 800; }
a:hover .fx-mais circle { fill: #004fa8; }
.fx-leg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--sub); margin-top: 8px; }
.fx-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; border: 2px solid; }
.fx-leg i.n { border-color: #c4b5fd; } .fx-leg i.d { border-color: #f59e0b; } .fx-leg i.fi { border-color: #14b8a6; border-radius: 99px; }
.fx-leg i.f { border-color: #16a34a; } .fx-leg i.a { border-color: var(--azul); }
.fx-painel { background: var(--card); border: 1.5px solid var(--azul); border-radius: 16px; padding: 14px; box-shadow: var(--sombra); max-height: 75vh; overflow: auto; }
.fx-sel { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; }
.fx-mini-sel { font: inherit; font-size: 12.5px; padding: 1px 4px; }
.fx-alvos { display: flex; flex-direction: column; gap: 2px; max-height: 160px; overflow: auto; }
.fx-alvos label { display: flex; gap: 6px; align-items: center; font-size: 12.5px; padding: 3px 4px; border-radius: 6px; cursor: pointer; }
.fx-alvos label:hover { background: var(--hover); }
.fx-saida-ed { border: 1px solid var(--borda); border-radius: 10px; padding: 8px; margin-bottom: 6px; background: var(--campo); }
.fx-bt-nome { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; font-weight: 700; border: 1.5px solid var(--borda); border-radius: 8px; padding: 6px 8px; background: var(--card); color: var(--txt); }
.fx-como { padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--txt); margin: 0; }
[data-modo][hidden], [data-saida][hidden], .fx-quem[hidden], #fxCada[hidden], .tf-cada[hidden], .tf-depois-dica[hidden], .tf-so-tarefa[hidden] { display: none !important; }
.tf-decisao { display: flex; gap: 8px; flex-wrap: wrap; } .tf-decisao .bt { font-weight: 800; }
html[data-tema="escuro"] .fx-ini rect { fill: #13254a; } html[data-tema="escuro"] .fx-fim rect { fill: rgba(20,184,166,.12); } html[data-tema="escuro"] .fx-fim text { fill: #5eead4; }
/* a marca no topo do cockpit: o logo da empresa todo branco (apresentacao), o nome do cerebro e quem desenvolveu */
.ck-marca { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 4px 2px 10px; border-bottom: 1px solid var(--ck-borda); margin-bottom: 2px; }
.ck-marca img { max-width: 170px; max-height: 52px; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 6px; }
.ck-marca b { font-size: 14px; color: #fff; letter-spacing: .01em; }
.ck-marca span { font-size: 11px; color: var(--ck-sub); }
.ck-spark-rede { height: 44px; }
.ck-spark-rede polyline.rx { stroke: var(--ck-azul); } .ck-spark-rede polyline.tx { stroke: #3fcf8e; }
.ck-rede i { display: inline-block; width: 8px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.ck-cor-rx { background: var(--ck-azul); } .ck-cor-tx { background: #3fcf8e; }
/* o cockpit na TV: ocupa a tela toda, sem a moldura */
.ck.ck-tv { height: 100%; min-height: 0; border: 0; box-shadow: none; background: none; padding: 0; margin: 0; }
.ck-tv .ck-centro { position: relative; min-height: 0; }
.ck-tv .ck-centro canvas { display: block; width: 100%; height: 100%; }
.ck-rede span { white-space: nowrap; }

/* ================= Tarefas: ajustes de 29/11/2026 (botoes menores, horario, checklist, link, editar categoria) ================= */
.tf-hora-atalhos { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.tf-hora-atalhos button { border: 1px solid var(--borda); background: var(--card); color: var(--sub); border-radius: 99px; padding: 2px 9px; font-size: 11.5px; cursor: pointer; }
.tf-hora-atalhos button:hover { border-color: var(--azul); color: var(--azul); }
.tf-editor { border: 1.5px solid var(--borda); border-radius: 10px; overflow: hidden; background: var(--campo); }
.tf-editor textarea { border: 0 !important; border-radius: 0; width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; background: transparent; resize: vertical; }
.tf-editor-barra { display: flex; gap: 8px; align-items: center; padding: 5px 8px; border-bottom: 1px solid var(--borda); background: var(--card); font-weight: 400; }
.tf-editor-barra span { font-size: 11.5px; color: var(--sub); }
.tf-link-bt { border: 1px solid var(--borda); background: var(--campo); border-radius: 8px; padding: 3px 9px; font-size: 12.5px; cursor: pointer; color: var(--txt); white-space: nowrap; }
.tf-link-bt:hover { border-color: var(--azul); color: var(--azul); }
.tf-checklist { margin: -4px 0 12px; padding: 8px 10px; border: 1px solid var(--borda); border-radius: 12px; background: var(--campo); }
.tf-checklist[hidden] { display: none; }
.tf-ck-itens { display: grid; gap: 4px; margin-bottom: 6px; }
.tf-ck-item { display: flex; gap: 6px; align-items: center; } .tf-ck-item span { color: var(--sub); }
.tf-ck-item input { flex: 1; border: 1.5px solid var(--borda); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13.5px; background: var(--card); color: var(--txt); }
.tf-edita-cat { position: relative; margin-top: 0; }
.tf-edita-cat[open] { flex-basis: auto; }
.tf-edita-cat[open] > form { position: absolute; right: 0; top: 40px; z-index: 30; width: 300px; background: var(--card); border: 1px solid var(--borda); border-radius: 14px; box-shadow: 0 12px 30px rgba(15,23,42,.18); padding: 12px; }
.tf-edita-cat .bt { width: auto; }

/* feriados (Configuracoes > Tarefas) */
.fer-linha { display: flex; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--borda); } .fer-linha:last-child { border-bottom: 0; }
.fer-linha.off { opacity: .5; }
.fer-form, .fer-novo { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; flex: 1; }
.fer-form input, .fer-form select, .fer-novo input { border: 1px solid var(--borda); border-radius: 8px; padding: 4px 6px; font: inherit; font-size: 12.5px; background: var(--campo); color: var(--txt); }
.fer-form input[name=nome] { flex: 1; min-width: 120px; }
.fer-ano { font-size: 12px; color: var(--sub); display: flex !important; gap: 4px; align-items: center; }
.fer-novo { margin-top: 10px; padding: 10px; border: 1px dashed var(--borda); border-radius: 12px; }
.fer-novo input[name=nome] { flex: 1; min-width: 160px; }

/* leitor de PDF ao lado (como o plano de fusao dos Projetos de Fibra) */
.lp { position: fixed; left: 16px; top: 76px; bottom: 16px; width: min(520px, calc(100vw - 32px)); z-index: 2100; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--borda); border-radius: 16px; box-shadow: 0 18px 50px rgba(15,23,42,.28); overflow: hidden; }
.lp[hidden] { display: none; }
.lp-topo { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--borda); background: var(--campo); }
.lp-nome { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--titulo); }
.lp-num { font-size: 12px; color: var(--sub); white-space: nowrap; }
.lp-topo button, .lp-topo a { border: 1px solid var(--borda); background: var(--card); color: var(--txt); border-radius: 8px; width: 30px; height: 28px; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; text-decoration: none; font-size: 14px; }
.lp-topo button:hover, .lp-topo a:hover { border-color: var(--azul); color: var(--azul); }
.lp-palco { flex: 1; min-height: 0; display: flex; align-items: center; gap: 4px; padding: 8px; background: #525659; }
.lp-folha { flex: 1; min-width: 0; height: 100%; overflow: auto; position: relative; display: flex; justify-content: center; align-items: flex-start; }
.lp-folha img { max-width: 100%; height: auto; background: #fff; cursor: zoom-in; box-shadow: 0 2px 10px rgba(0,0,0,.4); transition: opacity .2s; }
.lp-carregando { position: absolute; top: 40%; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; }
.lp-carregando[hidden] { display: none; }
.lp-seta { flex: none; width: 34px; height: 60px; border: 0; border-radius: 10px; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; cursor: pointer; }
.lp-seta:hover:not(:disabled) { background: rgba(255,255,255,.3); } .lp-seta:disabled { opacity: .25; cursor: default; }
.lp.lp-grande { left: 12px; right: 12px; top: 12px; bottom: 12px; width: auto; z-index: 4100; }
.lp.lp-grande .lp-folha img { cursor: zoom-out; max-width: none; width: min(1400px, 100%); }
html.lp-dividida .lp { left: auto; right: 0; top: 0; bottom: 0; width: 50vw; border-radius: 0; }
html.lp-dividida body { margin-right: 50vw; }
html.lp-dividida .ch-det { right: 50vw; }
@media (max-width: 700px) { .lp, html.lp-dividida .lp { left: 0; right: 0; top: 0; bottom: 0; width: 100vw; border-radius: 0; } html.lp-dividida body { margin-right: 0; } }
/* Sistema > Atualizacoes */
.sit-opcoes.atu-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .sit-opcoes.atu-2 { grid-template-columns: 1fr; } }
.atu-selo { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.atu-verde { background: rgba(22,163,74,.12); color: #15803d; } .atu-azul { background: rgba(37,99,235,.12); color: #1d4ed8; }
.atu-amarelo { background: rgba(217,119,6,.14); color: #b45309; }
[data-tema="escuro"] .atu-verde { color: #4ade80; } [data-tema="escuro"] .atu-azul { color: #93c5fd; } [data-tema="escuro"] .atu-amarelo { color: #fbbf24; }
a.ck-link { text-decoration: none; color: inherit; } a.ck-link:hover { border-color: #33476b; }

/* categoria em faixa fina e abas em dois grupos (pedido do Ednardo, 29/11/2026) */
.tf-faixa { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; background: var(--card); border: 1px solid var(--borda);
  border-left: 5px solid var(--cor); border-radius: 0; box-shadow: var(--sombra); position: relative; }
.tf-faixa-pt { display: none; }
.tf-faixa-nome { display: flex; flex-direction: column; min-width: 140px; } .tf-faixa-nome b { font-size: 15.5px; color: var(--titulo); line-height: 1.2; }
.tf-faixa-nome small { font-size: 12px; color: var(--sub); }
.tf-faixa-chips { flex: 1; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tf-chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--campo); border: 1px solid var(--borda); color: var(--txt); white-space: nowrap; }
.tf-chip.r { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.tf-chip-bt { cursor: pointer; color: var(--azul); background: transparent; font: inherit; font-size: 12px; font-weight: 700; }
.tf-num { margin: -4px 0 12px; } .tf-num[hidden] { display: none; }
.tf-abas-grupos { gap: 18px; align-items: flex-end; }
.tf-abas-grupo { display: flex; flex-direction: column; gap: 3px; }
.tf-abas-rot { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sub); padding-left: 4px; }
html[data-tema="escuro"] .tf-chip.r { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); color: #fca5a5; }
.atu-hora { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; font-weight: 600; font-size: 13.5px; } .atu-hora select { width: auto; }

/* ---------- Primeira tarefa: trocar a senha (no centro da tela) e Pedir acesso ---------- */
.ps-veu { position: fixed; inset: 0; z-index: 90; background: rgba(8,15,30,.55); display: flex; align-items: center; justify-content: center; padding: 18px; backdrop-filter: blur(3px); }
.ps-cartao { width: 100%; max-width: 440px; background: var(--card); border-radius: 20px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.35); border-top: 5px solid var(--laranja); }
.ps-selo { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c2410c; background: #fff1e6; padding: 3px 10px; border-radius: 999px; }
html[data-tema="escuro"] .ps-selo { background: #3b1f0b; color: #fdba74; }
.ps-titulo { margin: 8px 0 2px; font-size: 21px; color: var(--titulo); text-transform: none; letter-spacing: 0; }
.ps-sub { margin: 0 0 6px; color: var(--sub); font-size: 13.5px; }
.link-entrada { text-align: center; font-size: 13px; font-weight: 600; color: var(--azul); text-decoration: none; }
.link-entrada:hover { text-decoration: underline; }

/* ---------- Treinamento: telas da gestao ---------- */
.tr-treinos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tr-treino { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--borda); border-radius: 14px; background: var(--campo); color: inherit; text-decoration: none; }
.tr-treino:hover { border-color: var(--azul); }
.tr-treino .etiqueta { justify-self: start; }
.tr-treino b { font-size: 15px; } .tr-treino small { color: var(--sub); font-size: 12.5px; }
.tr-rod { display: flex; gap: 6px; flex-wrap: wrap; }
.tiles.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr-mlista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-mrow { background: var(--card); border: 1px solid var(--borda); border-radius: 14px; box-shadow: var(--sombra); }
.tr-mrow.fora { opacity: .6; }
.tr-mrow.arrastando { opacity: .35; }
.tr-mrow summary { display: grid; grid-template-columns: 22px 32px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
.tr-mrow summary::-webkit-details-marker { display: none; }
.tr-alca { cursor: grab; color: var(--fraco); font-weight: 800; letter-spacing: -2px; user-select: none; text-align: center; }
.tr-mnum { width: 30px; height: 30px; border-radius: 9px; background: var(--azul); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.tr-mrow.proprio .tr-mnum { background: var(--laranja); }
.tr-mrow.fora .tr-mnum { background: var(--cinza); }
.tr-mtxt b { display: block; font-size: 14.5px; } .tr-mtxt small { display: block; color: var(--sub); font-size: 12px; }
.tr-liga { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.tr-ordem { display: flex; gap: 4px; }
.tr-mform { padding: 4px 16px 16px; border-top: 1px dashed var(--borda); }
.tr-mform textarea { font-family: inherit; }
.tr-etapas-ver { background: var(--campo); border: 1px solid var(--borda); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.tr-etapas-ver ol { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.tr-tp { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; vertical-align: 1px; }
.tp-exp { background: #e6effc; color: #004fa8; } .tp-dem { background: #f1eafe; color: #6d28d9; } .tp-aco { background: #fff1e6; color: #c2410c; }
.tp-sgp { background: #fef6e4; color: #b45309; } .tp-exe { background: #e7f8ee; color: #15803d; }
html[data-tema="escuro"] .tp-exp { background: #13254a; color: #93c5fd; } html[data-tema="escuro"] .tp-dem { background: #251645; color: #c4b5fd; }
html[data-tema="escuro"] .tp-aco { background: #3b1f0b; color: #fdba74; } html[data-tema="escuro"] .tp-sgp { background: #3a2a0b; color: #fcd34d; }
html[data-tema="escuro"] .tp-exe { background: #0f2e1c; color: #86efac; }
.tr-conteudos { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--sub); }
.tr-conteudos label { display: inline-flex !important; align-items: center; gap: 6px; color: var(--txt) !important; }
.tr-ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; }
.tr-lista-alunos { display: grid; gap: 8px; margin-top: 12px; }
.tr-aluno-linha { display: grid; grid-template-columns: 34px minmax(0, 1fr) 150px auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--borda); border-radius: 12px; background: var(--campo); }
.tr-aluno-linha .avatar { width: 34px; height: 34px; }
.tr-al-txt b { display: block; font-size: 13.5px; } .tr-al-txt small { display: block; color: var(--sub); font-size: 12px; }
.tr-aluno-linha input { padding: 7px 10px; font-size: 13px; }
.tr-pad { width: 100%; height: 150px; border: 2px dashed #93c5fd; border-radius: 12px; background: #f8fbff; touch-action: none; display: block; cursor: crosshair; margin-top: 6px; }
.tr-pad.grande { height: 220px; }
html[data-tema="escuro"] .tr-pad { background: #fff; }
.tr-ass-mini { height: 30px; max-width: 110px; background: #fff; border-radius: 6px; padding: 2px; }
.tr-qr-det { position: relative; }
.tr-qr-det summary { list-style: none; cursor: pointer; }
.tr-qr-box { position: absolute; right: 0; top: 36px; z-index: 5; background: #fff; padding: 8px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }

/* painel do instrutor */
.tr-painel { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.tr-lado { position: sticky; top: 74px; display: grid; gap: 0; }
.tr-mod-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tr-mod-cab h3 { margin: 0; flex: 1; font-size: 16px; }
.tr-anot { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: #fef6e4; color: #92400e; font-size: 13px; }
html[data-tema="escuro"] .tr-anot { background: #3a2a0b; color: #fcd34d; }
.tr-etapa { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--borda); align-items: start; }
.tr-etapa.agora { background: var(--hover); border-radius: 10px; box-shadow: inset 3px 0 0 var(--azul); }
.tr-n { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12.5px; background: var(--campo); border: 1.5px solid var(--borda); color: var(--sub); }
.tr-etapa.feita .tr-n { background: var(--verde); border-color: var(--verde); color: #fff; }
.tr-et-txt b { display: block; font-size: 14px; margin-bottom: 3px; } .tr-et-txt small { display: block; color: var(--sub); font-size: 12.5px; line-height: 1.5; }
.tr-et-lado { display: grid; gap: 6px; justify-items: end; }
.tr-bolas { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; max-width: 160px; }
.tr-bolas i { width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 1.5px dashed var(--borda); color: var(--fraco); }
.tr-bolas i.ok { background: var(--verde); border: 0; color: #fff; }
.tr-al-lista { display: flex; gap: 6px; flex-wrap: wrap; }
.tr-placar-mini { display: grid; gap: 4px; margin-top: 10px; font-size: 13px; }
.tr-placar-mini div { display: flex; gap: 6px; } .tr-placar-mini em { margin-left: auto; font-style: normal; color: var(--sub); }
.tr-erraram div, .tr-tg-log div { padding: 6px 0; border-top: 1px solid var(--borda); font-size: 13px; }
.tr-erraram small, .tr-tg-log small { display: block; color: var(--sub); font-size: 11.5px; }
.tr-tg-log p { margin: 2px 0 0; white-space: pre-line; font-size: 12.5px; }
.tr-msg { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 80; background: #0b1324; color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 13.5px; max-width: 92vw; }

/* lista de presenca (iPad) */
.tr-tablet { background: var(--card); border: 1px solid var(--borda); border-radius: 18px; overflow: hidden; max-width: 900px; }
.tr-tablet-cab { background: linear-gradient(90deg, #00357a, #005fcb); color: #fff; padding: 14px 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tr-tablet-cab b { font-size: 17px; } .tr-tablet-cab span { opacity: .85; font-size: 12.5px; flex: 1; }
.tr-presentes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 16px; }
.tr-presente { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--borda); border-radius: 12px; background: var(--campo); text-align: left; color: var(--txt); font: inherit; cursor: pointer; }
.tr-presente:hover { border-color: var(--azul); }
.tr-presente.ok { border-color: var(--verde); }
.tr-presente.ok small { color: var(--verde); font-weight: 600; }
.tr-presente img { height: 30px; margin-left: auto; max-width: 80px; background: #fff; border-radius: 4px; }
.tr-assinar { padding: 0 16px 16px; }
.tr-conferir { width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--borda); border-radius: 18px; padding: 28px; display: grid; gap: 10px; }

/* ---------- MAP de treino: bolinha, tela da sala e tela do aluno ---------- */
.tr-bolinha { position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 95; height: 18px; width: 18px; border-radius: 999px; background: #7c3aed; color: #fff;
  display: flex; align-items: center; overflow: hidden; white-space: nowrap; font-size: 12px; font-weight: 600; box-shadow: 0 0 0 4px rgba(124,58,237,.22);
  transition: width .2s ease, padding .2s ease; animation: tr-respira 2.6s ease-in-out infinite; cursor: default; }
.tr-bolinha span { opacity: 0; transition: opacity .15s; }
.tr-bolinha:hover, .tr-bolinha:focus { width: 330px; padding-left: 14px; animation: none; }
.tr-bolinha:hover span, .tr-bolinha:focus span { opacity: 1; }
.tr-bolinha span::after { content: ": nada do que for feito aqui fica registrado"; font-weight: 500; }
@keyframes tr-respira { 50% { box-shadow: 0 0 0 8px rgba(124,58,237,.08); } }
.tr-camada { position: fixed; inset: 0; z-index: 88; background: rgba(4,10,24,.82); display: flex; align-items: center; justify-content: center; padding: 3vh 3vw; overflow: auto; }
.tr-camada[hidden] { display: none; }
.tr-quadro { width: 100%; max-width: 1400px; max-height: 94vh; overflow: auto; }
.tr-capa { text-align: center; color: #fff; display: grid; gap: 14px; justify-items: center; padding: 4vh 0; }
.tr-capa-map { font-size: clamp(60px, 12vw, 160px); font-weight: 800; letter-spacing: .08em; line-height: 1; }
.tr-capa img { max-height: 90px; max-width: 360px; filter: brightness(0) invert(1); opacity: .95; }
.tr-capa h2 { margin: 0; font-size: clamp(22px, 3.6vw, 46px); text-transform: none; letter-spacing: 0; color: #fff; }
.tr-capa p { margin: 0; opacity: .75; font-size: clamp(14px, 1.8vw, 22px); }
.tr-dica { color: #cbd5e1; text-align: center; font-size: clamp(14px, 1.6vw, 20px); margin: 0 0 18px; }
.tr-qrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.tr-qr { background: #fff; color: #1e293b; border-radius: 16px; padding: 12px; display: grid; gap: 4px; justify-items: center; }
.tr-qr img { width: 140px; height: 140px; } .tr-qr b { font-size: 18px; } .tr-qr small { font-weight: 700; color: #64748b; }
.tr-qr.ok { outline: 4px solid #22c55e; } .tr-qr.ok small { color: #16a34a; }
.tr-slide { background: linear-gradient(160deg, #00357a, #005fcb); color: #fff; border-radius: 22px; padding: 6vh 6vw; min-height: 60vh; display: grid; align-content: center; gap: 16px; }
.tr-slide small { font-size: clamp(13px, 1.4vw, 18px); opacity: .8; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.tr-slide h2 { margin: 0; font-size: clamp(26px, 4vw, 56px); color: #fff; text-transform: none; letter-spacing: 0; }
.tr-slide ul { margin: 0; padding-left: 1.2em; font-size: clamp(18px, 2.4vw, 34px); line-height: 1.55; }
.tr-ex { font-size: clamp(18px, 2.4vw, 32px); margin: 0; line-height: 1.45; }
.tr-pag { color: #94a3b8; text-align: right; margin-top: 10px; font-size: 14px; }
.tr-acoes { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.tr-carregando { color: #fff; text-align: center; }
.tr-fluxo { background: #fff; color: #1e293b; border-radius: 20px; padding: 24px; }
.tr-fluxo h2 { margin: 0; color: #0a3b7c; text-transform: none; letter-spacing: 0; font-size: 26px; } .tr-fluxo p { margin: 2px 0 12px; color: #64748b; }
.tr-fluxo svg { width: 100%; height: auto; }
.tr-perg { background: linear-gradient(160deg, #00357a, #005fcb); color: #fff; border-radius: 22px; padding: 4vh 4vw; display: grid; gap: 18px; }
.tr-perg h2 { margin: 0; color: #fff; text-transform: none; letter-spacing: 0; font-size: clamp(22px, 3.2vw, 44px); line-height: 1.25; }
.tr-perg-topo { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; opacity: .92; }
.tr-cron { min-width: 58px; height: 58px; border-radius: 50%; background: #fff; color: #005fcb; font-weight: 800; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; padding: 0 8px; }
.tr-alts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tr-alt { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 14px; font-weight: 700; font-size: clamp(16px, 2vw, 26px); color: #fff; border: 0; text-align: left; font-family: inherit; }
.tr-alt i { font-style: normal; width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; flex: none; }
.tr-alt.a0 { background: #ff6600; } .tr-alt.a1 { background: #0ea5e9; } .tr-alt.a2 { background: #16a34a; } .tr-alt.a3 { background: #7c3aed; } .tr-alt.a4 { background: #db2777; } .tr-alt.a5 { background: #475569; }
.tr-alts.revelado .tr-alt:not(.certa) { opacity: .3; } .tr-alts.revelado .tr-alt.certa { box-shadow: 0 0 0 4px #fff; }
.tr-placar { background: #fff; color: #1e293b; border-radius: 22px; padding: 4vh 4vw; display: grid; gap: 10px; }
.tr-placar h2 { margin: 0 0 6px; color: #0a3b7c; font-size: clamp(26px, 3.4vw, 46px); text-transform: none; letter-spacing: 0; }
.tr-placar div { display: flex; gap: 14px; align-items: center; font-size: clamp(18px, 2.2vw, 30px); padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
.tr-placar div b { color: #ff6600; width: 2.2em; } .tr-placar div em { margin-left: auto; font-style: normal; font-weight: 800; color: #005fcb; }
.tr-cel { background: var(--card); color: var(--txt); border-radius: 20px; padding: 18px; width: 100%; max-width: 520px; margin: 0 auto; display: grid; gap: 12px; }
.tr-cel .tr-perg-topo { color: var(--sub); }
.tr-cel .tr-cron { background: var(--azul); color: #fff; min-width: 48px; height: 48px; font-size: 18px; }
.tr-cel-q { margin: 0; font-size: 17px; font-weight: 700; }
.tr-alts.cel { grid-template-columns: 1fr; } .tr-alts.cel .tr-alt { font-size: 16px; padding: 16px; cursor: pointer; }
.tr-resultado { padding: 18px; border-radius: 14px; background: var(--campo); text-align: center; font-size: 17px; font-weight: 700; }
.tr-resultado.ok { background: #e7f8ee; color: #15803d; } .tr-resultado.erro { background: #fef2f2; color: #b91c1c; }
.tr-resultado small { font-weight: 500; font-size: 13px; }
.tr-prova fieldset { border: 1px solid var(--borda); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.tr-prova legend { font-weight: 700; padding: 0 4px; }
.tr-prova label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.tr-tg { position: fixed; right: 16px; top: calc(70px + env(safe-area-inset-top, 0px)); z-index: 96; width: min(360px, calc(100vw - 32px)); background: #fff; color: #1e293b;
  border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; box-shadow: 0 14px 34px rgba(0,0,0,.25); border-left: 4px solid #229ed9; animation: tr-desce .35s ease; font-size: 13px; }
.tr-tg.sai { opacity: 0; transform: translateY(-10px); transition: all .5s; }
.tr-tg-ic { width: 32px; height: 32px; border-radius: 50%; background: #229ed9; display: flex; align-items: center; justify-content: center; flex: none; }
.tr-tg-ic svg { width: 18px; height: 18px; }
.tr-tg b { display: block; color: #229ed9; font-size: 12.5px; } .tr-tg b em { font-style: normal; color: #94a3b8; font-weight: 500; }
.tr-tg span { white-space: normal; }
@keyframes tr-desce { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.tr-ex-cartao { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 94; width: min(380px, calc(100vw - 32px)); background: var(--card); color: var(--txt);
  border-radius: 16px; padding: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.28); border-top: 5px solid #16a34a; display: grid; gap: 8px; }
.tr-ex-cartao small { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #16a34a; font-size: 11px; }
.tr-ex-cartao p { margin: 0; font-size: 15px; }
@media (max-width: 1000px) { .tr-painel { grid-template-columns: 1fr; } .tr-lado { position: static; } }
@media (max-width: 700px) {
  .tiles.tres { grid-template-columns: 1fr; }
  .tr-mrow summary { grid-template-columns: 22px 30px minmax(0, 1fr); }
  .tr-liga, .tr-ordem { grid-column: 3; }
  .tr-aluno-linha { grid-template-columns: 34px minmax(0, 1fr) auto; } .tr-aluno-linha input[name="aluno_cpf"] { grid-column: 2 / -1; }
  .tr-etapa { grid-template-columns: 28px minmax(0, 1fr); } .tr-et-lado { grid-column: 2; justify-items: start; }
  .tr-alts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tr-bolinha, .tr-tg { animation: none; } }
