/* The contract icon outside a job card (round 2026-11-15, design brief
   section 5: "driver, sub-company, owner see contract when clicked on
   icon"). The icon itself is .jc-lead (style.css, js/job-card.js
   rpsJobCard.contractLink): one document icon, one tap, the contract PDF in a
   new tab. This file only places it in front of a table row, a list line or
   a card that is not the shared job card. Tokens only - both themes. */

/* A table row or a list line: the 44 px target. */
.jc-lead.jc-lead--row { width: 44px; height: 44px; }

/* The icon and what it leads (a title block, a row's link): one line, the
   text keeps shrinking and wrapping, the icon never does. */
.doc-lead { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.doc-lead > :not(.jc-lead) { flex: 1 1 auto; min-width: 0; }
.doc-lead--top { align-items: flex-start; }

/* Protocols by car: the icon leads a run's name, the run's buttons stay at the far end. */
.pr-run-head > .doc-lead { flex: 1 1 auto; }

/* A list whose lines are links (Today: On the road, Your jobs in order): the
   icon stands in front of the line's link, inside the same line. */
li.doc-lead { gap: 0; }
li.doc-lead > .jc-lead { margin-left: var(--sp-3); }

/* The portal lists (SIXT Neuwagen, Enterprise, AVIS): the id cell leads with the icon. */
.src-tbl td > .jc-lead--row { display: inline-grid; vertical-align: middle; margin-right: var(--sp-2); }
/* Their phone card: the title starts beside the icon and stays clear of the chevron. */
.src-mcard .doc-lead { margin-right: 28px; }

/* SIXT's inbox rows keep their icons in the actions cell: the contract icon
   is one of them (beside Chat, under Assign), in its own colours. A finger
   gets the full 44 px; on a phone it leads the action row. */
.sixt-acts .jc-lead { width: 32px; height: 32px; border-radius: var(--r-sm); }
@media (min-width: 861px) { .sixt-row .sixt-acts .jc-lead { width: auto; } }
@media (pointer: coarse) { .sixt-row .sixt-acts .jc-lead { min-height: 44px; } }
@media (max-width: 860px) {
  .sixt-row.data .sixt-acts .jc-lead { order: -1; flex: none; width: 44px; height: 44px; border-radius: var(--r-md); }
}

@media (prefers-reduced-motion: reduce) { .jc-lead { transition: none; } }
