.oc-historico[hidden]{display:none}
.oc-historico{margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.oc-hist-cabecalho{display:flex;align-items:center;justify-content:space-between;gap:10px}
.oc-hist-cabecalho h4,.oc-hist-form h4{margin:0 0 10px}
.oc-hist-ajuda{font-size:12px;color:var(--ink-soft);line-height:1.5}
.oc-hist-item{border-left:3px solid var(--line);padding:4px 0 14px 12px;margin:12px 0;overflow-wrap:anywhere}
.oc-hist-mensagem{white-space:pre-wrap;line-height:1.5;margin:8px 0}
.oc-hist-form{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}
.oc-hist-form textarea{min-height:100px;resize:vertical}
.oc-hist-form input[type=file]{max-width:100%}
.oc-hist-form .field-label{display:block;margin:10px 0}
.oc-hist-form select,.oc-hist-form textarea{width:100%;box-sizing:border-box}
.oc-hist-erro{font-size:13px;line-height:1.5;color:var(--ink-soft)}
.oc-hist-previa img,.oc-hist-foto img{display:block;max-width:100%;height:auto;border-radius:10px;margin-top:10px}
.ocorrencia-card .oc-hist-abrir{
 display:flex;align-items:center;justify-content:center;gap:10px;
 width:100%;min-height:52px;margin:14px 0;padding:13px 16px;
 border:1px solid #007e92;border-radius:12px;
 background:linear-gradient(110deg,#0087a4,#009b89);color:#fff;
 font:inherit;font-weight:800;font-size:15px;line-height:1.25;
 box-shadow:0 4px 10px rgba(0,125,145,.2);cursor:pointer;text-align:center;
}
.ocorrencia-card .oc-hist-abrir:hover{filter:brightness(.94)}
.ocorrencia-card .oc-hist-abrir:focus-visible{outline:3px solid #e6a326;outline-offset:3px}
.oc-hist-abrir-icone{font-size:23px;line-height:1}
.oc-hist-abrir-seta{margin-left:auto;font-size:25px;line-height:1}
.oc-hist-abrir>span:nth-child(2){flex:1}

.oc-hist-editor{margin-top:16px;border:1px solid var(--line);border-radius:12px;padding:12px}
.oc-hist-editor summary{cursor:pointer;font-weight:800;color:var(--ink);min-height:26px;line-height:1.5}
.oc-hist-editor summary:focus-visible{outline:3px solid #e6a326;outline-offset:4px;border-radius:4px}
.oc-hist-editor .oc-hist-form{margin-top:12px}


/* O mesmo componente é usado no celular e no computador. */
.oc-progresso{display:block;box-sizing:border-box;min-width:0;width:100%;margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink)}
.oc-progresso-aberta{--progresso-cor:#b91c1c;--progresso-fundo:#fff1f2}
.oc-progresso-em_andamento{--progresso-cor:#1d4ed8;--progresso-fundo:#eff6ff}
.oc-progresso-resolvida{--progresso-cor:#15803d;--progresso-fundo:#f0fdf4}
.oc-progresso-cabecalho{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.oc-progresso-cabecalho>span{font-size:10px;font-weight:800;letter-spacing:.1em;color:var(--ink-soft)}
.oc-progresso-cabecalho strong{padding:5px 9px;border-radius:8px;font-size:12px;line-height:1.4;background:var(--progresso-fundo);color:var(--progresso-cor)}
.oc-progresso-etapas{display:flex;list-style:none;gap:6px;margin:0;padding:0}
.oc-progresso-etapa{display:flex;flex:1 1 0;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:10px 2px;border:1px solid var(--progresso-cor);border-radius:10px;background:var(--progresso-fundo);color:var(--progresso-cor);font-size:11px;line-height:1.3;font-weight:600;text-align:center;opacity:.48}
.oc-progresso-numero{display:grid;place-items:center;width:22px;height:22px;border:1px solid currentColor;border-radius:50%;font-size:11px;font-weight:800}
.oc-progresso-etapa.ativa{opacity:1;color:#fff;background:var(--progresso-cor);border-color:var(--progresso-cor);font-weight:800;box-shadow:0 3px 8px rgba(15,23,42,.12)}
.oc-progresso-etapa.ativa .oc-progresso-numero{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.6)}
@media(max-width:480px){
 .oc-progresso{padding:12px 10px}
 .oc-progresso-etapa{font-size:10px}
 .ocorrencia-card .oc-hist-abrir{box-sizing:border-box;max-width:100%;padding:12px;min-height:48px;font-size:14px}
 .oc-historico{padding:10px;min-width:0}
}

/* As fases consultam o histórico sem alterar a situação da ocorrência. */
.oc-progresso-etapa{padding:0}
.oc-progresso-consultar{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:100%;min-height:76px;padding:10px 2px;box-sizing:border-box;border:0;border-radius:inherit;background:transparent;color:inherit;font:inherit;cursor:pointer}
.oc-progresso-consultar:focus-visible{outline:3px solid #e6a326;outline-offset:3px}
.oc-progresso-etapa:hover{opacity:1}

.oc-progresso-consultar{position:relative;z-index:1;pointer-events:auto;touch-action:manipulation}
.oc-abertura{padding:14px;margin:12px 0;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.oc-abertura h5{font-size:14px;margin:0 0 12px}
.oc-abertura dl{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.oc-abertura dt{font-size:11px;color:var(--ink-soft);margin-bottom:3px}
.oc-abertura dd{font-size:13px;font-weight:650;margin:0;overflow-wrap:anywhere}
@media(max-width:360px){.oc-abertura dl{grid-template-columns:1fr}}
