/* App Avante — paleta da marca Avante (triângulo preto + anel dourado), assinatura Blackamel */
:root {
  --tinta: #1C1A17;
  --ouro: #C69A34;
  --ouro-texto: #86621A;
  --fundo: #ECEEF0;
  --papel: #FFFFFF;
  --linha: #D5D9DE;
  --texto: #1C1A17;
  --texto2: #555C66;
  --aberto: #B26A00;
  --andamento: #2D5B8C;
  --resolvido: #2D7A4C;
  --encerrado: #6B717A;
  --perigo: #A8322A;
  --raio: 10px;
  --nav: 68px;
  --seguro-baixo: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }
.oculto { display: none !important; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--papel); border-bottom: 1px solid var(--linha);
}
.topo-logo { height: 40px; width: auto; }
.topo-quem { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.topo-quem strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-quem span { font-size: 13px; color: var(--texto2); }

.tela { max-width: 720px; margin: 0 auto; padding: 16px 16px calc(var(--nav) + 32px + var(--seguro-baixo)); }
.tela.sem-nav { padding: 0; max-width: none; }

h1 { font-size: 26px; line-height: 1.2; margin: 8px 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 19px; line-height: 1.3; margin: 28px 0 10px; }
h2:first-child { margin-top: 4px; }
p { margin: 0 0 12px; }
.sutil { color: var(--texto2); font-size: 14px; }
.vazio { color: var(--texto2); padding: 18px 0; }

/* ---------- formulários ---------- */
label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=tel], input[type=number], input[type=email], input[type=search], input:not([type]), select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--papel);
  min-height: 48px;
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8A9099; }
.campo-pin { letter-spacing: 0.4em; font-size: 20px; }
.marcar { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; margin-top: 16px; }
.marcar input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--tinta); flex: none; }
.marcar a { color: var(--ouro-texto); }

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px;
  border: 0; border-radius: var(--raio); background: var(--tinta); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none;
}
.botao.cheio { width: 100%; margin-top: 20px; }
.botao.claro { background: var(--papel); color: var(--tinta); border: 1px solid var(--linha); }
.botao.ouro { background: var(--ouro); color: var(--tinta); }
.botao.perigo { background: var(--papel); color: var(--perigo); border: 1px solid #E3BFBB; }
.botao:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 8px 0; color: var(--ouro-texto); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linha-botoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.lista-area { margin-top: 18px; }
.erro { color: var(--perigo); font-weight: 600; margin-top: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--linha); background: var(--papel); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; font-size: 15px;
}
.chip[aria-pressed=true] { background: var(--tinta); border-color: var(--tinta); color: #fff; }

.fotos-escolha { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.fotos-escolha img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--linha); }
.botao-foto { position: relative; overflow: hidden; }
.botao-foto input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- entrada (login) ---------- */
.entrada { min-height: 100dvh; display: flex; flex-direction: column; background: var(--papel); }
.entrada-corpo { flex: 1; width: 100%; max-width: 440px; margin: 0 auto; padding: 32px 20px 28px; }
.entrada-logo { display: block; width: 210px; margin: 0 auto 18px; }
.entrada h1 { text-align: center; font-size: 22px; }
.entrada .sutil { text-align: center; }
.assinatura {
  background: var(--tinta); color: #E9E3D3; padding: 22px 20px calc(22px + var(--seguro-baixo));
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.assinatura img { width: 96px; height: auto; }
.assinatura div { font-size: 14px; line-height: 1.4; max-width: 220px; }
.assinatura strong { display: block; color: var(--ouro); font-size: 16px; }

/* ---------- listas ---------- */
.lista { list-style: none; margin: 0; padding: 0; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; }
.lista > li + li { border-top: 1px solid var(--linha); }
.item {
  display: grid; grid-template-columns: 6px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left;
  padding: 14px 16px 14px 0; background: none; border: 0; cursor: pointer; min-height: 64px;
}
.item .faixa { align-self: stretch; }
.item-titulo { font-weight: 600; display: block; }
.item-sub { color: var(--texto2); font-size: 14px; display: block; margin-top: 2px; }
.item .seta { color: var(--texto2); font-size: 22px; }
.item > span { min-width: 0; }
.item-titulo, .item-sub { overflow-wrap: anywhere; }
.item.sem-faixa { grid-template-columns: 1fr auto; padding-left: 16px; }
.item.item-check { grid-template-columns: auto 1fr; padding-left: 16px; }
.faixa.aberto { background: var(--aberto); }
.faixa.em_andamento { background: var(--andamento); }
.faixa.resolvido { background: var(--resolvido); }
.faixa.encerrado { background: var(--encerrado); }

.status { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; }
.status.aberto { background: var(--aberto); }
.status.em_andamento { background: var(--andamento); }
.status.resolvido { background: var(--resolvido); }
.status.encerrado { background: var(--encerrado); }

.comunicado { background: var(--papel); border: 1px solid var(--linha); border-left: 4px solid var(--ouro); border-radius: var(--raio); padding: 14px 16px; margin-bottom: 10px; }
.comunicado h3 { margin: 0 0 4px; font-size: 17px; }
.comunicado p { white-space: pre-wrap; margin: 6px 0 0; }

.numeros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.numero { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 14px 16px; }
.numero b { display: block; font-size: 30px; line-height: 1.1; }
.numero span { color: var(--texto2); font-size: 14px; }
@media (min-width: 560px) { .numeros { grid-template-columns: repeat(4, 1fr); } }

.segmentos { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; }
.segmentos .chip { white-space: nowrap; }

/* ---------- detalhe do chamado ---------- */
.voltar { margin-bottom: 4px; }
.detalhe-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--texto2); font-size: 14px; margin: 6px 0 14px; }
.linha-tempo { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--linha); }
.linha-tempo li { position: relative; padding: 0 0 18px 14px; }
.linha-tempo li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--papel); border: 2px solid var(--tinta); }
.linha-tempo li.interno::before { border-color: var(--ouro); }
.ev-autor { font-weight: 600; }
.ev-quando { color: var(--texto2); font-size: 13px; margin-left: 6px; }
.ev-texto { white-space: pre-wrap; margin-top: 2px; }
.ev-interno { font-size: 12px; color: var(--ouro-texto); font-weight: 700; margin-left: 6px; }
.ev-fotos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ev-fotos img { width: 104px; height: 104px; object-fit: cover; border-radius: 8px; border: 1px solid var(--linha); cursor: zoom-in; }
.caixa { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px; margin-top: 18px; }

