/* Cores do Orçawin */
:root {
  --cor-topo: #001837;
  --cor-lateral: #000;
  --cor-destaque: #0092fe;
  --cor-destaque-escura: #0077d0;
  --altura-topo: 60px;
  --largura-lateral: 220px;
  --bs-primary: #0092fe;
  --bs-primary-rgb: 0, 146, 254;
  --bs-link-color: #0077d0;
  --bs-link-color-rgb: 0, 119, 208;
  --bs-link-hover-color: #005ca3;
  --bs-link-hover-color-rgb: 0, 92, 163;
}
.btn-primary {
  --bs-btn-bg: var(--cor-destaque); --bs-btn-border-color: var(--cor-destaque);
  --bs-btn-hover-bg: var(--cor-destaque-escura); --bs-btn-hover-border-color: var(--cor-destaque-escura);
  --bs-btn-active-bg: #005ca3; --bs-btn-active-border-color: #005ca3;
  --bs-btn-disabled-bg: var(--cor-destaque); --bs-btn-disabled-border-color: var(--cor-destaque);
}
.btn-outline-primary {
  --bs-btn-color: var(--cor-destaque-escura); --bs-btn-border-color: var(--cor-destaque);
  --bs-btn-hover-bg: var(--cor-destaque); --bs-btn-hover-border-color: var(--cor-destaque);
  --bs-btn-active-bg: var(--cor-destaque-escura); --bs-btn-active-border-color: var(--cor-destaque-escura);
}
.form-control:focus, .form-select:focus { border-color: #7fc8ff; box-shadow: 0 0 0 .25rem rgba(0, 146, 254, .25); }
.nav-tabs .nav-link.active, .nav-pills .nav-link.active { border-top: 3px solid var(--cor-destaque); }

body { background: #f3f5f8; }

/* Barra superior */
.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  height: var(--altura-topo); background: var(--cor-topo); color: #fff;
  display: flex; align-items: center; padding: 0 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.topo .marca { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; margin-right: 2rem; }
.topo .marca img { height: 46px; width: auto; }
.topo .marca span { font-size: 1.35rem; font-weight: 700; letter-spacing: .01em; }
.menu-topo { height: 100%; gap: .25rem; }
.menu-topo a {
  display: flex; align-items: center; height: 100%; padding: 0 1rem;
  color: #fff; text-decoration: none;
}
.menu-topo a:hover { background: rgba(255, 255, 255, .08); }
.menu-topo a.ativo, .menu-topo a.ativo:hover { background: var(--cor-destaque); font-weight: 600; }
.topo .usuario { font-size: .9rem; }
.topo .usuario small { opacity: .7; }
.menu-usuario .usuario { color: #fff; text-decoration: none; padding: .35rem .6rem; border-radius: .375rem; }
.menu-usuario .usuario:hover, .menu-usuario .usuario:focus, .menu-usuario .usuario.show { color: #fff; background: rgba(255, 255, 255, .1); }
.menu-usuario .dropdown-menu { min-width: 14rem; }
.menu-usuario .dropdown-item.active, .menu-usuario .dropdown-item:active { background: var(--cor-destaque); }
.btn-destaque { background: var(--cor-destaque); border-color: var(--cor-destaque); color: #fff; }
.btn-destaque:hover, .btn-destaque:focus { background: var(--cor-destaque-escura); border-color: var(--cor-destaque-escura); color: #fff; }

/* Barra lateral */
.com-menu .corpo { padding-top: var(--altura-topo); }
.lateral { background: var(--cor-lateral); color: #fff; --bs-offcanvas-width: 260px; --bs-offcanvas-bg: #000; --bs-offcanvas-color: #fff; }
.lateral .offcanvas-body { display: flex; padding: 1.25rem 0; }
.lateral .rotulo { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; opacity: .65; margin-bottom: .3rem; }
.lateral form { padding: 0 1rem; }
.lateral .form-select { background-color: #1a1a1a; color: #fff; border-color: #444;
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.lateral .item { display: block; padding: .55rem 1rem; color: #fff; text-decoration: none; }
.lateral .item:hover { background: #1a1a1a; }
.lateral .item.ativo, .lateral .item.ativo:hover { background: var(--cor-destaque); color: #fff; font-weight: 600; }
.lateral .rodape-lateral { padding: 0 1rem; opacity: .55; }
@media (min-width: 992px) {
  .com-menu .lateral {
    background-color: var(--cor-lateral) !important;
    position: fixed; top: var(--altura-topo); bottom: 0; left: 0; width: var(--largura-lateral); overflow-y: auto;
  }
  .com-menu .conteudo { margin-left: var(--largura-lateral); }
}

/* Tela de login */
.sem-menu { background: var(--cor-topo); min-height: 100vh; }

/* Tabelas e indicadores */
.table-num td.n, .table-num th.n, td.n, th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabela-resumo { font-size: .85rem; }
.tabela-resumo thead th { position: sticky; top: 0; background: #e9ecef; z-index: 1; vertical-align: bottom; }
.linha-divisao td { background: #dee2e6 !important; font-weight: 600; }
.linha-total td { background: #cce9ff !important; font-weight: 700; }
.sobra { color: #146c43; font-weight: 600; }
.falta { color: #b02a37; font-weight: 600; }
.aumento { color: #146c43; font-weight: 600; }
.barra { height: 6px; background: #e9ecef; border-radius: 3px; position: relative; min-width: 60px; }
.barra > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--cor-destaque); border-radius: 3px; }
.barra > i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #212529; }
.card-kpi .valor { font-size: 1.2rem; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-kpi { border-top: 3px solid var(--cor-destaque); }
.origem { font-size: .75rem; }

/* Texto de exemplo (placeholder) bem mais claro e em itálico, para não ser confundido com valor preenchido */
.form-control::placeholder { color: #c3c9d0; font-style: italic; opacity: 1; }

/* Árvore do orçamento: Ação > PTRES > UGR > GND > PI > ND > Fonte */
.btn-arvore, .btn-arvore-vazio { display: inline-block; width: 1.2rem; margin-right: .3rem; }
.btn-arvore { border: 0; background: none; padding: 0; color: var(--cor-destaque-escura); line-height: 1; }
.btn-arvore::before { content: "\25B8"; }
.btn-arvore[aria-expanded="true"]::before { content: "\25BE"; }
.col-arvore { white-space: nowrap; }
.no-arvore.nivel-0 td { background: #c9d3df; font-weight: 700; }
.no-arvore.nivel-1 td { background: #d8e0e9; font-weight: 600; }
.no-arvore.nivel-2 td { background: #e4e9ef; font-weight: 600; }
.no-arvore.nivel-3 td { background: #eef1f5; font-weight: 600; }
.no-arvore.nivel-5 td { background: #f0f8ff; font-size: .8rem; }
.no-arvore.nivel-6 td { background: #f8fbff; font-size: .8rem; color: #495057; }
.no-arvore.tipo-pagamento td { font-size: .78rem; color: #495057; } /* registros de pagamento */
.no-arvore.tipo-contrato td { background: #fcfdff; font-size: .8rem; }
.no-arvore.tipo-pi td { background: #eef5fc; font-weight: 600; } /* PI e NE com fundo próprio; só os registros de pagamento ficam em branco */
.no-arvore.tipo-ne td { background: #f6f7f8; }
/* Aba Execução: colunas dos meses */
.tabela-execucao td.n, .tabela-execucao th.n { white-space: nowrap; }
.tabela-execucao th.mes { min-width: 5.5rem; }
.tabela-execucao th.mes-atual { box-shadow: inset 0 -3px 0 var(--cor-destaque, #0092FE); }
/* Primeira coluna fixa ao rolar para os lados */
.tabela-execucao td.col-arvore, .tabela-execucao thead th:first-child, .tabela-execucao .linha-total td:first-child { position: sticky; left: 0; z-index: 1; }
.tabela-execucao thead th:first-child { z-index: 3; }
:where(.tabela-execucao) td.col-arvore { background-color: #fff; }
.tabela-execucao td.col-total { background-color: #f2f9ff; font-weight: 600; }
.tabela-execucao th.col-total { background-color: #dbe9f6; } /* cor sólida: o cabeçalho fixo não pode deixar ver as linhas que passam por baixo */
.expectativa, .tabela-execucao td.expectativa { color: #e05555 !important; font-style: italic; }

/* Mascote na barra lateral, um pouco mais estreito que a barra */
.logo-lateral { display: block; width: 140px; max-width: calc(100% - 2rem); height: auto; margin: 0 auto; }
.tabela-orcamento td.pct, .tabela-orcamento th.pct { color: #6c757d; font-size: .75rem; padding-left: .2rem; }
.tabela-orcamento { font-size: .8rem; }
.tabela-orcamento .desc-arvore { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Etiqueta do responsável pelo PI: uma cor por responsável, na ordem do cadastro (DM, DLMA, DE, OUTROS...) */
.etiqueta-resp { font-weight: 600; border: 1px solid transparent; }
.resp-0 { background: #f1f3f5; color: #6c757d; border-color: #dee2e6; }
.resp-1 { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.resp-2 { background: #dcfce7; color: #166534; border-color: #86efac; }
.resp-3 { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.resp-4 { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
.resp-5 { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.resp-6 { background: #cffafe; color: #155e75; border-color: #67e8f9; }
.no-arvore.nivel-4 .col-arvore a { display: inline-block; min-width: 6.2rem; } /* etiquetas alinhadas */

/* Detalhamento da despesa (PDO) na tela do PI */
.campo-detalhamento { font-size: .85rem; line-height: 1.35; resize: vertical; }

/* Conferência das notas de empenho com o Orçamento */
.conf-badge-ok { background: #d1e7dd; color: #0f5132; border: 1px solid #a3cfbb; }
.conf-badge-aviso { background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; }
.conf-badge-erro { background: #f8d7da; color: #842029; border: 1px solid #f1aeb5; }
.tabela-conferencia tr.conf-erro td { background: #fdf0f1; }
.tabela-conferencia tr.conf-aviso td { background: #fffbeb; }
.linha-mov td { background: #f8fbff; }

/* Gráfico da evolução da dotação (tela do PI) */
.grafico-dotacao svg { display: block; max-height: 150px; }
.gd-grade { stroke: #e3e6ea; stroke-width: 1; }
.gd-eixo { fill: #6c757d; font-size: 11px; font-variant-numeric: tabular-nums; }
.gd-pgo { stroke: #9aa3ad; stroke-width: 1; stroke-dasharray: 4 4; }
.gd-linha { fill: none; stroke: var(--cor-destaque); stroke-width: 2; stroke-linejoin: round; }
.gd-ponto { fill: var(--cor-destaque); stroke: #fff; stroke-width: 2; }
.gd-faixa { fill: transparent; cursor: crosshair; }
.gd-faixa.ativa { fill: rgba(0, 146, 254, .08); }
.gd-dica { position: absolute; pointer-events: none; background: #fff; border: 1px solid #dee2e6; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12); padding: 6px 10px; font-size: .8rem; white-space: nowrap; z-index: 5; }
.legenda-cor { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 3px; }

/* Campo que não foi lido dos arquivos (Inserir pagamento) */
.campo-faltando { border-color: #f0ad4e !important; background-color: #fff8e6; box-shadow: 0 0 0 .15rem rgba(240, 173, 78, .25); }
/* Inserir/Editar pagamento: grupos de campos, etiqueta de origem do dado e arquivos */
.grupo-campos legend { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6c757d; border-bottom: 1px solid #e3e6ea; padding-bottom: .2rem; margin-bottom: .5rem; }
.grupo-campos .col-form-label-sm { padding-top: .3rem; padding-bottom: .3rem; }
.etq-origem, .etq-falta { font-size: .62rem; font-weight: 600; border-radius: .25rem; padding: 0 .3rem; margin-left: .25rem; vertical-align: 1px; }
.etq-origem.etq-np { background: #e7f1fd; color: #0a58ca; border: 1px solid #b6d4fe; } /* lido da Nota de Pagamento */
.etq-origem.etq-nf { background: #f1e9fb; color: #5a2d91; border: 1px solid #d6c2f2; } /* lido da nota fiscal ou fatura */
.etq-falta { background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; }
.chip-arquivo { border: 1px solid #dee2e6; border-radius: 1rem; padding: 0 .55rem; background: #fff; white-space: nowrap; }
.tabela-orcamento .objeto-resumo { min-width: 12rem; max-width: 18rem; white-space: normal; }

/* Tipo de execução do contrato */
.tipo-mao-obra { background: #e0ecff; color: #0a3d8f; border: 1px solid #b6cff5; }
.tipo-demanda { background: #fdeede; color: #8a4b08; border: 1px solid #f5cfa3; }
.tipo-fornecimento { background: #e8f3ee; color: #1d5b40; border: 1px solid #b9dccb; }

/* Painel: providências por PI */
.tabela-painel { font-size: .8rem; }  /* mesmo tamanho das tabelas de Orçamento, Empenhos, Pagamentos e Execução */
.tabela-painel td.descricao { font-size: .875em; max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* como a descrição da árvore do Orçamento: uma linha, texto inteiro ao passar o mouse */
.tabela-painel .barra { display: inline-block; width: 3.5rem; min-width: 3.5rem; height: 5px; margin-left: .35rem; vertical-align: middle; } /* barra ao lado do %, na mesma linha */
.tabela-painel td.providencias { white-space: nowrap; } /* etiquetas curtas numa linha; o detalhe aparece ao passar o mouse */
.tabela-painel .providencias .badge { display: inline-block; max-width: 100%; margin: 1px 2px 1px 0; font-weight: 500; text-decoration: none; white-space: nowrap; text-align: left; line-height: 1.25; }
.badge.alerta-falta { background: #f8d7da; color: #842029; }
.badge.alerta-aviso { background: #fff3cd; color: #664d03; }
.badge.alerta-info { background: #e9ecef; color: #41464b; }
a.badge.alerta-falta:hover, a.badge.alerta-aviso:hover, a.badge.alerta-info:hover { filter: brightness(.95); }

/* Páginas sem login */

/* Execução › Análise: previsão dos próximos meses (valor digitado no lugar do calculado) */
.tabela-previsao .campo-previsao { width: 7.5rem; min-width: 7.5rem; margin-left: auto; padding: .1rem .35rem; font-size: .8rem; }
.tabela-previsao .campo-previsao::placeholder { color: #8a94a3; }
.tabela-previsao .campo-previsao.digitado { background: #fff4d6; border-color: #e0a800; font-weight: 600; }
.tabela-previsao td.n, .tabela-previsao th.n { white-space: nowrap; }
#previsao > summary { cursor: pointer; }
.tabela-previsao td.celula-credito { vertical-align: middle; border-left: 1px solid #dee2e6; }
.tabela-previsao td.providencias { min-width: 15rem; width: 17rem; }
.tabela-previsao .providencias .badge { display: inline-block; max-width: 100%; margin: 1px 2px 1px 0; font-weight: 500; text-decoration: none; white-space: nowrap; text-align: left; line-height: 1.25; }
.badge.alerta-ok { background: #d1e7dd; color: #0f5132; }
.tabela-previsao .campo-previsao.registrado, .tabela-previsao .campo-previsao.registrado:disabled { background: #d1e7dd; border-color: #a3cfbb; color: #0f5132; font-weight: 600; opacity: 1; }
.tabela-previsao .registrado-valor, .registrado-legenda { background: #d1e7dd; color: #0f5132; padding: 0 .3rem; border-radius: .2rem; }

/* Tela de entrada: foto de fundo, cartão branco centralizado, fonte Poppins (arquivos locais em assets/fontes) */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(fontes/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(fontes/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(fontes/poppins-latin-600-normal.woff2) format("woff2"); }
body.tela-login {
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #001837 url(fundo-login.jpg) center / cover no-repeat fixed;
}
.tela-login main { padding: 0 !important; }
.login-palco { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8.5rem 1rem 2rem; }
.login-cartao {
  position: relative; width: 100%; max-width: 380px; background: #fff; border-radius: 14px;
  padding: 5rem 2rem 1.6rem; box-shadow: 0 18px 50px rgba(0, 10, 30, .45); text-align: center;
}
.login-mascote {
  position: absolute; top: -62px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 118px; object-fit: contain; background: var(--cor-topo); border-radius: 50%;
  padding: 10px; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0, 10, 30, .35);
}
.login-campo { position: relative; display: flex; align-items: center; gap: .6rem; border-bottom: 1.5px solid #c9d0d9; margin-bottom: 1.4rem; padding: .35rem 0; transition: border-color .2s; }
.login-campo:focus-within { border-color: var(--cor-destaque); }
.login-campo svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #6b7685; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-campo:focus-within > svg { stroke: var(--cor-destaque); }
.login-campo input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .95rem; color: #1d2633; padding: .2rem 0; }
.login-campo input::placeholder { color: #8a95a3; }
.login-olho { border: 0; background: none; padding: 0; line-height: 0; cursor: pointer; }
.login-olho.aberto svg { stroke: var(--cor-destaque); }
.login-link { color: var(--cor-destaque-escura); text-decoration: none; font-weight: 500; }
.login-link:hover { text-decoration: underline; }
.login-botao {
  width: 100%; border: 0; border-radius: 8px; padding: .75rem; font-family: inherit; font-size: 1rem; font-weight: 500;
  color: #fff; background: var(--cor-destaque); box-shadow: 0 6px 16px rgba(0, 146, 254, .35); transition: background .2s;
}
.login-botao:hover { background: var(--cor-destaque-escura); }
.login-rodape { font-size: .85rem; color: #4a5563; margin: 1.3rem 0 0; }
.login-instituicao-texto { color: rgba(255, 255, 255, .8); font-size: .8rem; margin-top: 1.5rem; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.login-topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: var(--altura-topo);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1.5rem;
  background: rgba(0, 24, 55, .55); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.login-marca { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-size: 1.4rem; font-weight: 600; }
.login-marca:hover { color: #fff; }
.login-marca img { height: 40px; width: auto; }
.login-links { display: flex; align-items: center; gap: 1.6rem; }
.login-links a { color: #fff; text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.login-links a:hover { color: #7fc8ff; }
@media (max-width: 575.98px) {
  .login-topo { padding: 0 .9rem; }
  .login-marca { font-size: 1.1rem; gap: .35rem; } .login-marca img { height: 28px; }
  .login-links { gap: .8rem; } .login-links a { font-size: .8rem; }
}
.login-logos { display: flex; justify-content: center; align-items: center; gap: 2rem; margin: 1.3rem -2rem -1.6rem; padding: 1rem 1rem 1.1rem; border-top: 1px solid #e3e7ec; }
.login-logos img { height: 58px; width: auto; }
.login-opcoes { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .85rem; margin: -.4rem 0 1.5rem; }
.login-lembrar { display: flex; align-items: center; gap: .4rem; color: #4a5563; cursor: pointer; margin: 0; }
.login-lembrar input { width: 15px; height: 15px; accent-color: var(--cor-destaque); cursor: pointer; }
.login-cartao-form { text-align: left; }
.login-cartao-largo { max-width: 560px; }
.login-titulo-pagina { font-size: 1.25rem; font-weight: 600; color: var(--cor-topo); text-align: center; margin: -.6rem 0 1.2rem; }
.login-cartao-form .form-label { font-size: .85rem; font-weight: 500; color: #4a5563; margin-bottom: .25rem; }
.login-cartao-form .btn-primary { font-weight: 500; padding: .6rem; border-radius: 8px; }

/* Títulos de coluna que ordenam as tabelas em árvore (public/assets/arvore.js) */
th.ordenavel { cursor: pointer; user-select: none; }
th.ordenavel:hover { background: #dde3ea !important; }
th.ordenavel::after { content: " ⇅"; font-size: .75em; color: #adb5bd; font-weight: 400; }
th.ordenavel[data-ordem="asc"]::after { content: " ▲"; font-size: .7em; color: #0092FE; }
th.ordenavel[data-ordem="desc"]::after { content: " ▼"; font-size: .7em; color: #0092FE; }
/* Modo "Focar tabela" (public/assets/arvore.js): a tabela não passa a rolagem para a página */
.tabela-focada { overscroll-behavior: contain; }
.btn-focar.active { color: #fff; }

/* "Abrir até" levado para a barra superior no modo Focar tabela */
.topo .niveis-topo .text-muted { color: rgba(255, 255, 255, .75) !important; }
.topo .niveis-topo .btn-outline-light.active { background: #0092FE; border-color: #0092FE; color: #fff; }
.topo .niveis-topo, .topo .niveis-topo .text-muted, .topo #sair-foco { white-space: nowrap; }
.topo .niveis-topo .btn-nivel { padding: .15rem .45rem; font-size: .8rem; }

/* Linha clicada nas tabelas de visão geral (arvore.js): destaque por cima das cores de nível */
table.tabela-ordenavel tbody tr, table tbody tr.no-arvore { cursor: pointer; }
tr.linha-destacada > td { background: #fff1b8 !important; box-shadow: inset 0 1px 0 #f2c94c, inset 0 -1px 0 #f2c94c; }
/* Painel: crédito disponível (% empenho) ou saldo de empenho (% liquidado) abaixo do tempo até o prazo; continua vermelho na linha destacada */
.celula-risco { background: #f8d7da; color: #b02a37; font-weight: 700; box-shadow: inset 0 0 0 1px #e4a0a6; }
.tabela-painel td.celula-risco, tr.linha-destacada > td.celula-risco { background: #f8d7da !important; box-shadow: inset 0 0 0 2px #dc3545; }
tr.linha-destacada > td:first-child { box-shadow: inset 4px 0 0 #0092FE, inset 0 1px 0 #f2c94c, inset 0 -1px 0 #f2c94c; }
.btn-desmarcar { white-space: nowrap; }
.topo .niveis-topo .btn-desmarcar { padding: .15rem .45rem; font-size: .8rem; }
/* Modo foco com "Abrir até" na barra: menu e nome mais compactos para caber tudo */
body.foco-ativo .topo .marca { margin-right: 1rem; }
body.foco-ativo .menu-topo a { padding: 0 .6rem; }
body.foco-ativo .topo .usuario small { display: none; }
body.foco-ativo .topo > .ms-auto { gap: .6rem !important; }

/* Execução › Previsão (public/previsao.php) */
.tabela-previsao .cel-prev, .tabela-previsao .cel-tipo { border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; min-width: 3rem; min-height: 1.2em; text-align: inherit; width: 100%; }
.tabela-previsao .cel-prev:hover, .tabela-previsao .cel-tipo:hover { outline: 1px dashed #0092FE; outline-offset: 2px; }
.prev-previsto, .tabela-previsao td.prev-previsto { color: #c0392b; font-style: italic; }
.prev-definido, .tabela-previsao td.prev-definido { color: #0b5ed7; font-style: italic; font-weight: 600; }
.tabela-previsao td.prev-somado { color: #0b5ed7; font-weight: 600; }
.tabela-previsao td.prev-texto { color: #6c757d; font-size: .8rem; text-align: center; }
.prev-marca { display: inline-block; font-size: .7rem; font-weight: 700; color: #fff; background: #0b5ed7; border-radius: 3px; padding: 0 .25rem; margin-right: .25rem; font-style: normal; }
.prev-aviso { display: inline-block; font-size: .7rem; font-weight: 700; color: #664d03; background: #ffda6a; border-radius: 3px; padding: 0 .3rem; margin-right: .25rem; font-style: normal; }
.prev-legenda { margin-right: .75rem; white-space: nowrap; }
.prev-tipo { display: inline-block; font-size: .72rem; font-weight: 700; padding: .05rem .35rem; border-radius: 3px; background: #dbe9f6; color: #0a3d62; }
.prev-tipo.auto { background: #eef1f5; color: #495057; }
.tabela-previsao .linha-pct td { font-weight: 400; color: #495057; }
.prev-rap { display: inline-block; font-size: .62rem; font-weight: 700; color: #495057; background: #e9ecef; border: 1px solid #ced4da; border-radius: 3px; padding: 0 .2rem; margin-right: .25rem; font-style: normal; }
.tabela-previsao thead th { vertical-align: middle; line-height: 1.2; }
.tabela-previsao .nes-previsao { padding: .4rem .6rem .6rem 2rem; background: #f6f8fb; white-space: normal; position: sticky; left: 0; max-width: 95vw; }
.tabela-previsao .nes-previsao td, .tabela-previsao .nes-previsao th { white-space: nowrap; }
.tabela-previsao .nes-previsao table { width: auto; }
