/* What happens at the job (onjob-ui.js): the block on a worker's job card, the office's blocks and the On the job screen. */
.oj-job { margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--s1); display: grid; gap: 6px; }
.oj-job p { margin: 0; }
.oj-line { font-size: 13px; color: var(--ink-2); }
.oj-warn { font-size: 13px; color: var(--ink); background: var(--warn-soft); border-radius: 8px; padding: 6px 8px; }
.oj-stop { font-size: 14px; color: var(--ink); background: var(--crit-soft); border: 1px solid var(--crit); border-radius: 8px; padding: 8px 10px; }
.oj-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.oj-acts .btn { white-space: normal; text-align: left; }
.oj-b { min-height: 36px; }
.oj-held { display: grid; gap: 2px; padding: 10px 12px; margin: 0 0 12px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.oj-faults { display: grid; gap: 4px; font-size: 14px; }
.oj-faults ul, .oj-flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.oj-faults li { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); }
.oj-faults li[data-st="struck"] > span, .oj-flist li[data-st="struck"] { text-decoration: line-through; color: var(--ink-3); }
.oj-faults li[data-st="struck"] small, .oj-flist li[data-st="struck"] small { text-decoration: none; display: inline; }
.oj-faults small, .oj-flist small { color: var(--ink-3); }
.oj-keys { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.oj-keys li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.oj-keys li > span { display: grid; gap: 2px; min-width: 0; flex: 1 1 140px; }
.oj-keys small { color: var(--ink-3); }
.oj-phs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.oj-ph { display: inline-block; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--s2); vertical-align: middle; }
.oj-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.oj-sec { min-width: 0; }
.oj-sec .lines { margin: 0; }
.oj-open { display: grid; gap: 2px; text-align: left; width: 100%; min-width: 0; }
.oj-open .lb, .oj-open .de { overflow-wrap: anywhere; }
.oj-pad { margin: 0 0 12px; }
.oj-sec .kv dd { overflow-wrap: anywhere; }
@media (max-width: 520px) { .oj-acts .btn { flex: 1 1 calc(50% - 6px); min-width: 0; } .oj-grid { gap: 10px; } }

/* the line under a section heading sits inside the card, lined up with the heading (17 Nov) */
.oj-sec > .hint { margin: 0; padding: 10px 16px 2px; }
/* the buttons under Checklist items sit inside the card, not on its edge (polish sweep) */
.oj-sec > .oj-acts { margin: 0; padding: 8px 16px 16px; }
