/* Escritório Virtual · xTorus — preto, branco e prata na moldura; cores dos setores no conteúdo. */
:root {
  --preto: #0b0c0e;
  --preto-2: #17191d;
  --tinta: #12161c;
  --suave: #5b6471;
  --fraco: #8a929d;
  --linha: #e2e5ea;
  --linha-2: #eef0f3;
  --fundo: #f3f4f6;
  --cartao: #ffffff;
  --prata: #c9ced6;
  --ok: #1d8656;
  --validar: #b5730f;
  --construcao: #2f63c8;
  --ambar: #c98a12;
  --ambar-f: #fff6e3;
  --perigo: #c2372f;
  --sombra: 0 1px 2px rgb(16 24 40 / .05), 0 1px 3px rgb(16 24 40 / .06);
  --sombra-2: 0 12px 32px -8px rgb(16 24 40 / .22), 0 4px 10px -4px rgb(16 24 40 / .12);
  --raio: 14px;
  --fonte: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--fonte); font-size: 14.5px; line-height: 1.45; color: var(--tinta);
  background: var(--fundo); font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #3a74e0; outline-offset: 2px; border-radius: 6px; }
::selection { background: rgb(12 14 18 / .14); }

/* ------------------------------------------------------------------ topo */
.topo {
  position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  min-height: 62px; padding: 0 24px; background: var(--preto); color: #fff;
  background-image: radial-gradient(70% 140% at 0% 0%, rgb(255 255 255 / .07), transparent 60%);
  border-bottom: 1px solid #000;
}
.topo-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.marca { display: flex; align-items: center; height: 40px; }
.marca img { display: block; width: 112px; height: auto; }
.marca-sep { width: 1px; height: 26px; background: rgb(255 255 255 / .18); }
.marca-t { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.marca-t b { font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.marca-t small { font-size: 11.5px; color: #9aa1ab; font-weight: 500; }
.abas { display: flex; gap: 4px; justify-self: center; }
.abas a {
  position: relative; padding: 9px 14px; border-radius: 9px; color: #a9b0ba; text-decoration: none; font-weight: 600; font-size: 13.5px;
  transition: color .15s, background .15s;
}
.abas a:hover { color: #fff; background: rgb(255 255 255 / .06); }
.abas a.ativa { color: #fff; background: rgb(255 255 255 / .1); }
.abas a.ativa::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -11px; height: 2px; border-radius: 2px; background: #fff; }
.topo-r { display: flex; align-items: center; gap: 10px; }

.busca { position: relative; display: flex; align-items: center; }
.busca > svg { position: absolute; left: 11px; width: 16px; height: 16px; fill: none; stroke: #8f96a1; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.busca input {
  width: 268px; height: 36px; padding: 0 34px 0 34px; border-radius: 10px; border: 1px solid rgb(255 255 255 / .12);
  background: rgb(255 255 255 / .07); color: #fff; outline: none; transition: border-color .15s, background .15s, width .2s;
}
.busca input::placeholder { color: #8f96a1; }
.busca input:focus { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .3); }
.busca input::-webkit-search-cancel-button { display: none; }
.busca kbd {
  position: absolute; right: 9px; font: 600 11px var(--fonte); color: #9aa1ab; border: 1px solid rgb(255 255 255 / .18);
  border-radius: 5px; padding: 1px 6px; pointer-events: none;
}
.busca input:focus ~ kbd { display: none; }
.busca-r {
  position: absolute; top: calc(100% + 8px); right: 0; width: 380px; max-height: 70vh; overflow: auto; padding: 6px;
  background: #fff; color: var(--tinta); border-radius: 12px; box-shadow: var(--sombra-2); border: 1px solid var(--linha); display: none;
}
.busca-r.aberta { display: block; }
.busca-r .r-t { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fraco); padding: 8px 10px 4px; }
.busca-r button { display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 8px; }
.busca-r button:hover, .busca-r button.sel { background: var(--fundo); }
.busca-r .r-sub { display: block; font-size: 12px; color: var(--suave); }
.busca-r .vazio { padding: 14px 10px; color: var(--suave); }

.b-confirmar {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 13px; border-radius: 10px;
  border: 1px solid rgb(240 180 60 / .45); background: rgb(240 180 60 / .12); color: #ffd98a; font-weight: 700; font-size: 13px;
}
.b-confirmar b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; background: #f0b43c; color: #1a1200; display: grid; place-items: center; font-size: 12px; }
.b-confirmar.zero { border-color: rgb(255 255 255 / .14); background: rgb(255 255 255 / .06); color: #c4c9d0; }
.b-confirmar.zero b { background: rgb(255 255 255 / .16); color: #fff; }
.vivo { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #9aa1ab; white-space: nowrap; }
.vivo i { width: 8px; height: 8px; border-radius: 50%; background: #6b7280; box-shadow: 0 0 0 3px rgb(107 114 128 / .25); }
.vivo.on i { background: #34d27b; box-shadow: 0 0 0 3px rgb(52 210 123 / .22); animation: pulsa 2.4s ease-in-out infinite; }
.vivo.off i { background: #f0b43c; box-shadow: 0 0 0 3px rgb(240 180 60 / .25); }
@keyframes pulsa { 50% { box-shadow: 0 0 0 6px rgb(52 210 123 / .06); } }

.ic {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 0; background: none; color: var(--suave);
  transition: background .15s, color .15s; flex: none;
}
.ic svg { width: 18px; height: 18px; fill: currentColor; }
.ic svg.tr { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic:hover { background: var(--linha-2); color: var(--tinta); }
.ic-claro { color: #c4c9d0; width: 36px; height: 36px; }
.ic-claro:hover { background: rgb(255 255 255 / .1); color: #fff; }

/* ------------------------------------------------------------------ página */
main { max-width: 1520px; margin: 0 auto; padding: 26px 28px 80px; }
.carregando { padding: 80px 0; text-align: center; color: var(--suave); }
.cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.cab h1 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.cab p { margin: 6px 0 0; color: var(--suave); max-width: 720px; }
.numeros { display: flex; gap: 8px; flex-wrap: wrap; }
.numero { display: flex; flex-direction: column; min-width: 92px; padding: 9px 14px; background: var(--cartao); border: 1px solid var(--linha); border-radius: 12px; box-shadow: var(--sombra); }
.numero b { font-size: 20px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.numero span { font-size: 12px; color: var(--suave); font-weight: 600; }
.numero.alerta b { color: var(--validar); }
button.numero { font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s; }
button.numero:hover { border-color: #f0c66e; }
.dica { font-size: 12.5px; color: var(--fraco); margin: -8px 0 18px; }
.dica kbd { font: 600 11px var(--fonte); border: 1px solid var(--linha); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: #fff; color: var(--suave); }

.botao {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--linha);
  background: #fff; font-weight: 700; font-size: 13px; box-shadow: var(--sombra); transition: background .15s, border-color .15s;
}
.botao:hover { border-color: #cdd2d9; background: #fafbfc; }
.botao.escuro { background: var(--preto); color: #fff; border-color: var(--preto); }
.botao.escuro:hover { background: #24272d; }
.botao svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* ------------------------------------------------------------------ organograma */
.org { position: relative; }
.org-linhas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.org-linhas path { fill: none; stroke: #c3c9d1; stroke-width: 1.5; }
.org-topo { position: relative; z-index: 1; display: flex; justify-content: center; gap: 18px; margin-bottom: 44px; }
.org-topo .dep { width: min(640px, 100%); }
.org-deps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: start; }

.dep {
  --c: #5b6472;
  position: relative; display: flex; flex-direction: column; background: var(--cartao); border: 1px solid var(--linha);
  border-radius: var(--raio); box-shadow: var(--sombra); overflow: clip; transition: box-shadow .2s, transform .2s;
}
.dep.alvo { box-shadow: 0 0 0 2px var(--c), var(--sombra-2); }
.dep-h { position: relative; padding: 14px 12px 13px 16px; background: var(--c); color: #fff; }
.dep-h::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgb(255 255 255 / .12), transparent 55%); pointer-events: none; }
.dep-t { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; }
.dep-t h2 { flex: 1; margin: 0; font-size: 13.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; cursor: text; min-width: 0; overflow-wrap: anywhere; }
.dep-t .ic { color: rgb(255 255 255 / .8); width: 28px; height: 28px; }
.dep-t .ic:hover { background: rgb(255 255 255 / .16); color: #fff; }
.dep-et { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.dep-et button, .dep-et span {
  height: 22px; min-width: 30px; padding: 0 7px; border-radius: 6px; border: 0; background: rgb(255 255 255 / .18); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em; display: inline-grid; place-items: center;
}
.dep-et button:hover { background: rgb(255 255 255 / .32); }
.dep-et .todas { padding: 0 9px; }
.dep-et .sem { background: rgb(255 255 255 / .1); color: rgb(255 255 255 / .75); font-weight: 600; }
.dep-b { padding: 6px 8px 8px; display: flex; flex-direction: column; }
.org-topo .dep-b { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 10px; }
.dep-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; border-top: 1px solid var(--linha-2); font-size: 12px; color: var(--suave); font-weight: 600; margin-top: auto; }
.dep-f button { border: 0; background: none; padding: 4px 6px; margin-right: -6px; border-radius: 6px; font-weight: 700; color: var(--c); }
.dep-f button:hover { background: var(--linha-2); }

.grupo { padding: 8px 6px 6px; border-radius: 10px; }
.grupo + .grupo { border-top: 1px dashed var(--linha); border-radius: 0; margin-top: 4px; padding-top: 12px; }
.org-topo .grupo-novo { grid-column: 1 / -1; }
.org-topo .grupo + .grupo { border-top: 0; margin-top: 0; padding-top: 8px; }
.grupo-h { display: flex; align-items: center; gap: 6px; padding: 0 2px 0 6px; min-height: 28px; }
.grupo-h h3 { margin: 0; font-size: 13px; font-weight: 800; color: var(--c); cursor: text; }
.grupo-h .cont { font-size: 11.5px; font-weight: 700; color: var(--fraco); }
.grupo-h .ic { margin-left: auto; width: 26px; height: 26px; opacity: 0; }
.grupo:hover .grupo-h .ic, .grupo-h .ic:focus-visible, .grupo-h .ic[aria-expanded="true"] { opacity: 1; }
.grupo-d { margin: 0 6px 4px; font-size: 12px; color: var(--suave); cursor: text; }
.grupo-d.vazia { color: var(--fraco); font-style: italic; display: none; }
.grupo:hover .grupo-d.vazia { display: block; }

.pessoas { list-style: none; margin: 2px 0 0; padding: 0; min-height: 6px; border-radius: 9px; transition: background .15s; }
.pessoas.drop { background: color-mix(in srgb, var(--c) 9%, transparent); outline: 1.5px dashed color-mix(in srgb, var(--c) 55%, transparent); }
.pessoa {
  display: flex; align-items: center; gap: 9px; padding: 5px 6px; border-radius: 9px; cursor: pointer; user-select: none;
  transition: background .12s;
}
.pessoa:hover { background: var(--fundo); }
.pessoa.arrastando { opacity: .4; }
.pessoa.antes { box-shadow: inset 0 2px 0 var(--c); }
.pessoa.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background: color-mix(in srgb, var(--c) 22%, #fff); } }
.av {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .02em;
  background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 85%, #000);
}
.pn { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.pn b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.pn small { font-size: 11.5px; color: var(--suave); font-weight: 600; }
.pessoa.rasu .pn b { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--fraco); }
.pessoa.rasu .av { filter: grayscale(1); opacity: .6; }
.selo { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; padding: 2px 6px; border-radius: 5px; text-transform: uppercase; }
.selo.conf { background: var(--ambar-f); color: #8a5a00; border: 1px solid #f3d18b; }
.selo.ras { background: var(--linha-2); color: var(--suave); }
.item-t { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.item-t::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--c); flex: none; }
.item-t:hover { background: var(--fundo); }

.add {
  display: block; width: 100%; margin-top: 4px; height: 34px; padding: 0 10px 0 32px; border-radius: 9px; border: 1px dashed transparent;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a929d' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") no-repeat 10px 50% / 14px;
  outline: none; color: var(--tinta); transition: border-color .15s, background-color .15s;
}
.add::placeholder { color: var(--fraco); font-weight: 600; }
.add:hover { border-color: var(--linha); }
.add:focus { border-color: var(--c); border-style: solid; background-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 15%, transparent); }
.grupo-novo { margin: 6px 6px 2px; padding: 7px 8px; border: 0; background: none; border-radius: 8px; color: var(--fraco); font-weight: 700; font-size: 12.5px; text-align: left; }
.grupo-novo:hover { background: var(--fundo); color: var(--tinta); }

.dep-novo {
  min-height: 160px; border: 1.5px dashed #cdd2d9; border-radius: var(--raio); background: transparent; color: var(--suave); font-weight: 700;
  display: grid; place-items: center; align-content: center; gap: 6px; transition: border-color .15s, background .15s, color .15s;
}
.dep-novo:hover { border-color: #9aa1ab; background: #fff; color: var(--tinta); }
.dep-novo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.edit-in {
  width: 100%; border: 1px solid var(--c, #3a74e0); border-radius: 7px; padding: 3px 7px; outline: none; background: #fff; color: var(--tinta);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #3a74e0) 18%, transparent); font-weight: inherit; letter-spacing: normal; text-transform: none;
}

/* ------------------------------------------------------------------ processos */
.filtros { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.chip {
  --c: #12161c;
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--linha);
  background: #fff; font-weight: 700; font-size: 13px; color: var(--tinta); transition: background .15s, border-color .15s, color .15s;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chip small { font-weight: 700; color: var(--fraco); }
.chip:hover { border-color: color-mix(in srgb, var(--c) 45%, #fff); }
.chip.ativo { background: var(--c); border-color: var(--c); color: #fff; }
.chip.ativo i { background: #fff; }
.chip.ativo small { color: rgb(255 255 255 / .75); }

.painel-setor {
  --c: #12161c;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0; margin-bottom: 20px; background: #fff;
  border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); overflow: clip;
}
.ps-fluxo { padding: 18px 20px; border-left: 5px solid var(--c); }
.ps-fluxo h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.ps-fluxo > p { margin: 2px 0 14px; color: var(--suave); font-weight: 600; font-size: 13px; }
.ps-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ps-lista li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.ps-lista li:hover { background: var(--fundo); }
.ps-lista .n { font-size: 17px; font-weight: 800; color: var(--c); line-height: 1.2; }
.ps-lista b { display: block; font-weight: 700; }
.ps-lista .hand { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-size: 12.5px; color: var(--suave); }
.ps-lista .hand span { display: inline-flex; align-items: center; gap: 5px; }
.ps-lista .hand i { width: 7px; height: 7px; border-radius: 50%; background: var(--hc, #9aa1ab); }
.ps-equipe { padding: 18px 20px; background: #fafbfc; border-left: 1px solid var(--linha-2); }
.ps-equipe h3 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--suave); }
.ps-equipe h4 { margin: 12px 0 6px; font-size: 13px; color: var(--c); }
.nomes { display: flex; flex-wrap: wrap; gap: 6px; }
.nome { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: #fff; border: 1px solid var(--linha); font-weight: 600; font-size: 13px; cursor: pointer; }
.nome .av { width: 22px; height: 22px; font-size: 9.5px; }
.nome:hover { border-color: #cdd2d9; }
.nome.rasu { text-decoration: line-through; color: var(--fraco); }
.ps-vazio { color: var(--fraco); font-size: 13px; }

.secao-t { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 10px; }
.secao-t h2 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--suave); }
.secao-t .leg { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--suave); font-weight: 600; }
.leg span { display: inline-flex; align-items: center; gap: 6px; }
.leg i { width: 10px; height: 10px; border-radius: 3px; }

.mapa-wrap { position: relative; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); overflow-x: auto; }
.mapa {
  --lane: 138px; --col: 100px;
  position: relative; display: grid; grid-template-columns: var(--lane) repeat(var(--n), minmax(var(--col), 1fr));
  grid-auto-rows: minmax(92px, auto); min-width: calc(var(--lane) + var(--n) * var(--col));
}
.mapa-svg { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 1; }
.mapa-svg .l { fill: none; stroke: #b9c0c9; stroke-width: 1.6; }
.mapa-svg .l.on { stroke: var(--hc); stroke-width: 2.2; }
.mapa-svg .l.dim { opacity: .35; }
.mapa-svg .l.duplo { stroke-dasharray: 3 4; stroke: #9aa1ab; }
.mapa-cab { grid-row: 1; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--fraco); border-bottom: 1px solid var(--linha-2); min-height: 34px; text-transform: uppercase; }
.mapa-cab.l { justify-items: start; padding-left: 16px; }
.lane-l {
  --c: #5b6472;
  grid-column: 1; position: sticky; left: 0; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 10px 12px 10px 14px; background: #fff;
  border-right: 1px solid var(--linha-2); border-bottom: 1px solid var(--linha-2); font-weight: 800; font-size: 12.5px; cursor: pointer;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.25;
}
.lane-l::before { content: ""; flex: none; width: 4px; align-self: stretch; border-radius: 3px; background: var(--c); }
.lane-l:hover { background: #fafbfc; }
.lane-bg { --c: #5b6472; grid-column: 2 / -1; border-bottom: 1px solid var(--linha-2); background: color-mix(in srgb, var(--c) 4%, #fff); }
.lane-dir svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lane-dir { grid-column: 2 / -1; display: flex; align-items: center; margin: 10px 12px; padding: 0 16px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--c) 45%, #fff); background: color-mix(in srgb, var(--c) 6%, #fff); color: var(--c); font-weight: 700; font-size: 13px; }
.mapa.filtrado .lane-l:not(.on), .mapa.filtrado .lane-bg:not(.on) { opacity: .45; }
.no {
  --c: #5b6472;
  position: relative; z-index: 2; align-self: center; justify-self: center; width: calc(100% - 20px); min-height: 66px; margin: 12px 0; padding: 7px 7px 8px 8px;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); background: #fff; text-align: left;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 25%, #fff), var(--sombra); transition: transform .15s, box-shadow .15s, opacity .2s;
  display: flex; flex-direction: column; gap: 3px;
}
.no:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--c), var(--sombra-2); }
.no .nn { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 800; color: var(--c); line-height: 1; }
.no .nt { font-size: 11px; font-weight: 700; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; color: var(--tinta); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.st-dot.ok { background: var(--ok); }
.st-dot.validar { background: var(--validar); box-shadow: 0 0 0 3px rgb(181 115 15 / .18); }
.st-dot.construcao { background: var(--construcao); box-shadow: 0 0 0 3px rgb(47 99 200 / .16); }
.mapa.filtrado .no:not(.on) { opacity: .32; }
.mapa.filtrado .no.on { box-shadow: 0 0 0 2px var(--c), var(--sombra); }

.etapas ul { list-style: none; margin: 0; padding: 0; }
.etapas { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); overflow: clip; }
.etapa-l { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 13px 18px; cursor: pointer; transition: background .12s; }
.etapa-l + .etapa-l { border-top: 1px solid var(--linha-2); }
.etapa-l:hover { background: #fafbfc; }
.etapa-l .num { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--c, var(--tinta)); line-height: 1; }
.etapa-l .et-t b { display: block; font-weight: 700; font-size: 15px; }
.etapa-l .et-t span { display: block; color: var(--suave); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etapa-l .env { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.etapa-l .env em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--suave); background: var(--linha-2); padding: 1px 7px; border-radius: 5px; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.pill { --c: #5b6472; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--c) 11%, #fff); color: color-mix(in srgb, var(--c) 88%, #000); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pill.sem { --c: #9aa1ab; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 7px; white-space: nowrap; }
.status.ok { color: var(--ok); background: rgb(29 134 86 / .09); }
.status.validar { color: #95600a; background: var(--ambar-f); }
.status.construcao { color: var(--construcao); background: rgb(47 99 200 / .09); }
.etapa-nova { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--linha-2); background: #fafbfc; }
.etapa-nova input { flex: 1; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--linha); background: #fff; outline: none; }
.etapa-nova input:focus { border-color: #9aa1ab; box-shadow: 0 0 0 3px rgb(18 22 28 / .07); }
.vazio-lista { padding: 28px; text-align: center; color: var(--suave); }

/* ------------------------------------------------------------------ pessoas */
.tabela-wrap { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); overflow-x: auto; }
table.tabela { width: 100%; border-collapse: collapse; min-width: 720px; }
.tabela th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--suave); padding: 12px 16px; border-bottom: 1px solid var(--linha); background: #fafbfc; }
.tabela td { padding: 10px 16px; border-bottom: 1px solid var(--linha-2); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr { cursor: pointer; }
.tabela tbody tr:hover td { background: #fafbfc; }
.tabela .quem { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.tabela .quem.rasu .qn { text-decoration: line-through; color: var(--fraco); }
.tabela .quem.rasu .av { filter: grayscale(1); opacity: .6; }
.tabela .et { display: flex; flex-wrap: wrap; gap: 4px; }
.tabela .et span { font-size: 11.5px; font-weight: 800; padding: 2px 6px; border-radius: 5px; background: var(--linha-2); color: var(--suave); }
.tabela .et .todas { background: #1a3349; color: #fff; }
.tabela .suave { color: var(--suave); font-size: 13px; }

/* ------------------------------------------------------------------ gaveta lateral */
.veu { position: fixed; inset: 0; z-index: 60; background: rgb(10 12 16 / .32); backdrop-filter: blur(2px); animation: aparece .18s ease-out; }
.gaveta {
  --c: #12161c;
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(520px, 100vw); display: flex; flex-direction: column; background: #fff;
  box-shadow: -20px 0 50px -12px rgb(10 12 16 / .35); animation: entra .24s cubic-bezier(.2, .8, .2, 1);
}
@keyframes entra { from { transform: translateX(30px); opacity: 0; } }
@keyframes aparece { from { opacity: 0; } }
.gv-h { position: relative; padding: 20px 20px 18px 22px; background: var(--c); color: #fff; }
.gv-h::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgb(255 255 255 / .12), transparent 60%); pointer-events: none; }
.gv-h > * { position: relative; z-index: 1; }
.gv-topo { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.gv-topo .rot { flex: 1; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.gv-h .ic { color: rgb(255 255 255 / .85); }
.gv-h .ic:hover { background: rgb(255 255 255 / .16); color: #fff; }
.gv-h .ic:disabled { opacity: .35; pointer-events: none; }
.gv-titulo { display: flex; align-items: flex-start; gap: 12px; }
.gv-titulo .num-g { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; padding-top: 2px; }
.gv-titulo textarea {
  flex: 1; resize: none; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #fff; font-size: 19px; font-weight: 800;
  line-height: 1.25; padding: 3px 7px; margin: -3px 0 0 -7px; outline: none; field-sizing: content; min-height: 1.25em;
}
.gv-titulo textarea:hover { border-color: rgb(255 255 255 / .25); }
.gv-titulo textarea:focus { border-color: rgb(255 255 255 / .55); background: rgb(0 0 0 / .14); }
.gv-titulo h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.25; }
.gv-b { flex: 1; overflow-y: auto; padding: 6px 22px 28px; overscroll-behavior: contain; }
.gv-s { padding: 16px 0; border-bottom: 1px solid var(--linha-2); }
.gv-s:last-child { border-bottom: 0; }
.gv-s > h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--suave); }
.gv-s > h3 small { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--fraco); font-size: 12px; }
.gv-f { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--linha); background: #fff; }
.campo {
  width: 100%; border: 1px solid var(--linha); border-radius: 10px; padding: 9px 11px; outline: none; background: #fff; resize: vertical;
  transition: border-color .15s, box-shadow .15s; field-sizing: content; min-height: 42px;
}
.campo:hover { border-color: #cfd4da; }
.campo:focus { border-color: #8a929d; box-shadow: 0 0 0 3px rgb(18 22 28 / .07); }
.campo::placeholder { color: var(--fraco); }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.toggles .chip { height: 32px; }
.seg { display: inline-flex; padding: 3px; background: var(--linha-2); border-radius: 10px; gap: 2px; flex-wrap: wrap; }
.seg button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font-weight: 700; font-size: 13px; color: var(--suave); }
.seg button.ativo { background: #fff; color: var(--tinta); box-shadow: var(--sombra); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--linha); border-radius: 10px; min-height: 44px; }
.tags:focus-within { border-color: #8a929d; box-shadow: 0 0 0 3px rgb(18 22 28 / .07); }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 10px; border-radius: 7px; background: var(--linha-2); font-weight: 600; font-size: 13px; }
.tag button { width: 22px; height: 22px; display: grid; place-items: center; border: 0; background: none; border-radius: 5px; color: var(--fraco); font-size: 16px; line-height: 1; }
.tag button:hover { background: #dfe3e8; color: var(--tinta); }
.tags input { flex: 1; min-width: 130px; border: 0; outline: none; height: 28px; padding: 0 4px; background: none; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 4px 6px 6px; border-radius: 8px; }
.checks li:hover { background: var(--fundo); }
.checks input[type="checkbox"] { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--tinta); flex: none; cursor: pointer; }
.checks .tx { flex: 1; cursor: text; overflow-wrap: anywhere; }
.checks li.feito .tx { text-decoration: line-through; color: var(--fraco); }
.checks .ic { width: 26px; height: 26px; opacity: 0; margin-top: -3px; }
.checks li:hover .ic, .checks .ic:focus-visible { opacity: 1; }
.add-linha { display: flex; gap: 8px; margin-top: 6px; }
.add-linha input { flex: 1; height: 36px; border: 1px dashed #cfd4da; border-radius: 9px; padding: 0 11px; outline: none; background: #fff; }
.add-linha input:focus { border-style: solid; border-color: #8a929d; }
.vizinhos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.viz { text-align: left; padding: 10px 12px; border: 1px solid var(--linha); border-radius: 11px; background: #fff; }
.viz:hover { border-color: #cdd2d9; background: #fafbfc; }
.viz small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fraco); }
.viz b { display: block; font-weight: 700; margin: 2px 0 4px; }
.viz:disabled { opacity: .5; cursor: default; background: var(--fundo); }

.lista-conf { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lista-conf li { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 9px; cursor: pointer; }
.lista-conf li:hover { background: var(--fundo); }
.lista-conf .av, .lista-conf .marc { flex: none; }
.lista-conf .marc { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; background: var(--c); }
.lista-conf .tx { flex: 1; min-width: 0; }
.lista-conf .tx b { display: block; font-weight: 700; }
.lista-conf .tx small { display: block; color: var(--suave); font-size: 12.5px; }
.lista-conf .acao { flex: none; border: 1px solid var(--linha); background: #fff; border-radius: 8px; font-size: 12px; font-weight: 700; padding: 5px 9px; }
.lista-conf .acao:hover { border-color: #b9c0c9; }
.tudo-ok { padding: 10px 4px; color: var(--ok); font-weight: 700; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--linha-2); font-size: 13.5px; }
.log time { color: var(--fraco); font-size: 12px; font-weight: 700; padding-top: 1px; }
.log b { font-weight: 700; }
.log .quem { color: var(--suave); font-size: 12px; }

/* ------------------------------------------------------------------ popover e menus */
.pop {
  --c: #12161c;
  position: fixed; z-index: 70; width: 300px; max-width: calc(100vw - 20px); padding: 12px; background: #fff; border-radius: 13px;
  border: 1px solid var(--linha); box-shadow: var(--sombra-2); animation: aparece .12s ease-out;
}
.pop.menu { width: 236px; padding: 6px; }
.pop h4 { margin: 2px 4px 10px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.pop label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 700; color: var(--suave); }
.pop label input:not([type="checkbox"]), .pop label select {
  display: block; width: 100%; margin-top: 4px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--linha); outline: none; background: #fff; color: var(--tinta); font-weight: 600; font-size: 14px;
}
.pop label input:focus, .pop label select:focus { border-color: #8a929d; box-shadow: 0 0 0 3px rgb(18 22 28 / .07); }
.pop .linha-chk { display: flex; gap: 6px; margin-bottom: 10px; }
.pop .chk {
  flex: 1; display: flex; align-items: center; gap: 7px; margin: 0; padding: 8px 9px; border-radius: 9px; border: 1px solid var(--linha);
  color: var(--tinta); font-size: 12.5px; cursor: pointer; user-select: none;
}
.pop .chk input { accent-color: var(--ambar); width: 15px; height: 15px; margin: 0; }
.pop .chk.on { border-color: #f3d18b; background: var(--ambar-f); }
.pop-acoes { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.pop-acoes button { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--linha); background: #fff; font-weight: 700; font-size: 13px; }
.pop-acoes button:hover { background: var(--fundo); }
.pop-acoes .ok { background: var(--preto); border-color: var(--preto); color: #fff; }
.pop-acoes .ok:hover { background: #24272d; }
.perigo { color: var(--perigo) !important; }
.sugs { display: flex; flex-wrap: wrap; gap: 5px; margin: -2px 0 10px; }
.sug { height: 26px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--linha); background: #fff; font-size: 12px; font-weight: 700; color: var(--suave); }
.sug:hover { border-color: var(--c); color: var(--c); }
.m-sub { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 500; color: var(--fraco); }
.menu button > span { min-width: 0; }
.menu button, .menu a {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; text-align: left;
  font-weight: 600; font-size: 13.5px; text-decoration: none;
}
.menu button:hover, .menu a:hover { background: var(--fundo); }
.menu button:disabled { opacity: .45; pointer-events: none; }
.menu svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--suave); }
.menu hr { border: 0; border-top: 1px solid var(--linha-2); margin: 5px 4px; }
.menu .sub { padding: 6px 10px 2px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fraco); }
.cores { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 10px 8px; }
.cores button { width: 24px; height: 24px; padding: 0; border-radius: 7px; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--linha); }
.cores button.ativo { box-shadow: 0 0 0 2px var(--tinta); }

/* ------------------------------------------------------------------ toasts */
.toasts { position: fixed; left: 50%; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--preto); color: #fff;
  box-shadow: var(--sombra-2); font-weight: 600; font-size: 13.5px; pointer-events: auto; animation: sobe .22s cubic-bezier(.2, .8, .2, 1);
}
.toast.erro { background: #8f1d17; }
.toast button { border: 0; background: rgb(255 255 255 / .14); color: #fff; font-weight: 700; padding: 5px 10px; border-radius: 8px; font-size: 12.5px; }
.toast button:hover { background: rgb(255 255 255 / .24); }
@keyframes sobe { from { transform: translateY(10px); opacity: 0; } }

/* ------------------------------------------------------------------ login */
.login {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: var(--preto);
  background-image: radial-gradient(60% 50% at 15% 10%, rgb(255 255 255 / .09), transparent 70%), radial-gradient(50% 45% at 90% 95%, rgb(255 255 255 / .06), transparent 70%);
}
.login-c { width: min(380px, 100%); padding: 34px 30px 26px; border-radius: 20px; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .1); color: #fff; box-shadow: 0 30px 80px -20px #000; }
.login-c img { display: block; margin-bottom: 26px; }
.login-c h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.login-c > p { margin: 4px 0 22px; color: #9aa1ab; font-size: 13.5px; }
.login-c label { display: block; margin-bottom: 14px; font-size: 12.5px; font-weight: 700; color: #c4c9d0; }
.login-c label span { font-weight: 500; color: #7f8792; }
.login-c input { display: block; width: 100%; margin-top: 6px; height: 44px; padding: 0 13px; border-radius: 11px; border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .06); color: #fff; outline: none; font-size: 15px; }
.login-c input:focus { border-color: rgb(255 255 255 / .45); background: rgb(255 255 255 / .1); }
.login-c button { width: 100%; height: 46px; margin-top: 6px; border: 0; border-radius: 11px; background: #fff; color: var(--preto); font-weight: 800; font-size: 15px; }
.login-c button:hover { background: #e6e8eb; }
.login-erro { min-height: 20px; margin: 12px 0 0; color: #ff9a8f; font-size: 13px; font-weight: 600; text-align: center; }

/* ------------------------------------------------------------------ responsivo */
@media (max-width: 1180px) {
  .topo { grid-template-columns: auto 1fr; padding: 0 18px; gap: 12px; }
  .abas { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; margin: 0 -6px; padding-bottom: 8px; }
  .abas a.ativa::after { bottom: -8px; }
  .topo-r { justify-self: end; }
  .busca input { width: 220px; }
}
@media (max-width: 820px) {
  body { font-size: 15px; }
  main { padding: 18px 14px 90px; }
  .topo { padding: 8px 14px 0; }
  .marca-sep, .marca-t small { display: none; }
  .marca img { width: 92px; }
  .marca-t b { font-size: 13px; }
  .topo-r { gap: 6px; }
  .vivo span, .b-confirmar span { display: none; }
  .b-confirmar { padding: 0 7px; }
  .topo { grid-template-columns: minmax(0, 1fr) auto auto auto; column-gap: 6px; row-gap: 0; }
  .topo-r { display: contents; }
  .topo-l { grid-row: 1; grid-column: 1; min-height: 46px; }
  .b-confirmar { grid-row: 1; grid-column: 2; }
  .vivo { grid-row: 1; grid-column: 3; padding: 0 4px; }
  #b-menu { grid-row: 1; grid-column: 4; }
  .abas { grid-row: 2; grid-column: 1 / -1; }
  .busca { grid-row: 3; grid-column: 1 / -1; padding: 4px 0 10px; }
  .busca input { width: 100%; height: 40px; }
  .busca > svg { top: 16px; }
  .busca kbd { display: none; }
  .busca-r { left: 0; right: 0; width: auto; top: calc(100% - 2px); }
  .abas { padding-bottom: 6px; }
  .abas a { flex: 1; text-align: center; padding: 9px 8px; }
  .abas a.ativa::after { bottom: -6px; }
  .cab h1 { font-size: 22px; }
  .numero { min-width: 0; flex: 1; padding: 8px 10px; }
  .numero b { font-size: 18px; }
  .org-topo { margin-bottom: 18px; }
  .org-linhas { display: none; }
  .painel-setor { grid-template-columns: 1fr; }
  .ps-equipe { border-left: 0; border-top: 1px solid var(--linha-2); }
  .etapa-l { grid-template-columns: 34px auto minmax(0, 1fr); gap: 6px 8px; padding: 12px 14px; }
  .etapa-l .et-t { grid-column: 2 / -1; }
  .etapa-l .et-t span { white-space: normal; }
  .etapa-l .pills { grid-column: 2; justify-content: flex-start; }
  .etapa-l .status { grid-column: 3; justify-self: start; }
  .etapa-l .num { grid-row: span 2; align-self: start; font-size: 19px; padding-top: 2px; }
  .mapa { --lane: 104px; --col: 96px; }
  .lane-l { font-size: 10.5px; padding: 8px 8px 8px 10px; gap: 7px; letter-spacing: .02em; }
  .lane-dir { font-size: 12px; padding: 0 10px; margin: 10px 8px; }
  .grupo-h .ic { opacity: 1; }
  .checks .ic { opacity: 1; }
  .vizinhos { grid-template-columns: 1fr; }
  .gaveta { left: 0; width: auto; }
  .pop:not(.menu) { left: 8px !important; right: 8px; top: 72px !important; width: auto; max-width: none; }
  .gv-b { padding: 4px 16px 24px; }
  .gv-h { padding: 16px 14px 16px 16px; }
  .gv-f { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
}
@media (hover: none) {
  .grupo-h .ic, .checks .ic { opacity: 1; }
  .grupo-d.vazia { display: none !important; }
}

/* ------------------------------------------------------------------ impressão */
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: #fff; font-size: 12px; }
  .topo-r, .abas, .add, .grupo-novo, .dep-novo, .ic, .etapa-nova, .dica, .filtros, .toasts, .veu, .gaveta, .pop { display: none !important; }
  .topo { position: static; background: #fff; color: #000; border-bottom: 2px solid #000; min-height: 0; padding: 0 0 8px; }
  .marca img { filter: invert(1); }
  .marca-t small { color: #555; }
  .marca-sep { background: #000; }
  main { padding: 14px 0 0; max-width: none; }
  .dep, .mapa-wrap, .etapas, .tabela-wrap, .numero, .painel-setor { box-shadow: none; break-inside: avoid; }
  .dep-h, .no, .pill, .av, .lane-bg, .chip { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mapa-wrap { overflow: visible; }
}
