/* The field view's look (Ali, 16 Oct 2026; the 19 approved drawings): calm and full width. Progress is one thin bar with words,
   jobs sit in grouped lists, one details table per page, two greys of text. Only for the phone field view (.is-field); loaded after field.css. */

/* ---------- Record Visit and Report New Fault ---------- */
.is-field .wz-top { gap: 0; margin-bottom: 4px; }
.is-field .wz-top .back { min-height: 44px; margin: -6px 0 -4px; }
.is-field .wz-title { font: 800 1.65rem/1.1 "Barlow Semi Condensed", "Barlow", sans-serif; }
.wz-steps { list-style: none; margin: 12px 0 6px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.wz-steps li { display: grid; gap: 7px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.wz-steps li::before { content: ""; height: 4px; border-radius: 2px; background: #DCE2E9; transition: background-color 0.25s ease-out; }
.wz-steps li.done { color: var(--ink-2); } .wz-steps li.done::before { background: var(--ok, #1E8E5A); }
.wz-steps li.done::after { content: none; }
.wz-steps li.now { color: var(--ink); } .wz-steps li.now::before { background: var(--link); }
.is-field .wz .wz-h2 { text-align: left; font-size: 1.35rem; margin: 14px 0 12px; }
.wz-lead { color: var(--ink-2); margin: 10px 0 2px; }
/* result choices: the chosen one has a tick and a light fill */
.is-field .wz-res button { justify-items: start; text-align: left; padding: 16px 14px; min-height: 88px; border-color: var(--line); border-radius: 14px; position: relative; transition: transform 0.12s ease-out; }
.is-field .wz-res button:active { transform: scale(0.97); }
.is-field .wz-res button b { font-size: 1.02rem; } .is-field .wz-res button small { font-size: 0.8rem; }
.is-field .wz-res button[aria-checked="true"] { border: 2px solid var(--ink); background: #F2F5F9; padding: 15px 13px; }
.is-field .wz-res button[aria-checked="true"]::after { content: "✓"; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.75rem; display: grid; place-items: center; }
/* fields: full width; NA joined to the right of the box */
.is-field .wz-two { grid-template-columns: 1fr; gap: 0; }
.is-field .wz-in { border-color: #D3DAE2; border-radius: 12px; min-height: 48px; }
.wz-ig { display: flex; }
.wz-ig .wz-in { flex: 1; min-width: 0; border-radius: 12px 0 0 12px; }
.is-field .wz-ig .wz-nabtn { width: auto; min-height: 48px; border: 1px solid #D3DAE2; border-left: 0; border-radius: 0 12px 12px 0; background: #F6F8FA; font: 700 0.9rem "Barlow", sans-serif; padding: 0 16px; color: var(--ink); cursor: pointer; }
.wz-ig:has(.bad) .wz-in, .wz-ig:has(.bad) .wz-nabtn { border-color: var(--alert); }
.wz-ig:has(.bad) { border-radius: 12px; box-shadow: 0 0 0 3px #FCE8E7; }
.wz-ig .wz-in.bad { box-shadow: none; }
.is-field .wz-known { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 12px 14px; }
.is-field .wz-known b { font-weight: 600; } .is-field .wz-known .link { margin-left: auto; font-weight: 700; }
.is-field .wz-add { width: auto; justify-content: flex-start; margin-top: 6px; font-weight: 700; min-height: 40px; padding: 0; }
.is-field .wz-part .p-qty { text-align: center; }
/* photos: two white buttons with icons */
.is-field .wz-shot { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; min-height: 84px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); cursor: pointer; }
.wz-shot svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wz-shot span { display: grid; gap: 1px; text-align: left; } .wz-shot b { font-size: 0.98rem; } .wz-shot small { color: var(--muted); font-size: 0.8rem; }
.is-field .wz .cb-photos { gap: 10px; } .is-field .wz .cb-thumb { width: 84px; height: 84px; border-radius: 12px; }
/* review: one table, label, value, Edit */
.is-field .wz-review { padding: 0; border-radius: 16px; overflow: hidden; }
.is-field .wz-sum { grid-template-columns: 96px 1fr auto; gap: 10px; padding: 12px 16px; align-items: baseline; }
.wz-k { color: var(--muted); font-size: 0.92rem; }
.is-field .wz-v { grid-column: auto; color: var(--ink); }
.is-field .wz-sum .link { font-weight: 700; }
/* the bottom bar: Cancel / Back white, the next step amber */
.is-field .wz-bar .btn:not(.next-btn) { flex: 0 0 34%; } .is-field .wz-bar .btn[data-next] { flex: 1 1 auto; }
.is-field .wz-photo-btns + p, .is-field .wz-photo-btns + .wz-l { margin-top: 12px; }
/* the job in the On site bar is a link to its details */
.is-field .cb-job { text-decoration: underline; text-decoration-color: #9DB5D8; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .wz-steps li::before, .is-field .wz-res button { transition: none; } }

/* ---------- the complaint page ---------- */
.is-field .job-hero { box-shadow: none; background: transparent; border: 0; padding-bottom: 4px; }
.is-field .job-hero .back { min-height: 44px; margin: -8px 0 -2px; }
.is-field .job-hero .job-title { font: 800 1.65rem/1.1 "Barlow Semi Condensed", "Barlow", sans-serif; margin: 6px 0 2px; }
.is-field .job-hero .case-eq { font-weight: 600; color: var(--ink-2); margin: 0; }
.is-field .job-crew { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-2); margin: 8px 0 0; }
.is-field .job-crew b { font-weight: 600; }
.is-field .job-crew .crew-avs { display: flex; } .is-field .job-crew .crew-avs > * + * { margin-left: -8px; } .is-field .job-crew .av { border: 2px solid var(--bg, #F3F5F8); }
.card-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 0 0 12px; }
.look-box { display: grid; gap: 3px; padding: 14px 16px; }
.look-box .eyebrow { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.look-box b { font-size: 1.04rem; } .look-sub { color: var(--ink-2); font-size: 0.94rem; }
.look-kv > div { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 0.94rem; align-items: baseline; }
.look-kv > div:first-child { border-top: 0; }
.look-kv > div > span:first-child { color: var(--muted); } .look-kv b { font-weight: 600; overflow-wrap: anywhere; }
.look-kv a { font-weight: 700; color: var(--link); text-decoration: none; } .look-kv .contact-main { color: var(--ink); }
.is-field .fold-wrap { border-radius: 16px; }
.look-kv .contact-main { margin: 0; font-size: inherit; }
.is-field .look-kv .look-loc { display: none; } /* Maps is in the bottom bar (shown once) */

/* ---------- My Jobs ---------- */
.day-prog { margin: 6px 0 14px; display: grid; gap: 8px; }
.day-prog .seg { display: flex; gap: 4px; } .day-prog .seg i { flex: 1; height: 5px; border-radius: 3px; background: #DCE2E9; transition: background-color 0.25s ease-out; }
.day-prog .seg i.d { background: var(--ok); } .day-prog .seg i.n { background: var(--link); }
.day-prog p { display: flex; align-items: baseline; gap: 4px; margin: 0; font-size: 0.86rem; color: var(--muted); } .day-prog p b { color: var(--ink); }
.day-prog p span { margin-left: auto; }
/* the Now Card */
.is-field .nc { border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.is-field .nc p { margin: 0; }
.nc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nc-top .sr-tag { font-size: 0.82rem; }
.is-field .nc-top .nc-timer { margin: 0 0 0 auto; font: 700 1.6rem/1 "Barlow Semi Condensed", "Barlow", sans-serif; }
.nc-name { display: block; font: 700 1.22rem/1.2 "Barlow", sans-serif; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.is-field .nc-sub { color: var(--ink-2); font-size: 0.94rem; margin-top: -8px; }
.is-field .nc-since { display: flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 600; color: var(--link-dark); }
.nc-pausedat { margin-left: auto; font-weight: 700; font-size: 0.86rem; color: #7A4B00; }
.nc-brk .nc-since { color: #7A4B00; }
.nc-brkbar { height: 6px; border-radius: 3px; background: #F3E6CC; overflow: hidden; } .nc-brkbar i { display: block; height: 100%; background: #D98A0B; border-radius: 3px; }
.is-field .nc-record, .is-field .nc .btn { width: 100%; min-height: 50px; margin: 0; }
.is-field .nc-row { margin: 0; }
.is-field .nc-fault { margin: 0; }
.nc-done { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.nc-done .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 0.75rem; }
.nc-done .chev { margin-left: auto; color: #B4BDC8; font-size: 1.2rem; }
/* the crew box and the transport card (information only) */
.is-field .my-crew { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; margin: 0 0 12px; gap: 12px; }
.is-field .my-crew b { font-size: 0.98rem; } .is-field .my-crew small { color: var(--ink-2); font-size: 0.9rem; }
.is-field .drop-card { border-left: 0; gap: 8px; }
.drop-card .tp { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.84rem; background: #EEF1F5; border-radius: 999px; padding: 4px 10px 4px 8px; }
.drop-card .tp svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dp-crew { display: flex; align-items: center; gap: 10px; } .dp-crew b { font-size: 1.02rem; }
.drop-when { display: grid; grid-template-columns: 86px 1fr; gap: 8px 10px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 0.94rem; }
.drop-when span { color: var(--muted); } .drop-when b { font-weight: 600; }

/* ---------- job lists on every field page: one grouped list with thin dividers ---------- */
.is-field .tech-sec > h2 { display: flex; align-items: center; gap: 8px; font: 700 1.02rem "Barlow", sans-serif; margin: 18px 2px 10px; }
.is-field .job-cards { gap: 0; }
.is-field .job-cards > li > .job-card { border-radius: 0; border-top-width: 0; }
.is-field .job-cards > li:first-child > .job-card { border-top-width: 1px; border-radius: 16px 16px 0 0; }
.is-field .job-cards > li:last-child > .job-card { border-radius: 0 0 16px 16px; }
.is-field .job-cards > li:only-child > .job-card { border-radius: 16px; }
.is-field .job-card { padding: 14px 16px; gap: 3px; box-shadow: inset 3px 0 0 var(--jc); }
.is-field .job-card .kind-tag { display: none; }
.is-field .job-card .job-main { font-size: 1.04rem; }
.is-field .job-card .job-meta { font-size: 0.86rem; }
.is-field .job-card .job-meta:empty, .is-field .job-card .job-sub:only-child { display: none; }
/* Start sits on the right of its row */
.is-field .job-cards > li:has(.job-start) { position: relative; }
.is-field .job-cards > li:has(.job-start) .job-card { padding-right: 104px; border-radius: inherit; }
.is-field .job-cards > li:has(.job-start):first-child .job-card { border-radius: 16px 16px 0 0; }
.is-field .job-cards > li:has(.job-start):last-child .job-card { border-radius: 0 0 16px 16px; border-bottom: 1px solid var(--line); }
.is-field .job-cards > li:has(.job-start):only-child .job-card { border-radius: 16px; }
.is-field .btn.job-start { position: absolute; right: 16px; bottom: 14px; min-height: 42px; padding: 0 18px; background: var(--ink); color: #fff; border: 0; box-shadow: none; border-radius: 10px; font-weight: 700; }
.is-field .job-cards > li > .job-card { border-width: 0 1px; }
.is-field .job-cards > li + li > .job-card { border-top-width: 1px; }
.is-field .job-cards > li:first-child > .job-card { border-top-width: 1px; }
.is-field .job-cards > li:last-child > .job-card { border-bottom-width: 1px; }
.is-field .nc-sub { margin-top: -6px; }

/* ---------- My AMC, My Complaints, History ---------- */
.is-field .month-switch { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; justify-content: space-between; }
.is-field .month-switch b { font: 800 1.1rem "Barlow Semi Condensed", "Barlow", sans-serif; }
.is-field .month-switch .icon-btn { border: 0; }
.is-field .tech-sec .sec-sub { margin: -6px 2px 10px; }
.wz-check { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 8px; font-weight: 600; } .wz-check input { width: 22px; height: 22px; accent-color: var(--ink); }
@media (min-width: 701px) { .is-field .wz-bar .btn, .is-field .wz-bar .btn[data-next], .is-field .wz-bar .btn:not(.next-btn) { flex: 0 0 auto; min-width: 140px; } .is-field .wz-bar .next-btn { min-width: 220px; } } /* computers: the bar at the top, buttons their normal size */

/* a big crew: the photos keep their overlap and continue on a second row after three (Ali, 16 Oct 2026) */
.is-field .my-crew, .is-field .dp-crew { align-items: flex-start; }
.is-field .my-crew .crew-avs, .is-field .dp-crew .crew-avs { display: flex; flex-wrap: wrap; row-gap: 4px; width: auto; max-width: 68px; flex: none; } /* as wide as the photos, at most three overlapping ones per row */
.is-field .my-crew .crew-avs .av, .is-field .dp-crew .crew-avs .av { margin-left: -8px; }
.is-field .my-crew .crew-avs .av:nth-child(3n+1), .is-field .dp-crew .crew-avs .av:nth-child(3n+1) { margin-left: 0; }
.is-field .dp-crew b, .is-field .my-crew > span { padding-top: 2px; }
.is-field #bar-start { flex: 2 1 0; min-width: 0; } .is-field .case-actions #save-record:not(.next-btn) { flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.15; }
.nc-top .nc-amc { background: var(--job-amc); }

/* Cancel Visit: a quiet link under the running / paused card (never a second strong button) */
.is-field .nc-cancel { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 0 8px; text-align: center; color: #5A6677; background: none; border: 0; font: inherit; cursor: pointer; }
.is-field .nc-cancel:active { color: #0D1B2A; }
/* Cancel Visit on a job card: bottom left of the card, in the row of Start */
.is-field .job-cards > li:has(.nc-cancel) { position: relative; }
.is-field .job-cards > li:has(.nc-cancel) > .job-card { padding-bottom: 62px; }
.is-field .job-cards > li > .nc-cancel { position: absolute; left: 12px; bottom: 14px; width: auto; min-height: 42px; margin: 0; padding: 0 6px; text-align: left; font-size: 0.9rem; }

/* A job card with a status line (a colleague is on it, or it is paused): the line sits above Cancel Visit and the Start / Join / Resume button, inside the card (Ali, 18 Oct 2026) */
.is-field .job-cards > li:has(.nc-mate) { position: relative; }
.is-field .job-cards > li:has(.nc-mate) > .job-card { padding-bottom: 96px; }
.is-field .job-cards > li > .nc-mate { position: absolute; left: 16px; right: 16px; bottom: 60px; margin: 0; font-size: 0.82rem; line-height: 1.3; }
/* Record Visit · parts fixed on this visit (Point 12) */
.wz-tick { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; cursor: pointer; }
.wz-tick input { width: 22px; height: 22px; flex: none; accent-color: var(--ink); }
.wz-tick:has(input:checked) { border-color: var(--ink); }
.wz-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wz-yn button { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 600 1rem "Barlow", sans-serif; color: var(--ink); cursor: pointer; }
.wz-yn button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.wz-yn.bad button { border-color: var(--alert); }
