/* Painel da ChaMalia. Casca igual à da Pedilia (barra lateral + conteúdo), na paleta da ChaMalia. Celular primeiro. */

:root {
  --bg: #ffffff; --bg-rgb: 255, 255, 255; --card: #ffffff; --lado-bg: #fafafa; --soft: rgba(0, 0, 0, .04); --line: #e2e2e2;
  --text: #1f1f1f; --muted: #5c5c5c; --muted-rgb: 92, 92, 92; --lado-rgb: 250, 250, 250;
  --accent: #8a6a00; --accent-rgb: 138, 106, 0; --accent-2: #ffd60a; --accent-2-rgb: 255, 214, 10; --accent-weak: rgba(255, 214, 10, .25);
  --nome-malia: #1f1f1f; --nome-malia-rgb: 31, 31, 31; /* o nome Malia na marca vai em tarja amarela (regra no fim do arquivo) */ --btn-text: #1f1f1f; --sobre-amarelo: #1f1f1f; --cinza-bloco: #ececec;
  --rosa: var(--accent); --roxo: var(--accent-2); --malia: #ffd60a; --equipe: #2b2b2b; --sobre-equipe: #ffffff; --trilho: #ececec; --col-antes: #d4d4d4; /* Resultados: a Malia é o amarelo da marca e a equipe é grafite; claro × escuro se lê também sem ver cores */ --green: #15803d; --warn: #b45309; --err: #d92d20; --laranja: #c2410c; /* versões escuras: sobre branco, as claras não se liam */
  --sombra: 0 1px 2px rgba(0, 0, 0, .04), 0 20px 50px -30px rgba(0, 0, 0, .2);
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --lado-w: 268px;
  color-scheme: light;
}

