/* Jobs (modules/jobs.js): the reference screens for the Apple-style flow (docs/ux/flow-guide.md).
   List: search, segments, inset grouped rows. Job: status card, info list, sections, notes. */

/* ---- list ---- */
.jobs-seg { margin: 0 0 var(--s5); }
.jobs-hint { margin-top: calc(-1 * var(--s3)); }
.jobs-list .ios-row-value { font-size: var(--fs-subhead); }
@media (max-width: 480px) { .jobs-list .ios-row-value { display: none; } }

/* ---- job ---- */
.job-page .status-card { margin-bottom: var(--s5); }
.job-info .avatar { width: 28px; height: 28px; font-size: 11px; }
.job-info .ops-avatars { display: inline-flex; }
.job-info .ops-avatars .avatar + .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.job-exp-overview { display: block; }
.job-exp-overview > .ios-group, .job-exp-shortcuts { margin-bottom: var(--s5); }
.job-exp-shortcuts .quick-actions { margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.job-exp-scope { padding: var(--s3) var(--s4); white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-body); line-height: var(--lh-body); }
.job-notes .job-note-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.job-notes .ios-group { margin-bottom: var(--s3); }
.job-note-add { display: flex; gap: var(--s2); align-items: flex-end; }
.job-note-input { flex: 1; width: 100%; resize: vertical; min-height: 52px; border-radius: var(--r-group) !important; }
.job-sections { margin-top: var(--s2); }
.job-danger .ios-row { justify-content: center; }
.job-danger .ios-row-text { align-items: center; }
.ios-dot.status-lead { background: var(--tile-gray); } .ios-dot.status-scheduled { background: var(--tile-blue); }
.ios-dot.status-in-progress { background: var(--tile-amber); } .ios-dot.status-on-hold { background: var(--tile-orange); }
.ios-dot.status-complete, .ios-dot.status-invoiced { background: var(--tile-green); } .ios-dot.status-cancelled { background: var(--tile-red); }

/* Details disclosure (billing, costs, contract): a quiet row that opens in place. */
.job-exp-details { margin: 0 0 var(--s5); border-radius: var(--r-group); background: var(--surface); }
.job-exp-details > summary { cursor: pointer; padding: var(--s3) var(--s4); min-height: var(--row); display: flex; align-items: center; font-weight: 600; font-size: var(--fs-body); list-style: none; }
.job-exp-details > summary::-webkit-details-marker { display: none; }
.job-exp-details > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform var(--t-base); }
.job-exp-details[open] > summary::after { transform: rotate(-135deg); }
.job-exp-details-body { padding: 0 var(--s4) var(--s4); }
.job-exp-details > summary:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: -3px; border-radius: var(--r-group); }

/* Section screens: the sibling sections scroll in one row under the title. */
.job-section-page .ops-tabs-row { margin: calc(-1 * var(--s2)) 0 var(--s5); }
.job-section-page .ops-tabs-row .tabs { display: flex; }
