@font-face {
  font-family: "CF Sans";
  src: local("Inter"), local("Inter Variable"), local("Manrope"), local("Segoe UI Variable Text"),
       local("Segoe UI Variable"), local("SegoeUI-Variable"), local("Segoe UI");
  font-weight: 100 900;
  font-display: swap;
}
/* CONTROL FÁCIL (desenvolvido por Isaclima) — identidade: azul-marinho, azuis do relatório da Natalia,
   branco e cinzas muito claros. */
:root {
  --marinho: #0E3A63;
  --marinho-2: #154D83;
  --azul: #1F5F99;
  --azul-aco: #41647F;
  --azul-ceu: #67A9C2;
  --prata: #C9D1D9;
  --azul-claro: #e9f1f8;
  --fundo: #f3f6f9;
  --superficie: #ffffff;
  --borda: #dfe4ea;
  --texto: #1b2430;
  --texto-2: #5b6778;
  --texto-3: #8a95a5;
  --ok: #1e7b4f;
  --ok-fundo: #e5f4ec;
  --alerta: #a35f00;
  --alerta-fundo: #fcf1e1;
  --erro: #b3261e;
  --erro-fundo: #fbe9e8;
  --raio: 10px;
  --sombra: 0 1px 2px rgba(14, 58, 99, .05), 0 2px 6px rgba(14, 58, 99, .07);
  --sombra-forte: 0 24px 60px rgba(14, 58, 99, .18);
  /* UMA família para todo o template: Inter/Manrope se instaladas; senão Segoe UI Variable (Windows 11),
     sem depender de internet. Todos os componentes herdam de body. */
  --fonte: "CF Sans", Inter, Manrope, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--fonte); color: var(--texto); background: var(--fundo); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--azul); }
h1 { font-size: 22px; margin: 0; font-weight: 700; letter-spacing: -.015em; color: var(--marinho); }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 600; }
.sub { color: var(--texto-2); margin: 2px 0 0; }
.escondido { display: none !important; }

