/* ------------------------------------------------------------------
 * Identidade visual (v2, 23/09/2026): menu lateral azul-marinho, fundo
 * cinza-azulado claro, cartões brancos com cantos arredondados, fonte
 * Inter. Neutra de propósito — o sistema agora atende vários clientes,
 * então a cor da marca de um cliente (ex: o laranja da Tucumann) não
 * pode mais ser a cor do sistema. A marca de cada cliente aparece só no
 * logo e no nome, no topo do menu lateral.
 * Cores de STATUS (pendente/andamento/concluído/atrasado) continuam com
 * significado fixo e nunca são usadas como decoração.
 * ------------------------------------------------------------------ */
:root{
  --bg:#F4F6FA; --surface:#FFFFFF; --surface-2:#F0F3F8; --border:#E2E7EF;
  --text:#0F1B2D; --text-muted:#5A6B82; --text-faint:#8A98AC;
  --accent:#2F62C9; --accent-ink:#FFFFFF; --accent-soft:#E7EEFB;
  --ok:#1F9D68; --ok-soft:#E2F5EC;
  --warn:#D9901F; --warn-soft:#FCF1DF;
  --bad:#D94C44; --bad-soft:#FCE8E6;
  --neutral:#94A2B6; --neutral-soft:#EDF0F5;
  --shadow: 0 1px 2px rgba(15,27,45,.04), 0 4px 16px rgba(15,27,45,.04);
  --radius:14px;
  color-scheme: light;
  /* --brand virou o azul do sistema (botões primários). */
  --brand:#2F62C9; --brand-dark:#244FA6; --brand-ink:#FFFFFF;
  --sidebar-bg:#0F1F3A; --sidebar-bg-active:#2F5DB8; --sidebar-border:rgba(255,255,255,.08);
  --sidebar-text:#F2F5FA; --sidebar-text-muted:#B4C0D3; --sidebar-text-faint:#7E8DA6;
  --font:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0D1422; --surface:#152035; --surface-2:#1B2840;
    --border:#25334D; --text:#E8EDF5; --text-muted:#9DAAC0; --text-faint:#6D7C96;
    --accent:#6F9BEA; --accent-ink:#0B1220; --accent-soft:#1D2F52;
    --ok:#4CC08D; --ok-soft:#14322A;
    --warn:#E8AE52; --warn-soft:#3A2D14;
    --bad:#EE7A73; --bad-soft:#3C1E1E;
    --neutral:#7F8DA4; --neutral-soft:#1F2A3F;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.2);
    --brand:#4C7FE0; --brand-dark:#3A6BCB;
    --sidebar-bg:#0A1426; --sidebar-bg-active:#2F5DB8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0D1422; --surface:#152035; --surface-2:#1B2840;
  --border:#25334D; --text:#E8EDF5; --text-muted:#9DAAC0; --text-faint:#6D7C96;
  --accent:#6F9BEA; --accent-ink:#0B1220; --accent-soft:#1D2F52;
  --ok:#4CC08D; --ok-soft:#14322A;
  --warn:#E8AE52; --warn-soft:#3A2D14;
  --bad:#EE7A73; --bad-soft:#3C1E1E;
  --neutral:#7F8DA4; --neutral-soft:#1F2A3F;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.2);
  --brand:#4C7FE0; --brand-dark:#3A6BCB;
  --sidebar-bg:#0A1426; --sidebar-bg-active:#2F5DB8;
  color-scheme: dark;
}
*{box-sizing:border-box;}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font); font-size:14px; line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:var(--font); text-wrap:balance; margin:0; letter-spacing:-.01em;}
/* números alinhados (tabular) na mesma fonte do resto, em vez de fonte de máquina de escrever */
.mono{font-family:var(--font); font-variant-numeric:tabular-nums; font-weight:500;}
button{font:inherit; cursor:pointer;}
input,select,textarea{font:inherit; color:inherit;}
a{color:var(--accent);}