.foto-grande { position: fixed; inset: 0; z-index: 30; background: rgba(28, 26, 23, .92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.foto-grande img { max-height: 100%; border-radius: 6px; }

/* ---------- Senhor Avante ---------- */
.conversa { display: flex; flex-direction: column; gap: 10px; }
.bolha { max-width: 86%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; line-height: 1.45; }
.bolha.usuario { align-self: flex-end; background: var(--tinta); color: #fff; border-bottom-right-radius: 4px; }
.bolha.senhor { align-self: flex-start; background: var(--papel); border: 1px solid var(--linha); border-bottom-left-radius: 4px; }
.bolha.pensando { color: var(--texto2); }
.acao-card { align-self: flex-start; max-width: 86%; background: #FBF6EA; border: 1px solid #E7D6AC; border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.acao-card strong { display: block; }
.chat-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.chat-topo img { width: 52px; height: 52px; object-fit: contain; background: var(--papel); border-radius: 50%; border: 1px solid var(--linha); padding: 6px; }
.chat-envio {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav) + var(--seguro-baixo)); z-index: 4; background: var(--fundo);
  padding: 10px 16px; border-top: 1px solid var(--linha);
}
.chat-envio form { max-width: 720px; margin: 0 auto; display: flex; gap: 8px; }
.chat-envio textarea { min-height: 48px; height: 48px; flex: 1; }
.tela.com-chat { padding-bottom: calc(var(--nav) + 110px + var(--seguro-baixo)); }

/* ---------- abas (com o triângulo do Avante no centro) ---------- */
.abas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: space-around; align-items: flex-end;
  height: calc(var(--nav) + var(--seguro-baixo)); padding-bottom: var(--seguro-baixo); background: var(--papel); border-top: 1px solid var(--linha);
}
.aba {
  flex: 1; max-width: 120px; height: var(--nav); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: 0; color: var(--texto2); font-size: 12px; cursor: pointer;
}
.aba svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aba[aria-current=page] { color: var(--tinta); font-weight: 700; }
.aba.central { position: relative; flex: 1.25; max-width: 130px; white-space: nowrap; }
.aba.central .triangulo { width: 58px; height: 52px; margin-top: -26px; display: block; }
.aba.central .triangulo .tri { fill: var(--tinta); }
.aba.central .triangulo .anel { fill: none; stroke: var(--ouro); stroke-width: 4; }
.aba.central[aria-current=page] .triangulo .anel { stroke-width: 5; }

/* ---------- avisos ---------- */
.aviso {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav) + 16px + var(--seguro-baixo)); z-index: 20; max-width: 560px; margin: 0 auto;
  background: var(--tinta); color: #fff; padding: 12px 16px; border-radius: var(--raio); text-align: center;
}
.carregando { display: block; width: 44px; height: 40px; margin: 40px auto; }
.carregando .anel { fill: none; stroke: var(--ouro); stroke-width: 4; stroke-dasharray: 30 60; animation: gira 1.1s linear infinite; transform-origin: 50% 60%; }
.carregando .tri { fill: var(--tinta); }
@keyframes gira { to { stroke-dashoffset: -90; } }
@media (prefers-reduced-motion: reduce) { .carregando .anel { animation: none; } }