/* Modo noturno: o botão troca data-tema no <html> (tema.js). Só os valores mudam; a composição é a mesma. A comemoração da fila vira a cena de noite */
html[data-tema="escuro"] {
  --bg: #121212; --bg-rgb: 18, 18, 18; --card: #1b1b1b; --lado-bg: #161616; --lado-rgb: 22, 22, 22; --soft: rgba(255, 255, 255, .06); --line: #2e2e2e;
  --text: #f4f4f4; --muted: #a3a3a3; --muted-rgb: 163, 163, 163;
  --accent: #ffd60a; --accent-rgb: 255, 214, 10; --accent-weak: rgba(255, 214, 10, .18);
  --nome-malia: #f4f4f4; --nome-malia-rgb: 244, 244, 244; --cinza-bloco: #3a3a3a;
  --equipe: #333333; --sobre-equipe: #f4f4f4; --trilho: #2a2a2a; --col-antes: #424242; --green: #34d399; --warn: #fbbf24; --err: #ff6b6b; --laranja: #fb923c;
  --sombra: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
body.lado-recolhido { --lado-w: 76px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 40% at 100% 0%, rgba(var(--accent-rgb), .12), transparent 60%), radial-gradient(40% 40% at 0% 100%, rgba(var(--accent-2-rgb), .16), transparent 60%);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.logo { width: 26px; height: 26px; }


/* topo do celular */
.topo-cel { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px; padding-top: env(safe-area-inset-top, 0px); background: rgba(var(--bg-rgb), .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topo-menu { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.topo-menu svg { width: 20px; height: 20px; }
.topo-marca { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.topo-marca span { color: var(--nome-malia); text-shadow: 0 0 14px rgba(var(--nome-malia-rgb), .55); }
.topo-tela { margin-left: auto; font-size: 13px; color: var(--muted); }

/* casca: barra lateral + conteúdo */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100dvh; transition: grid-template-columns .25s ease; }
.lado { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); height: 100dvh; z-index: 90; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border-right: 1px solid var(--line); background: var(--lado-bg); transform: translateX(-104%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); padding-top: max(14px, env(safe-area-inset-top, 0px)); padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
body.menu-aberto .lado { transform: none; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lado-fundo { position: fixed; inset: 0; z-index: 85; background: rgba(4, 2, 10, .65); opacity: 0; pointer-events: none; transition: opacity .3s; }
body.menu-aberto .lado-fundo { opacity: 1; pointer-events: auto; }
body.menu-aberto { overflow: hidden; }
.lado-topo { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 2px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.lado-marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; font-size: 17px; min-width: 0; }
.lado-marca span { white-space: nowrap; overflow: hidden; }
.lado-marca em { font-style: normal; color: var(--nome-malia); text-shadow: 0 0 14px rgba(var(--nome-malia-rgb), .55); }
.lado-recolher { position: absolute; right: 12px; top: max(18px, calc(env(safe-area-inset-top, 0px) + 4px)); width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); display: grid; place-items: center; cursor: pointer; z-index: 3; transition: background .2s, color .2s; }
.lado-recolher:hover { color: var(--text); background: var(--accent-weak); }
.lado-recolher svg { width: 14px; height: 14px; transition: transform .25s; transform: rotate(180deg); }
.lado-nav { display: grid; gap: 4px; align-content: start; flex: 1; min-height: 0; overflow: hidden auto; scrollbar-width: none; margin-inline: -12px; padding-inline: 12px; }
.lado-nav::-webkit-scrollbar { display: none; }
.lado-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.lado-item svg { width: 20px; height: 20px; flex: none; }
.lado-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.lado-item small { font-size: 10.5px; letter-spacing: .05em; color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .4); background: var(--accent-weak); border-radius: 999px; padding: 2px 7px; white-space: nowrap; flex: none; font-family: var(--mono); }
.lado-item:hover { background: var(--soft); color: var(--text); }
.lado-item.ativo { background: var(--accent-weak); color: var(--accent); font-weight: 600; }
.lado-item.ativo::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.lado-rodape { position: relative; border-top: 1px solid var(--line); padding-top: 10px; }
.lado-perfil { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; border: 1px solid transparent; background: none; text-align: left; cursor: pointer; color: var(--text); transition: background .2s, border-color .2s; }
.lado-perfil:hover, .lado-perfil[aria-expanded="true"] { background: var(--soft); border-color: var(--line); }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--btn-text); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 14px -6px var(--accent); }
.avatar.off { background: var(--soft); color: var(--muted); box-shadow: none; border: 1px dashed var(--line); }
.lado-perfil-txt { display: grid; min-width: 0; }
.lado-perfil-txt b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lado-perfil-txt small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.lado-popover { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--sombra); z-index: 5; animation: sobe .18s ease both; }
.lado-popover .conta { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.lado-popover .conta > b { color: var(--text); font-weight: 600; font-size: 13.5px; }
.lado-plano { font-size: 12px; } .lado-plano b { color: var(--accent); font-weight: 600; }
.lado-sep { height: 1px; background: var(--line); margin: 4px 0 2px; }
/* perfil da demonstração: Equipe vê tudo; Colaborador vê só os próprios chamados e abre chamado para si */
.lado-ver { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.perfil-troca { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.perfil-troca button { min-height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); color: var(--text); font: 600 13px var(--font); cursor: pointer; }
.perfil-troca button[aria-pressed="true"] { background: var(--accent-weak); border-color: rgba(var(--accent-rgb), .5); color: var(--accent); }
body:not(.colaborador) .fab-novo:not(.fab-prox) { display: none; }
body.colaborador .lado-item:not([data-tela="chamados"]):not([data-tela="melhorias"]), body.colaborador #proximo, body.colaborador .massa, body.colaborador #filtros [data-f="meus"], body.colaborador .c-sel, body.colaborador .c-sol, body.colaborador #dtResumo, body.colaborador #dtResponder .check, body.colaborador .jn-msg.nota { display: none; }
.lado-sair { margin-top: 4px; display: inline-flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.lado-sair svg { width: 16px; height: 16px; }
.lado-sair:hover { background: rgba(255, 107, 107, .12); color: var(--err); border-color: rgba(255, 107, 107, .35); }

/* conteúdo */
main { min-width: 0; padding: 14px 14px calc(24px + env(safe-area-inset-bottom, 0px)); }
.pag-titulo { margin-bottom: 16px; }
.pag-titulo h1 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 4px; letter-spacing: -.025em; line-height: 1.15; font-weight: 700; }
.pag-titulo p { color: var(--muted); font-size: 14px; max-width: 70ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--sombra); }
.card h2 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.card .sub { color: var(--muted); font-size: 13.5px; }
.grade-2 { display: grid; gap: 12px; }
.linhas li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.linhas li:first-child { border-top: 0; }
.linhas li span { flex: 1; min-width: 0; }
.linhas li b { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

/* botões e campos */
/* botões: 44 px de altura, raio 12 (o site usa os mesmos); variante .g = fundo suave com borda; versões menores têm 36 px */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--btn-text); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 20px rgba(var(--accent-rgb), .3); white-space: nowrap; }
.btn.g { background: var(--soft); border: 1px solid var(--line); box-shadow: none; color: var(--text); }
.btn.g:hover { border-color: rgba(var(--accent-rgb), .4); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn svg { width: 16px; height: 16px; }
/* ação destrutiva (excluir, apagar, restaurar): vermelha, cheia no botão principal e só na letra na variante .g */
.btn.perigo { background: linear-gradient(135deg, #ff6b6b, #e0457b); box-shadow: 0 0 20px rgba(255, 107, 107, .3); }
.btn.g.perigo { background: var(--soft); color: var(--err); border-color: rgba(255, 107, 107, .4); box-shadow: none; }
.btn.g.perigo:hover { border-color: rgba(255, 107, 107, .7); }
.conf-janela .sub { font-size: 14px; }
.busca { position: relative; display: block; }
.busca svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.busca input { width: 100%; min-height: 44px; padding: 10px 12px 10px 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 14px; }
.busca input:focus, .select:focus, textarea:focus, .campos input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.busca input::-webkit-search-cancel-button { filter: invert(1); }
.select { min-height: 44px; padding: 8px 34px 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a79bc4' stroke-width='2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 10px center / 16px; color: var(--text); font: inherit; font-size: 14px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.select option { background: var(--card); }
textarea { width: 100%; font: inherit; font-size: 14px; color: var(--text); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; min-height: 44px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.check small { font-size: 11.5px; }
/* menus da barra (ordem e exibição): botão com o nome da opção atual + menu com miniaturas */
.exib { position: relative; }
.btn-exib > svg:first-child { display: none; } /* no celular só o nome, para caber */
.btn-exib .seta { width: 14px; height: 14px; opacity: .7; transition: transform .2s; }
.btn-exib[aria-expanded="true"] { border-color: rgba(var(--accent-rgb), .45); }
.btn-exib[aria-expanded="true"] .seta { transform: rotate(180deg); }
.exib-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: max-content; min-width: 170px; padding: 4px; display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .75); animation: sobe .18s ease both; }
.exib-pop button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 8px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--text); font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.exib-pop button:hover { background: var(--soft); }
.exib-pop button[aria-checked="true"] { background: var(--accent-weak); border-color: rgba(var(--accent-rgb), .4); font-weight: 600; }
.exib-pop button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--accent); font-weight: 700; }
.exib-nota { margin: 2px 0 0; padding: 6px 8px 4px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
/* miniaturas: detalhada = título forte + linha de detalhe; compacta = linhas finas juntas */
.prev { width: 26px; height: 20px; flex: none; border-radius: 5px; border: 1px solid var(--line); background: rgba(var(--bg-rgb), .6); padding: 3px 4px; display: grid; }
.prev i { display: block; height: 2px; border-radius: 1px; background: var(--text); opacity: .75; }
.prev.det { align-content: start; gap: 5px; }
.prev.det i { width: 85%; box-shadow: 0 3px 0 rgba(var(--muted-rgb), .55); }
.prev.comp { align-content: space-between; }
.prev.ico { padding: 2px 3px; color: var(--text); }
.prev.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
/* prioridade: linhas com a marca de cor na ponta, como a borda da tabela */
.prev.prio { align-content: space-between; padding-left: 8px; }
.prev.prio i { position: relative; overflow: visible; }
.prev.prio i::before { content: ""; position: absolute; left: -4px; top: -1px; width: 2px; height: 4px; border-radius: 1px; background: var(--err); }
.prev.prio i:nth-child(2)::before { background: var(--warn); }
.prev.prio i:nth-child(3)::before { background: var(--muted); }
.exib-pop button[aria-checked="true"] .prev { border-color: rgba(var(--accent-rgb), .5); }
.exib-pop button[aria-checked="true"] .prev i { background: var(--accent); opacity: 1; }
.exib-pop button[aria-checked="true"] .prev.ico { color: var(--accent); }
.exib-pop button[aria-checked="true"] .prev.ico svg { opacity: 1; }
.ordem .btn-exib { width: 100%; justify-content: flex-start; }
.ordem .btn-exib .seta { margin-left: auto; }
.ordem .exib-pop { right: auto; left: 0; min-width: 100%; } /* a ordem fica na ponta esquerda: o menu abre para a direita */

/* ---------- Chamados ---------- */
.tela-chamados { display: flex; flex-direction: column; gap: 10px; }
.ch-topo { display: grid; gap: 10px; position: relative; z-index: 6; container-type: inline-size; } /* z-index: os menus abrem por cima da tabela */
/* faixa estreita (tablet, ou computador pequeno com a barra lateral aberta): botões enxutos para nunca rolar de lado */
@container (max-width: 760px) {
  .barra-acoes .btn-exib > svg:first-child { display: none; }
}
.barra-acoes { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.barra-acoes .pag-titulo { grid-column: 1 / -1; order: -2; margin: 0; }
.barra-acoes .busca { grid-column: 1 / -1; order: -1; } /* no celular a busca vem primeiro, na linha inteira */
.barra-acoes .btn span { display: none; }
.barra-acoes .btn { padding: 10px 12px; }
.barra-acoes .btn-exib span { display: inline; } /* o nome do modo aparece sempre, até no celular */
.abas { position: relative; display: flex; gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow-x: auto; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.abas.mais { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); } /* ainda tem aba escondida à direita: a ponta esmaece (o JS liga e desliga) */
.aba { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: color .2s; }
.aba:last-child { border-right: 0; }
.aba b { font-weight: 600; color: var(--text); font-family: var(--mono); font-size: 12px; }
.aba:hover { color: var(--text); }
.aba.ativo { color: var(--text); background: var(--accent-weak); box-shadow: inset 0 -2px 0 var(--accent); }
.aba.ativo b { color: var(--accent); }
.massa { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--accent-weak); border: 1px solid rgba(var(--accent-rgb), .35); font-size: 13.5px; animation: sobe .2s ease both; }
.massa span { flex: 1; } .massa b { color: var(--accent); }
.massa .btn { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.massa .btn:disabled { opacity: .45; cursor: not-allowed; }
/* aviso curto (ex.: "Nada na fila"): acima do botão flutuante no celular, no canto da lista no computador */
.dica-fila { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 31; margin: 0; padding: 10px 16px; border-radius: 12px; background: var(--card); border: 1px solid rgba(var(--accent-rgb), .45); color: var(--text); font-size: 13.5px; font-weight: 600; white-space: nowrap; box-shadow: var(--sombra); animation: sobe .2s ease both; }
.ch-corpo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; flex: 1; min-height: 0; }
.ch-lista-wrap { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
/* o espaço embaixo deixa a última linha rolar para cima do botão flutuante */
.ch-lista { flex: 1; padding: 0 0 80px; overflow: auto; position: relative; min-height: 60vh; }

/* botão flutuante de novo chamado: preso ao canto da tela no celular, ao canto da lista no computador */
.fab-novo { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 56px; height: 56px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); display: grid; place-items: center; color: var(--btn-text); cursor: pointer; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .25); transition: transform .18s, box-shadow .18s; }
.fab-novo svg { width: 24px; height: 24px; transition: transform .25s; }
.fab-novo:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(0, 0, 0, .3); }
.fab-novo:hover svg { transform: rotate(90deg); }
.fab-novo.fab-prox:hover svg { transform: none; }
.fab-novo:active { transform: translateY(0) scale(.96); }
.fab-novo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fab-novo::after { content: attr(data-dica); position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(4px, -50%); white-space: nowrap; font: 600 12px var(--font); color: var(--text); background: var(--card); border: 1px solid var(--line); padding: 6px 10px; border-radius: 9px; box-shadow: var(--sombra); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
@media (hover: hover) { .fab-novo:hover::after, .fab-novo:focus-visible::after { opacity: 1; transform: translate(0, -50%); } }
/* lista vazia: texto neutro; nas abas Meus e Abertos, quando zeram, a orla acende (fila.js desenha no canvas) */
.vazio-lista { position: absolute; inset: 44px 0 0; color: var(--muted); font-size: 14px; overflow: hidden; }
.vazio-lista canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.fila-neutro { position: absolute; inset: 0; display: grid; place-items: center; }
.fila-texto { position: absolute; left: 0; right: 0; bottom: 26px; display: none; padding: 0 16px; text-align: center; pointer-events: none; }
.fila-texto h3 { font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.fila-texto p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.fila-texto b { color: var(--text); font-weight: 600; font-family: var(--mono); }
.fila-texto .malia { color: var(--accent); font-weight: 600; }
.fila-texto h3, .fila-texto p { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.vazio-lista.festa canvas, .vazio-lista.festa .fila-texto { display: block; }
.vazio-lista.festa .fila-neutro { display: none; }
.vazio-lista.mostra .fila-texto h3, .vazio-lista.mostra .fila-texto p { opacity: 1; transform: none; }
.vazio-lista.mostra .fila-texto p { transition-delay: .12s; }
.vazio-lista.pronto .fila-texto h3, .vazio-lista.pronto .fila-texto p { transition: none; }
@media (max-width: 900px) { .vazio-lista { inset: 0; } }

/* a Descrição leva o espaço que sobra */
.tb { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tb th { position: sticky; top: 0; z-index: 2; background: var(--card); text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tb td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow: hidden; }
.tb tbody tr { cursor: pointer; transition: background .15s; }
.tb tbody tr.entra { animation: entra .3s ease both; animation-delay: calc(var(--i, 0) * 25ms); } /* só quando a lista muda de verdade; o redesenho de rotina não pisca */
.tb tbody tr:hover td { background: var(--soft); }
.tb tbody tr.ativo td { background: var(--accent-weak); }
.tb tbody tr.sel td { background: var(--accent-weak); }
.tb tbody tr.atrasado td { background: rgba(255, 107, 107, .07); }
.tb tbody tr.atrasado.ativo td { background: rgba(255, 107, 107, .14); }
.c-sel { width: 36px; } .c-cod { width: 104px; } .c-pri { width: 92px; text-align: center; } .c-sit { width: 120px; } .c-sol { width: 160px; } .c-com { width: 130px; } .c-cri { width: 96px; }
.tb input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); display: block; cursor: pointer; }
.tb tr.p5 td:first-child { box-shadow: inset 3px 0 0 var(--err); }
.tb tr.p4 td:first-child { box-shadow: inset 3px 0 0 var(--laranja); }
.tb tr.p3 td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
/* nível de prioridade: só o número; quanto maior, mais quente */
.pri { font: 700 16px var(--mono); }
.pri.n5 { color: var(--err); }
.pri.n4 { color: var(--laranja); }
.pri.n3 { color: var(--warn); }
.pri.n2 { color: var(--text); }
.pri.n1, .pri.n0 { color: var(--muted); }
.c-ch .t { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-ch .s { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 12px; line-height: 1.4; color: var(--muted); margin-top: 2px; } /* a trilha categoria › tipo pode quebrar, até duas linhas */
td.c-cod { font-family: var(--mono); color: var(--accent); font-size: 11.5px; white-space: nowrap; }
.c-ch .s svg { width: 13px; height: 13px; vertical-align: -2px; }
.c-ch .d { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 12px; line-height: 1.35; color: var(--muted); margin-top: 4px; }
.sit { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; font-weight: 500; max-width: 100%; }
.sit.aberto { color: var(--rosa); } .sit.andamento { color: var(--text); } .sit.aguardando { color: var(--warn); } .sit.resolvido { color: var(--green); } .sit.fechado { color: var(--muted); }
.pessoa { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pessoa > span { min-width: 0; display: grid; }
.pessoa b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pessoa small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pessoa .fila-t { color: var(--warn); font-weight: 600; }
.pessoa .malia-t { color: var(--accent); font-weight: 600; }
.c-cri { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
/* densidade compacta: uma linha por chamado */
body.compacto .tb td { padding: 6px 10px; }
.c-ch .d:empty { display: none; }
body.compacto .c-ch .s, body.compacto .c-ch .d { display: none; }
body.compacto .pessoa small { display: none; }
/* esqueleto de carregamento */
.k-skel td { padding: 12px; }
.k-skel i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--soft), rgba(255, 255, 255, .1), var(--soft)); background-size: 200% 100%; animation: brilha 1.2s linear infinite; }
@keyframes brilha { to { background-position: -200% 0; } }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* chamado aberto: pop-up por cima da lista */
.dt-titulo .jn-num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.dt-titulo h2 { font-size: 19px; letter-spacing: -.01em; margin-top: 2px; }
.dt-titulo .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.dt-prazo { color: var(--muted); font-size: 12.5px; margin-top: 2px; } /* problema ou solicitação, e o prazo de solução */
.dt-prazo .vencido { color: var(--err); font-weight: 500; }
.dt-fechado { align-self: center; color: var(--muted); font-size: 13px; }
.ch-detalhe .jn-conversa { flex: 1 1 0; min-height: 240px; overflow: auto; }
/* caixa de texto com o Enviar ao lado; a nota interna fica embaixo */
.ch-detalhe .jn-responder { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; }
.ch-detalhe .jn-responder textarea { height: 48px; min-height: 48px; resize: none; }
.ch-detalhe .jn-responder-linha { display: contents; }
.ch-detalhe .jn-responder .btn { grid-area: 1 / 2; align-self: center; }
.ch-detalhe .jn-responder .check { grid-column: 1 / -1; }
.jn-conversa { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(var(--bg-rgb), .6); border: 1px solid var(--line); }
.jn-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.jn-msg.pessoa { align-self: flex-end; background: rgba(var(--accent-2-rgb), .28); border: 1px solid rgba(var(--accent-2-rgb), .45); border-bottom-right-radius: 4px; display: block; }
.jn-msg.malia { align-self: flex-start; background: var(--soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.jn-msg.malia::before { content: "Malia"; display: block; font-family: var(--mono); font-size: 10px; color: var(--accent); margin-bottom: 2px; }
.jn-msg.equipe { align-self: flex-start; background: var(--accent-weak); border: 1px solid rgba(var(--accent-rgb), .35); border-bottom-left-radius: 4px; }
.jn-msg.equipe::before { content: "Equipe"; display: block; font-family: var(--mono); font-size: 10px; color: var(--accent); margin-bottom: 2px; }
/* quem atende lê como num chat: o que a equipe escreveu fica à direita, a pessoa e a Malia à esquerda; o colaborador vê as próprias mensagens à direita */
body:not(.colaborador) .ch-detalhe .jn-msg.pessoa { align-self: flex-start; border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
body:not(.colaborador) .ch-detalhe .jn-msg.equipe { align-self: flex-end; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.jn-msg.nota { align-self: stretch; max-width: none; background: rgba(251, 191, 36, .08); border: 1px dashed rgba(251, 191, 36, .45); font-size: 13px; }
.jn-msg.nota::before { content: "Nota interna · só a equipe vê"; display: block; font-family: var(--mono); font-size: 10px; color: var(--warn); margin-bottom: 2px; }
.jn-msg time { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 3px; }
.jn-avaliacao { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.jn-avaliacao .estrelas { color: var(--warn); letter-spacing: 2px; font-size: 15px; }
.jn-resumo { flex: none; border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 12px; padding: 6px 14px; background: var(--accent-weak); font-size: 13px; }
.jn-resumo summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; list-style: none; cursor: pointer; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.jn-resumo summary::-webkit-details-marker { display: none; }
.jn-resumo summary::after { content: ""; width: 7px; height: 7px; flex: none; margin-right: 3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s ease; }
.jn-resumo.aberto summary::after { transform: rotate(-135deg); }
.jn-resumo-anima { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s ease, opacity .25s ease; }
.jn-resumo.aberto .jn-resumo-anima { grid-template-rows: 1fr; opacity: 1; }
.jn-resumo-corpo { display: grid; gap: 3px; min-height: 0; overflow: hidden; }
.jn-resumo-corpo > :first-child { margin-top: 8px; }
.jn-resumo-corpo > :last-child { margin-bottom: 4px; }
.jn-resumo p { color: var(--muted); } .jn-resumo p b { color: var(--text); font-weight: 600; }
.jn-resumo .btn { justify-self: start; margin-top: 8px; min-height: 36px; padding: 6px 12px; font-size: 13px; }
.jn-responder { display: grid; gap: 8px; }
.jn-responder-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.janela-acoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.cfg-secao { margin: 22px 0 10px; font-size: 16px; font-weight: 600; }
.pag-titulo + .cfg-secao { margin-top: 0; }

/* equipe */
.pessoas li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pessoas li:first-child { border-top: 0; }
.pessoas li div { flex: 1; min-width: 0; display: grid; }
.pessoas b { font-size: 14px; font-weight: 600; }
.pessoas small { font-size: 12.5px; color: var(--muted); }
.eq-chip { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); }
.eq-chip.dono { color: var(--accent); border-color: rgba(var(--accent-rgb), .35); background: var(--accent-weak); }

/* janela (novo chamado): sobe de baixo no celular, zoom no computador */
.janela-fundo { position: fixed; inset: 0; z-index: 100; display: grid; align-items: end; padding: 0; background: rgba(4, 2, 10, .7); animation: fade .2s ease both; }
.janela { width: 100%; max-height: calc(100dvh - 24px); overflow: auto; display: grid; gap: 14px; padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px)); margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); animation: sobe-cel .3s cubic-bezier(.2, .8, .2, 1) both; }
.janela-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.janela-cab { min-width: 0; }
.jn-num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.janela h2 { font-size: 18px; letter-spacing: -.01em; margin-top: 2px; }
.janela .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.janela-fechar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); cursor: pointer; }
.janela-fechar svg { width: 16px; height: 16px; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.campos label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.campos input { width: 100%; min-height: 44px; font: inherit; font-size: 14px; color: var(--text); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.campos [aria-invalid="true"] { border-color: var(--err); }
.campo-largo { grid-column: 1 / -1; }
/* novo chamado: a árvore categoria › tipo em duas colunas; no celular vira lista e sublista */
.novo-tipo { display: grid; gap: 10px; }
.novo .busca input { background: var(--soft); }
.arvore { display: grid; grid-template-columns: minmax(150px, 185px) minmax(0, 1fr); gap: 10px; }
.arv-col { margin: 0; padding: 4px; list-style: none; display: grid; gap: 2px; align-content: start; max-height: 346px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(var(--bg-rgb), .5); }
.arv-tipos-wrap { display: grid; gap: 6px; align-content: start; min-width: 0; }
.arv-item { width: 100%; min-height: 40px; padding: 8px 10px 8px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background .15s; }
.arv-item:hover { background: var(--soft); }
.arv-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.arv-item.ativo { background: var(--accent-weak); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.arv-item svg { width: 15px; height: 15px; flex: none; margin-left: auto; color: var(--muted); }
.arv-item.ativo svg { color: inherit; }
.arv-item.outro { color: var(--muted); }
.arv-item small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.arv-vazio { padding: 14px 12px; color: var(--muted); font-size: 13px; text-align: center; }
.arv-grupo { padding: 10px 12px 3px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; } /* rótulo do grupo de tipos (0011) */
.arv-grupo:first-child { padding-top: 6px; }
.arv-voltar { display: none; }
.novo-escolha { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 12px; background: var(--accent-weak); }
.novo-escolha .trilha { flex: 1; min-width: 0; display: grid; gap: 2px; font-weight: 600; font-size: 14px; }
.novo-escolha .atende { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.novo-escolha .trilha small { color: var(--muted); font-weight: 500; font-size: 13px; }
.novo-escolha .btn { min-height: 36px; padding: 6px 12px; font-size: 13px; flex: none; }
.novo textarea { resize: none; }
@media (max-width: 719px) {
  .arvore { grid-template-columns: minmax(0, 1fr); }
  .arvore.nivel2 .arv-cats, .arvore:not(.nivel2) .arv-tipos-wrap { display: none; }
  .arv-voltar { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 6px; border: 0; background: transparent; color: var(--accent); font: 600 13px var(--font); cursor: pointer; justify-self: start; }
  .arv-voltar svg { width: 16px; height: 16px; }
  .arv-col { max-height: 44dvh; }
}
.form-msg { font-size: 13px; color: var(--err); min-height: 1.2em; }
.form-msg:empty { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sobe { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sobe-cel { from { transform: translateY(100%); } to { transform: none; } }
@keyframes zoom { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* celular: linhas viram cartões; Atender ocupa a tela inteira */
@media (max-width: 900px) {
  .tb, .tb tbody, .tb tr, .tb td { display: block; }
  .tb thead { display: none; }
  .tb tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "sel cod pri" "sel ch ch" "sel sit cri" "sel sol com"; gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; }
  .tb td { padding: 0; border: 0; }
  /* o destaque (atrasado, selecionado, aberto, hover) é do cartão inteiro, não de cada campo */
  .tb tbody tr:hover td, .tb tbody tr.ativo td, .tb tbody tr.sel td, .tb tbody tr.atrasado td, .tb tbody tr.atrasado.ativo td { background: transparent; }
  .tb tbody tr:hover { background: var(--soft); }
  .tb tbody tr.atrasado { background: rgba(255, 107, 107, .07); }
  .tb tbody tr.ativo, .tb tbody tr.sel { background: var(--accent-weak); }
  .tb tbody tr.atrasado.ativo { background: rgba(255, 107, 107, .14); }
  .tb tr.p5 td:first-child, .tb tr.p4 td:first-child, .tb tr.p3 td:first-child { box-shadow: none; }
  .tb tr.p5 { box-shadow: inset 3px 0 0 var(--err); } .tb tr.p4 { box-shadow: inset 3px 0 0 var(--laranja); } .tb tr.p3 { box-shadow: inset 3px 0 0 var(--warn); }
  .c-sel { grid-area: sel; width: auto; align-self: start; padding-top: 3px; }
  body.colaborador .tb tbody tr { grid-template-columns: 0 minmax(0, 1fr) auto; column-gap: 0; }
  .c-cod { grid-area: cod; width: auto; } .c-ch { grid-area: ch; } .c-pri { grid-area: pri; width: auto; align-self: start; justify-self: end; } .c-sit { grid-area: sit; width: auto; } .c-cri { grid-area: cri; width: auto; justify-self: end; }
  .c-sol { grid-area: sol; width: auto; } .c-com { grid-area: com; width: auto; justify-self: end; }
  .c-ch .t { white-space: normal; }
  body.compacto .tb tbody tr { padding: 8px 14px; }
}

/* tablet e computador */
@media (min-width: 720px) {
  .grade-2 { grid-template-columns: 1fr 1fr; }
  .barra-acoes { grid-template-columns: auto auto 1fr auto; }
  .barra-acoes .busca { grid-column: auto; order: 0; }
  /* as abas dividem a largura toda; se não couberem, a faixa rola */
  .aba { flex: 1 1 0; min-width: max-content; }
  .barra-acoes .btn span { display: inline; }
  .barra-acoes .btn { padding: 10px 16px; }
  .btn-exib > svg:first-child { display: block; }
  .janela-fundo { align-items: center; justify-items: center; padding: 16px; }
  .janela { width: min(560px, 100%); border-radius: 16px; animation: zoom .3s cubic-bezier(.2, .8, .2, 1) both; padding-bottom: 20px; }
  .janela.novo { width: min(620px, 100%); }
  .janela.bc-nova { width: min(420px, 100%); }
}
@media (min-width: 901px) {
  .topo-cel { display: none; }
  .shell { grid-template-columns: var(--lado-w) minmax(0, 1fr); }
  .lado { position: sticky; top: 0; width: auto; transform: none; box-shadow: none; background: rgba(var(--lado-rgb), .72); backdrop-filter: blur(10px); z-index: 2; padding: 14px 12px; }
  .lado-fundo { display: none; }
  .lado-recolher { right: -14px; top: 22px; width: 28px; height: 28px; border-radius: 50%; background: var(--card); box-shadow: var(--sombra); }
  .lado-recolher svg { transform: none; }
  body.lado-recolhido .lado-recolher svg { transform: rotate(180deg); }
  @media (hover: hover) { .lado-recolher { opacity: 0; transition: opacity .2s ease, background .2s, color .2s; } .lado:hover .lado-recolher, .lado-recolher:focus-visible { opacity: 1; } } /* invisível; aparece ao passar o mouse no menu ou ao chegar pelo teclado */
  body.lado-recolhido .lado { padding-inline: 10px; }
  body.lado-recolhido .lado-marca span, body.lado-recolhido .lado-item span, body.lado-recolhido .lado-item small, body.lado-recolhido .lado-perfil-txt { display: none; }
  body.lado-recolhido .lado-topo { justify-content: center; }
  body.lado-recolhido .lado-nav { margin-inline: -10px; padding-inline: 10px; }
  body.lado-recolhido .lado-item { justify-content: center; padding: 11px 0; }
  body.lado-recolhido .lado-item.ativo::before { left: -10px; }
  body.lado-recolhido .lado-perfil { justify-content: center; padding: 6px 0; }
  body.lado-recolhido .lado-popover { left: 0; width: 240px; right: auto; }
  main { padding: 20px 24px 20px; max-width: 1400px; }
  /* Chamados ocupa a altura da tela; a lista rola por dentro e não muda de tamanho com o filtro */
  .tela-chamados { height: calc(100dvh - 40px); }
  .ch-lista { min-height: 0; }
  .fab-novo { position: absolute; right: 22px; bottom: 18px; width: 52px; height: 52px; z-index: 3; }
  .dica-fila { position: absolute; left: 16px; bottom: 24px; transform: none; z-index: 3; }
  /* ordem, exibição, busca e Próximo da fila juntos à direita */
  .barra-acoes { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
  .barra-acoes .pag-titulo { margin-right: auto; }
  .barra-acoes .busca { flex: 0 1 380px; min-width: 220px; }
  /* números, situação e pessoas centralizados; a Descrição, que é texto corrido, fica à esquerda */
  .tb th, .tb td { text-align: center; }
  .tb th:nth-child(3), .tb td.c-ch { text-align: left; }
  .tb input[type="checkbox"] { margin: 0 auto; }
  .tb .pessoa { justify-content: center; }
  /* tabela estreita (barra lateral aberta em tela média): primeiro sai Abertura, depois Solicitante, para a Descrição respirar */
  .ch-lista { container: lista / inline-size; }
  @container lista (max-width: 940px) { .c-cri { display: none; } }
  @container lista (max-width: 900px) { .c-sol { display: none; } }
}
body.atender { overflow: hidden; }
.janela.ch-detalhe { display: flex; flex-direction: column; gap: 12px; }
/* topo do pop-up: número em cima, título um pouco abaixo; X no canto e as ações na base */
.ch-detalhe > .janela-topo { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tit x" "ac ac"; gap: 8px 12px; align-items: start; }
.ch-detalhe .dt-titulo { grid-area: tit; min-width: 0; }
.ch-detalhe .dt-titulo h2 { margin-top: 6px; }
.ch-detalhe .janela-fechar { grid-area: x; justify-self: end; }
.dt-acoes { grid-area: ac; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.dt-notas { display: flex; gap: 6px; } /* nota de 1 a 5 do colaborador, no chamado resolvido */
.dt-notas .btn { min-width: 40px; padding-left: 0; padding-right: 0; font-family: var(--mono); }
.dt-acoes .btn { min-height: 44px; padding: 8px 16px; font-size: 13.5px; }
.janela.ch-detalhe { height: calc(100dvh - 24px); }
.ch-detalhe > .janela-topo, .ch-detalhe > .jn-avaliacao, .ch-detalhe > .jn-responder { flex: none; }
@media (min-width: 720px) {
  #detalheFundo { padding: 8px; }
  .janela.ch-detalhe { width: min(860px, 100%); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); padding: 16px 18px; }
  .dt-acoes .btn { min-height: 36px; padding: 6px 14px; font-size: 13px; }
  .ch-detalhe > .janela-topo { grid-template-rows: auto 1fr; grid-template-areas: "tit x" "tit ac"; row-gap: 8px; } /* título colado ao código; X em cima e ações embaixo, à direita */
  .dt-acoes { align-self: end; }
}
/* o CSP do painel bloqueia style="" no HTML; o que era inline virou classe */
svg.defs { position: absolute; }
.btn-solto { margin-top: 10px; }

/* ---------- Base de conhecimento: um cartão por área; artigo, editor e lacunas em pop-up ---------- */
.tela-base { display: grid; gap: 12px; align-content: start; padding-bottom: 84px; }
.bc-topo2 { display: grid; gap: 10px; align-items: center; }
.bc-topo2 h1 { font-size: 22px; letter-spacing: -.02em; }
.bc-grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.bc-card { display: grid; gap: 10px; align-content: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; animation: entra .3s ease both; animation-delay: calc(var(--i, 0) * 40ms); }
.bc-card:hover { border-color: rgba(var(--accent-rgb), .45); transform: translateY(-1px); }
.bc-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bc-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bc-card h2 { font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.bc-card .n { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--accent); }
.bc-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bc-card li { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-card li::before { content: "·"; color: var(--accent); margin-right: 8px; }
.bc-atencao { font-family: var(--mono); font-size: 11.5px; font-style: normal; font-weight: 500; color: var(--warn); flex: none; }
.bc-lista { padding: 0; overflow: hidden; }
.bc-cab2 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 14px 12px 12px; border-bottom: 1px solid var(--line); } /* colunas laterais iguais: o título fica no centro de verdade, apesar do Voltar */
.bc-cab2 h2 { grid-column: 2; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; min-width: 0; text-align: center; position: relative; padding-bottom: 8px; }
.bc-cab2 h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent-2) 25%, var(--accent) 75%, transparent); } /* fio roxo → rosa na largura do nome, esfumado nas pontas */
.bc-cab2 .bc-voltar { grid-column: 1; justify-self: start; }
.bc-cab2 .btn { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.bc-voltar { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 6px; border: 0; border-radius: 10px; background: transparent; color: var(--accent); font: 600 13px var(--font); cursor: pointer; }
.bc-voltar svg { width: 16px; height: 16px; }
.bc-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.bc-cab2 + .bc-row { border-top: 0; }
.bc-row:hover { background: var(--soft); }
.bc-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.bc-row b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.bc-row span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-row.melhor { background: var(--accent-weak); }
.bc-row.melhor::before { content: "a Malia responderia com este"; grid-column: 1 / -1; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bc-vazio { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; list-style: none; }
.bc-lac-linha { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 1px dashed rgba(var(--accent-rgb), .4); border-radius: 14px; background: transparent; color: var(--text); font: 500 13.5px var(--font); cursor: pointer; text-align: left; }
.bc-lac-linha b { font-family: var(--mono); color: var(--accent); } .bc-lac-linha span { flex: 1; } .bc-lac-linha svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.bc-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 56px; height: 56px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--btn-text); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(var(--accent-rgb), .35); cursor: pointer; }
.bc-fab svg { width: 24px; height: 24px; }
.bc-fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* leitor */
.bc-janela { display: grid; gap: 12px; }
.bc-le-trilha { font-family: var(--mono); font-size: 12px; color: var(--accent); } .bc-le-trilha em { font-style: normal; color: var(--warn); }
.bc-le-titulo { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 4px; }
.bc-le-quem { margin-top: 6px; font-size: 13px; color: var(--muted); }
.bc-le-aviso { font-size: 13px; color: var(--warn); background: rgba(251, 191, 36, .08); border: 1px dashed rgba(251, 191, 36, .45); border-radius: 12px; padding: 8px 12px; }
.bc-le-curta { border: 1px solid rgba(var(--accent-rgb), .35); background: var(--accent-weak); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.bc-le-rotulo { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.bc-le-curta p { font-size: 14.5px; line-height: 1.5; }
.bc-le-corpo { display: grid; gap: 8px; font-size: 14px; line-height: 1.55; }
.bc-le-corpo ol { padding-left: 22px; display: grid; gap: 6px; } .bc-le-corpo p { color: var(--muted); }
.bc-le-meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.bc-le-acoes .btn { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.bc-teste { border-top: 1px solid var(--line); padding-top: 10px; }
.bc-teste summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 28px; font-weight: 600; font-size: 13.5px; color: var(--accent); }
.bc-teste summary::-webkit-details-marker { display: none; }
.bc-teste summary::after { content: ""; width: 7px; height: 7px; margin-right: 3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.bc-teste[open] summary::after { transform: rotate(-135deg); }
.bc-teste form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
.bc-teste input { min-height: 40px; font: inherit; font-size: 14px; color: var(--text); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.bc-teste input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.bc-teste .btn { min-height: 40px; padding: 6px 14px; font-size: 13px; }
.bc-teste-saida { grid-column: 1 / -1; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; display: grid; gap: 4px; border: 1px solid var(--line); background: var(--soft); }
.bc-teste-saida b { font-weight: 600; } .bc-teste-saida p { color: var(--muted); } .bc-teste-saida small { color: var(--warn); }
.bc-teste-saida.ok { border-color: rgba(52, 211, 153, .4); } .bc-teste-saida.ok b { color: var(--green); }
.bc-teste-saida.falha { border-color: rgba(255, 107, 107, .4); } .bc-teste-saida.falha b { color: var(--err); }
.bc-teste-saida.outro { border-color: rgba(251, 191, 36, .4); } .bc-teste-saida.outro b { color: var(--warn); }
/* leitor: a conversa */
.bc-chat-le .jn-msg.pessoa + .jn-msg.pessoa { margin-top: -4px; }
.bc-op-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bc-op-chips span, .bc-opcoes .bc-mais { font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .45); border-radius: 999px; padding: 4px 10px; background: transparent; }
.jn-msg.malia.ramo { margin-left: 22px; max-width: calc(88% - 22px); }
.jn-msg.malia.ramo::before { display: none; }
.jn-msg.malia.ramo small { display: block; font-family: var(--mono); font-size: 10px; color: var(--accent); margin-bottom: 2px; }
.bc-fim { display: grid; gap: 8px; border: 1px dashed rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .06); border-radius: 14px; padding: 10px 12px; }
.bc-fim .rot { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--warn); }
.bc-fim label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.bc-fim.le .bc-le-corpo { font-size: 13.5px; }
/* editor: escreve como num chat */
.bc-janela textarea { resize: none; }
.janela.bc-editor { gap: 10px; }
.bc-editor input, .bc-editor textarea { width: 100%; min-width: 0; font: inherit; font-size: 13.5px; color: var(--text); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.bc-editor input:focus, .bc-editor textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.bc-ed-titulo { min-height: 44px; font-size: 16px; font-weight: 600; border-radius: 12px; }
.bc-chat-rolo { display: block; } /* grade com max-height esmaga a linha do chat; bloco não */
.bc-chat-rolo .bc-fim { margin-top: 10px; }
.bc-chat { min-height: 180px; }
.bc-chat-vazio { margin: auto; font-size: 13px; color: var(--muted); text-align: center; padding: 24px 12px; }
.bc-chat .jn-msg { position: relative; }
.bc-chat .jn-msg .texto { cursor: text; white-space: pre-wrap; }
.bc-chat .jn-msg textarea.edita { background: rgba(var(--bg-rgb), .5); border-radius: 8px; padding: 6px 8px; }
.bc-msg-acoes { display: flex; gap: 10px; margin-top: 4px; }
.bc-msg-acoes button { border: 0; background: transparent; padding: 0; font: inherit; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--muted); cursor: pointer; opacity: .55; transition: opacity .15s, color .15s; }
@media (hover: hover) { .bc-msg-acoes button { opacity: 0; } }
.bc-chat .jn-msg:hover .bc-msg-acoes button, .bc-chat .jn-msg:focus-within .bc-msg-acoes button { opacity: 1; }
.bc-msg-acoes button:hover { color: var(--accent); }
.bc-opcoes { display: grid; gap: 6px; margin-top: 8px; }
.bc-opcao { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "rot tira" "txt txt"; gap: 6px; align-items: start; }
.bc-opcao input { grid-area: rot; } .bc-opcao .bc-mini { grid-area: tira; } .bc-opcao textarea { grid-area: txt; font-size: 13px; }
.bc-opcao input { font-weight: 600; min-height: 36px; padding: 6px 10px; }
.bc-mini { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.bc-mini:hover { color: var(--err); border-color: rgba(255, 107, 107, .5); }
.bc-opcoes .bc-mais { justify-self: start; cursor: pointer; }
.bc-compor { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.bc-de { grid-column: 1 / -1; display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); justify-self: start; }
.bc-de button { min-height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.bc-de button.on { color: var(--sobre-amarelo); background: var(--accent-2); }
.bc-de button.on[data-de="malia"] { background: var(--accent); }
.bc-compor textarea { min-height: 48px; }
.bc-compor textarea.malia { border-color: rgba(var(--accent-rgb), .45); }
.bc-compor .btn { min-height: 48px; }
/* lacunas */
.bc-lac { list-style: none; margin: 0; padding: 0; display: grid; }
.bc-lac li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.bc-lac li:first-child { border-top: 0; padding-top: 0; }
.bc-lac li > div { flex: 1 1 100%; min-width: 0; display: grid; gap: 3px; }
.bc-lac q { font-size: 14px; font-weight: 600; quotes: "“" "”"; }
.bc-lac small { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.bc-lac .btn { min-height: 36px; padding: 6px 12px; font-size: 13px; flex: none; margin-left: auto; } .bc-lac .btn + .btn { margin-left: 0; }
@media (min-width: 720px) {
  .bc-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-janela { width: min(680px, 100%); }
  .janela.bc-editor { width: min(760px, 100%); }
  .bc-chat-rolo { max-height: 52vh; overflow: auto; padding-right: 2px; }
  .bc-opcao { grid-template-columns: 180px minmax(0, 1fr) auto; grid-template-areas: "rot txt tira"; }
  .bc-compor { grid-template-columns: auto minmax(0, 1fr) auto; }
  .bc-de { grid-column: auto; align-self: end; margin-bottom: 6px; }
  .bc-lac li { flex-wrap: nowrap; } .bc-lac li > div { flex: 1 1 auto; }
}
@media (min-width: 901px) { .bc-fab { right: 28px; bottom: 24px; } }
@media (min-width: 1100px) { .bc-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* resultados: a área do técnico, período escolhido contra o anterior, numa tela só e sem cartões. Celular primeiro. */
.tela-numeros .pag-titulo { margin-bottom: 0; }
.nm-topo { display: grid; gap: 12px; }
.nm-ferramentas { display: flex; gap: 8px; align-items: stretch; }
.nm-ferramentas .nm-per-btn { flex: 1; width: auto; min-width: 0; }
.nm-ferramentas #nmCsv { flex: none; white-space: nowrap; }
.nm-per-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 500; color: var(--text); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s; font-variant-numeric: tabular-nums; }
.nm-per-btn:hover { border-color: rgba(var(--accent-rgb), .45); }
.nm-per-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nm-per-btn svg { width: 17px; height: 17px; flex: none; color: var(--muted); }
.nm-per-btn .seta { width: 15px; height: 15px; margin-left: auto; }
.nm-ptitulo { margin: 0; text-align: center; }
.nm-cal { display: grid; gap: 6px; }
.nm-cal-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.nm-cal-topo b { font-size: 14.5px; font-weight: 600; }
.nm-cal-topo button:disabled { opacity: .35; cursor: not-allowed; }
.nm-cal-sem, .nm-cal-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.nm-cal-sem span { padding: 2px 0; font-size: 11.5px; text-align: center; color: var(--muted); }
.nm-cal-dias { row-gap: 2px; }
.dia { height: 40px; padding: 0; font: inherit; font-size: 14px; color: var(--text); background: none; border: 0; border-radius: 10px; cursor: pointer; font-variant-numeric: tabular-nums; }
.dia:hover:not(:disabled) { background: var(--soft); }
.dia:disabled { color: var(--muted); opacity: .35; cursor: not-allowed; }
.dia:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dia.hoje { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45); }
.dia.meio, .dia.meio:hover:not(:disabled) { background: var(--accent-weak); border-radius: 0; }
.dia.ini, .dia.fim, .dia.ini:hover:not(:disabled), .dia.fim:hover:not(:disabled) { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--btn-text); font-weight: 600; }
.dia.ini:not(.fim) { border-radius: 10px 0 0 10px; } .dia.fim:not(.ini) { border-radius: 0 10px 10px 0; }
.nm-paplicar { width: 100%; min-height: 50px; font-size: 15px; }
#nmPAplicar:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
#nmSub b { color: var(--accent); font-weight: 600; }
#nmCorpo { display: grid; gap: 32px; padding-top: 20px; animation: entra .4s ease both; }
#nmCorpo h2 { font-size: 15px; font-weight: 600; margin: 0; }
.nm-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.nm-chip.bom { color: var(--green); } .nm-chip.ruim { color: var(--err); }
.nm-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 12.5px; color: var(--muted); }
.nm-leg > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; } /* cada pedaço quebra inteiro, nunca o quadradinho longe do nome */
.nm-leg > .nm-leg-t { font-size: 12.5px; }
.nm-leg i { width: 10px; height: 10px; border-radius: 3px; background: var(--text); }
.nm-leg i.antes { background: var(--col-antes); } /* legenda do gráfico do pop-up: as colunas "anteriores" são sólidas, em tom apagado */
/* abertura: a faixa que conta a história */
.nm-abre { display: grid; gap: 10px; }
.nm-total { margin: 0; font-size: 13px; color: var(--muted); }
.nm-faixa { display: flex; gap: 3px; min-height: 96px; }
.nm-faixa > div { display: grid; align-content: center; padding: 12px 14px; min-width: 0; overflow: hidden; }
.nm-faixa b { font-size: clamp(30px, 4vw, 42px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nm-faixa span { font-size: 13px; font-weight: 500; line-height: 1.3; }
.nm-faixa .malia { background: var(--malia); color: var(--sobre-amarelo); border-radius: 12px 4px 4px 12px; }
.nm-faixa .equipe { background: var(--equipe); color: var(--sobre-equipe); border-radius: 4px 12px 12px 4px; }
.nm-faixa > :only-child { border-radius: 12px; }
/* barra fina: trilho e preenchimento */
.nm-fina { display: block; height: 4px; border-radius: 2px; background: var(--trilho); overflow: hidden; }
.nm-fina i { display: block; height: 100%; border-radius: 2px; background: var(--text); }
.nm-fina.malia i { background: var(--malia); }
/* abaixo da faixa: à esquerda o que mudou e as áreas; à direita os tipos */
.nm-cols { display: grid; gap: 32px; align-items: start; }
.nm-esq { display: grid; gap: 32px; }
.nm-bloco { display: grid; gap: 12px; }
.nm-ind { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 10px; }
.nm-ind .rot { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.nm-ind b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.nm-ind .nm-chip, .nm-tipo .nm-chip { font-size: 13px; font-weight: 500; white-space: nowrap; }
.nm-area { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; font-size: 14px; }
.nm-area .p { font-variant-numeric: tabular-nums; }
.nm-area .nm-fina { grid-column: 1 / -1; }
/* onde a equipe gasta tempo: cada linha abre o pop-up */
.nm-tipos { display: grid; min-width: 0; }
#nmCorpo .nm-tipos > h2 { margin-bottom: 12px; text-align: center; }
#nmCorpo .nm-esq > .nm-bloco > h2 { text-align: center; }
.nm-ent { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 11px 8px; margin: 22px -8px 2px; border-radius: 10px; background: var(--trilho); } /* a faixa que abre cada entidade */
.nm-ent:first-of-type { margin-top: 0; }
.nm-ent + .nm-tipo { border-top: 0; }
.nm-ent h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.nm-ent .h { font-size: 16px; font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nm-ent .nm-chip { grid-column: 1 / -1; font-size: 13px; font-weight: 500; white-space: nowrap; }
.nm-grupo { padding: 14px 8px 4px; margin: 0 -8px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; } /* rótulo do grupo de tipos (0011) */
.nm-grupo + .nm-tipo { border-top: 0; }
.nm-tipo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 11px 8px; margin: 0 -8px; border-top: 1px solid var(--line); }
.nm-tipo > button[data-tipo] { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; }
.nm-tipo:hover, .nm-tipo:focus-within { background: var(--soft); }
.nm-tipo > button[data-tipo]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nm-tipo .nome { font-size: 14.5px; font-weight: 500; line-height: 1.35; pointer-events: none; }
.nm-tipo small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.nm-tipo .pouco { color: var(--warn); }
.nm-tipo .nat { color: var(--muted); }
.ml-row.destaque { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(var(--accent-2-rgb), .35); } /* a melhoria que acabou de chegar de Resultados */
.nm-tipo .nm-fina { grid-column: 1 / -1; grid-row: 2; pointer-events: none; }
.nm-tipo .h { font-size: 14.5px; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
.nm-tipo .nm-chip { grid-column: 1 / -1; pointer-events: none; }
/* pop-up do tipo */
.nm-janela { gap: 16px; }
.nm-fatos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.nm-fatos > div { display: grid; gap: 2px; }
.nm-fatos .rot { font-size: 12px; color: var(--muted); }
.nm-fatos b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.nm-fatos small { font-size: 12px; color: var(--muted); }
.nm-colunas { display: block; width: 100%; height: 170px; overflow: visible; }
.nm-colunas .grade { stroke: var(--line); stroke-width: 1; }
.nm-colunas .eixo { fill: var(--muted); font-family: var(--mono); font-size: 10.5px; }
.nm-colunas .alvo { fill: transparent; }
.nm-colunas .col { fill: var(--text); }
.nm-colunas .antes .col { fill: var(--col-antes); }
.nm-colunas .v { fill: var(--text); font-family: var(--mono); font-size: 11px; font-weight: 600; opacity: 0; transition: opacity .15s; }
.nm-colunas .b { outline: 0; }
.nm-colunas .b:hover .v, .nm-colunas .b:focus .v { opacity: 1; }
.nm-colunas .b:hover .alvo, .nm-colunas .b:focus .alvo { fill: var(--soft); }
@media (min-width: 720px) {
  .janela.nm-janela { width: min(600px, 100%); }
  .nm-topo { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px; }
  .nm-per-btn { width: auto; min-height: 40px; }
  .janela.nm-pjanela { width: min(380px, 100%); }
  .nm-faixa { min-height: 104px; }
  .nm-faixa > div { padding: 12px 22px; }
  .nm-faixa span { font-size: 13.5px; }
  .nm-tipo { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 52px 96px; gap: 4px 16px; }
  .nm-tipo .nm-fina { grid-column: auto; grid-row: auto; }
  .nm-tipo .nm-chip { grid-column: auto; justify-content: flex-end; }
  .nm-ent { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 52px 96px; gap: 4px 16px; }
  .nm-ent h3 { grid-column: 1 / 3; }
  .nm-ent .nm-chip { grid-column: auto; justify-content: flex-end; text-align: right; }
}
@media (min-width: 1100px) {
  .nm-cols { grid-template-columns: minmax(230px, 1fr) minmax(0, 2.2fr); gap: 36px 56px; }
}
/* melhorias: sugestões de quem usa, com apoio e situação */
.tela-melhorias { display: flex; flex-direction: column; gap: 12px; }
.tela-melhorias .pag-titulo { margin-bottom: 0; }
.ml-abas .aba { flex: 1 1 0; min-width: 0; }
.ml-lista { display: grid; gap: 8px; padding-bottom: 72px; }
.ml-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: start; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sombra); animation: entra .4s ease both; animation-delay: calc(var(--i, 0) * 35ms); }
.ml-row.feita { opacity: .7; }
.ml-apoio { grid-row: 1 / span 2; display: grid; justify-items: center; gap: 2px; min-width: 44px; min-height: 44px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--muted); font: inherit; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.ml-apoio svg { width: 16px; height: 16px; }
.ml-apoio b { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.ml-apoio:hover { color: var(--text); border-color: rgba(var(--accent-rgb), .45); }
.ml-apoio.on { color: var(--accent); border-color: rgba(var(--accent-rgb), .5); background: var(--accent-weak); }
.ml-texto { display: grid; gap: 3px; min-width: 0; }
.ml-texto h3 { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.ml-texto p { font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ml-texto small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ml-lado { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ml-st { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 600; }
.ml-com { font-size: 12px; color: var(--muted); }
.ml-btn { min-height: 30px; padding: 4px 12px; font-size: 12.5px; }
.ml-retorno { color: var(--text); border-left: 2px solid var(--green); padding-left: 8px; }
.ml-st.enviada { color: var(--accent); border-color: rgba(var(--accent-rgb), .45); }
.ml-st.analise { color: var(--warn); border-color: rgba(251, 191, 36, .45); }
.ml-st.feita { color: var(--green); border-color: rgba(52, 211, 153, .45); }
.ml-vazio { padding: 28px 16px; text-align: center; font-size: 13.5px; color: var(--muted); }
.ml-tipo { justify-self: start; }
.ml-janela .campos label small { font-weight: 400; color: var(--muted); font-size: 11.5px; margin-left: 4px; }
@media (min-width: 720px) {
  .ml-abas .aba { flex: none; min-width: max-content; padding: 8px 18px; }
  .ml-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ml-lado { grid-column: 3; grid-row: 1 / span 2; justify-self: end; align-self: start; flex-direction: column; align-items: flex-end; gap: 6px; }
}
/* aviso da ChaMalia, acima dos chamados; só a equipe vê */
.av-faixa { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 14px; background: var(--accent-weak); animation: sobe .2s ease both; }
.av-faixa-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.av-faixa-txt b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.av-faixa-txt p { font-size: 13px; color: var(--muted); line-height: 1.45; }
.av-faixa-txt small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
body.colaborador .av-faixa { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Esquema Amarelo (o mesmo do site): botões amarelos, barra lateral clara, o nome Malia em tarja ---------- */
.btn { background: #ffd60a; color: var(--sobre-amarelo); box-shadow: none; }
.btn:hover { background: #f2c600; filter: none; }
.btn.g { background: var(--card); color: var(--text); border: 2px solid var(--line); box-shadow: none; }
.btn.g:hover { background: var(--accent-weak); border-color: #ffd60a; }
.lado { background: var(--lado-bg); backdrop-filter: none; border-right: 1px solid var(--line); }
.lado-item.ativo { background: #ffd60a; color: var(--sobre-amarelo); }
.lado-item.ativo::before { background: #c9a600; }
.lado-marca em, .topo-marca span { color: var(--sobre-amarelo); background: #ffd60a; padding: 0 .12em; border-radius: .14em; text-shadow: none; }
/* o número do chamado no modo claro: a tarja da logo, porque letra amarela não se lê sobre branco */
html:not([data-tema="escuro"]) td.c-cod span, html:not([data-tema="escuro"]) .dt-titulo .jn-num span { color: var(--sobre-amarelo); background: #ffd60a; padding: 1px .4em; border-radius: .3em; }
html:not([data-tema="escuro"]) .dt-titulo .jn-num { color: var(--muted); }
/* o botão do modo noturno na barra lateral: um item do menu com uma chave */
.lado-tema { margin-bottom: 6px; }
.lado-tema .chave { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--line); flex: none; transition: background .2s ease; }
.lado-tema .chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: transform .2s ease; }
html[data-tema="escuro"] .lado-tema .chave { background: var(--accent-2); }
html[data-tema="escuro"] .lado-tema .chave::after { transform: translateX(14px); }
body.lado-recolhido .lado-tema .chave { display: none; }
.lado-tema .lua { color: var(--text); }
.lado-tema .sol { color: #ffd60a; }
.lado-tema .sol, html[data-tema="escuro"] .lado-tema .lua { display: none; } /* o ícone mostra o modo para onde o botão leva */
html[data-tema="escuro"] .lado-tema .sol { display: block; }

/* ---------- painel ligado ao servidor ---------- */
body:not(.demo) .lado-ver, body:not(.demo) .perfil-troca, body:not(.demo) #cfgDemo { display: none; }
body.demo #cfgConta { display: none; } /* a demonstração não tem conta */
/* avisos para a equipe: o sino (barra lateral e topo do celular), a lista e as preferências em Configurações */
.topo-sino { position: relative; margin-left: 0; }
.topo-sino svg { width: 20px; height: 20px; }
.topo-sino i { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
body.colaborador .topo-sino, body.colaborador .lado-sino { display: none; }
.nt-lista { list-style: none; margin: 0; padding: 0; display: grid; }
.nt-lista li { border-top: 1px solid var(--line); }
.nt-lista li:first-child { border-top: 0; }
.nt-lista button { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 2px 10px; align-items: start; width: 100%; padding: 11px 2px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.nt-lista button:hover b { color: var(--accent); }
.nt-lista i { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); grid-row: 1 / 4; }
.nt-lista li.lida i { visibility: hidden; }
.nt-lista b { font-size: 14px; font-weight: 600; }
.nt-lista p { margin: 0; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-lista small { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.nt-lista .nt-vazio { padding: 14px 2px; color: var(--muted); font-size: 14px; }
.cfg-avisos label.check { display: flex; align-items: center; gap: 8px; cursor: pointer; flex: 1; }
.cfg-avisos label.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
#cfgAvisos .form-msg:empty { display: none; }
/* Equipe › pessoa (só o gerente): a linha abre o pop-up com cadastro, áreas e os pedidos da LGPD */
.pessoas li[data-pessoa] { cursor: pointer; }
.pessoas li[data-pessoa]:hover b { color: var(--accent); }
.ps-areas .ps-area { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.ps-areas .ps-area .select { margin-left: auto; width: auto; min-height: 34px; padding: 4px 30px 4px 10px; font-size: 13px; background-size: 16px; background-position: right 8px center; }
.ps-areas .ps-area .select.hidden { display: none; }
.ps-areas .ps-area .eq-chip { margin-left: auto; }
.ps-lgpd button { border: 0; padding: 0; background: none; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ps-lgpd button.perigo { color: var(--err); }
.ps-lgpd button:disabled { opacity: .5; cursor: default; }
#psFundo .janela-acoes { justify-content: space-between; }
#psFundo .form-msg:empty { display: none; }
.campos label.check { display: flex; align-items: center; gap: 8px; }
.campos label.check input { width: 17px; height: 17px; min-height: 0; padding: 0; border: 0; background: none; border-radius: 0; }
/* convidar atendente */
.cv-areas { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.cv-areas legend { font-size: 12.5px; color: var(--muted); padding: 0; margin-bottom: 4px; }
.campos .cv-areas label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); }
.campos .cv-areas input { width: 17px; height: 17px; min-height: 0; padding: 0; border: 0; background: none; border-radius: 0; accent-color: var(--accent); }
.cv-link { display: grid; gap: 10px; }
.cv-link label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.cv-link input { width: 100%; min-height: 44px; font: 500 12.5px var(--mono); color: var(--text); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.cv-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.eq-convite { min-height: 32px; padding: 4px 10px; font-size: 12.5px; white-space: nowrap; } /* "Ver como" e Restaurar só na demonstração */
.dt-acoes.ocupado { opacity: .55; pointer-events: none; }
.dt-msg { grid-column: 1 / -1; margin: 6px 0 0; font-size: 13px; color: var(--err); }
.fila-neutro { grid-auto-flow: row; align-content: center; justify-items: center; gap: 12px; text-align: center; padding: 0 16px; }
.fila-neutro .btn { min-height: 36px; }
/* primeiros passos: a lista vazia do gerente numa empresa sem chamados vira a lista do que deixar pronto */
.pp { width: min(100%, 460px); text-align: left; display: grid; gap: 4px; }
.pp h3 { font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.pp > p { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.pp ol { list-style: none; margin: 0; padding: 0; display: grid; }
.pp li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.pp li:first-child { border-top: 0; }
.pp li div { flex: 1; min-width: 0; }
.pp li b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.pp li small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.pp li .btn { min-height: 32px; padding: 4px 10px; font-size: 12.5px; flex: none; }
.pp-m { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; }
.pp li.ok .pp-m { border-color: var(--accent); background: var(--accent-weak); color: var(--accent); }
.pp-m svg { width: 12px; height: 12px; }
.janela:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.dt-min { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dt-min input { width: 84px; min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; }
.prz-grade { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px 10px; align-items: center; }
.prz-grade .cab { font-size: 12.5px; color: var(--muted); }
.prz-grade .cab:not(:first-child) { text-align: center; }
.prz-grade .lin { font-size: 13.5px; color: var(--text); white-space: nowrap; }
.prz-grade input { text-align: center; }
.rg-lista li b { text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 13.5px; color: var(--text); font-weight: 600; }
.rg-lista .rg-editar, .tp-lista .rg-editar { min-height: 32px; padding: 4px 10px; font-size: 12.5px; }
.tp-lista li span small { display: block; color: var(--muted); font-size: 12px; }
.tp-lista li.off span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(var(--accent-rgb), .5); }
.tp-lista li b { white-space: nowrap; }
.nm-vazio, .nm-erro { padding: 28px 0; color: var(--muted); font-size: 14px; display: grid; gap: 12px; justify-items: start; }
