:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --text: #1b2421;
  --muted: #5f6d68;
  --border: #dde3e0;
  --brand: #1f6f5c;
  --brand-dark: #16523f;
  --brand-soft: #e3f1ec;
  --warn: #a55b00;
  --warn-soft: #fff3e0;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --info: #1d5fa8;
  --info-soft: #e8f0fb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 1px 6px rgba(0,0,0,.04);
  font-size: 15px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.45;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
h3 { font-size: .95rem; margin: 1rem 0 .5rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.sidebar { background: var(--brand-dark); color: #fff; padding: 1rem .75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.marca { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.1rem; padding: .25rem .5rem 1rem; color: #fff; }
.marca span { font-weight: 400; font-size: .75rem; opacity: .75; display: block; }
.nav a { display: block; color: #e6f2ee; padding: .55rem .75rem; border-radius: 8px; margin-bottom: 2px; }
.nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.nav a.ativo { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.nav .grupo { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin: 1rem .75rem .35rem; }
.nav .breve { opacity: .45; cursor: default; }
.nav a.principal { font-weight: 600; background: rgba(255,255,255,.06); margin-bottom: 4px; }
.nav a.principal.ativo { background: rgba(255,255,255,.2); }
.nav .breve:hover { background: none; }
.usuario { border-top: 1px solid rgba(255,255,255,.15); margin-top: 1rem; padding: .75rem; font-size: .85rem; }
.usuario form { margin-top: .5rem; }
.usuario button { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 6px; padding: .3rem .6rem; cursor: pointer; }
.conteudo { padding: 1.5rem 2rem 3rem; max-width: 1200px; width: 100%; min-width: 0; }
.topo-mobile { display: none; }
.so-mobile { display: none; }

.cabecalho { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.acoes { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.grade { display: grid; gap: 1rem; }
.grade-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.kpi .valor { font-size: 1.9rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .rotulo { color: var(--muted); font-size: .85rem; }
.kpi.alerta { border-color: #f0c58a; background: var(--warn-soft); }
.kpi.breve { border-style: dashed; box-shadow: none; background: transparent; }
.kpi.breve .valor { color: var(--muted); font-size: 1rem; font-weight: 500; padding: .45rem 0; }

.btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: .5rem .9rem; border-radius: 8px; font-size: .9rem; cursor: pointer; font-weight: 500; text-decoration: none; min-height: 38px; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primario { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primario:hover { background: var(--brand-dark); }
.btn.perigo { color: var(--danger); border-color: #f1b8b3; }
.btn.perigo:hover { background: var(--danger-soft); }

.tag { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.tag.verde { background: var(--brand-soft); border-color: #bfe0d4; color: var(--brand-dark); }
.tag.laranja { background: var(--warn-soft); border-color: #f0c58a; color: var(--warn); }
.tag.vermelho { background: var(--danger-soft); border-color: #f1b8b3; color: var(--danger); }
.tag.azul { background: var(--info-soft); border-color: #bcd2ef; color: var(--info); }

.barra { height: 8px; background: #e7ecea; border-radius: 99px; overflow: hidden; }
.barra > div { height: 100%; background: var(--brand); }
.barra.cheia > div { background: var(--danger); }
.barra.alta > div { background: #d98a1c; }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover { background: var(--surface-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela-rolagem { overflow-x: auto; }

.mensagens { list-style: none; padding: 0; margin: 0 0 1rem; }
.mensagens li { padding: .7rem 1rem; border-radius: 8px; margin-bottom: .5rem; background: var(--brand-soft); color: var(--brand-dark); }
.mensagens li.error { background: var(--danger-soft); color: var(--danger); }
.aviso { padding: .7rem 1rem; border-radius: 8px; background: var(--warn-soft); color: var(--warn); margin-bottom: 1rem; }

/* ---------- formulários ---------- */
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.1rem; }
.campo { display: flex; flex-direction: column; gap: .25rem; }
.campo.largo { grid-column: 1 / -1; }
.campo label { font-weight: 600; font-size: .88rem; }
.campo .ajuda { color: var(--muted); font-size: .8rem; }
.campo .erro { color: var(--danger); font-size: .82rem; }
.campo.tem-erro input, .campo.tem-erro select, .campo.tem-erro textarea { border-color: var(--danger); }
.campo.check { flex-direction: row; align-items: center; gap: .5rem; grid-column: 1 / -1; }
.campo.check label { font-weight: 500; }
input[type=text], input[type=number], input[type=password], input[type=search], input[type=date], input[type=datetime-local], input[type=time], input[type=email], select, textarea {
  width: 100%; padding: .55rem .65rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; color: var(--text); min-height: 40px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
input[type=checkbox] { width: 18px; height: 18px; }
.obrigatorio::after { content: " *"; color: var(--danger); }
.rodape-form { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1.25rem; flex-wrap: wrap; }
.filtros { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; }
.filtros > * { flex: 1 1 150px; }
.filtros input[type=search] { flex: 3 1 260px; }
.filtros .btn { flex: 0 0 auto; }

/* ---------- ficha do animal ---------- */
.ficha-topo { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }
.foto { width: 128px; height: 128px; border-radius: 12px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 2.4rem; }
.foto.mini { width: 40px; height: 40px; border-radius: 8px; font-size: 1rem; }
.abas { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin: 1rem 0; overflow-x: auto; }
.abas a { padding: .6rem .9rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.abas a.ativo { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.abas a:hover { text-decoration: none; color: var(--text); }
dl.dados { display: grid; grid-template-columns: 200px 1fr; gap: .4rem 1rem; margin: 0; }
dl.dados dt { color: var(--muted); font-size: .88rem; }
dl.dados dd { margin: 0; white-space: pre-line; }
.linha-tempo { list-style: none; padding: 0; margin: 0; }
.linha-tempo li { position: relative; padding: 0 0 1rem 1.4rem; border-left: 2px solid var(--border); margin-left: .4rem; }
.linha-tempo li::before { content: ""; position: absolute; left: -7px; top: .25rem; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.linha-tempo li.saida::before { background: var(--danger); }
.linha-tempo li.transferencia::before, .linha-tempo li.saida_temporaria::before, .linha-tempo li.retorno::before { background: var(--info); }
.vazio { color: var(--muted); padding: 1rem 0; }

.login { max-width: 380px; margin: 12vh auto; }

@media (max-width: 1150px) {
  .grade-2 { grid-template-columns: 1fr; }
  .grade-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- celular e tablet ---------- */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 30% 0 0; max-width: 280px; z-index: 20; transform: translateX(-100%); transition: transform .2s; height: 100vh; }
  body.menu-aberto .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .topo-mobile { display: flex; align-items: center; gap: .75rem; background: var(--brand-dark); color: #fff; padding: .6rem 1rem; position: sticky; top: 0; z-index: 10; }
  .topo-mobile button { background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; padding: .25rem; cursor: pointer; }
  .conteudo { padding: 1rem 1rem 3rem; }
  .grade-2, .grade-3, .campos { grid-template-columns: 1fr; }
  dl.dados { grid-template-columns: 1fr; gap: 0 0; }
  dl.dados dd { margin-bottom: .6rem; }
  .ficha-topo { flex-direction: column; }
  .esconde-mobile { display: none; }
  .so-mobile { display: block; }
}

/* ---------- rotina diária ---------- */
.rotulo-campo { font-weight: 600; font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--border); border-radius: 999px; padding: .45rem .85rem;
  cursor: pointer; background: #fff; font-size: .9rem; min-height: 40px; user-select: none; }
.chip input { margin: 0; accent-color: var(--brand); }
.chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.sinais { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .4rem; grid-column: 1 / -1; }
.sinais .campo.check { grid-column: auto; border: 1px solid var(--border); border-radius: 8px; padding: .5rem .65rem; background: #fff; }
.sinais .campo.check:has(input:checked) { border-color: #f1b8b3; background: var(--danger-soft); }
.secao { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; }
.secao:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.secao h2 .letra { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand); color: #fff;
  align-items: center; justify-content: center; font-size: .85rem; margin-right: .4rem; }
.barra-fixa { position: sticky; bottom: 0; background: var(--surface); padding: .6rem 0; border-top: 1px solid var(--border); margin-top: 1rem; flex-wrap: nowrap; }
.barra-fixa .btn { justify-content: center; }
@media (max-width: 860px) { .barra-fixa .btn { flex: 1 1 auto; padding: .5rem .6rem; } }
.oculto { display: none !important; }
.lista-rotina { list-style: none; margin: 0; padding: 0; }
.lista-rotina li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.lista-rotina .info { flex: 1 1 180px; min-width: 0; }
.status-ponto { width: 12px; height: 12px; border-radius: 50%; background: #d98a1c; flex: 0 0 auto; }
.status-ponto.ok { background: var(--brand); }
.status-ponto.alerta { background: var(--danger); }
.tabela-compacta td, .tabela-compacta th { padding: .4rem .35rem; font-size: .82rem; }
tr.linha-alerta td { background: var(--danger-soft); }
tr.linha-pendente td { background: var(--warn-soft); }
.navegar-dia { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

@media print {
  .sidebar, .topo-mobile, .nao-imprimir, .mensagens { display: none !important; }
  .app { display: block; }
  .conteudo { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; padding: 0; }
  body { background: #fff; font-size: 11px; }
  tr.linha-alerta td, tr.linha-pendente td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4 landscape; margin: 12mm; }
}

/* ---------- clínica ---------- */
.dose-acoes { display: flex; gap: .4rem; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.dose-acoes details { position: relative; }
.dose-acoes summary { list-style: none; }
.dose-acoes summary::-webkit-details-marker { display: none; }
.dose-detalhe { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: .75rem; width: min(320px, 86vw); box-shadow: 0 6px 24px rgba(0,0,0,.12); display: flex; flex-direction: column; gap: .5rem; }
.dose-detalhe label { display: flex; gap: .4rem; align-items: center; }
li.dose-atrasada { background: var(--danger-soft); margin: 0 -.5rem; padding-left: .5rem; padding-right: .5rem; border-radius: 6px; }
#id_animais { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .35rem; max-height: 420px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 8px; padding: .5rem; background: #fff; }
#id_animais label { display: flex; gap: .45rem; align-items: center; font-weight: 400; font-size: .88rem; padding: .3rem .4rem; border-radius: 6px; cursor: pointer; }
#id_animais label:has(input:checked) { background: var(--brand-soft); }
.mapa { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.mapa .aloj { border: 1px solid var(--border); border-radius: 8px; padding: .5rem; background: var(--surface-2); min-height: 64px; }
.mapa .aloj.lotado { border-color: #f0c58a; }
.mapa .aloj .cod { font-size: .75rem; color: var(--muted); display: flex; justify-content: space-between; }
.mapa .bicho { display: block; font-size: .82rem; padding: .1rem .35rem; border-radius: 4px; margin-top: .2rem; background: #fff; border: 1px solid var(--border); color: var(--text); }
.mapa .bicho.iso { background: var(--danger-soft); border-color: #f1b8b3; }
.mapa .bicho.trat { background: var(--info-soft); border-color: #bcd2ef; }
.mapa .bicho.alerta { box-shadow: inset 3px 0 0 var(--danger); }
.legenda { display: flex; gap: .75rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.celula-alerta { background: var(--danger-soft); color: var(--danger); font-weight: 700; }

/* ---------- passeios ---------- */
.btn.grande { min-height: 48px; font-size: 1rem; padding: .6rem 1.1rem; }
.passeio-aberto { display: flex; gap: .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.passeio-aberto .info { flex: 1 1 160px; }
.foto-captura { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center;
  border: 2px dashed var(--border); border-radius: 12px; padding: 1.5rem 1rem; cursor: pointer; background: var(--surface-2); min-height: 160px; }
.foto-captura.tem-erro { border-color: var(--danger); }
.foto-captura input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.foto-captura img { max-width: 100%; max-height: 320px; border-radius: 8px; }
.status-ponto.andamento { background: var(--info); }

/* ---------- adoção ---------- */
.grade-adocao { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.cartao-adocao { margin: 0; break-inside: avoid; }
.cartao-adocao img, .cartao-adocao .sem-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; font-size: 3rem; }
@media print { .grade-adocao { grid-template-columns: repeat(2, 1fr); } .cartao-adocao { border: 1px solid #ccc !important; padding: .6rem !important; } }

/* ---------- painel principal ---------- */
.painel-indicadores { display: grid; grid-template-columns: 1.1fr 1.6fr 1.6fr 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.indicador-par { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.indicador { display: flex; flex-direction: column; gap: .2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow); color: inherit; text-decoration: none; min-height: 118px; }
.indicador:hover { border-color: var(--brand); text-decoration: none; }
.indicador .rotulo { color: var(--muted); font-size: .85rem; font-weight: 600; }
.indicador .valor { font-size: 2.6rem; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.indicador .valor.verde { color: var(--brand); }
.indicador .detalhe { color: var(--muted); font-size: .8rem; margin-top: auto; }
.indicador.destaque { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.indicador.destaque .rotulo, .indicador.destaque .detalhe { color: #cfe6dd; }
.indicador.lotado { background: var(--danger-soft); border-color: #f1b8b3; }
.tabela-vagas td.vagas { font-size: 1.15rem; font-weight: 700; color: var(--brand); }
.tabela-vagas tr.sem-vaga td.vagas { color: var(--muted); }
.tabela-vagas tr.acima td { background: var(--danger-soft); }
.tabela-vagas tfoot th { border-top: 2px solid var(--border); font-size: .9rem; color: var(--text); text-transform: none; letter-spacing: 0; }
@media (max-width: 1150px) { .painel-indicadores { grid-template-columns: repeat(2, minmax(0, 1fr)); } .indicador.destaque { grid-column: 1 / -1; } }
@media (max-width: 520px) { .indicador .valor { font-size: 2rem; } .indicador { min-height: 96px; padding: .9rem; } }

/* ---------- menu das alas e mapa ---------- */
.nav a.item-ala { display: flex; justify-content: space-between; align-items: center; }
.nav a.item-ala .ocup { font-size: .75rem; opacity: .75; font-variant-numeric: tabular-nums; }
.nav a.item-ala .ocup.acima { color: #ffb4ab; opacity: 1; font-weight: 700; }
.mapa-ala { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.baia { background: var(--surface); border: 2px solid var(--border); border-radius: 10px; padding: .55rem; min-height: 96px;
  display: flex; flex-direction: column; gap: .4rem; transition: border-color .15s, background .15s; }
.baia header { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.baia header strong { color: var(--text); font-size: .95rem; }
.baia.livre { border-style: dashed; border-color: #9fd3bf; background: var(--brand-soft); }
.baia.cheia { border-color: #c9d3cf; }
.baia.acima { border-color: #f1b8b3; background: var(--danger-soft); }
.baia.alvo { border-color: var(--brand); background: #d4ece3; }
.vaga-livre { color: var(--brand); font-weight: 600; font-size: .85rem; margin: auto 0; text-align: center; }
.bicho-mapa { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .4rem .5rem; position: relative; }
.bicho-mapa[draggable=true] { cursor: grab; }
.bicho-mapa.arrastando { opacity: .4; }
.bicho-mapa.fora { opacity: .6; border-style: dashed; }
.bicho-mapa a { color: var(--text); }
.bicho-mapa .marcas { position: absolute; right: .4rem; top: .35rem; font-size: .8rem; }
.bicho-mapa .sub { font-size: .72rem; color: var(--muted); }
.bicho-mapa .mover summary { font-size: .72rem; color: var(--brand); cursor: pointer; margin-top: .2rem; list-style: none; }
.bicho-mapa .mover form { display: flex; flex-direction: column; gap: .3rem; margin-top: .3rem; }
.bicho-mapa .mover select { min-height: 34px; font-size: .8rem; padding: .3rem; }
@media print { .mapa-ala { grid-template-columns: repeat(4, 1fr); } .baia { break-inside: avoid; } }
.letra-sec { display:inline-flex; width:1.6rem; height:1.6rem; border-radius:50%; background:var(--brand); color:#fff; align-items:center; justify-content:center; font-size:.85rem; margin-right:.4rem; }
.lista-presentes { display: flex; flex-wrap: wrap; gap: .35rem; }
.fotos-relatorio { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .4rem; margin-top: .6rem; }
.fotos-relatorio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
a.relatorio-hist { display: block; color: inherit; text-decoration: none; }
a.relatorio-hist:hover { border-color: var(--brand); text-decoration: none; }
.tabela-nominal td, .tabela-nominal th { padding: .35rem .5rem; font-size: .85rem; }
.foto-ocorrencia { background: #fff; border: 1px dashed var(--border); border-radius: 8px; padding: .6rem; }
.foto-ocorrencia.tem-erro { border-color: var(--danger); background: var(--danger-soft); }

/* ---------- link do tratador ---------- */
.modo-link { background: var(--bg); }
.topo-link { background: var(--brand-dark); color: #fff; padding: .75rem 1rem; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 10; }
.conteudo-link { max-width: 640px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.coletor-fotos { border: 2px dashed var(--border); border-radius: 12px; padding: 1rem; background: var(--surface-2); text-align: center; }
.coletor-fotos.ok { border-color: var(--brand); background: var(--brand-soft); }
.coletor-fotos.tem-erro { border-color: var(--danger); background: var(--danger-soft); }
.coletor-fotos .miniaturas { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: .6rem 0; }
.coletor-fotos .miniaturas img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.coletor-fotos .contador { font-weight: 700; margin-top: .4rem; }
.botao-camera { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--brand); color: #fff; border-radius: 10px;
  padding: .8rem 1.2rem; font-size: 1.05rem; font-weight: 600; cursor: pointer; min-height: 52px; }
.botao-camera input { display: none; }
a.passeio-registro { display: flex; gap: .8rem; color: inherit; text-decoration: none; padding: .7rem; margin-bottom: .6rem; align-items: flex-start; }
a.passeio-registro:hover { border-color: var(--brand); text-decoration: none; }
a.passeio-registro.com-alerta { border-left: 4px solid var(--danger); }
a.passeio-registro.incompleto { border-left: 4px solid #d98a1c; }
.fotos-passeio { display: grid; grid-template-columns: repeat(3, 56px); gap: 3px; flex: 0 0 auto; }
.fotos-passeio img, .sem-foto-p { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--surface-2); font-size: .65rem; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.passeio-registro .info { flex: 1; min-width: 0; }
@media (max-width: 520px) { .fotos-passeio { grid-template-columns: repeat(2, 48px); } .fotos-passeio img { width: 48px; height: 48px; } }
.pastas { display: flex; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.pasta { flex: 1 1 200px; display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface-2); color: var(--text); font-weight: 600; text-decoration: none; }
.pasta:hover { text-decoration: none; border-color: var(--brand); }
.pasta.ativa { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }

/* ---------- CORREÇÕES (fora do padrão) ---------- */
.fora { color: var(--danger); font-weight: 700; }
.kpi.kpi-fora { border-color: #f1b8b3; background: var(--danger-soft); }
.kpi.kpi-fora .valor { color: var(--danger); }
.secao-correcoes { border: 2px solid var(--danger); background: #fff5f4; border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.secao-correcoes h2 { color: var(--danger); font-size: 1.2rem; letter-spacing: .02em; }
.secao-correcoes h2 span { font-size: .9rem; font-weight: 500; letter-spacing: 0; }
.item-correcao { display: flex; gap: .8rem; padding: .8rem 0; border-top: 1px solid #f1b8b3; }
.item-correcao:first-of-type { border-top: 0; }
.item-correcao .num-correcao { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; background: var(--danger); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.item-correcao.feito .num-correcao { background: var(--brand); }
.item-correcao .corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.item-correcao .rotulo-c { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .05em; padding: .1rem .4rem; border-radius: 4px; margin-right: .3rem; color: #fff; background: var(--danger); }
.item-correcao .fora-padrao, .item-correcao .corrigir { color: var(--danger); font-weight: 600; }
.item-correcao .corrigir { font-size: 1.02rem; }
.item-correcao .corrigido { color: var(--brand-dark); font-weight: 600; }
.item-correcao .corrigido .rotulo-c { background: var(--brand); }
.item-correcao.feito .fora-padrao, .item-correcao.feito .corrigir { opacity: .65; }
.campo-fora label, .campo-fora .rotulo-campo { color: var(--danger) !important; }
.campo-fora .chip:has(input:checked), .campo-fora.check { border-color: var(--danger) !important; background: var(--danger-soft) !important; }
#secao-nc.secao-correcoes-ativa { border: 2px solid var(--danger); background: #fff5f4; }
#secao-nc.secao-correcoes-ativa h2 { color: var(--danger); }
@media print { .secao-correcoes, .item-correcao .rotulo-c, .kpi-fora { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.lista-nomes { display: grid; grid-template-columns: 1fr; gap: .5rem; margin: .8rem 0; }
.chip.nome { border-radius: 10px; padding: .8rem 1rem; font-size: 1.05rem; min-height: 52px; }

/* ---------- linha do tempo do animal ---------- */
.cartao-vacinas { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; }
.filtros-linha { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 .6rem; }
.filtros-linha .chip { text-decoration: none; color: var(--text); font-size: .85rem; min-height: 34px; padding: .3rem .75rem; }
.filtros-linha .chip.ativo { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.mes-linha { margin: 1.2rem 0 .5rem; text-transform: none; letter-spacing: 0; }
.linha-completa li { padding-left: 2rem; }
.linha-completa li::before { display: none; }
.linha-completa .icone-linha { position: absolute; left: -.9rem; top: -.1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #fff;
  border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.linha-completa li.cor-verde .icone-linha { border-color: var(--brand); }
.linha-completa li.cor-vermelho .icone-linha { border-color: var(--danger); background: var(--danger-soft); }
.linha-completa li.cor-laranja .icone-linha { border-color: #d98a1c; background: var(--warn-soft); }
.linha-completa li.cor-azul .icone-linha { border-color: var(--info); background: var(--info-soft); }