/* ---------- botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 8px; border: 1px solid var(--borda); background: var(--superficie); cursor: pointer; font-weight: 500;
  white-space: nowrap; }
.btn:hover { border-color: #c5cdd8; background: #f8fafc; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primario { background: var(--marinho); border-color: var(--marinho); color: #fff; }
.btn-primario:hover { background: var(--marinho-2); border-color: var(--marinho-2); }
.btn-link { border: 0; background: none; color: var(--azul); padding: 0 4px; height: auto; }
.campo { display: flex; flex-direction: column; gap: 4px; }
.campo .input { width: 100%; max-width: 100%; }
.campo label { font-size: 12px; font-weight: 600; color: var(--texto-2); }
.input, select.input, textarea.input { height: 36px; padding: 0 10px; border: 1px solid var(--borda); border-radius: 8px;
  background: #fff; min-width: 0; }
textarea.input { height: auto; padding: 8px 10px; resize: none; }
.input:focus, .btn:focus-visible { outline: 2px solid rgba(31, 95, 168, .35); outline-offset: 1px; border-color: var(--azul); }

/* ---------- login ---------- */
#raiz { min-height: 100%; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: linear-gradient(160deg, var(--marinho) 0%, var(--marinho-2) 55%, #1c4677 100%); }
.login-cartao { width: 100%; max-width: 380px; background: #fff; border-radius: 14px; padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 16px; }
.login-cartao img { height: 44px; align-self: flex-start; }
.login-cartao .input { height: 40px; }
.login-cartao .btn { height: 42px; }
.rodape-login { text-align: center; color: rgba(255, 255, 255, .6); font-size: 12px; margin-top: 16px; }

/* ---------- estrutura ---------- */
.app { display: grid; grid-template-columns: 240px 1fr; grid-template-rows: 60px 1fr; height: 100vh; height: 100dvh; }
.lateral { grid-row: 1 / 3; background: var(--marinho); color: #fff; display: flex; flex-direction: column; }
.lateral .marca { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lateral .marca img { height: 26px; background: #fff; border-radius: 4px; padding: 3px 6px; }
.lateral .marca span { font-weight: 600; letter-spacing: .02em; font-size: 13px; opacity: .9; }
.menu { list-style: none; margin: 12px 0; padding: 0 10px; display: flex; flex-direction: column; gap: 2px; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: rgba(255, 255, 255, .78);
  text-decoration: none; font-weight: 500; }
.menu a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.menu a.ativo { background: rgba(255, 255, 255, .13); color: #fff; }
.menu svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.lateral .rodape { margin-top: auto; padding: 14px 20px; font-size: 11px; color: rgba(255, 255, 255, .45); }
.topo { background: var(--superficie); border-bottom: 1px solid var(--borda); display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px; gap: 12px; }
.topo .abrir-menu { display: none; }
.usuario { display: flex; align-items: center; gap: 10px; }
.usuario .quem { text-align: right; line-height: 1.2; }
.usuario .quem b { display: block; font-size: 13px; }
.usuario .quem small { color: var(--texto-2); font-size: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--azul-claro); color: var(--marinho);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.grande { width: 72px; height: 72px; font-size: 24px; }
.principal { overflow: auto; padding: 24px; }
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }

/* ---------- cartões / indicadores ---------- */
.cartao { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra);
  padding: 18px; }
.grade { display: grid; gap: 16px; }
.grade-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grade-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi .rotulo { color: var(--texto-2); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi .valor { font-size: 28px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .detalhe { color: var(--texto-2); font-size: 12px; margin-top: 2px; }
.barra { height: 6px; background: #edf0f4; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.barra i { display: block; height: 100%; background: var(--azul); border-radius: 99px; }
.selo { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px;
  font-weight: 600; background: #eef1f5; color: var(--texto-2); white-space: nowrap; }
.selo.ok { background: var(--ok-fundo); color: var(--ok); }
.selo.alerta { background: var(--alerta-fundo); color: var(--alerta); }
.selo.erro { background: var(--erro-fundo); color: var(--erro); }
.selo.azul { background: var(--azul-claro); color: var(--azul); }

/* ---------- tabelas ---------- */
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filtros .campo { min-width: 150px; }
.filtros .campo.largo { flex: 1; min-width: 200px; }
.tabela-caixa { overflow: auto; border: 1px solid var(--borda); border-radius: var(--raio); background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #edf0f4; white-space: nowrap; }
th { font-size: 12px; color: var(--texto-2); font-weight: 600; background: #f8fafc; position: sticky; top: 0; }
tbody tr:hover { background: #f8fafc; }
tbody tr.clicavel { cursor: pointer; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.paginacao { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--texto-2); }
.vazio { padding: 40px 16px; text-align: center; color: var(--texto-2); }

/* ---------- conversa ---------- */
.conversa { display: flex; flex-direction: column; height: calc(100dvh - 60px - 48px - 70px); min-height: 420px;
  background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; }
.mensagens { flex: 1; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: #fafbfc; }
.msg { max-width: min(680px, 88%); padding: 10px 14px; border-radius: 12px; white-space: pre-wrap; word-wrap: break-word; }
.msg.eu { align-self: flex-end; background: var(--marinho); color: #fff; border-bottom-right-radius: 4px; }
.msg.ela { align-self: flex-start; background: #fff; border: 1px solid var(--borda); border-bottom-left-radius: 4px; }
.msg .autor { font-size: 11px; font-weight: 700; color: var(--azul); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.opcoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.opcoes button { border: 1px solid var(--borda); background: #fff; border-radius: 99px; padding: 4px 10px; cursor: pointer;
  font-size: 13px; }
.opcoes button:hover { border-color: var(--azul); color: var(--azul); }
.anexos { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.anexo svg, .btn svg { width: 18px; height: 18px; flex: none; }
.anexo { align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--azul-claro);
  color: var(--marinho); text-decoration: none; font-weight: 500; }
.compositor { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--borda); align-items: flex-end; }
.compositor textarea { flex: 1; min-height: 40px; max-height: 140px; }
.digitando { color: var(--texto-3); font-style: italic; }
.chip-arquivo { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; background: #eef1f5; padding: 3px 8px;
  border-radius: 99px; margin: 0 12px 8px; align-self: flex-start; }

/* ---------- programação ---------- */
.passos { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.passo { display: flex; align-items: center; gap: 8px; color: var(--texto-3); font-weight: 600; font-size: 13px; }
.passo b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e6eaf0; color: var(--texto-2); }
.passo.ativo { color: var(--marinho); }
.passo.ativo b { background: var(--marinho); color: #fff; }
.passo + .passo::before { content: ""; width: 24px; height: 1px; background: var(--borda); }
.lista-tecnicos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; max-height: 420px;
  overflow: auto; padding: 2px; }
.tecnico { display: flex; gap: 10px; align-items: center; border: 1px solid var(--borda); border-radius: 8px; padding: 8px 10px;
  cursor: pointer; background: #fff; }
.tecnico.sel { border-color: var(--azul); background: var(--azul-claro); }
.tecnico small { color: var(--texto-2); display: block; }
.barra-acoes { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 16px; padding: 12px 16px; background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); }

/* ---------- avisos / modal ---------- */
.aviso { padding: 10px 14px; border-radius: 8px; background: var(--azul-claro); color: var(--marinho); margin-bottom: 14px; }
.aviso.erro { background: var(--erro-fundo); color: var(--erro); }
.aviso.ok { background: var(--ok-fundo); color: var(--ok); }
.fundo-modal { position: fixed; inset: 0; background: rgba(11, 37, 69, .45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 16px 0; }
.modal dt { color: var(--texto-2); font-size: 12px; font-weight: 600; }
.modal dd { margin: 0; }
.modal.grande { max-width: 980px; }
.ficha-bloco { margin-top: 18px; }
.ficha-bloco h3 { margin: 0 0 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-2); }
.ficha-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; padding: 14px;
  border: 1px solid var(--borda); border-radius: 10px; }
.ficha-campo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ficha-campo span { font-size: 12px; color: var(--texto-2); }
.ficha-campo b { font-weight: 500; overflow-wrap: anywhere; white-space: pre-wrap; }
.ficha-campo.largo { grid-column: 1 / -1; }
.ficha-acoes { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px; }
.carregando { display: flex; align-items: center; gap: 10px; color: var(--texto-2); padding: 30px; justify-content: center; }
.carregando::before { content: ""; width: 16px; height: 16px; border: 2px solid #cfd6df; border-top-color: var(--azul);
  border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.toast { position: fixed; right: 20px; bottom: 20px; background: var(--marinho); color: #fff; padding: 10px 16px; border-radius: 8px;
  box-shadow: var(--sombra); z-index: 60; max-width: 360px; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) { .grade-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .lateral { position: fixed; inset: 0 30% 0 0; max-width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .app.menu-aberto .lateral { transform: none; box-shadow: 0 0 0 100vmax rgba(11, 37, 69, .4); }
  .topo { padding: 0 16px; }
  .topo .abrir-menu { display: inline-flex; }
  .usuario .quem { display: none; }
  .principal { padding: 16px; }
  .grade-2 { grid-template-columns: 1fr; }
  .conversa { height: calc(100vh - 60px - 32px - 64px); }
  .msg { max-width: 94%; }
  .modal dl { grid-template-columns: 1fr; }
  .ficha-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .grade-4, .ficha-grid { grid-template-columns: 1fr; } .filtros .campo { min-width: 100%; } }

/* Cadastros: grade de cards pequenos (aceita novos cadastros) */
.cad-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 220px)); gap: 12px; justify-content: start; }
.cad-card { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 14px 16px; background: #fff;
  border: 1px solid var(--borda); border-radius: 10px; color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s; }
.cad-card:hover { border-color: var(--azul); box-shadow: 0 2px 8px rgba(11, 37, 69, .08); }
.cad-icone { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 8px;
  background: var(--azul-claro); color: var(--marinho); }
.cad-icone svg { width: 20px; height: 20px; }
.cad-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cad-texto b { font-size: 14px; color: var(--marinho); }
.cad-texto small { font-size: 12px; color: var(--texto-2); }
@media (max-width: 480px) { .cad-grade { grid-template-columns: 1fr; } }

/* Cadastrar Corretiva: listas pesquisáveis e resumo da máquina */
.form-corr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.form-corr .campo.largo { grid-column: 1 / -1; }
.busca { position: relative; }
.busca-lista { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; max-height: 260px; overflow: auto; background: #fff;
  border: 1px solid var(--borda); border-radius: 8px; box-shadow: var(--sombra); margin-top: 2px; }
.busca-opcao { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 8px 10px; cursor: pointer;
  border-bottom: 1px solid #f0f2f5; font: inherit; color: inherit; }
.busca-opcao:hover { background: var(--azul-claro); }
.busca-vazio { padding: 8px 10px; color: var(--texto-2); }
.maq-lista { display: flex; flex-direction: column; margin-top: 10px; max-height: 240px; overflow: auto;
  border: 1px solid var(--borda); border-radius: 8px; }
.maq-lista:empty { display: none; }
.maq-lista > .sub { padding: 8px 10px; margin: 0; }
.maq-resumo { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding: 12px 14px; border-radius: 10px;
  background: var(--azul-claro); color: var(--marinho); }
.maq-resumo small { font-size: 11px; letter-spacing: .06em; }
@media (max-width: 820px) { .form-corr { grid-template-columns: 1fr; } }

/* ================= CONTROL FÁCIL — identidade (somente apresentação) ================= */
.cf-marca { display: flex; align-items: center; gap: 12px; }
.cf-simbolo { width: 40px; height: 40px; flex: none; }
.cf-nome { display: flex; flex-direction: column; line-height: 1.05; }
.cf-nome b { font-size: 18px; font-weight: 800; letter-spacing: .06em; color: var(--marinho); white-space: nowrap; }
.cf-nome b span { color: var(--azul-ceu); }
.cf-nome small { font-size: 10.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .55); margin-top: 3px; }
.cf-marca.claro .cf-nome b { color: #fff; }
.cf-marca.na-lateral .cf-simbolo { width: 32px; height: 32px; }
.cf-marca.na-lateral .cf-nome b { color: #fff; font-size: 14.5px; }
.cf-dev { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--texto-3); font-size: 12px; }
.cf-dev img { height: 30px; }
.cf-dev.na-lateral { justify-content: flex-start; color: rgba(255, 255, 255, .5); font-size: 11px; }
.cf-dev.na-lateral img { height: 18px; background: #fff; border-radius: 4px; padding: 2px 5px; }

/* login dividido: arte institucional + cartão */
.login.login-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); place-items: stretch;
  padding: 0; background: var(--fundo); }
.login-arte { position: relative; overflow: hidden; background: var(--marinho); color: #fff; min-height: 100vh; }
.login-arte-foto { position: absolute; inset: 0; background: url("/chiller.jpg") no-repeat 70% 100% / cover; }
.login-arte-veu { position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(14, 58, 99, .97) 0%, rgba(14, 58, 99, .92) 40%, rgba(21, 77, 131, .72) 70%, rgba(21, 77, 131, .45) 100%),
              linear-gradient(0deg, rgba(14, 58, 99, .85) 0%, rgba(14, 58, 99, 0) 45%); }
.login-arte-conteudo { position: relative; height: 100%; display: flex; flex-direction: column; padding: 56px 64px 44px; }
.login-arte .cf-simbolo { width: 52px; height: 52px; }
.login-arte .cf-nome b { font-size: 24px; }
.login-slogan { margin: auto 0 0; font-size: 42px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.login-barra { width: 64px; height: 5px; border-radius: 3px; background: var(--azul-ceu); margin: 22px 0; }
.login-frase { margin: 0; font-size: 18px; font-weight: 300; color: rgba(255, 255, 255, .82); line-height: 1.45; }
.login-dados { width: min(520px, 100%); margin: 34px 0 0; opacity: .95; }
.login-temas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 28px; }
.login-temas span { font-size: 11px; letter-spacing: .24em; font-weight: 600; color: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 99px; padding: 6px 12px; }
.login-lado { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: 40px 32px; background: linear-gradient(180deg, #fff 0%, var(--fundo) 100%); }
.login-caixa { width: 100%; max-width: 400px; }
.login-split .login-cartao { max-width: none; box-shadow: var(--sombra-forte); border: 1px solid var(--borda);
  border-radius: 16px; padding: 36px 32px; gap: 18px; }
.login-split .login-cartao h1 { font-size: 20px; }
.login-split .login-cartao .btn-primario { letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.login-split .rodape-login { color: var(--texto-3); }
.login:not(.login-split) .cf-marca .cf-nome b { color: var(--marinho); }

/* estrutura pós-login */
.lateral { background: linear-gradient(180deg, var(--marinho) 0%, #0b2f52 100%); }
.lateral .marca { height: 64px; padding: 0 18px; }
.app { grid-template-rows: 64px 1fr; }
.menu a.ativo { background: rgba(103, 169, 194, .18); box-shadow: inset 3px 0 0 var(--azul-ceu); }
.topo { box-shadow: 0 1px 0 rgba(14, 58, 99, .04); }
.cartao { border-color: #e3e9ef; }
.btn-primario { background: var(--marinho-2); border-color: var(--marinho-2); }
.btn-primario:hover { background: var(--marinho); border-color: var(--marinho); }

@media (max-width: 980px) {
  .login.login-split { grid-template-columns: 1fr; }
  .login-arte { min-height: auto; }
  .login-arte-conteudo { padding: 28px 24px; }
  .login-slogan { margin-top: 22px; font-size: 28px; }
  .login-dados, .login-temas { display: none; }
  .login-lado { padding: 28px 16px 36px; }
}
.login.login-split > * { min-width: 0; }
@media (max-width: 560px) {
  .login-arte-conteudo { padding: 22px 16px; }
  .login-arte .cf-simbolo { width: 40px; height: 40px; }
  .login-arte .cf-nome b { font-size: 17px; }
  .cf-nome b { font-size: 15px; letter-spacing: .04em; }
  .login-slogan { font-size: 24px; }
  .login-frase { font-size: 15px; }
  .login-lado { padding: 18px 12px 28px; }
  .login-split .login-cartao { padding: 24px 18px; }
  .cf-dev { flex-wrap: wrap; }
}.lateral .marca .cf-marca { flex-direction: row; align-items: center; min-width: 0; }
.lateral .marca img.cf-simbolo { width: 34px; height: 34px; background: none; padding: 0; border-radius: 0; }
.lateral .marca .cf-nome span { font-size: inherit; opacity: 1; letter-spacing: inherit; font-weight: inherit; }
.lateral .rodape .cf-dev { background: none; }
/* ---- ajuste 2: tipografia e símbolo polvo ---- */
/* (família única herdada de body) */
h1 { font-weight: 650; letter-spacing: -.01em; }
.cf-nome b { font-weight: 700; letter-spacing: .08em; }
.cf-nome .cf-slogan { color: var(--texto-2); letter-spacing: .01em; font-size: 11.5px; margin-top: 4px; }
.cf-marca.claro .cf-nome .cf-slogan { display: none; }
.login-slogan { font-weight: 700; letter-spacing: -.015em; }
.login-frase { font-weight: 400; }
.login-dados { width: min(560px, 100%); margin: 26px 0 0; opacity: 1; }
.menu a { font-weight: 500; letter-spacing: .005em; }
/* ---- tipografia global: hierarquia ---- */
body { font-size: 14px; line-height: 1.5; letter-spacing: -.003em; font-optical-sizing: auto;
  text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -.018em; line-height: 1.25; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-weight: 600; }
.sub { font-weight: 400; }
label, .campo label, dt, .rotulo, .ficha-campo span { font-weight: 500; letter-spacing: 0; }
.btn { font-weight: 550; letter-spacing: .005em; }
.menu a { font-weight: 500; }
.menu a.ativo { font-weight: 600; }
th { font-weight: 550; font-size: 12.5px; letter-spacing: .01em; }
td { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.kpi .valor { font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .rotulo { font-weight: 550; letter-spacing: .04em; }
.modal h2 { font-weight: 650; }
.selo { font-weight: 550; }
.cf-nome b { font-weight: 700; letter-spacing: .09em; }
.login-slogan { font-weight: 700; letter-spacing: -.022em; }
.usuario .quem b { font-weight: 600; }

/* ================= refinamento: logotipo, polvo em segundo plano, palavras-conceito ================= */
/* logotipo CONTROL FÁCIL */
.cf-nome b.cf-logo { display: inline-flex; align-items: baseline; gap: .34em; font-weight: 400; letter-spacing: 0; line-height: 1; }
.cf-logo .cf-l1 { font-weight: 800; letter-spacing: .085em; color: inherit; }
.cf-logo .cf-l2 { font-weight: 350; letter-spacing: .16em; color: var(--azul-ceu); }
.cf-nome b .cf-l1 { color: var(--marinho); }
.cf-marca.claro .cf-logo .cf-l1, .cf-marca.na-lateral .cf-logo .cf-l1 { color: #fff; }
.cf-o { display: inline-block; position: relative; width: .74em; height: .74em; margin: 0 .03em 0 .04em;
  border: .15em solid currentColor; border-radius: 50%; vertical-align: -.02em; box-sizing: border-box; }
.cf-o::after { content: ""; position: absolute; left: 50%; top: 50%; width: .2em; height: .2em; border-radius: 50%;
  background: var(--azul-ceu); transform: translate(-50%, -50%); }
.cf-nome .cf-slogan { margin-top: 6px; }

/* login: conteúdo em primeiro plano, polvo integrado ao fundo */
.login-arte { height: 100vh; min-height: 560px; }
.login-arte-conteudo { z-index: 2; height: 100%; padding: clamp(28px, 6vh, 64px) clamp(28px, 4.5vw, 72px); }
.login-slogan { margin: clamp(28px, 9vh, 110px) 0 0; font-size: clamp(30px, 3.2vw, 46px); }
.login-barra { margin: clamp(14px, 2.4vh, 24px) 0; }
.login-frase { font-size: clamp(15px, 1.25vw, 19px); }
.login-dados { position: absolute; z-index: 1; right: -6%; bottom: -3%; width: min(92%, 980px); max-height: 74%;
  margin: 0; opacity: .34; pointer-events: none; object-fit: contain; object-position: right bottom;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
.login-temas { margin-top: clamp(18px, 3.4vh, 34px); padding-top: 0; max-width: 520px; gap: 8px; }
.login-temas span { font-size: 10.5px; padding: 5px 11px; color: rgba(255, 255, 255, .58); border-color: rgba(255, 255, 255, .16);
  background: rgba(14, 58, 99, .35); backdrop-filter: blur(2px); }
.login-temas span.forte { color: rgba(255, 255, 255, .88); border-color: rgba(103, 169, 194, .55); }

/* template interno: polvo completo bem discreto no pé da lateral */
.lateral { position: relative; overflow: hidden; }
.lateral > * { position: relative; z-index: 1; }
.lateral::before { content: ""; position: absolute; z-index: 0; left: -30px; right: -30px; bottom: 56px; height: 230px;
  background: url("/cf-polvo.svg") center bottom / contain no-repeat; opacity: .08; pointer-events: none; }

@media (max-width: 980px) {
  .login-arte { height: auto; min-height: 0; }
  .login-dados { display: block; width: 110%; right: -20%; bottom: -10%; opacity: .22; }
  .login-temas { display: flex; }
  .login-slogan { margin-top: 20px; }
}
@media (max-height: 640px) and (min-width: 981px) {
  .login-arte { min-height: 0; }
  .login-slogan { font-size: 28px; margin-top: 18px; }
  .login-temas span:not(.forte) { display: none; }
}/* polvo sempre inteiro, no espaço livre abaixo do texto (nada cortado) */
.login-dados { right: 3%; bottom: 2.5%; width: min(80%, 780px); height: calc(97% - clamp(330px, 60vh, 560px));
  max-height: none; opacity: .30; object-fit: contain; object-position: center bottom;
  -webkit-mask-image: none; mask-image: none; }
@media (max-width: 980px) {
  .login-dados { position: absolute; display: block; right: 0; bottom: 0; width: 100%; height: 70%; opacity: .16; }
}.lateral .marca .cf-logo .cf-l1 { font-weight: 800; letter-spacing: .085em; }
.lateral .marca .cf-logo .cf-l2 { font-weight: 350; letter-spacing: .16em; color: var(--azul-ceu); }/* wordmark CONTROL FÁCIL (SVG desenhado) */
.cf-nome b.cf-logo { display: block; color: var(--marinho); line-height: 0; }
.cf-marca.claro .cf-logo, .cf-marca.na-lateral .cf-logo { color: #fff; }
.cf-wm { display: block; height: 1.4em; width: auto; overflow: visible; }
.cf-wm path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cf-wm-1 path { stroke: currentColor; stroke-width: 4.2; }
.cf-wm-2 path { stroke: var(--azul-ceu); stroke-width: 2.8; }
.cf-wm-no { fill: var(--azul-ceu); }
.lateral .marca .cf-nome b.cf-logo { font-size: 14px; }
/* Programação: filtros encadeados e barra de seleção */
.filtros-prog .campo { min-width: 150px; flex: 0 1 190px; }
.filtros-prog .campo.largo { flex: 1 1 260px; }
.selecao-prog { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 4px 0 12px; }
.selecionar-todas { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
/* wordmark geométrico: traço pesado, cortes retos */
.cf-wm { height: 1.3em; }
.cf-wm-1 path { stroke-width: 6; stroke-linecap: butt; stroke-linejoin: round; }
.cf-wm-2 path { stroke-width: 4.2; stroke-linecap: butt; stroke-linejoin: round; }
/* polvo de fundo maior (continua em segundo plano) */
.login-dados { right: -2%; bottom: 1%; width: min(100%, 1000px); height: calc(100% - clamp(250px, 42vh, 420px)); }
/* ---------- painel inicial (dashboard executivo) ---------- */
.dash-kpis { gap: 14px; }
.dash-kpis .cartao { padding: 14px 16px; }
.dash-kpis .kpi .valor { font-size: 30px; margin-top: 2px; line-height: 1.15; }
.dash-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.dash-trio div { display: flex; flex-direction: column; line-height: 1.15; }
.dash-trio b { font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--texto); }
.dash-trio small { color: var(--texto-2); font-size: 12px; margin-top: 2px; }
.dash-trio .venc b { color: var(--erro); }
.dash-trio .hoje b { color: var(--alerta); }
.dash-grade { display: grid; gap: 14px; margin-top: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-areas: "exec exec uf" "ritmo sit uf"; }
.dash-grade .cartao { padding: 16px 18px; min-width: 0; }
.dash-grade h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--marinho); margin-bottom: 10px; }
.dash-exec { grid-area: exec; }
.dash-ritmo { grid-area: ritmo; }
.dash-sit { grid-area: sit; }
.dash-uf { grid-area: uf; display: flex; flex-direction: column; }
.dash-exec-num { display: flex; gap: 36px; align-items: flex-end; flex-wrap: wrap; }
.dash-exec-num div { display: flex; flex-direction: column; gap: 2px; }
.dash-exec-num small { color: var(--texto-2); font-size: 12px; }
.dash-exec-num b { font-size: 32px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.dash-exec-num b.real { color: var(--marinho); font-size: 40px; }
.dash-exec-num .selo { height: 30px; font-size: 15px; padding: 0 12px; }
.bullet { margin-top: 18px; }
.bullet-trilho, .uf-trilho { position: relative; background: #e8eef4; border-radius: 99px; }
.bullet-trilho { height: 22px; }
.bullet-real { display: block; height: 100%; border-radius: 99px; background: var(--azul); }
.bullet-real.ok { background: var(--azul); }
.bullet-real.alerta { background: linear-gradient(90deg, var(--azul), #c98a2e); }
.bullet-real.erro { background: linear-gradient(90deg, var(--azul), #c2554d); }
.bullet-meta { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--marinho); }
.bullet-escala { display: flex; justify-content: space-between; color: var(--texto-3); font-size: 11px; margin-top: 6px; }
.dash-legenda { display: flex; gap: 16px; color: var(--texto-2); font-size: 12px; margin-top: 8px; }
.dash-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.dash-legenda i, .dash-linhas i { display: inline-block; width: 12px; height: 8px; border-radius: 3px; background: var(--azul); }
.dash-legenda .leg-real.alerta { background: #c98a2e; }
.dash-legenda .leg-real.erro { background: #c2554d; }
.dash-legenda .leg-meta { width: 3px; height: 14px; border-radius: 2px; background: var(--marinho); }
.dash-linhas .leg-pend { background: #e3eaf1; border: 1px solid #cdd7e1; }
.dash-grande { display: flex; align-items: baseline; gap: 8px; }
.dash-grande b { font-size: 30px; font-weight: 650; letter-spacing: -.02em; color: var(--marinho); font-variant-numeric: tabular-nums; }
.dash-grande small { color: var(--texto-2); }
.dias { display: flex; gap: 3px; margin: 10px 0 12px; }
.dias i { flex: 1; height: 14px; border-radius: 3px; background: #e3eaf1; }
.dias i.feito { background: var(--azul); }
.dash-linhas { display: flex; flex-direction: column; gap: 6px; }
.dash-linhas > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dash-linhas span { color: var(--texto-2); display: inline-flex; align-items: center; gap: 8px; }
.dash-linhas b { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dash-linhas .total { border-top: 1px solid var(--borda); padding-top: 6px; }
.dash-donut-caixa { display: flex; align-items: center; gap: 22px; }
.dash-donut-caixa .dash-linhas { flex: 1; min-width: 0; }
.donut { width: 124px; height: 124px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.donut > div { width: 88px; height: 88px; border-radius: 50%; background: var(--superficie); display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.1; }
.donut b { font-size: 20px; font-weight: 650; color: var(--marinho); }
.donut small { font-size: 11px; color: var(--texto-2); }
.dash-uf-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dash-uf-topo .dash-legenda { margin-top: 0; }
.uf-lista { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 4px; min-height: 0; }
.uf-linha { display: grid; grid-template-columns: 30px minmax(0, 1fr) 52px 88px; align-items: center; gap: 10px; }
.uf-sigla { font-size: 13px; color: var(--marinho); }
.uf-trilho { height: 12px; }
.uf-pct { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.uf-venc { color: var(--erro); font-size: 11px; white-space: nowrap; }
.uf-venc.zero { color: var(--texto-3); }
@media (max-width: 1100px) {
  .dash-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "exec exec" "ritmo sit" "uf uf"; }
}
@media (max-width: 768px) {
  .dash-grade { grid-template-columns: minmax(0, 1fr); grid-template-areas: "exec" "ritmo" "sit" "uf"; }
  .dash-exec-num { gap: 18px; }
}
@media (min-width: 1101px) and (min-height: 700px) {
  .principal:has(> .dash-grade) { display: flex; flex-direction: column; }
  .dash-grade { flex: 1 1 auto; min-height: 0; max-height: 760px; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .dash-exec, .dash-ritmo, .dash-sit { display: flex; flex-direction: column; }
  .dash-exec .dash-exec-num, .dash-ritmo .dash-grande { margin-top: auto; }
  .dash-exec .dash-legenda, .dash-ritmo .dash-linhas { margin-bottom: auto; }
  .dash-sit .dash-donut-caixa { flex: 1; }
  .dash-exec .bullet-trilho { height: 28px; }
  .donut { width: 150px; height: 150px; }
  .donut > div { width: 108px; height: 108px; }
  .uf-trilho { height: 14px; }
}
