/* telas/historico.css — Histórico: banner de aviso e linha do tempo por dia. */
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: var(--raio-md); background: linear-gradient(90deg, var(--ambar-claro), #fff); border: 1px solid var(--ambar-borda); margin-bottom: 14px; box-shadow: var(--sombra-1); }
.banner .t { display: flex; align-items: center; gap: 12px; }
.banner .t .ico { color: var(--ambar); width: 22px; height: 22px; }
.banner b { color: var(--tinta); display: block; }
.banner p { font-size: 13px; color: var(--texto); }
.hist { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.hist::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--borda); }
.hist::after { content: ""; position: absolute; left: 11px; top: 14px; height: calc(100% - 28px); width: 2px; background: linear-gradient(var(--vermelho), var(--azul)); transform-origin: top; transform: scaleY(0); }
@supports (animation-timeline: view()) {
  .hist::after { animation: traco linear both; animation-timeline: view(); animation-range: entry 5% cover 70%; }
  @keyframes traco { to { transform: scaleY(1); } }
}
.hist .dia { position: sticky; top: var(--topo); z-index: 1; background: var(--superficie); padding: 10px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cinza); }
.hist li { position: relative; display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--borda); }
/* para o cliente não há hora nem quem lançou: o evento ocupa a linha toda */
.hist.sem-lancamento li { grid-template-columns: 1fr; }
.hist li::before { content: ""; position: absolute; left: -30px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--superficie); border: 3px solid var(--cinza-fraco); box-shadow: 0 0 0 3px #fff; }
.hist li.entrada::before { border-color: var(--ambar); } .hist li.saida::before { border-color: var(--azul); } .hist li.transito::before { border-color: var(--roxo); } .hist li.conclusao::before { border-color: var(--verde-escuro); } .hist li.avaria::before, .hist li.desfez::before { border-color: var(--vermelho); } .hist li.anexo::before { border-color: var(--tinta); }
.hist .hora { font-size: 13px; color: var(--tinta); font-weight: 600; }
.hist .t { color: var(--tinta); }
.hist .t a { text-decoration: none; } .hist .t a:hover { color: var(--vermelho); }
.hist .d { font-size: 12px; color: var(--cinza); }
.hist .quem { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--cinza); white-space: nowrap; }
.banner form { margin: 0; }
details.copias { margin-top: 16px; }
details.copias summary { cursor: pointer; list-style: none; padding-bottom: 16px; }
details.copias summary::-webkit-details-marker { display: none; }
