/* Chamados · Doutor Digital
   Azul #0086F7 + ouro #FFB500, tema claro, só fontes do sistema (nada de CDN).
   O desenho que fica na memória é a "senha" de recepção: o protocolo do chamado aparece como um
   canhoto picotado, igual à senha que a recepção da clínica entrega. O resto fica quieto. */

:root {
  --azul: #0086f7;
  --azul-escuro: #0063b8;
  --azul-claro: #e6f3ff;
  --ouro: #ffb500;
  --ouro-claro: #fff4d6;
  --ouro-escuro: #8a5d00;
  --tinta: #14233b;
  --tinta-2: #4f5f78;
  --tinta-3: #8593a8;
  --linha: #e1e7ef;
  --papel: #f4f6f9;
  --branco: #fff;
  --vermelho: #d93448;
  --vermelho-claro: #fdecee;
  --verde: #12915a;
  --verde-claro: #e5f6ee;
  --nota: #fff8e5;
  --raio: 14px;
  --sombra: 0 1px 2px rgba(20, 35, 59, .06), 0 6px 20px rgba(20, 35, 59, .06);
  --fonte: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.5;
  color: var(--tinta);
  background: var(--papel);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--azul-escuro); }
:focus-visible { outline: 3px solid rgba(0, 134, 247, .45); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- barra do topo ---------- */
.topo {
  background: var(--branco);
  border-bottom: 1px solid var(--linha);
  position: sticky; top: 0; z-index: 20;
}
.topo-dentro {
  max-width: 1180px; margin: 0 auto; padding: 10px 18px;
  display: flex; align-items: center; gap: 14px; min-height: 58px;
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); }
.marca-selo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--azul); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: -.04em;
  position: relative; flex: none;
}
.marca-selo::after {
  content: ''; position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--ouro); border: 2px solid var(--branco);
}
.marca-logo { width: 36px; height: 36px; object-fit: contain; flex: none; display: block; }
.marca-txt { display: flex; flex-direction: column; line-height: 1.15; }
.marca-txt b { font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
.marca-txt span { font-size: 12px; color: var(--tinta-2); }
.topo-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.topo-dir { margin-left: auto; }
.topo-nav a, .topo-nav button {
  border: 0; background: none; text-decoration: none; color: var(--tinta-2);
  font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 9px;
}
.topo-nav a:hover, .topo-nav button:hover { background: var(--papel); color: var(--tinta); }
.topo-nav a[aria-current='page'] { color: var(--azul-escuro); background: var(--azul-claro); }

/* ---------- corpo ---------- */
.pagina { max-width: 640px; margin: 0 auto; padding: 22px 16px 48px; }
.pagina.larga { max-width: 1180px; padding-left: 18px; padding-right: 18px; }

.olho {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--azul-escuro);
  background: var(--azul-claro); border-radius: 99px; padding: 4px 12px 4px 10px;
}
.olho::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ouro); }
h1 { font-size: clamp(26px, 6vw, 34px); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; margin: 12px 0 6px; }
h2 { font-size: 19px; letter-spacing: -.01em; margin: 0 0 4px; font-weight: 750; }
.sub { color: var(--tinta-2); margin: 0 0 22px; }

.cartao {
  background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio);
  box-shadow: var(--sombra); padding: 20px;
}
.cartao + .cartao { margin-top: 16px; }

/* ---------- formulário ---------- */
.campo { margin-bottom: 22px; }
.campo:last-child { margin-bottom: 0; }
.rotulo { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.rotulo small { font-weight: 500; color: var(--tinta-3); font-size: 13px; }
.dica { font-size: 13.5px; color: var(--tinta-2); margin: 6px 0 0; }
.erro-campo { font-size: 13.5px; color: var(--vermelho); margin: 6px 0 0; font-weight: 600; }

input[type='text'], input[type='url'], input[type='password'], input[type='search'], textarea, select {
  width: 100%; border: 1.5px solid #cfd8e4; border-radius: 11px; background: var(--branco);
  padding: 12px 13px; font-size: 16px; transition: border-color .12s, box-shadow .12s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(0, 134, 247, .15); }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--vermelho); }
