/* Casos de incidente e editor de linha de cruzamento */
.case-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.case-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.case-card:hover { border-color: var(--accent); }
.case-card strong { font-size: 16px; }
.case-desc { white-space: pre-wrap; overflow-wrap: anywhere; }
.case-card .case-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); }
.case-page { display: flex; flex-direction: column; gap: 14px; }
.case-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.case-head > div:first-child { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.case-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.case-title strong { font-size: 20px; overflow-wrap: anywhere; }
.case-head .actions, .case-page > .actions { flex-wrap: wrap; }
.case-items { display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--line); padding-left: 14px; }
.case-item { display: grid; grid-template-columns: 220px 1fr; gap: 6px 14px; position: relative; }
.case-item::before { content: ""; position: absolute; left: -23px; top: 18px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 2px solid var(--panel); }
.case-item.case-note { grid-template-columns: 1fr; }
.case-item.case-note::before { background: var(--muted); }
.case-time { grid-column: 1 / -1; font-size: 12px; color: var(--muted); font-weight: 600; }
.case-shot { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; display: block; }
.case-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-shot.ev-noimg { display: grid; place-items: center; color: #9aa3ad; font-size: 13px; }
.case-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.case-body .actions { flex-wrap: wrap; }
.case-note { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel-2); border-radius: 8px; padding: 8px 10px; }
.line-row { display: grid; grid-template-columns: auto 1fr 1fr auto auto; gap: 10px; align-items: end; }
@media (max-width: 640px) {
  .case-item { grid-template-columns: 1fr; }
  .line-row { grid-template-columns: auto 1fr; }
  .line-row > :nth-child(n+3) { grid-column: 2; justify-self: start; }
}
