/* css/pages/evidence.css: the Evidence section's incidents (pages/evidence/exports.js): the strip of incident cards (drop
   targets), the open incident's header, and the stills grid under the clips. The narrower screens' rules are in css/mobile.css. */

.inc-box { margin: var(--s3) 0 var(--s4); }
.inc-strip-head, .inc-head { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s2); }
.inc-strip-head h3, .inc-title { margin: 0; font-size: var(--fs-md); }
.inc-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s2); }
.inc-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: var(--s2) var(--s3);
  text-align: left; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.inc-card:hover { border-color: var(--accent); }
.inc-card-title { font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inc-card-sub { font-size: var(--fs-sm); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inc-new { justify-content: center; color: var(--muted); font-size: var(--fs-sm); border-style: dashed; cursor: default; min-height: 58px; }
/* While something is dragged, the places it can go are marked; the one under the pointer stands out. */
/* and the incidents stay in sight at the top, however far down the list the drag started. */
.dragging .inc-box { position: sticky; top: 0; z-index: 3; background: var(--bg, var(--panel)); padding: var(--s2) 0;
  box-shadow: 0 6px 12px -8px var(--scrim); }
.dragging [data-drop] { outline: 1px dashed var(--accent); outline-offset: 2px; }
[data-drop].drop-over { outline: 2px solid var(--accent); background: var(--panel); }
tr[draggable="true"] { cursor: grab; }

.ev-stills { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s2); }
.ev-still { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--s2); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: var(--radius); }
.ev-still[draggable="true"] { cursor: grab; }
.ev-still-pic { padding: 0; border: 0; background: none; cursor: zoom-in; }
.ev-still, .ev-still-pic img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.ev-still-pic img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); }
.ev-still-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-still-when, .ev-still-note { font-size: var(--fs-sm); }
.ev-still-note { color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-still select, .ev-still .tbtn { align-self: flex-start; margin-top: 2px; }
.ev-stills > p, .inc-strip > p { grid-column: 1 / -1; margin: 0; }
select[name="file"] { max-width: 15em; }
.ev-still-big { display: block; max-width: 100%; max-height: 65vh; margin: 0 auto var(--s2); }