/* ---------------- casca: menu lateral ---------------- */
.shell{display:flex; min-height:100vh;}
.side{
  width:260px; flex:none; background:var(--sidebar-bg); color:var(--sidebar-text);
  padding:22px 14px 16px; display:flex; flex-direction:column; gap:6px;
  position:sticky; top:0; height:100vh; overflow-y:auto;
}
.brand{display:flex; align-items:center; gap:11px; padding:0 8px 20px; border-bottom:1px solid var(--sidebar-border); margin-bottom:18px;}
.brand img{width:38px; height:38px; border-radius:9px; flex:none; display:block; background:#fff; object-fit:contain;}
.brand .txt{display:flex; flex-direction:column; gap:1px; min-width:0;}
.brand .k{font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--sidebar-text-faint); font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.brand .v{font-weight:700; font-size:15px; color:var(--sidebar-text); line-height:1.25;}
.nav-section{
  font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--sidebar-text-faint); padding:0 10px 10px;
}
.nav{display:flex; flex-direction:column; gap:4px;}
.nav button{
  text-align:left; background:none; border:none; border-radius:10px;
  padding:11px 12px; color:var(--sidebar-text-muted); font-weight:500; font-size:14.5px;
  display:flex; align-items:center; gap:12px; transition:background .12s, color .12s;
}
.nav button:hover{background:rgba(255,255,255,.06); color:var(--sidebar-text);}
.nav button.active{background:var(--sidebar-bg-active); color:#fff; font-weight:600; box-shadow:0 4px 14px rgba(47,93,184,.35);}
.nav button:focus-visible{outline:2px solid #8DB2F5; outline-offset:2px;}
.nav-ico{width:19px; height:19px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;}
.nav-lbl{flex:1; min-width:0;}
.nav-chev{width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; opacity:0;}
.nav button.active .nav-chev{opacity:.9;}

.side-user{margin-top:auto; padding:16px 8px 2px; border-top:1px solid var(--sidebar-border);}
.side-user-row{display:flex; align-items:center; gap:11px;}
.avatar{
  width:38px; height:38px; border-radius:10px; background:var(--sidebar-bg-active); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; flex:none;
}
.side-user-txt{display:flex; flex-direction:column; min-width:0;}
.side-user-nome{font-weight:600; font-size:14px; color:var(--sidebar-text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.side-user-papel{font-size:12.5px; color:var(--sidebar-text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.side-user-acoes{display:flex; flex-wrap:wrap; gap:6px; margin-top:12px;}
.side-btn{
  background:none; border:1px solid rgba(255,255,255,.18); border-radius:8px; color:var(--sidebar-text);
  font-size:12px; font-weight:500; padding:5px 10px; text-decoration:none; white-space:nowrap;
}
.side-btn:hover{background:rgba(255,255,255,.08);}

/* ---------------- casca: conteúdo ---------------- */
.main{flex:1; min-width:0; display:flex; flex-direction:column;}
.page-head{
  display:flex; align-items:flex-end; gap:16px; flex-wrap:wrap;
  padding:40px 40px 6px; max-width:1480px; width:100%; margin:0 auto;
}
.page-head-txt{flex:1; min-width:240px;}
.eyebrow{font-size:12px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--accent); margin-bottom:8px;}
.page-head h1{font-size:32px; font-weight:800; letter-spacing:-.02em; line-height:1.15;}
.page-sub{margin:8px 0 0; font-size:15px; color:var(--text-muted);}
.page-head-avisos{display:flex; flex-direction:column; align-items:flex-end; gap:4px;}
.spacer{flex:1;}
.field{display:flex; flex-direction:column; gap:5px;}
.field label{font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-faint); font-weight:700;}
select.pill, .pill-btn, summary.pill, input.pill{
  background:var(--surface); border:1px solid var(--border); border-radius:10px;
  padding:9px 12px; font-size:14px; color:var(--text); font-weight:500; min-height:40px;
}
select.pill{
  appearance:none; -webkit-appearance:none; padding-right:34px; min-width:140px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A98AC' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center;
}
select.pill:focus, input.pill:focus, summary.pill:focus-visible{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft);}
summary.pill{display:inline-flex; align-items:center; min-width:130px; justify-content:space-between;}
.who-hint{ font-size:12px; font-weight:600; color:var(--bad); max-width:320px; text-align:right; line-height:1.35; display:none; }
.who-hint.show{ display:block; }

.content{padding:22px 40px 64px; display:flex; flex-direction:column; gap:22px; max-width:1480px; width:100%; margin:0 auto;}

/* ---------------- cartões de indicador (Painel) ---------------- */
.kpis{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:18px;}
.kpi{
  background:var(--surface); border:1px solid var(--border); border-top:3px solid var(--neutral);
  border-radius:var(--radius); padding:20px 22px 18px; box-shadow:var(--shadow);
  display:flex; flex-direction:column; align-items:flex-start; text-align:left; color:inherit;
  transition:transform .12s, box-shadow .12s;
}
.kpi:hover{transform:translateY(-1px); box-shadow:0 6px 22px rgba(15,27,45,.08);}
.kpi:focus-visible{outline:2px solid var(--accent); outline-offset:2px;}
.kpi-l{font-size:14.5px; font-weight:600; color:var(--text-muted);}
.kpi-n{font-size:40px; font-weight:800; letter-spacing:-.03em; line-height:1.1; margin-top:8px; font-variant-numeric:tabular-nums;}
.kpi-extra{font-size:12px; color:var(--text-faint); margin-top:2px; min-height:18px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.kpi-link{display:inline-flex; align-items:center; gap:4px; margin-top:auto; padding-top:12px; font-size:13px; font-weight:600; color:var(--text-muted);}
.kpi-link svg{width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round;}
.kpi:hover .kpi-link{color:var(--accent);}
.kpi.pend{border-top-color:var(--warn);}
.kpi.andamento{border-top-color:var(--accent);}
.kpi.bad{border-top-color:var(--bad);}
.kpi.bad.tem .kpi-n{color:var(--bad);}
.kpi.ok{border-top-color:var(--ok);}
.kpi.neutro{border-top-color:var(--neutral);}

/* gráfico (esquerda, mais largo) + próximos prazos (direita) */
.dash-grid{display:grid; grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr); gap:22px; align-items:start;}
.head-rich{padding:22px 26px 14px; border-bottom:none; align-items:flex-start;}
.head-txt{display:flex; flex-direction:column; gap:4px; min-width:0;}
.head-rich h2{font-size:19px; font-weight:700;}
.panel-sub{font-size:13.5px; color:var(--text-muted);}
.chip-total{background:var(--surface-2); color:var(--text-muted); border-radius:8px; padding:6px 11px; font-size:12.5px; font-weight:700; white-space:nowrap;}
.head-ico{width:24px; height:24px; fill:none; stroke:var(--text); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex:none;}
.panel-toolbar{display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; padding:0 26px 14px; border-bottom:1px solid var(--border);}
.panel-toolbar .field label{font-size:10.5px;}
.panel-toolbar select.pill{min-height:34px; padding-top:6px; padding-bottom:6px; font-size:13px;}

.prazo-lista{display:flex; flex-direction:column; padding:0 26px;}
.prazo-item{
  display:flex; align-items:center; gap:14px; width:100%; background:none; border:none;
  border-top:1px solid var(--border); padding:14px 0; text-align:left; color:inherit;
}
.prazo-item:hover .prazo-nome{color:var(--accent);}
.prazo-item:focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:8px;}
.prazo-data{
  width:54px; flex:none; border-radius:10px; background:var(--accent-soft); color:var(--accent);
  display:flex; flex-direction:column; align-items:center; padding:6px 0 5px; line-height:1.1;
}
.prazo-data b{font-size:19px; font-weight:800;}
.prazo-data small{font-size:11px; font-weight:600; opacity:.85;}
.prazo-data.atrasada{background:var(--bad-soft); color:var(--bad);}
.prazo-txt{display:flex; flex-direction:column; gap:2px; min-width:0; flex:1;}
.prazo-nome{font-weight:700; font-size:14.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.prazo-sub{font-size:12.5px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.prazo-mais{
  display:block; width:calc(100% - 52px); margin:4px 26px 18px; background:var(--surface-2); border:none;
  border-radius:10px; padding:10px; font-size:13px; font-weight:600; color:var(--text-muted);
}
.prazo-mais:hover{color:var(--accent);}
.painel-prazos .empty{border-top:1px solid var(--border);}
.painel-prazos{padding-bottom:6px;}

.eyebrow-h{font-size:12px !important; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--text-faint);}

.tiles{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px;}
.tile{
  background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:14px 16px;
  display:flex; flex-direction:column; gap:6px; box-shadow:var(--shadow);
}
.tile .n{font-family:var(--font); font-weight:800; font-size:26px; font-variant-numeric:tabular-nums;}
.tile .l{font-size:12px; color:var(--text-muted); font-weight:600;}
.tile .icon{width:30px; height:30px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:15px; margin-bottom:2px;}
.tile.pend{border-top:3px solid var(--warn);}
.tile.pend .icon{background:var(--warn-soft); color:var(--warn);}
.tile.andamento{border-top:3px solid var(--accent);}
.tile.andamento .icon{background:var(--accent-soft); color:var(--accent);}
.tile.ok{border-top:3px solid var(--ok);}
.tile.ok .icon{background:var(--ok-soft); color:var(--ok);}
.tile.bad{border-top:3px solid var(--bad);}
.tile.bad .icon{background:var(--bad-soft); color:var(--bad);}
.tile.neutro{border-top:3px solid var(--text-muted);}
.tile.neutro .icon{background:var(--neutral-soft); color:var(--text-muted);}
.tile.meta{border-top:3px solid var(--text-muted);}
.tile.gauge{flex-direction:row; align-items:center; gap:12px;}
.tile.gauge .ring{flex:none;}
.tile.gauge .ring-text{display:flex; flex-direction:column; gap:2px; min-width:0;}
.tile.gauge .ring-text .n{font-size:20px;}

.panel{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden;}
/* O painel de Filtros precisa de overflow VISÍVEL — os dropdowns de
   múltipla seleção (Filial/Centro de custo/Tipo) são posicionados de forma
   absoluta e, com overflow:hidden no .panel pai, ficavam cortados/espremidos
   contra a borda em vez de flutuar por cima do conteúdo abaixo. */
.panel.panel-filtros{overflow:visible;}
.panel-head{display:flex; align-items:center; gap:14px 18px; padding:18px 24px; border-bottom:1px solid var(--border); flex-wrap:wrap; row-gap:18px;}
.panel-filtros .panel-head{align-items:flex-end;}
.panel-head h2{font-size:16px; font-weight:700;}
.panel-body{padding:4px 0;}
.panel-body.pad{padding:18px 24px 22px;}

/* Filtros em GRADE (v3): toda caixa ocupa a célula inteira, então ficam do
   mesmo tamanho, alinhadas, e usam a largura toda (antes cada caixa tinha a
   largura do próprio texto e sobrava espaço à direita). */
.filters{display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:16px; align-items:end;}
.filters .field{min-width:0;}
.filters .field.largo{grid-column:span 2;}
.filters select.pill, .filters input.pill, .filters .multiselect, .filters .multiselect summary.pill{width:100%; min-width:0;}
.filters .multiselect-panel{min-width:100%;}
.panel-filtros .panel-head{border-bottom:none; padding-bottom:4px;}
.panel-filtros .panel-body.pad{padding:12px 24px 22px;}

/* Filtro de múltipla seleção (Filial/Centro de custo/Tipo) — <details> nativo
   pra abrir/fechar sem JS próprio; o estado aberto/fechado é lembrado em
   state.msAberto porque a tela toda é recriada a cada render(). */
.multiselect{position:relative;}
.multiselect summary{list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:6px; user-select:none;}
.multiselect summary::-webkit-details-marker{display:none;}
.multiselect summary::after{
  content:""; width:12px; height:12px; flex:none; margin-left:10px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A98AC' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center;
}
.multiselect[open] summary::after{transform:rotate(180deg);}
.multiselect-panel{
  position:absolute; z-index:30; top:calc(100% + 4px); left:0; min-width:230px; max-width:300px;
  max-height:260px; overflow-y:auto; background:var(--surface); border:1px solid var(--border); border-radius:10px;
  box-shadow:var(--shadow); padding:8px 10px;
}

.barchart{display:flex; align-items:flex-end; gap:28px; min-height:210px; padding:14px 10px 4px; overflow-x:auto;}
.bar-col{
  display:flex; flex-direction:column; align-items:center; gap:8px; flex:1 1 76px; min-width:72px;
  border:none; background:none; padding:0; font:inherit; color:inherit;
}
.bar-col:hover .bar-seg{filter:brightness(1.08);}
.bar-col:focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:6px;}
.bar-value{font-size:12px; font-weight:700; color:var(--text-muted); font-variant-numeric:tabular-nums;}
.bar-track{
  width:100%; max-width:48px; height:140px; display:flex; flex-direction:column; justify-content:flex-end;
  background:var(--surface-2); border-radius:6px 6px 2px 2px; overflow:hidden; gap:2px;
}
.bar-fill{width:100%; background:var(--accent); border-radius:6px 6px 0 0; min-height:4px;}
.bar-seg{width:100%; min-height:0;}
.bar-seg.pend{background:var(--warn);}
.bar-seg.andamento{background:var(--accent);}
.bar-seg.ok{background:var(--ok);}
.bar-seg.neutro{background:var(--text-muted);}
.bar-seg:first-child{border-radius:6px 6px 0 0;}
.bar-label{font-size:11px; color:var(--text-muted); text-align:center; max-width:92px; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; white-space:normal; line-height:1.3;}
.chart-legend{display:flex; gap:16px; flex-wrap:wrap; font-size:12px; color:var(--text-muted); margin-bottom:4px;}
.chart-legend .dot{width:9px; height:9px; border-radius:50%; display:inline-block; margin-right:5px; vertical-align:middle;}

/* Poucas categorias (até 6) usam rosca — dá pra ver proporção do total de
   cara. Muitas categorias (ex: os 27 centros de custo da Tucumann) usam
   barra HORIZONTAL em vez de rosca: rosca com dezenas de fatias finas fica
   ilegível, barra horizontal continua legível com muito mais linhas do que
   uma barra vertical estreita conseguiria. */
.donut-wrap{display:flex; align-items:center; justify-content:center; gap:28px; flex-wrap:wrap; padding:6px 2px;}
.donut-legend{display:flex; flex-direction:column; gap:4px; flex:1; min-width:200px;}
.donut-legend-item{
  display:flex; align-items:center; gap:8px; font-size:12.5px; background:none; border:none;
  padding:5px 6px; border-radius:6px; cursor:pointer; text-align:left; color:inherit; font:inherit; width:100%;
}
.donut-legend-item:hover{background:var(--surface-2);}
.donut-legend-item:focus-visible{outline:2px solid var(--accent); outline-offset:1px;}
.donut-legend-item .dot{width:10px; height:10px; border-radius:50%; flex:none;}
.donut-legend-item .lbl{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.donut-legend-item .val{font-weight:700; font-variant-numeric:tabular-nums; color:var(--text-muted); flex:none;}

.hbars{display:flex; flex-direction:column; gap:14px; padding:2px;}
.hbar-row{
  display:flex; align-items:center; gap:10px; width:100%; background:none; border:none; padding:2px 0;
  font:inherit; color:inherit; cursor:pointer; text-align:left;
}
.hbar-row:focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:4px;}
.hbar-label{width:200px; flex:none; font-size:13.5px; font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.hbar-track{flex:1; height:9px; background:var(--surface-2); border-radius:99px; overflow:hidden;}
.hbar-fill{display:flex; height:100%; border-radius:99px; overflow:hidden;}
.hbar-seg{height:100%;}
.hbar-row:hover .hbar-seg{filter:brightness(1.08);}
.hbar-value{width:40px; flex:none; text-align:right; font-size:13px; font-weight:600; color:var(--text-muted); font-variant-numeric:tabular-nums;}
/* A linha "N outro(s) agrupado(s)" é um balde, não um item específico —
   separada por uma borda e mais espaço acima pra não parecer só mais uma
   linha igual às outras. */
.hbar-row.hbar-outros{margin-top:6px; padding-top:10px; border-top:1px dashed var(--border); font-style:italic; color:var(--text-muted); cursor:default;}
.hbar-row.hbar-outros .hbar-label{color:var(--text-muted);}

.setor-group{border-top:1px solid var(--border);}
.setor-group:first-child{border-top:none;}
.setor-title{
  padding:12px 24px; font-size:12px; text-transform:uppercase; letter-spacing:.1em; font-weight:700;
  color:var(--text); background:var(--surface-2); border-left:3px solid var(--accent);
}
table{width:100%; border-collapse:collapse;}
table.tbl-pendencias{table-layout:fixed;}
table.tbl-pendencias col.c-atividade{width:27%;}
table.tbl-pendencias col.c-filial{width:12%;}
table.tbl-pendencias col.c-cc{width:12%;}
table.tbl-pendencias col.c-prazo{width:11%;}
table.tbl-pendencias col.c-resp{width:13%;}
table.tbl-pendencias col.c-status{width:16%;}
table.tbl-pendencias col.c-atraso{width:9%;}
table.tbl-pendencias td.mono, table.tbl-pendencias th{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
table.tbl-pendencias .status-select{width:100%; max-width:100%;}
th{
  text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-faint);
  padding:12px 24px; font-weight:700; border-bottom:1px solid var(--border); background:var(--surface);
}
td{padding:13px 24px; border-bottom:1px solid var(--border); vertical-align:middle;}
tbody tr:hover td{background:rgba(47,98,201,.025);}
tr:last-child td{border-bottom:none;}
.overflow-x{overflow-x:auto;}
.item-name{font-weight:600;}
.item-sub{font-size:12px; color:var(--text-muted);}

.badge{
  display:inline-flex; align-items:center; gap:5px; padding:3px 9px; border-radius:99px;
  font-size:11.5px; font-weight:700; white-space:nowrap;
}
.badge.pend{background:var(--warn-soft); color:var(--warn);}
.badge.andamento{background:var(--accent-soft); color:var(--accent);}
.badge.ok{background:var(--ok-soft); color:var(--ok);}
.badge.bad{background:var(--bad-soft); color:var(--bad);}
.badge.arquivada{background:var(--neutral-soft); color:var(--text-faint);}
.badge.neutro{background:var(--neutral-soft); color:var(--text-muted);}
.badge::before{content:""; width:6px; height:6px; border-radius:50%; background:currentColor;}

.btn{
  background:var(--brand); color:var(--brand-ink); border:none; border-radius:10px;
  padding:9px 16px; font-weight:600; font-size:13.5px;
}
.btn:hover{filter:brightness(1.06);}
.btn.ghost{background:none; border:1px solid var(--border); color:var(--text);}
.btn.ghost:hover{background:var(--surface-2);}
.btn.danger{background:var(--bad); color:#fff;}
.btn.sm{padding:7px 12px; font-size:12.5px; border-radius:9px;}
.icon-btn{
  background:none; border:1px solid transparent; border-radius:8px; padding:5px 7px; color:var(--text-muted);
  display:inline-flex; align-items:center; justify-content:center; vertical-align:middle;
}
/* coluna de ações (editar/excluir) lado a lado, sem quebrar */
td:has(> .icon-btn){white-space:nowrap; width:1%; text-align:right;}
.icon-btn:hover{background:var(--surface-2); color:var(--text);}

.status-select{border:1px solid var(--border); border-radius:7px; padding:5px 8px; background:var(--surface); font-size:12.5px; font-weight:600;}

.empty{padding:34px 16px; text-align:center; color:var(--text-muted); font-size:13px;}

.modal-backdrop{
  position:fixed; inset:0; background:rgba(10,14,20,.5); display:flex; align-items:center; justify-content:center;
  padding:20px; z-index:50;
}
.modal{
  background:var(--surface); border-radius:14px; border:1px solid var(--border); width:100%; max-width:480px;
  max-height:90vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,.3);
}
.modal-head{display:flex; align-items:center; padding:16px 18px; border-bottom:1px solid var(--border); gap:10px;}
.modal-head h3{font-size:15px; flex:1;}
.modal-body{padding:18px; display:flex; flex-direction:column; gap:13px;}
.modal-foot{padding:14px 18px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:8px;}
.form-row{display:flex; flex-direction:column; gap:5px;}
.form-row label{font-size:12px; font-weight:600; color:var(--text-muted);}
.form-row input, .form-row select, .form-row textarea{
  border:1px solid var(--border); border-radius:8px; padding:9px 10px; background:var(--surface); width:100%;
}
.form-2col{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.hint{font-size:11.5px; color:var(--text-faint);}
.divider{height:1px; background:var(--border); margin:2px 0;}

/* aviso informativo em azul claro; amarelo fica reservado a "pendente" */
.banner{
  display:flex; gap:10px; align-items:flex-start; padding:14px 18px; border-radius:12px;
  background:var(--accent-soft); color:var(--text); font-size:13px; border:1px solid transparent; line-height:1.5;
}
.banner b{color:inherit;}

.tag-row{display:flex; gap:6px; flex-wrap:wrap;}
.tag{background:var(--surface-2); border:1px solid var(--border); border-radius:7px; padding:3px 8px; font-size:11.5px; color:var(--text-muted); font-weight:600; white-space:nowrap; display:inline-block;}
/* Sinaliza filial/centro de custo com nome repetido dentro da mesma empresa —
   suspeita de cadastro duplicado, que faz o desmembramento gerar duas
   pendências pra algo que devia ser uma coisa só. */
.tag.tag-dup{background:var(--warn-soft); border-color:var(--warn); color:var(--warn);}

.tv-overlay{
  position:fixed; inset:0; z-index:500; background:#0B0E13; color:#F3F5F7;
  display:flex; flex-direction:column; padding:28px 40px 32px; box-sizing:border-box;
  font-family:var(--font);
}
.tv-top{display:flex; align-items:baseline; gap:20px; margin-bottom:20px; flex:none;}
.tv-brand{font-family:var(--font); font-weight:800; font-size:30px;}
.tv-meta{font-size:18px; color:#A7B0BC; flex:1; font-variant-numeric:tabular-nums;}
.tv-close{background:#161B22; border:1px solid #2B323C; color:#F3F5F7; font-size:22px; width:46px; height:46px; border-radius:10px; cursor:pointer; flex:none;}
.tv-close:hover{background:#212832;}
.tv-rotate{background:#161B22; border:1px solid #2B323C; color:#A7B0BC; font-size:14px; font-weight:700; padding:0 16px; height:46px; border-radius:10px; cursor:pointer; flex:none; white-space:nowrap;}
.tv-rotate:hover{background:#212832;}
.tv-rotate.on{background:#1E3A2C; border-color:#2E7D5B; color:#8FE0B8;}
.tv-tiles{display:grid; grid-template-columns:repeat(6,1fr); gap:20px; margin-bottom:22px; flex:none;}
.tv-tile{background:#161B22; border:1px solid #2B323C; border-radius:16px; padding:20px 22px; display:flex; flex-direction:column; gap:6px; border-top:6px solid #2B323C;}
.tv-tile .tv-n{font-family:var(--font); font-weight:800; font-size:58px; line-height:1; font-variant-numeric:tabular-nums;}
.tv-tile .tv-l{font-size:17px; color:#A7B0BC; font-weight:600;}
.tv-tile.pend{border-top-color:#E0AC4E;}
.tv-tile.andamento{border-top-color:#6FA3D6;}
.tv-tile.ok{border-top-color:#5FBF93;}
.tv-tile.bad{border-top-color:#E2716B;}
.tv-tile.neutro{border-top-color:#7B8794;}
.tv-tile.gauge{flex-direction:row; align-items:center; gap:18px; border-top-color:#5FBF93;}
.tv-tile.gauge .tv-n{font-size:44px;}
.tv-chart-panel{flex:1; min-height:0; background:#161B22; border:1px solid #2B323C; border-radius:16px; padding:24px 28px; display:flex; flex-direction:column;}
.tv-chart-head{font-family:var(--font); font-weight:800; font-size:21px; margin-bottom:4px; flex:none;}
.tv-legend{display:flex; gap:24px; font-size:15.5px; color:#A7B0BC; margin-bottom:14px; flex:none;}
.tv-legend .dot{width:13px; height:13px; border-radius:50%; display:inline-block; margin-right:7px; vertical-align:middle;}
.tv-barchart{flex:1; min-height:0; display:flex; align-items:flex-end; gap:24px; overflow-x:auto;}
.tv-bar-col{display:flex; flex-direction:column; align-items:center; gap:10px; flex:1 1 90px; min-width:80px;}
.tv-bar-value{font-size:19px; font-weight:800; font-variant-numeric:tabular-nums;}
.tv-bar-track{width:100%; max-width:70px; display:flex; flex-direction:column; justify-content:flex-end; background:#212832; border-radius:8px 8px 3px 3px; overflow:hidden; gap:3px;}
.tv-bar-seg{width:100%; min-height:0;}
.tv-bar-seg.ok{background:#5FBF93;}
.tv-bar-seg.andamento{background:#6FA3D6;}
.tv-bar-seg.pend{background:#E0AC4E;}
.tv-bar-seg.neutro{background:#7B8794;}
.tv-bar-label{font-size:15.5px; color:#A7B0BC; text-align:center; max-width:120px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; line-height:1.25;}
@media (max-width:1000px){ .tv-tiles{grid-template-columns:repeat(2,1fr);} }

@media (max-width: 1280px){
  .kpis{grid-template-columns:repeat(3,minmax(0,1fr));}
  .dash-grid{grid-template-columns:1fr;}
}
@media (max-width: 900px){
  .side{width:220px;}
  .page-head{padding:28px 20px 4px;}
  .content{padding:18px 20px 48px;}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;}
}
@media (max-width: 760px){
  .shell{flex-direction:column;}
  .side{width:100%; height:auto; position:static; flex-direction:row; flex-wrap:wrap; align-items:center; padding:12px 16px; gap:10px;}
  .brand{border-bottom:none; padding:0; margin:0;}
  .brand img{width:32px; height:32px;}
  .nav-section{display:none;}
  .nav{flex-direction:row; overflow-x:auto; width:100%; order:3;}
  .nav button{padding:8px 10px; font-size:13px; white-space:nowrap;}
  .nav-chev{display:none;}
  .side-user{margin:0 0 0 auto; padding:0; border:none;}
  .side-user-txt, .side-user-row .avatar{display:none;}
  .side-user-acoes{margin:0;}
  .page-head{padding:22px 16px 2px;}
  .page-head h1{font-size:26px;}
  .content{padding:16px 16px 40px;}
  .kpis{grid-template-columns:1fr 1fr;}
  .kpi{padding:16px;}
  .kpi-n{font-size:32px;}
  .hbar-label{width:120px;}
  .form-2col{grid-template-columns:1fr;}
}

/* ---------------- tela de login ---------------- */
#login-screen{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:radial-gradient(1200px 600px at 10% -10%, #1F3A6B 0%, var(--sidebar-bg) 55%); padding:24px;
}
.login-card{
  width:100%; max-width:390px; background:var(--surface); border:1px solid var(--border);
  border-radius:18px; padding:36px 32px; box-shadow:0 24px 60px rgba(0,0,0,.35);
}
.login-card h1{font-size:22px; font-weight:800; margin:0 0 6px; color:var(--text);}
.login-card .sub{font-size:13px; color:var(--text-muted); margin:0 0 20px;}
.login-card .field{margin-bottom:14px;}
.login-card input{
  width:100%; box-sizing:border-box; background:var(--surface-2); border:1px solid var(--border);
  border-radius:10px; padding:11px 13px; font-size:14px; color:var(--text);
}
.login-card input:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft);}
.login-card button[type="submit"]{
  width:100%; margin-top:8px; background:var(--accent); color:var(--accent-ink);
  border:none; border-radius:10px; padding:12px; font-size:14.5px; font-weight:700; cursor:pointer;
}
.login-card button[type="submit"]:disabled{opacity:.6; cursor:default;}
#login-erro, #senha-erro, #link-erro{color:#C0392B; font-size:13px; margin-top:12px; min-height:16px;}
#esqueci-msg{color:var(--text-muted, #475569); font-size:13px; margin-top:12px; line-height:1.5;}
.login-card label{display:block; font-size:12px; font-weight:600; color:var(--text-muted); margin-bottom:5px;}
.login-card .link-btn{
  width:100%; margin-top:8px; background:none; border:none; color:var(--text-muted);
  font-size:13px; cursor:pointer; padding:6px;
}
.top-btn{
  background:var(--surface-2); border:1px solid var(--border); border-radius:8px;
  padding:7px 10px; font-size:13px; color:var(--text); font-weight:600; cursor:pointer;
  text-decoration:none; white-space:nowrap;
}
.visitante-aviso{
  font-size:11px; font-weight:700; color:var(--warn, #B7791F); max-width:220px;
  text-align:right; line-height:1.3;
}



/* ================= v3 — painel executivo ================= */
.passo{display:block; font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); margin-bottom:4px;}
.exec-grid{display:grid; grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr); gap:22px; align-items:stretch;}
.panel.exec{padding:24px 28px; display:flex; flex-direction:column; gap:14px;}
.exec-titulo{font-size:24px; font-weight:800; letter-spacing:-.02em; line-height:1.25;}
.exec-foco{background:var(--accent-soft); border-left:4px solid var(--accent); border-radius:10px; padding:12px 16px; font-size:14px; line-height:1.5;}
.exec-foco span{display:block; font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); margin-bottom:3px;}
.exec-bullets{margin:0; padding-left:20px; display:flex; flex-direction:column; gap:7px; font-size:14px; color:var(--text); line-height:1.45;}
.exec-bullets li::marker{color:var(--accent);}

.panel.alertas{display:flex; flex-direction:column;}
.alertas-lista{display:flex; flex-direction:column; gap:8px; padding:0 22px 20px;}
.alerta{display:flex; align-items:center; gap:10px; width:100%; text-align:left; border:1px solid var(--border); background:var(--surface);
  border-radius:10px; padding:10px 12px; font-size:13.5px; color:var(--text);}
button.alerta:hover{border-color:var(--accent);}
.alerta-ponto{width:9px; height:9px; border-radius:50%; flex:none; background:var(--neutral);}
.alerta.bad{background:var(--bad-soft); border-color:transparent;} .alerta.bad .alerta-ponto{background:var(--bad);}
.alerta.warn{background:var(--warn-soft); border-color:transparent;} .alerta.warn .alerta-ponto{background:var(--warn);}
.alerta.ok .alerta-ponto{background:var(--ok);}
.alerta-txt{flex:1; min-width:0; line-height:1.35;}
.alerta-ver{font-size:12px; font-weight:600; color:var(--accent); flex:none;}

.kpi .meta-barra{position:relative; width:100%; height:7px; border-radius:99px; background:var(--surface-2); margin-top:10px;}
.kpi .meta-fill{position:absolute; left:0; top:0; bottom:0; border-radius:99px; background:var(--ok);}
.kpi .meta-fill.abaixo{background:var(--bad);}
.kpi .meta-marca{position:absolute; top:-4px; bottom:-4px; width:2px; background:var(--text); border-radius:2px; transform:translateX(-1px);}
.kpi .meta-rotulo{font-size:11.5px; color:var(--text-muted); margin-top:6px;}
.kpi-comps{display:flex; flex-direction:column; gap:3px; margin-top:10px; width:100%; border-top:1px solid var(--border); padding-top:9px;}
.kpi-comp{font-size:12px; color:var(--text-muted);}
.kpi-comp b{font-weight:700;}
.kpi-comp.melhor b{color:var(--ok);} .kpi-comp.pior b{color:var(--bad);} .kpi-comp.igual b, .kpi-comp.sem b{color:var(--text-faint); font-weight:600;}
.kpi.prazo{border-top-color:var(--accent);}
.kpi.prazo.tem .kpi-n, .kpi.andamento.tem .kpi-n{color:var(--bad);}
.kpi .kpi-link{display:none;}

/* cada cartão com a altura do próprio conteúdo — sem esticar e deixar vazio embaixo */
.dash-grid{align-items:start;}
.rank{display:flex; flex-direction:column; gap:6px;}
.rank-row{display:grid; grid-template-columns:minmax(120px, 34%) 1fr 44px 52px; align-items:center; gap:12px; width:100%;
  background:none; border:none; padding:7px 6px; border-radius:8px; text-align:left; color:inherit;}
.rank-row:hover{background:var(--surface-2);}
.rank-row:focus-visible{outline:2px solid var(--accent); outline-offset:1px;}
.rank-label{font-size:13.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.rank-atraso{font-size:11px; font-weight:700; color:var(--bad); background:var(--bad-soft); border-radius:6px; padding:1px 6px; margin-left:4px;}
.rank-num{font-weight:700; font-size:14px; text-align:right; font-variant-numeric:tabular-nums;}
.rank-part{font-size:12px; color:var(--text-muted); text-align:right; font-variant-numeric:tabular-nums;}
.quem-sem{margin-top:12px; font-size:13px; color:var(--bad); background:var(--bad-soft); border-radius:8px; padding:9px 12px;}
.prazo-item .badge{flex:none;}

.mini-kpis{display:grid; grid-template-columns:repeat(3,1fr); gap:12px;}
.mini-kpis > div{background:var(--surface-2); border-radius:10px; padding:12px 14px; display:flex; flex-direction:column;}
.mini-kpis b{font-size:26px; font-weight:800; line-height:1.1;}
.mini-kpis span{font-size:12px; color:var(--text-muted);}
.mini-kpis .bad b{color:var(--bad);}
.mini-lista{margin-top:14px; display:flex; flex-direction:column;}
.mini-lista > div{display:flex; justify-content:space-between; padding:8px 2px; border-top:1px solid var(--border); font-size:13.5px;}

/* menu Manutenção (recolhido) */
.menu-manut{position:relative;}
.menu-manut summary{list-style:none; cursor:pointer;}
.menu-manut summary::-webkit-details-marker{display:none;}
.menu-manut-itens{position:absolute; right:0; top:calc(100% + 6px); z-index:40; background:var(--surface); border:1px solid var(--border);
  border-radius:12px; box-shadow:0 12px 32px rgba(15,27,45,.14); padding:8px; display:flex; flex-direction:column; gap:6px; min-width:320px;}
.menu-manut-itens .btn{text-align:left; width:100%;}

/* ================= v3 — formulários em seções ================= */
.modal{max-width:720px;}
.modal-body{padding:22px 26px 24px; gap:16px;}
.modal-head{padding:18px 26px;}
.modal-foot{padding:16px 26px;}
.modal-head h3{font-size:17px; font-weight:700;}
.form-secao{margin-top:6px; padding-top:16px; border-top:1px solid var(--border);}
.modal-body > .form-secao:first-child{margin-top:0; padding-top:0; border-top:none;}
.form-secao h4{margin:0; font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--accent);}
.form-secao p{margin:4px 0 0; font-size:13px; color:var(--text-muted);}
.form-row label{font-size:12.5px; font-weight:600; color:var(--text);}
.form-row input, .form-row select, .form-row textarea{border-radius:10px; padding:10px 12px; font-size:14px;}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft);}
.form-2col{gap:16px;}
.opcao{display:flex; align-items:flex-start; gap:12px; border:1px solid var(--border); border-radius:12px; padding:12px 14px; cursor:pointer; background:var(--surface);}
.opcao:hover{border-color:var(--accent);}
.opcao input{width:18px; height:18px; margin:2px 0 0; flex:none; accent-color:var(--accent);}
.opcao span{display:flex; flex-direction:column; gap:2px;}
.opcao b{font-size:14px; font-weight:600;}
.opcao small{font-size:12.5px; color:var(--text-muted); font-weight:400;}
.modal .hint{font-size:12px; color:var(--text-muted); line-height:1.45;}

/* tela Sugestões e melhorias */
.form-grid{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px;}
.form-grid .largo{grid-column:1 / -1;}
.form-grid .form-row input, .form-grid .form-row select, .form-grid .form-row textarea{width:100%; border:1px solid var(--border); background:var(--surface);}
.novidades{display:flex; flex-direction:column; gap:14px;}

@media (max-width: 1280px){
  .exec-grid{grid-template-columns:1fr;}
}
@media (max-width: 760px){
  .filters{grid-template-columns:1fr 1fr;}
  .filters .field.largo{grid-column:1 / -1;}
  .exec-titulo{font-size:20px;}
  .panel.exec{padding:18px;}
  .rank-row{grid-template-columns:minmax(90px, 38%) 1fr 36px; }
  .rank-part{display:none;}
  .form-grid{grid-template-columns:1fr;}
  .mini-kpis b{font-size:20px;}
  .modal-body{padding:18px;}
}

/* selects dos formulários com a mesma seta dos filtros */
.form-row select{appearance:none; -webkit-appearance:none; padding-right:34px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A98AC' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center;}

/* celular: cartões encolhem de verdade (minmax 0) e a etiqueta da ação vai
   para baixo do nome, em vez de espremer o texto */
.kpi{min-width:0;}
@media (max-width: 760px){
  .kpis{grid-template-columns:repeat(2, minmax(0,1fr));}
  .prazo-item{flex-wrap:wrap;}
  .prazo-item .badge{margin-left:68px;}
  .prazo-txt{flex:1 1 calc(100% - 70px);}
}

/* ================= setores do cliente ================= */
.setores-lista{display:flex; flex-direction:column; gap:8px;}
.setor-linha{display:flex; align-items:center; gap:10px; border:1px solid var(--border); border-radius:12px; padding:8px 10px;}
.setor-ordem{display:flex; flex-direction:column;}
.setor-ordem .icon-btn{padding:0 6px; font-size:10px; line-height:1.4;}
.setor-ordem .icon-btn:disabled, .setor-linha .icon-btn:disabled{opacity:.3; cursor:default;}
.setor-nome{flex:1; min-width:0; border:1px solid var(--border); border-radius:8px; padding:8px 10px; background:var(--surface);}
.setor-qtd{white-space:nowrap;}


/* ================= dicas ao passar o mouse (src/dicas.js) ================= */
#dica{
  position:fixed; z-index:1000; max-width:300px; padding:8px 11px; border-radius:9px;
  background:#0F1B2D; color:#F2F5FA; font-size:12.5px; line-height:1.45; font-weight:500;
  box-shadow:0 8px 24px rgba(15,27,45,.25);
  pointer-events:none;           /* nunca bloqueia clique nem seleção */
  opacity:0; transform:translateY(3px); transition:opacity .12s, transform .12s;
}
#dica.visivel{opacity:1; transform:none;}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) #dica{background:#E8EDF5; color:#0F1B2D;} }
:root[data-theme="dark"] #dica{background:#E8EDF5; color:#0F1B2D;}

/* POP por atividade (01/10/2026) */
.pop-tag{background:var(--accent-soft); color:var(--accent-ink); border:1px solid transparent; border-radius:6px; padding:1px 6px; font-size:11px; font-weight:600; cursor:pointer; margin-left:6px; vertical-align:middle; font-family:inherit;}
.pop-tag:hover{border-color:var(--accent);}
/* Botão do POP na lista de Atividades (03/10/2026: o ícone apagado passava despercebido) */
.btn-pop{font:inherit; font-size:12px; font-weight:600; padding:4px 10px; border-radius:7px; cursor:pointer; margin-right:6px; white-space:nowrap; border:1px dashed var(--accent); color:var(--accent-ink); background:transparent;}
.btn-pop:hover{background:var(--accent-soft);}
.btn-pop.tem{border-style:solid; background:var(--accent-soft);}
.pop-doc h4{font-size:13px; margin:14px 0 6px;}
.pop-doc p{margin:0; line-height:1.5;}
.pop-meta{font-size:12px; color:var(--text-muted);}
.pop-tabela{width:100%; border-collapse:collapse; font-size:12.5px;}
.pop-tabela th, .pop-tabela td{border:1px solid var(--border); padding:6px 8px; text-align:left; vertical-align:top;}
.pop-tabela th{background:var(--neutral-soft); font-weight:600;}
.pop-passo{border:1px solid var(--border); border-radius:8px; padding:10px 12px; display:flex; flex-direction:column; gap:10px;}
.pop-passo-head{display:flex; justify-content:space-between; align-items:center; font-size:12.5px;}
#pop-passos{display:flex; flex-direction:column; gap:10px;}
.pop-tabela-wrap{overflow-x:auto; max-width:100%;}
.pop-tabela-wrap .pop-tabela{min-width:520px;}

/* Olho para ver a senha (04/10/2026) */
.senha-caixa{position:relative;}
.senha-caixa input{padding-right:42px !important;}
.senha-olho{position:absolute; right:6px; top:50%; transform:translateY(-50%); background:none; border:none; cursor:pointer; font-size:16px; padding:4px 6px; border-radius:6px; opacity:.55; line-height:1;}
.senha-olho:hover, .senha-olho.ativo{opacity:1; background:var(--accent-soft);}

/* Governança (04/10/2026) */
.gov-abas{display:flex; gap:6px; margin-bottom:16px; flex-wrap:wrap; border-bottom:1px solid var(--border);}
.gov-aba{font:inherit; font-size:13.5px; font-weight:600; background:none; border:none; border-bottom:2px solid transparent; padding:9px 14px; color:var(--text-muted); cursor:pointer; margin-bottom:-1px;}
.gov-aba:hover{color:var(--text);}
.gov-aba.ativa{color:var(--accent-ink); border-bottom-color:var(--accent);}
.gov-kpis{display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin-bottom:16px;}
.gov-kpi{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:14px 16px;}
.gov-kpi-n{font-size:24px; font-weight:700;}
.gov-kpi-l{font-size:12.5px; color:var(--text-muted);}
.gov-kpi.ok .gov-kpi-n{color:var(--ok);} .gov-kpi.pend .gov-kpi-n{color:var(--warn);} .gov-kpi.bad .gov-kpi-n{color:var(--bad);}
.guia-progresso{margin-bottom:16px;}
.guia-barra{height:8px; background:var(--neutral-soft); border-radius:6px; overflow:hidden; margin-bottom:6px;}
.guia-barra span{display:block; height:100%; background:var(--ok);}
.guia-passo{display:flex; gap:14px; align-items:flex-start; padding:14px 0; border-top:1px solid var(--border);}
.guia-passo:first-of-type{border-top:none;}
.guia-txt{flex:1; display:flex; flex-direction:column; gap:3px; line-height:1.45;}
.guia-marca{flex:0 0 28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; background:var(--neutral-soft); color:var(--text-muted);}
.guia-marca.ok{background:var(--ok-soft); color:var(--ok);}
.guia-marca.pend{background:var(--warn-soft); color:var(--warn);}
.guia-st{font-size:12px; color:var(--ok); font-weight:600;}
.guia-st.pend{color:var(--warn);}
.btn.ativo{background:var(--accent-soft); border-color:var(--accent);}
.guia-aviso{align-items:center;}
.guia-aviso .btn{margin-left:6px;}