textarea { min-height: 140px; resize: vertical; line-height: 1.45; }
select {
  appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%234f5f78' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
::placeholder { color: #9aa6b8; }

/* categorias: fichas */
.fichas { display: flex; flex-wrap: wrap; gap: 8px; }
.ficha { position: relative; }
.ficha input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ficha span {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid #cfd8e4; background: var(--branco); border-radius: 99px;
  padding: 9px 14px; font-weight: 600; font-size: 14.5px; color: var(--tinta-2);
  transition: all .12s;
}
.ficha input:checked + span { border-color: var(--azul); background: var(--azul-claro); color: var(--azul-escuro); }
.ficha input:focus-visible + span { outline: 3px solid rgba(0, 134, 247, .45); outline-offset: 2px; }

/* prioridades: três cartões com a cor da pressa na borda */
.pressas { display: grid; gap: 8px; }
.pressa { position: relative; display: block; }
.pressa input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pressa .caixa {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid #cfd8e4; border-left-width: 6px; border-radius: 12px; background: var(--branco);
  padding: 12px 14px; transition: all .12s;
}
.pressa .bola { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b9c4d3; flex: none; display: grid; place-items: center; }
.pressa b { display: block; font-size: 15.5px; }
.pressa small { display: block; color: var(--tinta-2); font-size: 13.5px; }
.pressa.urgente .caixa { border-left-color: var(--vermelho); }
.pressa.hoje .caixa { border-left-color: var(--ouro); }
.pressa.pode_esperar .caixa { border-left-color: #8fa3bd; }
.pressa input:checked + .caixa { border-color: var(--azul); border-left-color: inherit; background: var(--azul-claro); }
.pressa.urgente input:checked + .caixa { border-left-color: var(--vermelho); }
.pressa.hoje input:checked + .caixa { border-left-color: var(--ouro); }
.pressa.pode_esperar input:checked + .caixa { border-left-color: #8fa3bd; }
.pressa input:checked + .caixa .bola { border-color: var(--azul); background: radial-gradient(var(--azul) 45%, transparent 50%); }
.pressa input:focus-visible + .caixa { outline: 3px solid rgba(0, 134, 247, .45); outline-offset: 2px; }

.lista-dica { margin: 8px 0 0; padding: 10px 12px 10px 30px; background: var(--papel); border-radius: 10px; font-size: 13.5px; color: var(--tinta-2); }
.lista-dica li + li { margin-top: 2px; }

/* prints */
.prints { display: flex; flex-wrap: wrap; gap: 10px; }
.print {
  position: relative; width: 92px; height: 92px; border-radius: 11px; overflow: hidden;
  border: 1px solid var(--linha); background: var(--papel);
}
.print img { width: 100%; height: 100%; object-fit: cover; display: block; }
.print button {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(20, 35, 59, .78); color: #fff; font-size: 16px; line-height: 1; display: grid; place-items: center;
}
.add-print {
  width: 92px; height: 92px; border-radius: 11px; border: 1.5px dashed #b9c4d3; background: var(--branco);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--azul-escuro); font-weight: 600; font-size: 12.5px; text-align: center; cursor: pointer;
}
.add-print:hover { border-color: var(--azul); background: var(--azul-claro); }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 11px; background: var(--azul); color: #fff;
  font-weight: 700; font-size: 15px; padding: 12px 20px; text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 99, 184, .3); transition: background .12s;
}
.btn:hover { background: var(--azul-escuro); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.grande { width: 100%; padding: 15px 20px; font-size: 16.5px; }
.btn.claro { background: var(--branco); color: var(--tinta); border: 1.5px solid #cfd8e4; box-shadow: none; }
.btn.claro:hover { background: var(--papel); }
.btn.pequeno { padding: 7px 12px; font-size: 13.5px; border-radius: 9px; }
.btn.perigo { background: var(--branco); color: var(--vermelho); border: 1.5px solid #f2c6cc; box-shadow: none; }
.btn.perigo:hover { background: var(--vermelho-claro); }
.acoes { display: flex; gap: 10px; flex-wrap: wrap; }

.alerta { border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 16px; }
.alerta.erro { background: var(--vermelho-claro); color: #8f1d2c; border: 1px solid #f4c9cf; }
.alerta.info { background: var(--azul-claro); color: var(--azul-escuro); border: 1px solid #c5e2fd; }
.alerta.ouro { background: var(--ouro-claro); color: var(--ouro-escuro); border: 1px solid #ffe2a1; }

/* ---------- a senha (assinatura) ---------- */
.senha {
  position: relative; background: var(--branco); border-radius: 18px; box-shadow: var(--sombra);
  border: 1px solid var(--linha); overflow: hidden; margin: 6px 0 18px;
}
.senha-topo { padding: 22px 22px 18px; text-align: center; position: relative; }
.senha-topo::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 6px;
  background: repeating-linear-gradient(90deg, var(--azul) 0 22px, var(--ouro) 22px 30px);
}
.senha-rotulo { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-2); font-weight: 700; margin-top: 4px; }
.senha-num {
  font-family: var(--mono); font-weight: 800; font-size: clamp(56px, 18vw, 84px); line-height: 1;
  letter-spacing: -.04em; color: var(--tinta); margin: 10px 0 8px; font-variant-numeric: tabular-nums;
}
.senha-num i { font-style: normal; color: var(--azul); }
.senha-meta { color: var(--tinta-2); font-size: 14.5px; }
.picote { position: relative; height: 22px; }
.picote::before, .picote::after {
  content: ''; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--papel); border: 1px solid var(--linha);
}
.picote::before { left: -12px; }
.picote::after { right: -12px; }
.picote i { position: absolute; left: 18px; right: 18px; top: 10px; border-top: 2px dashed #cdd6e2; }
.senha-baixo { padding: 12px 20px 20px; }
.senha-baixo .link-copia {
  display: flex; gap: 8px; align-items: center; background: var(--papel); border-radius: 10px;
  padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; color: var(--tinta-2);
  word-break: break-all; margin: 8px 0 12px;
}

/* selo de prioridade e de status */
.selo {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 99px;
  font-size: 12.5px; font-weight: 700; padding: 3px 10px; white-space: nowrap;
}
.selo::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.selo.urgente { background: var(--vermelho-claro); color: var(--vermelho); }
.selo.hoje { background: var(--ouro-claro); color: var(--ouro-escuro); }
.selo.pode_esperar { background: #edf1f6; color: #50627c; }
.st { display: inline-block; border-radius: 7px; font-size: 12.5px; font-weight: 700; padding: 3px 9px; white-space: nowrap; }
.st.novo { background: var(--azul); color: #fff; }
.st.em_andamento { background: var(--azul-claro); color: var(--azul-escuro); }
.st.aguardando { background: var(--ouro-claro); color: var(--ouro-escuro); }
.st.resolvido { background: var(--verde-claro); color: var(--verde); }
.st.arquivado { background: #edf1f6; color: var(--tinta-3); }

/* ---------- acompanhamento ---------- */
.trilho { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0 4px; }
.trilho li { list-style: none; font-size: 12px; font-weight: 600; color: var(--tinta-3); }
.trilho li::before { content: ''; display: block; height: 6px; border-radius: 99px; background: #e3e8ef; margin-bottom: 6px; }
.trilho li.feito::before { background: var(--azul); }
.trilho li.agora { color: var(--tinta); }
.trilho li.agora::before { background: var(--ouro); }
.trilho { padding: 0; }

.desc { white-space: pre-wrap; word-wrap: break-word; margin: 0; }
.meta { color: var(--tinta-2); font-size: 14px; }
.link-cartao {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; font-size: 14.5px;
  text-decoration: none; border: 1.5px solid #c5e2fd; background: var(--azul-claro); border-radius: 10px; padding: 8px 12px;
  word-break: break-all;
}
.galeria { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.galeria button { padding: 0; border: 1px solid var(--linha); border-radius: 10px; overflow: hidden; width: 136px; height: 102px; background: var(--papel); }
.galeria img { object-position: left top; }
.galeria img { width: 100%; height: 100%; object-fit: cover; display: block; }

.conversa { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 0; }
.msg { max-width: 88%; }
.msg .quem { font-size: 12.5px; color: var(--tinta-3); margin: 0 4px 3px; font-weight: 600; }
.msg .balao { border-radius: 14px; padding: 10px 13px; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; }
.msg.unidade { align-self: flex-end; }
.msg.unidade .quem { text-align: right; }
.msg.unidade .balao { background: var(--azul-claro); border-bottom-right-radius: 4px; }
.msg.joao { align-self: flex-start; }
.msg.joao .balao { background: var(--branco); border: 1px solid var(--linha); border-bottom-left-radius: 4px; }
.msg.nota { align-self: stretch; max-width: none; }
.msg.nota .balao { background: var(--nota); border: 1px dashed #f0cf7a; }
.msg .galeria { margin-top: 6px; }
.msg .galeria button { width: 76px; height: 76px; }
.evento { align-self: center; font-size: 12.5px; color: var(--tinta-3); background: #edf1f6; border-radius: 99px; padding: 3px 12px; text-align: center; }
.evento.interno { background: var(--nota); color: var(--ouro-escuro); }

/* foto grande */
dialog.foto { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
dialog.foto::backdrop { background: rgba(10, 18, 32, .82); }
dialog.foto img { max-width: 96vw; max-height: 86vh; display: block; border-radius: 10px; }
dialog.foto .fechar { position: fixed; top: 14px; right: 14px; }

/* avisinho */
.aviso {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--tinta); color: #fff; border-radius: 11px; padding: 11px 18px; font-weight: 600; font-size: 14.5px;
  transition: all .2s; z-index: 50; max-width: calc(100vw - 32px);
}
.aviso.aparece { opacity: 1; transform: translate(-50%, 0); }

.carregando { color: var(--tinta-3); padding: 40px 0; text-align: center; }
.rodape { text-align: center; color: var(--tinta-3); font-size: 12.5px; margin-top: 30px; }

/* meus chamados (neste aparelho) */
.meus { list-style: none; padding: 0; margin: 8px 0 0; }
.meus li + li { border-top: 1px solid var(--linha); }
.meus a { display: flex; gap: 10px; align-items: baseline; padding: 10px 2px; text-decoration: none; color: var(--tinta); }
.meus .p { font-family: var(--mono); font-weight: 700; color: var(--azul-escuro); }
.meus .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= PAINEL ================= */
.contadores { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.contador {
  background: var(--branco); border: 1px solid var(--linha); border-radius: 12px; padding: 10px 14px;
  text-align: left; display: flex; flex-direction: column; gap: 2px;
}
button.contador:hover { border-color: #b9c4d3; }
.contador b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.contador span { font-size: 12.5px; color: var(--tinta-2); font-weight: 600; }
.contador.ativo { border-color: var(--azul); box-shadow: 0 0 0 2px rgba(0, 134, 247, .18); }
.contador.vermelho b { color: var(--vermelho); }
.contador.ouro b { color: var(--ouro-escuro); }

.unidades-faixa { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.chip-unidade {
  flex: none; border: 1px solid var(--linha); background: var(--branco); border-radius: 99px;
  padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--tinta-2); display: inline-flex; gap: 7px; align-items: center;
}
.chip-unidade b { font-variant-numeric: tabular-nums; color: var(--tinta); }
.chip-unidade .urg { width: 8px; height: 8px; border-radius: 50%; background: var(--vermelho); }
.chip-unidade[aria-pressed='true'] { border-color: var(--azul); background: var(--azul-claro); color: var(--azul-escuro); }

.filtros { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr 1.3fr; gap: 8px; margin-bottom: 14px; }
.filtros select, .filtros input { padding: 9px 12px; font-size: 14.5px; border-radius: 10px; }
.filtros select { padding-right: 32px; }

.fila { display: flex; flex-direction: column; gap: 8px; }
.linha-fila {
  display: grid; grid-template-columns: 92px 1fr auto; align-items: stretch;
  background: var(--branco); border: 1px solid var(--linha); border-radius: 13px;
  text-decoration: none; color: var(--tinta); overflow: hidden; transition: box-shadow .12s, border-color .12s;
}
.linha-fila:hover { border-color: #b9c4d3; box-shadow: var(--sombra); }
.canhoto {
  position: relative; padding: 12px 8px 12px 12px; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  border-right: 2px dashed #dbe2ec; background: #fafbfd;
}
.canhoto::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #8fa3bd; }
.linha-fila.urgente .canhoto::before { background: var(--vermelho); }
.linha-fila.hoje .canhoto::before { background: var(--ouro); }
.canhoto .p { font-family: var(--mono); font-weight: 800; font-size: 17px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.canhoto .pr { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #50627c; }
.linha-fila.urgente .pr { color: var(--vermelho); }
.linha-fila.hoje .pr { color: var(--ouro-escuro); }
.miolo { padding: 11px 14px; min-width: 0; }
.miolo .t { font-weight: 700; font-size: 15.5px; display: flex; gap: 8px; align-items: center; }
.miolo .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.novidade { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--azul); box-shadow: 0 0 0 3px var(--azul-claro); }
.miolo .m { font-size: 13.5px; color: var(--tinta-2); display: flex; gap: 6px 12px; flex-wrap: wrap; margin-top: 3px; }
.miolo .m .mudou { color: var(--tinta-3); }
.lado { padding: 11px 14px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; }
.idade { font-family: var(--mono); font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: #edf1f6; color: var(--tinta-2); white-space: nowrap; }
.idade.perto { background: var(--ouro-claro); color: var(--ouro-escuro); }
.idade.atrasado { background: var(--vermelho); color: #fff; }
.linha-fila.esperando { opacity: .72; }
.vazio { text-align: center; padding: 50px 20px; color: var(--tinta-2); background: var(--branco); border: 1px dashed #cfd8e4; border-radius: 14px; }
.vazio b { display: block; color: var(--tinta); font-size: 17px; margin-bottom: 4px; }

/* detalhe */
.voltar { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--tinta-2); margin-bottom: 12px; }
.detalhe { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.cab-detalhe { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cab-detalhe .p { font-family: var(--mono); font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.detalhe h1 { font-size: clamp(22px, 4vw, 28px); margin: 8px 0 4px; }
.lateral .cartao { padding: 16px; }
.lateral h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-2); margin: 0 0 10px; }
.botoes-escolha { display: grid; gap: 6px; }
.botoes-escolha button {
  text-align: left; border: 1.5px solid var(--linha); background: var(--branco); border-radius: 10px; padding: 9px 12px;
  font-weight: 600; font-size: 14.5px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.botoes-escolha button:hover { border-color: #b9c4d3; }
.botoes-escolha button[aria-pressed='true'] { border-color: var(--azul); background: var(--azul-claro); color: var(--azul-escuro); }
.botoes-escolha .marca-dela { font-size: 11.5px; font-weight: 700; color: var(--tinta-3); }
.dados-lat { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; }
.dados-lat dt { color: var(--tinta-2); }
.dados-lat dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }

.responder { margin-top: 16px; }
.alterna { display: inline-flex; background: var(--papel); border-radius: 10px; padding: 3px; margin-bottom: 10px; }
.alterna button { border: 0; background: none; border-radius: 8px; padding: 7px 12px; font-weight: 700; font-size: 13.5px; color: var(--tinta-2); }
.alterna button[aria-pressed='true'] { background: var(--branco); color: var(--tinta); box-shadow: 0 1px 2px rgba(20, 35, 59, .12); }
.responder.modo-nota textarea { background: var(--nota); border-color: #f0cf7a; }
.responder-rodape { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.responder-rodape select { width: auto; padding: 9px 34px 9px 12px; font-size: 14px; }
.responder-rodape .btn { margin-left: auto; }

/* links das unidades */
.tab-unidades { width: 100%; border-collapse: collapse; }
.tab-unidades th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-2); padding: 8px 10px; border-bottom: 1px solid var(--linha); }
.tab-unidades td { padding: 12px 10px; border-bottom: 1px solid var(--linha); vertical-align: middle; font-size: 14.5px; }
.tab-unidades tr:last-child td { border-bottom: 0; }
.tab-unidades .nome-u { font-weight: 700; }
.tab-unidades .nome-u small { display: block; font-weight: 500; color: var(--tinta-3); font-family: var(--mono); font-size: 12px; }
.tab-unidades .link-u { font-family: var(--mono); font-size: 12px; color: var(--tinta-2); max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-unidades .acoes { justify-content: flex-end; gap: 6px; }
.confirma { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--vermelho); flex-wrap: wrap; justify-content: flex-end; }
.rolavel { overflow-x: auto; }
.form-linha { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }

/* login */
.entrar-tela {
  position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 16px; overflow: hidden;
  background: linear-gradient(160deg, #f4f9ff 0%, #eef4fb 55%, #fff9ec 100%);
}
.entrar-fundo { position: absolute; inset: 0; pointer-events: none; }
.entrar-fundo .bolha { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; }
.entrar-fundo .b1 { width: 420px; height: 420px; left: -140px; top: -120px; background: radial-gradient(circle, rgba(0,134,247,.22), rgba(0,134,247,0) 70%); }
.entrar-fundo .b2 { width: 460px; height: 460px; right: -160px; bottom: -160px; background: radial-gradient(circle, rgba(255,181,0,.26), rgba(255,181,0,0) 70%); }
.entrar { position: relative; width: 100%; max-width: 400px; margin: 0; padding: 30px 28px 24px; text-align: center;
  box-shadow: 0 18px 48px rgba(20,35,59,.10); border-top: 4px solid var(--azul); }
.entrar-logo { width: 76px; height: 76px; display: block; margin: 0 auto 8px; object-fit: contain; }
.entrar-marca { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ouro-escuro); }
.entrar h1 { margin: 6px 0 4px; font-size: 26px; }
.entrar-sub { margin: 0 0 20px; font-size: 14px; color: var(--tinta-2); }
.entrar form { text-align: left; }
.entrar .dica { margin-top: 12px; }
.entrar-rodape { position: relative; margin: 18px 0 0; font-size: 12px; color: var(--tinta-3); }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .detalhe { grid-template-columns: 1fr; }
  .contadores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filtros { grid-template-columns: 1fr 1fr; }
  .filtros input { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .topo-dentro { padding: 8px 14px; }
  .marca-txt span { display: none; }
  .pagina { padding-top: 16px; }
  .cartao { padding: 16px; }
  .linha-fila { grid-template-columns: 74px 1fr; }
  .lado { grid-column: 2; flex-direction: row; justify-content: flex-start; padding: 0 14px 11px; }
  .canhoto { grid-row: span 2; }
  .canhoto .p { font-size: 15px; }
  .contador b { font-size: 22px; }
  .form-linha { grid-template-columns: 1fr; }
  .tab-unidades thead { display: none; }
  .tab-unidades tr { display: grid; grid-template-columns: 1fr; padding: 10px 0; border-bottom: 1px solid var(--linha); }
  .tab-unidades td { border: 0; padding: 4px 6px; }
  .tab-unidades .acoes { justify-content: flex-start; }
  .tab-unidades .link-u { max-width: 80vw; }
  .responder-rodape .btn { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

fieldset.sem-borda { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
legend.rotulo { padding: 0; }
.cab-detalhe .p i, .canhoto .p i { font-style: normal; color: var(--azul); }
.campo-curto { width: auto; flex: 1; min-width: 140px; padding: 9px 12px; font-size: 15px; }
.link-simples { border: 0; background: none; color: var(--azul-escuro); text-decoration: underline; padding: 0; font-size: inherit; }
.responder .prints { margin-top: 10px; }
.titulo-linha { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.titulo-linha h1 { margin: 0; }
.titulo-linha .sub { margin: 4px 0 0; }
.atualizado { font-size: 12.5px; color: var(--tinta-3); }
.nota-rotulo { font-size: 12px; font-weight: 700; color: var(--ouro-escuro); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.secao-titulo { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-2); margin: 26px 0 10px; font-weight: 700; }

.topo-nav .curto { display: none; }
.acoes-raras { display: flex; gap: 12px; margin-top: 4px; font-size: 12.5px; }
.acoes-raras .link-simples { color: var(--tinta-2); }
.fila-u { white-space: nowrap; }
.tab-unidades th:first-child { width: 26%; }
.tab-unidades th:nth-child(2) { width: 10%; }
@media (max-width: 560px) {
  .topo-nav { flex-wrap: nowrap; }
  .topo-nav a, .topo-nav button { padding: 7px 9px; font-size: 13.5px; }
  .topo-nav .longo { display: none; }
  .topo-nav .curto { display: inline; }
  .miolo .t span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .filtros select, .filtros input { font-size: 14px; }
}