.codigo-convite { font-size: 30px; font-weight: 800; letter-spacing: 0.08em; margin: 6px 0; }
.texto-pronto { background: #F6F7F8; border: 1px dashed var(--linha); border-radius: var(--raio); padding: 12px; white-space: pre-wrap; font-size: 15px; }
.rodape-marca { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding: 16px; background: var(--tinta); color: #E9E3D3; border-radius: var(--raio); }
.rodape-marca img { width: 70px; }
.rodape-marca strong { color: var(--ouro); display: block; }

/* páginas de termos e privacidade */
.tela.documento { background: var(--papel); max-width: 760px; margin: 0 auto; padding: 24px 20px 32px; }
.documento ul { padding-left: 20px; }
.documento li { margin-bottom: 6px; }

.midias-escolha { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.midia-item { background: var(--fundo-suave, #FAF6EC); border: 1px solid var(--linha); border-radius: 8px; padding: 4px 8px; font-size: .9rem; }
.ev-midias { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ev-midias video { width: 100%; max-height: 360px; border-radius: 8px; background: #000; }
.ev-midias audio { width: 100%; }
.gravando { border-color: #b3261e !important; color: #b3261e !important; }

/* relatório do piloto (1.2.0) */
.fichas { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.ficha strong { display: block; margin-bottom: 4px; }
.ficha p { margin: 2px 0; }
.ficha.apagada { opacity: .55; }
.ficha .lista { margin-top: 8px; }
.perguntas { margin: 4px 0 6px; padding-left: 18px; font-size: .92rem; }
.perguntas li { margin: 2px 0; overflow-wrap: anywhere; }
.link.perigo { color: var(--perigo); margin-top: 18px; }
.ao-vivo h2 { margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.ponto-vivo { width: 10px; height: 10px; border-radius: 50%; background: #B9B2A6; display: inline-block; }
.ponto-vivo.on { background: #2E8B57; box-shadow: 0 0 0 4px rgba(46,139,87,.18); }

/* mascote do Senhor Avante (1.2.1) */
.chat-topo img { width: 64px; height: 72px; object-fit: contain; background: none; border: 0; border-radius: 0; padding: 0; }
.aba.central .aba-rosto { width: 54px; height: 54px; margin-top: -24px; display: block; border-radius: 50%; background: var(--papel); border: 2px solid var(--ouro); object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.aba.central[aria-current=page] .aba-rosto { border-width: 3px; }
.linha-senhor { display: flex; align-items: flex-end; gap: 6px; align-self: flex-start; max-width: 92%; }
.linha-senhor .bolha.senhor { max-width: none; }
.avatar-senhor { width: 30px; height: 30px; border-radius: 50%; background: var(--papel); border: 1px solid var(--linha); flex: none; object-fit: cover; }

/* Senhor Avante em destaque (1.2.2) */
.topo-senhor { margin-left: auto; display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--tinta); }
.topo-senhor img { height: 48px; width: auto; display: block; }
.topo-senhor-txt { font-size: 11px; font-weight: 700; line-height: 1.1; text-align: right; color: var(--ouro-texto); }
.apresenta { display: flex; align-items: flex-end; gap: 10px; margin: 6px 0 18px; text-align: left; }
.apresenta-img { width: 96px; height: auto; flex: none; }
.apresenta-balao { position: relative; background: #fff; border: 1px solid var(--linha); border-radius: 16px; border-bottom-left-radius: 4px; padding: 12px 14px; font-size: 14px; line-height: 1.45; color: var(--tinta); }
.apresenta-balao strong { display: block; margin-bottom: 2px; }
.cartao-senhor { width: 100%; background: #FAF6EC; border: 1px solid #E8DCC0; border-radius: 18px; padding: 12px; cursor: pointer; font: inherit; }
.cartao-senhor .apresenta-balao { background: #fff; }
.apresenta-acao { display: block; margin-top: 6px; font-weight: 700; color: var(--ouro-texto); }
@media (max-width: 360px) { .topo-senhor-txt { display: none; } .apresenta-img { width: 76px; } }
.apresenta-balao { display: block; }
.foto-item { position: relative; display: inline-block; }
.foto-tirar { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #7a1f1f; color: #fff; font-size: 16px; line-height: 22px; padding: 0; cursor: pointer; }
.alerta-vaga { display: block; width: 100%; text-align: left; margin: 12px 0; padding: 14px 16px; border-radius: var(--raio); border: 2px solid #b8860b; background: #fff6dc; color: #4a3500; font: inherit; cursor: pointer; }
.termo { white-space: pre-wrap; font-family: inherit; font-size: 15px; line-height: 1.5; margin: 12px 0 0; background: transparent; }
.termo-aceites p { margin: 6px 0; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; margin-top: 14px; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.print-cabecalho { display: none; }
@media print {
  #topo, #abas, .nao-imprimir, #aviso, .segmentos, .filtros { display: none !important; }
  .tela { padding: 0 !important; }
  .termo-doc { border: 0; }
  .print-cabecalho { display: block; margin-bottom: 10px; }
  .print-cabecalho h2 { margin: 0 0 2px; }
  .limp-lista { list-style: none; padding: 0; }
  .limp-item { break-inside: avoid; }
}
.botao-mic { min-width: 48px; padding-left: 12px; padding-right: 12px; font-size: 20px; }
.botao-mic.ouvindo { background: var(--perigo); color: #fff; border-color: var(--perigo); animation: pulsar 1s infinite; }
@keyframes pulsar { 50% { opacity: .6; } }
.botao-panico { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; margin: 22px 0 6px;
  padding: 18px 16px; border: 0; border-radius: 14px; background: #B3261E; color: #fff; font: inherit; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.botao-panico strong { font-size: 19px; position: relative; }
.botao-panico span:not(.panico-barra) { font-size: 14px; opacity: .92; position: relative; }
.panico-barra { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(0,0,0,.28); }
.botao-panico.segurando .panico-barra { width: 100%; transition: width var(--segurar, 3s) linear; }
.avisos-cartao strong { display: block; }
.alerta-tela { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(120, 10, 10, .94); }
.alerta-tela.geral { animation: piscar 1s steps(2) infinite; }
.alerta-tela.meu { background: rgba(28, 26, 23, .92); }
@keyframes piscar { 50% { background: rgba(200, 30, 20, .97); } }
.alerta-caixa { width: 100%; max-width: 460px; background: #fff; color: var(--texto); border-radius: 16px; padding: 22px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.alerta-titulo { font-size: 24px; font-weight: 800; color: #9B1C14; line-height: 1.2; }
.alerta-tela.meu .alerta-titulo { color: var(--tinta); }
.alerta-texto { font-size: 18px; line-height: 1.45; margin: 12px 0; }
.alerta-status { font-weight: 700; color: var(--resolvido); }
.alerta-hora { color: var(--texto2); font-size: 14px; margin: 4px 0; }
.alerta-botoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.alerta-botoes .botao { flex: 1 1 140px; }
.fam-lista { list-style: none; padding: 0; margin: 8px 0; }
.fam-lista li { padding: 6px 0; border-bottom: 1px solid var(--linha); }
.alerta-hist { padding: 10px 0; border-bottom: 1px solid var(--linha); list-style: none; }
.alerta-ligar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.alerta-ligar span { width: 100%; font-weight: 600; }
.alerta-ligar .botao { flex: 1 1 120px; text-align: center; text-decoration: none; }
.alerta-som { margin-top: 12px; display: block; }
.limp-lista { list-style: none; padding: 0; }
.limp-item, .unid-item { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 12px 14px; margin: 8px 0; }
.limp-item.auto { border-left: 5px solid var(--aberto); }
.limp-item.andamento { border-left: 5px solid var(--andamento); }
.limp-linha1 { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.limp-dur { font-weight: 700; }
.limp-aviso { color: var(--aberto); font-size: 14px; margin-top: 4px; }
.limp-alerta { border: 2px solid var(--aberto); background: #fff6dc; }
.limp-ok.iniciou { border: 2px solid var(--andamento); }
.limp-ok.finalizou { border: 2px solid var(--resolvido); }
.limp-grande { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.filtros { display: grid; gap: 6px; margin: 10px 0; }
.filtros select { padding: 10px; border-radius: 8px; border: 1px solid var(--linha); font: inherit; }
.leitor { position: fixed; inset: 0; z-index: 900; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; padding: 16px; }
.leitor-video { width: 100%; max-width: 480px; border-radius: 12px; }
.qr-folha { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.qr-cartao { background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 6px; break-inside: avoid; }
.qr-cartao img { width: 100%; max-width: 220px; margin: 0 auto; }
.qr-cartao strong { font-size: 20px; }
.qr-cartao span { font-size: 13px; color: var(--texto2); }
.tag { font-size: 13px; padding: 2px 8px; border-radius: 999px; }
.tag.ok { background: #e3f3e8; color: var(--resolvido); }
.tag.falta { background: #fbe9e7; color: var(--perigo); }
.unid-editar { display: grid; gap: 6px; margin-top: 8px; }
.veic-linha { display: grid; grid-template-columns: 1fr 2fr; gap: 6px; margin-bottom: 6px; }
@media print {
  .qr-folha { grid-template-columns: repeat(2, 1fr); }
  .qr-cartao { border: 2px solid #000; page-break-inside: avoid; }
  body.imprimindo-qr .segmentos, body.imprimindo-qr h1 { display: none !important; }
}
.tela.sem-abas { padding-bottom: 24px; }

/* v1.5 — encomendas, sugestões e permissões */
.destaque { border-left: 4px solid var(--ouro); }
.qr-caixa { text-align: center; }
.qr-retirada { width: 220px; max-width: 80%; height: auto; margin: 6px auto; display: block; background: #fff; border-radius: 12px; padding: 10px; }
.linha-codigo { display: flex; gap: 8px; margin-top: 10px; }
.linha-codigo input { text-align: center; letter-spacing: 0.15em; font-weight: 700; }
.item-check { cursor: pointer; }
.item-check input { width: 22px; height: 22px; margin-right: 10px; flex: none; }
.sug-item { display: block; margin-bottom: 12px; }
.sug-item p { margin: 6px 0; white-space: pre-wrap; }
.sug-resposta { border-left: 3px solid var(--ouro); padding-left: 10px; margin-top: 8px; }
.sug-resposta p { margin: 4px 0; }
.sug-item textarea { min-height: 70px; }
.aguardando { font-style: italic; }
.perm-linha { display: block; margin-bottom: 12px; }
.perm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.perm-chip { border: 1px solid var(--linha); background: var(--papel); border-radius: 999px; padding: 7px 13px; min-height: 38px; cursor: pointer; font-size: 14px; color: var(--texto2); }
.perm-chip.on { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.doc-perfis { margin: 4px 0 12px; }
.doc-perfis.oculto { display: none; }
.campo-codigo, .linha-codigo input { text-transform: uppercase; }
.etapa-rotulo { align-self: center; margin-right: 2px; }
.sel-destino { text-transform: none; min-height: 38px; padding: 6px 10px; border: 1px solid var(--linha); border-radius: 10px; background: var(--papel); color: var(--texto); }
.vist-ok { background: var(--papel); border: 1px solid var(--linha); border-radius: 10px; padding: 8px 12px; margin: 6px 0; color: var(--texto2); }

.link-convite { font-size: 15px; font-weight: 600; word-break: break-all; margin: 6px 0 10px; color: var(--texto); }
.item.estatico { cursor: default; }

/* ---------- Início do morador (v1.6.1) ---------- */
.titulo-secao { margin: 24px 0 10px; }
.atalhos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.atalho {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 112px; padding: 14px;
  background: var(--papel); border: 1px solid var(--linha); border-radius: 14px; text-align: left; cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease;
}
.atalho:active { transform: scale(.97); }
.atalho:hover { box-shadow: 0 2px 10px rgba(28,26,23,.08); }
.atalho-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: #F5EEDC; margin-bottom: 6px; }
.atalho strong { font-size: 16px; line-height: 1.2; }
.atalho-sub { font-size: 13px; line-height: 1.3; color: var(--texto2); }
.atalho.principal { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.atalho.principal .atalho-ic { background: rgba(198,154,52,.25); }
.atalho.principal .atalho-sub { color: #CFC7B6; }
.avisos-compacto { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.avisos-ic { font-size: 22px; flex: none; }
.avisos-txt { flex: 1; font-size: 13.5px; line-height: 1.35; color: var(--texto2); }
.avisos-txt strong { display: block; color: var(--texto); font-size: 15px; }
.avisos-compacto .botao { flex: none; min-height: 40px; padding: 8px 16px; }
.rodape-inicio { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 32px 0 8px; color: var(--texto2); font-size: 13px; }
.rodape-inicio img { height: 40px; width: auto; }

/* portaria: quem está de plantão no aparelho compartilhado */
.plantao { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 8px 16px; background: #FFF6E0; border-bottom: 1px solid var(--linha); font-size: 15px; }
.plantao .botao { padding: 6px 12px; min-height: 0; }
.caixa.passagem { border-left: 4px solid var(--ouro); background: #FFFBF0; display: flex; flex-direction: column; gap: 2px; }
.ocorr-foto { max-width: 160px; border-radius: 8px; margin-top: 6px; cursor: zoom-in; }

/* Presença da equipe (QR do DML) */
.pres-botoes { display: grid; gap: 12px; margin: 16px 0; }
.pres-botao { font-size: 20px; padding: 18px 16px; }
.pres-lista { margin: 6px 0 8px; padding-left: 18px; }
.pres-lista li { margin: 2px 0; }

/* Chaves e empréstimos */
.empr-item { list-style: none; }
.empr-item.atrasado { border-left: 4px solid #b42318; }

/* Alarme de emergência obrigatório */
.faixa-alarme { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; border: 0; border-radius: 0;
  background: #b42318; color: #fff; font: inherit; font-size: 14px; padding: 10px 16px; cursor: pointer; text-align: left; }
.faixa-alarme strong { white-space: nowrap; }
.gate-alarme { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 12, 8, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gate-caixa { background: var(--papel, #fff); color: var(--texto, #1d1a16); max-width: 440px; width: 100%; border-radius: 16px; padding: 22px 20px; max-height: 92vh; overflow: auto;
  display: grid; gap: 12px; border-top: 6px solid #b42318; }
.gate-caixa h2 { margin: 0; }
.gate-ic { font-size: 40px; line-height: 1; }
.gate-passos { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* v1.8 — garagem, pessoas da unidade e sigilo */
.contato-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #e6d3a6; }
.contato-linha .ct-nome { grid-column: 1 / -1; }
.contato-linha .link { justify-self: start; }
.lista-vagas { margin: 6px 0 4px 18px; padding: 0; }
.lista-vagas li { margin: 2px 0; }
pre.termo { white-space: pre-wrap; word-wrap: break-word; font-family: inherit; }
@media (max-width: 420px) { .contato-linha { grid-template-columns: 1fr; } }
.linha-busca { display: flex; gap: 8px; margin-top: 10px; }
.linha-busca input { flex: 1; }
.contato-linha.outro { display: block; }
.ct-fixo { font-weight: 600; }

/* v1.9 — modo "ver como", serviços da limpeza (botões grandes com desenho) */
.faixa-teste { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: #fff4d6; border-bottom: 2px solid #e0a526; color: #1c1410; padding: 8px 14px; font-size: 15px; position: sticky; top: 0; z-index: 30; }
.faixa-teste .botao { padding: 6px 12px; min-height: 0; }
.etiqueta-teste { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 800; letter-spacing: .5px; background: #e0a526; color: #1c1410; border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.limp-servicos { font-size: 14px; color: var(--texto2); margin: 4px 0; }
.serv-titulo { display: block; font-size: 19px; margin-bottom: 8px; }
.serv-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.serv-botao { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px;
  background: var(--papel); border: 3px solid var(--linha); border-radius: 18px; font: inherit; color: inherit; cursor: pointer; padding: 10px; }
.serv-botao.marcado { border-color: #2e8b57; background: #e9f7ee; }
.serv-icone { font-size: 46px; line-height: 1; }
.serv-nome { font-size: 16px; font-weight: 800; text-align: center; }
.serv-check { position: absolute; top: 6px; right: 10px; font-size: 24px; color: #2e8b57; font-weight: 900; }
.serv-lista { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.serv-chip { background: var(--papel); border: 1px solid var(--linha); border-radius: 999px; padding: 6px 12px; font-size: 15px; }
.botao.grande { font-size: 20px; min-height: 64px; flex: 1 1 200px; }
.serv-sub { font-weight: 800; color: var(--texto2); margin: 10px 0 0; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; }
.aviso-navegador { display: flex; flex-direction: column; gap: 4px; background: #fff4d6; border: 1px solid #e0a526; border-radius: 12px; padding: 10px 14px; margin: 8px 0 12px; font-size: 15px; }
.texto-semanal { white-space: pre-wrap; font-family: inherit; font-size: 15px; background: var(--papel); border: 1px solid var(--linha); border-radius: 12px; padding: 12px 14px; }
/* v1.10 — sem internet */
.faixa-off{position:sticky;top:0;z-index:60;background:#1c1410;color:#ffd77a;font-weight:700;font-size:14px;padding:8px 12px;text-align:center;line-height:1.3}
.etiqueta-off{display:inline-block;margin-left:6px;font-size:11px;font-weight:700;color:#7a5a00;background:#fff3cd;border-radius:8px;padding:1px 6px;vertical-align:middle}
/* v1.11 despacho e proprietário não morador */
.faixa-despacho { background: #fff4d6; border-left: 4px solid #c69a34; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: .95rem; }
.caixa.despacho { border: 1px solid #e6d3a3; }
.caixa.despacho textarea.campo { width: 100%; min-height: 220px; font-family: inherit; }
.caixa.despacho input.campo, .caixa.despacho select.campo { width: 100%; }
/* v1.12 visitantes */
.vis-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.vis-fotos figure { margin: 0; text-align: center; }
.vis-fotos img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; background: #000; }
.linha-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.faixa-txt { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--papel); border: 1px solid var(--linha); color: var(--texto2); white-space: nowrap; }
.faixa-txt.aberto { border-color: #c0392b; color: #c0392b; }
.faixa-txt.em_andamento { border-color: #b7860b; color: #8a6508; }
.faixa-txt.resolvido { border-color: #2e7d32; color: #2e7d32; }

/* v1.13 censo de emergência */
.censo-porque { border-left: 4px solid #C0392B; background: #FFF6F4; }
.censo-porque p { margin: 6px 0; }
.censo-pets { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 8px; align-items: center; }
.censo-pets label { margin: 0; }
.censo-resumo p { margin: 6px 0; }
/* v1.14 — Vizinhança */
.viz-abas { margin-bottom: 10px; }
.viz-item { gap: 12px; }
.viz-mini { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--fundo, #F3EEE2); }
.viz-sem-foto { display: flex; align-items: center; justify-content: center; font-size: 26px; }
.viz-post { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 14px; margin: 0 0 12px; font: inherit; color: inherit; }
button.viz-post { cursor: pointer; }
.viz-quem { color: var(--texto2); font-size: 13px; }
.viz-texto { white-space: pre-wrap; overflow-wrap: anywhere; }
.viz-texto-longo { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.viz-rodape { color: var(--texto2); font-size: 13px; }
.viz-foto-post { width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; }
.viz-opcoes { display: flex; flex-direction: column; gap: 8px; margin: 4px 0; }
.viz-opcao { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--linha); border-radius: 10px; background: var(--papel); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.viz-opcao:disabled { cursor: default; }
.viz-opcao.escolhida { border-color: #C69A34; border-width: 2px; }
.viz-barra { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(198,154,52,.22); z-index: 0; }
.viz-opcao-txt, .viz-pct { position: relative; z-index: 1; }
.viz-pct { font-weight: 700; }
.viz-titulo { margin: 4px 0 2px; }
.viz-preco { font-size: 22px; font-weight: 700; color: #A67C1E; margin: 2px 0 8px; }
.viz-galeria { display: flex; gap: 8px; overflow-x: auto; margin: 8px 0; }
.viz-galeria img { height: 200px; max-width: 85vw; border-radius: 10px; object-fit: cover; }
.botao-whats { display: block; text-align: center; text-decoration: none; margin: 10px 0; }
.viz-coments { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.viz-coment { display: flex; flex-direction: column; gap: 3px; background: var(--papel); border: 1px solid var(--linha); border-radius: 10px; padding: 10px 12px; }
.viz-coment-acoes { display: flex; gap: 14px; }
.viz-coment-acoes .link, .viz-enquete > .link { font-size: 13px; padding: 0; align-self: flex-start; }
.viz-ops-campos { display: flex; flex-direction: column; gap: 8px; }
.oculto-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.item.viz-item { grid-template-columns: 56px 1fr auto; padding-left: 12px; }
.viz-quem { display: block; }
.viz-titulo + .viz-preco, .viz-item .tag { margin-top: 4px; display: inline-block; }
.botao-whats { display: flex; align-items: center; justify-content: center; min-height: 48px; padding-top: 0; padding-bottom: 0; }
/* v1.14.1 — erro aponta o campo; placa com botão Colar */
.campo-erro { outline: 3px solid #B3261E !important; outline-offset: 2px; border-radius: 10px; background-color: #FDF0EF; }
.msg-campo { color: #fff; background: #B3261E; border-radius: 10px; padding: 10px 12px; margin: 6px 0 10px; font-weight: 600; }

/* v1.15 reservas */
.res-item { display: flex; flex-direction: column; gap: 4px; }
.res-status { font-size: .9em; font-weight: 600; }
.res-pendente { color: #9a6700; } .res-confirmada { color: #1a7f37; } .res-recusada, .res-cancelada { color: #b42318; }
.res-dia { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.res-dia.res-reservado, .res-dia.res-indisponivel, .res-dia.res-bloqueado, .res-dia.res-pedido { opacity: .6; }
.res-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; align-items: center; }
.res-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin: 8px 0 16px; }
.res-bloco.ocupado { opacity: .35; text-decoration: line-through; }
.res-det summary { cursor: pointer; font-weight: 600; margin: 6px 0; }
.res-seg { flex-wrap: wrap; overflow: visible; }

.conf-ok { color: #1a7f37; font-weight: 600; } .conf-parcial { color: #9a6700; font-weight: 600; } .conf-nao, .conf-sem_base { color: #b42318; font-weight: 600; }

/* v1.18 segurança */
.seg-ev { display: block; }
.seg-ev.seg-alta { border-left: 4px solid #c0392b; }
.seg-ev.seg-media { border-left: 4px solid #e0a800; }
.seg-ip, .seg-det { font-size: .85em; color: #555; word-break: break-all; }

/* v1.18.1 lista de espera mais clara */
.esp-titulo { margin: .4em 0; }
.esp-pend { border: 2px solid #c9a227; border-radius: 12px; }
.esp-botoes .botao { min-width: 8em; }
.esp-bloco { margin-top: 1em; }
.esp-bloco > summary { font-weight: 600; cursor: pointer; padding: .5em 0; }

/* v1.19 Senhor Avante no card */
.senhor-card { border: 2px solid #c9a227; }
.senhor-card textarea { width: 100%; min-height: 7em; }
.senhor-card .senhor-instr { min-height: 4em; }
.senhor-passo { font-weight: 600; margin: .6em 0 .3em; }
.senhor-card .senhor-ajuste { min-height: 3.2em; text-transform: none; margin-top: .8em; }

/* v1.19.1 bate-papo do Senhor no card */
.senhor-conversa { display: flex; flex-direction: column; gap: .6em; margin: .6em 0; }
.senhor-balao { border-radius: 12px; padding: .6em .8em; }
.senhor-balao.eu { align-self: flex-end; background: #1f1d1a; color: #fff; max-width: 90%; }
.senhor-balao.senhor { background: #faf6e8; border: 1px solid #e6d9a8; }
.senhor-envio { display: flex; gap: .4em; align-items: flex-end; }
.senhor-envio .senhor-fala { flex: 1; min-height: 3.5em; text-transform: none; }
.senhor-card .senhor-passo-sel { width: 100%; margin-bottom: .6em; }
.senhor-card .senhor-ctit { width: 100%; text-transform: none; margin-bottom: .4em; }
.senhor-card .senhor-ctxt { min-height: 8em; }
.faixa-demo { position: sticky; top: 0; z-index: 50; background: #c9a227; color: #1f1d1a; text-align: center; font-weight: 700; padding: .35em .5em; font-size: .9em; }
.botao-prestador { width: 100%; margin: .4em 0 1em; }
.prestador-fim { border: 2px solid #2e7d32; }
.prestador-dentro { margin: .5em 0; }
.tabela-visita { width: 100%; border-collapse: collapse; margin: .4em 0; }
.tabela-visita th, .tabela-visita td { padding: .3em .4em; border-bottom: 1px solid #ddd; text-align: left; }
.visita-prestador { border: 2px solid #1565c0; }
.qr-img { width: 220px; max-width: 70vw; display: block; margin: .6em auto; background: #fff; padding: 8px; }
.mini-foto { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; cursor: zoom-in; }
.ok-quem { font-weight: 600; color: #1b5e20; }
.limp-foto { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 8px; margin-top: .4em; cursor: zoom-in; }
.limp-sem-foto { color: #b71c1c; font-size: .85em; }
.manut-item { cursor: pointer; }
.manut-fotos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: .4em; }
.manut-fotos img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.serv-modo { margin-bottom: .6em; }
.serv-modo .chip { font-size: 1.05em; }
.assinatura, .rodape-inicio, .rodape-marca { cursor: pointer; }
.bk-modal { display: flex; align-items: center; justify-content: center; padding: 1em; }
.bk-cartao { max-width: 360px; text-align: center; background: #fff; color: #111; }
.bk-cartao .bk-logo { width: 96px; height: auto; margin: 0 auto .4em; display: block; }
.bk-cartao .botao { display: block; margin: .8em 0 .4em; text-decoration: none; }

/* v1.21 — ronda do estacionamento */
.ronda-cont{font-weight:700;margin:12px 0 6px}
.ronda-grade{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:12px}
.ronda-mini{margin:0;background:#00000010;border-radius:8px;overflow:hidden}
.ronda-mini img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.ronda-mini figcaption{font-size:12px;padding:2px 4px;text-align:center}
.ronda-item{display:grid;grid-template-columns:96px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid #0000001a}
.ronda-item img{width:96px;height:72px;object-fit:cover;border-radius:8px;display:block}
.ronda-item p{margin:2px 0}
.ronda-sem_cadastro strong,.ronda-vaga_errada strong{color:#b3261e}

.comunicado-arte{display:block;width:100%;max-width:640px;height:auto;margin-top:10px;border-radius:10px;border:1px solid #e6d3a6}

/* v1.25 — manutenção preventiva */
.prev-resumo { display: flex; gap: 14px; align-items: center; margin: 10px 0 14px; flex-wrap: wrap; }
.prev-pct { min-width: 96px; padding: 10px 14px; border-radius: 14px; text-align: center; display: flex; flex-direction: column; }
.prev-pct strong { font-size: 2rem; line-height: 1.1; }
.prev-pct span { font-size: .8rem; }
.prev-num { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.prev-ok { background: #e8f6ec; color: #1d6b35; }
.prev-breve { background: #fff6dc; color: #8a6100; }
.prev-atrasada { background: #fde8e6; color: #a1281c; }
.prev-item { border-left: 5px solid #cfd6dd; background: var(--fundo-caixa, #fff); color: inherit; }
.prev-item.prev-atrasada { border-left-color: #d64536; background: #fff; color: inherit; }
.prev-item.prev-breve { border-left-color: #e3a92b; background: #fff; color: inherit; }
.prev-item.prev-ok { border-left-color: #3aa35b; background: #fff; color: inherit; }
.prev-topo { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.prev-st { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.prev-ativ { display: block; margin: 6px 0 2px; }
.prev-datas { font-size: .88rem; margin: 4px 0; }
.prev-fonte { font-size: .72rem; color: #7a838c; margin: 2px 0 8px; }
.prev-form { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.prev-hist { margin-top: 10px; border-top: 1px solid #e3e7ea; padding-top: 8px; }
.prev-hist-item { padding: 6px 0; border-bottom: 1px dashed #e3e7ea; }
.prev-sistemas, .prev-unidades { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.prev-sis, .prev-un { padding: 10px; border-radius: 12px; display: flex; flex-direction: column; gap: 2px; font-size: .85rem; border: 0; text-align: left; }
.prev-rec p { margin: 2px 0 0; }
/* v1.27 — aba Hoje do síndico */
.barra-senhor { display: flex; align-items: center; gap: 8px; background: var(--papel); border: 2px solid var(--ouro); border-radius: var(--raio); padding: 6px 6px 6px 8px; margin-top: 4px; }
.barra-senhor input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; padding: 8px 4px; outline: none; }
.barra-senhor .botao { min-height: 44px; padding: 0 16px; }
.barra-senhor .botao-mic { min-width: 44px; padding: 0 10px; font-size: 18px; }
.barra-rosto { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.barra-dica { margin: 6px 2px 0; font-size: 13px; }
.pendencias .item { grid-template-columns: 32px 1fr auto; padding-left: 12px; }
.pend-icone { font-size: 20px; text-align: center; }
.numero-botao { text-align: left; cursor: pointer; font: inherit; color: inherit; }
.numero-botao:active { transform: scale(.98); }
details.recolhido { padding: 0; }
details.recolhido > summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; }
details.recolhido > summary::-webkit-details-marker { display: none; }
details.recolhido > summary::after { content: " ›"; color: var(--texto2); }
details.recolhido[open] > summary::after { content: " ⌄"; }
details.recolhido > .ao-vivo { padding: 0 16px 14px; }
/* v1.27.2: item aberto a partir do "Precisa de você" */
li.foco-pend { outline: 3px solid var(--ouro); outline-offset: -3px; background: #FFF7E3; transition: background .4s; }
/* v1.28 — patrimônio com foto e comparação */
.patr-item { grid-template-columns: 56px 1fr auto; padding-left: 10px; }
.patr-mini { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; display: flex; align-items: center; justify-content: center; background: #EEE; font-size: 20px; }
.patr-comparar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 12px; }
.patr-lado { display: flex; flex-direction: column; gap: 4px; }
.patr-lado img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--borda, #ddd); }
.patr-rot { font-size: 13px; color: var(--texto2); }
.patr-vazio { width: 100%; aspect-ratio: 1; border: 2px dashed #ccc; border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 14px; color: var(--texto2); padding: 8px; }
/* v1.28.2: janela do recado da reserva */
.modal-fundo { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 9000; padding: 16px; }
.modal-fundo .modal { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; }
.modal-fundo textarea { width: 100%; font-size: 16px; }

/* v1.29 — bancada B (UX) */
.pre-linha { white-space: pre-line; }
.campo-codigo::placeholder { letter-spacing: normal; text-transform: none; }
input[type="checkbox"] { min-width: 24px; min-height: 24px; }
textarea#msg { min-height: 3.2em; }
.topo-senhor[hidden] { display: none; }

/* v1.29.3 — filtros sem rolar para o lado: todos os botões aparecem, em grade de botões iguais */
.segmentos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; overflow: visible; padding-bottom: 0; margin-bottom: 12px; }
.segmentos .chip { white-space: normal; width: 100%; min-height: 44px; justify-content: center; text-align: center; line-height: 1.2; padding: 8px 10px; }
.segmentos .chip { border-radius: 12px; }
.segmentos:has(> :nth-child(2):last-child), .segmentos:has(> :nth-child(4):last-child) { grid-template-columns: 1fr 1fr; }
.segmentos:has(> :nth-child(3):last-child), .segmentos:has(> :nth-child(5):last-child), .segmentos:has(> :nth-child(6):last-child) { grid-template-columns: 1fr 1fr 1fr; }
/* v1.29.3: botões lado a lado com a mesma largura (sem escadinha de tamanhos diferentes) */
.linha-botoes > .botao { flex: 1 1 140px; }
.chip.ativo { background: var(--tinta); border-color: var(--tinta); color: #fff; }
/* v1.29.4: detalhe do chamado mais limpo */
.senhor-envio { flex-wrap: wrap; }
.senhor-envio .senhor-fala { flex: 1 1 100%; min-height: 4.5em; }
.mais-acoes > summary { font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.perm-item { gap: 12px; }
.perm-marca { font-size: 22px; flex: none; }
.perm-item.on .item-sub { color: var(--ok, #2e7d32); font-weight: 600; }
.item.perm-item { grid-template-columns: 40px 1fr; padding-left: 12px; }
/* v1.30.2: itens de reserva não colam na borda esquerda do cartão */
.item.res-item { padding-left: 16px; align-items: flex-start; }
.doc-acoes { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
/* v1.30.7 termo de responsabilidade da reserva */
.termo-res { max-height: 45vh; overflow: auto; font-size: .92rem; line-height: 1.45; background: #f7f5ef; padding: 12px; border-radius: 10px; margin: 0 0 12px; }
.aviso-horario { background: #fff3cd; border: 1px solid #e0b100; color: #5c4400; font-weight: 700; padding: 10px 12px; border-radius: 10px; margin: 0 0 10px; }
/* v1.31.0 pasta da unidade */
.unid-pasta { width: 100%; margin: .5rem 0; }
.ficha-bloco { margin: .75rem 0; }
.ficha-bloco h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.ficha-linha { margin: .2rem 0; }
.ficha-hist .ev-texto.link { text-align: left; padding: 0; }
/* v1.31.2 reservas no Livro da portaria */
.res-portaria h2 { font-size: 1.05rem; margin: 0 0 .25rem; }
.res-portaria h3 { font-size: .95rem; margin: .5rem 0 .25rem; }
.res-portaria .res-port { margin: .15rem 0; }
.res-portaria .res-hoje strong { color: var(--ouro, #8a6d1f); }

/* v1.32.1: Mais ações organizado em seções + cobrar no quadro Portaria x Zelador */
.acao-secao { border-top: 1px solid var(--linha, #e5e1d8); padding-top: .8rem; margin-top: .8rem; }
.acao-secao:first-of-type { border-top: 0; margin-top: .4rem; }
.acao-secao h4 { margin: 0 0 .5rem; font-size: .95rem; }
.acao-secao .sutil { margin: -.2rem 0 .5rem; font-size: .85rem; }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.grade-2 > .botao { width: 100%; margin: 0; min-height: 48px; padding: .6rem .5rem; line-height: 1.2; text-align: center; white-space: normal; }
.grade-2 > .botao:last-child:nth-child(odd) { grid-column: 1 / -1; }
.grade-enc { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: stretch; }
.grade-enc select { width: 100%; min-height: 48px; margin: 0; }
.grade-enc .botao { margin: 0; min-height: 48px; }
.acao-perigo { text-align: center; }
.cobrar-box { background: #fff4e0; border: 1px solid #f0c27a; border-radius: 12px; padding: .7rem; margin: .6rem 0; }
.cobrar-falta { margin: 0 0 .5rem; font-weight: 600; color: #8a5300; }
.cobrar-btn { width: 100%; margin: 0; }

/* v1.32.1: botões de foto/vídeo/áudio alinhados em grade */
.anexos-bloco { width: 100%; margin: .5rem 0; }
.grade-anexos { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; }
.grade-anexos > .botao { width: 100%; margin: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; padding: .55rem .4rem; box-sizing: border-box; white-space: normal; }
.grade-anexos > .botao:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mais-acoes > .acao-secao { margin-left: 1rem; margin-right: 1rem; }
.mais-acoes > .acao-secao:last-child { padding-bottom: 1rem; }

/* v1.33.0: conteúdo de <details class="caixa recolhido"> com margem (esquadro) */
.carrinho-lancar > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
.carrinho-lancar > :last-child { margin-bottom: 1rem; }
.carrinho-lancar > summary { padding-left: 0; padding-right: 0; margin: 0 16px; }

/* 24/11: aviso de foto no chamado */
.aviso-foto { margin: .2rem 0 .4rem; padding: .5rem .7rem; border-radius: 10px; background: #fff4e0; color: #7a4a00; font-size: .92rem; }
/* 24/11: análise de quem pede a reserva/mudança */
.quem-pede { display: flex; flex-direction: column; gap: .2rem; margin: .5rem 0; padding: .6rem .75rem; border-radius: 10px; border: 1px solid #d8d3c4; background: #faf8f2; }
.quem-pede.qp-ok { border-color: #9cc9a4; background: #f1f8f2; }
.quem-pede.qp-alerta { border-color: #e7b46a; background: #fff6e8; }
.qp-aviso { color: #8a4b00; font-weight: 600; font-size: .92rem; }
/* 24/11: checklist da reserva */
.lista-vist { list-style: none; padding: 0; margin: .4rem 0; display: flex; flex-direction: column; gap: .6rem; }
.vist-linha { display: flex; flex-direction: column; gap: .3rem; padding: .5rem 0; border-bottom: 1px solid #ece7da; }
.vist-itens { padding-left: 1rem; margin: .3rem 0; }
.vist-itens .vist-prob { color: #8a4b00; font-weight: 600; }
.vist-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .4rem; margin-top: .4rem; }
.vist-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
/* 24/11: controle do dia na portaria */
.lista-vagas .ctl-dia { list-style: none; margin: 0 0 .8rem -1rem; padding: .6rem .7rem; border-radius: 10px; background: #fffaf0; border: 1px solid #ecdfc0; }
/* 26/11: guarda na portaria */
.codigo-grande { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.15em; margin: 6px 0; color: var(--tinta, #222); }
.lista-guarda { list-style: none; padding: 0; margin: 8px 0; }
.guarda-item { display: flex; flex-direction: column; gap: 4px; background: var(--papel, #fff); border: 1px solid var(--linha, #e5e0d5); border-radius: 12px; padding: 12px 14px; margin: 8px 0; }
.guarda-item .linha-botoes, .guarda-item .campo { margin-top: 6px; }
