/* Field and crews: the week's schedule, the job page's field panel, and the crew
   view on a phone. */

.field-panel { margin-top: 16px; }
.staff .two-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.staff table.costs tr.tot td { border-top: 1.5px solid var(--ink); }
.staff .receipt-row { align-items: center; background: var(--hold-wash); border-radius: var(--r); padding: 6px 8px; }
.staff .receipt-img { max-width: 100%; height: auto; border-radius: var(--r); }
.staff .receipt-lines { display: flex; flex-direction: column; gap: 8px; }
.staff .rline { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; }
.staff .rline .r, .staff .rline .field.r { text-align: right; }
@media (max-width: 600px) {
  .staff .rline { grid-template-columns: 1fr 1fr; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .staff .rline > :first-child { grid-column: span 2; }
  .staff .rline.eyebrow { display: none; }
}

/* checklists and punch lists */
.staff .checklist { list-style: none; margin: 6px 0 0; padding: 0; }
.staff .checklist li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; padding: 7px 0; border-bottom: 1px solid var(--line); }
.staff .checklist li > div { display: flex; flex-direction: column; gap: 2px; }
.staff .checklist li.done > div > span:first-child { color: var(--muted); }
.staff .tick { width: 26px; height: 26px; border: 1.5px solid var(--oak); border-radius: 5px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; cursor: pointer; padding: 0; font-size: 15px; }
.staff span.tick { cursor: default; }
.staff .tick.on { background: var(--ok); border-color: var(--ok); }
.staff .checklist form.ticket { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; margin-top: 4px; align-items: end; }
.staff .checklist form.ticket label { display: flex; flex-direction: column; gap: 2px; color: var(--muted); }
.staff .punch-done { margin-top: 4px; }
.staff .punch-photo { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; margin-top: 4px; }
.staff .photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-top: 4px; }
.staff .photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; display: block; }

/* the week */
.staff .week { overflow-x: auto; }
.staff .wk-row { display: grid; grid-template-columns: 150px repeat(6, minmax(120px, 1fr)); border-bottom: 1px solid var(--line); min-width: 880px; }
.staff .wk-row > div { padding: 7px 8px; border-left: 1px solid var(--line); }
.staff .wk-row > div:first-child { border-left: 0; }
.staff .wk-head > div { background: var(--panel); }
.staff .wk-head .today, .staff .wk-cell.today { background: #FFF8E6; }
.staff .wk-who { font-size: 13px; }
.staff .wk-cell { display: flex; flex-direction: column; gap: 5px; min-height: 54px; }
.staff a.appt { display: flex; flex-direction: column; gap: 1px; padding: 5px 7px; border-radius: 4px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--oak); color: var(--ink); text-decoration: none; font-size: 12.5px; line-height: 1.3; }
.staff a.appt.k-install { border-left-color: var(--ok); }
.staff a.appt.k-stain { border-left-color: var(--hold); }
.staff a.appt.k-site_visit, .staff a.appt.k-phone_consult { border-left-color: var(--flag); }
.staff a.appt .xs { color: var(--muted); }

.crew-day { display: flex; align-items: center; justify-content: space-between; }
.crew-day .title { font-size: 22px; }
.crewv .nav-day { min-height: 44px; }
.staff .nav-day { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; font-size: 28px; text-decoration: none; color: var(--oak); padding: 0 12px; }
.staff a.crew-job { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; color: var(--ink); text-decoration: none; border-left: 5px solid var(--ok); }
.crew-job .nm { font-size: 18px; }
.crew-job .addr { color: var(--muted); }
.staff a.maps { display: inline-block; margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--oak); }
.crewv .scope-design { margin-top: 10px; }
.crewv .scope-design ul { margin: 6px 0 0; padding-left: 20px; }
.crewv .scope-design li { margin: 3px 0; }
/* Every crew target is at least 44px: gloves, sun, a phone in one hand. */
.crewv .checklist li { grid-template-columns: 48px 1fr; padding: 10px 0; font-size: 16px; }
.crewv .tick { width: 44px; height: 44px; font-size: 21px; }
.crewv .seg { display: flex; gap: 6px; }
.crewv .seg label { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; border: 1.5px solid var(--line); border-radius: var(--r); padding: 9px 4px; background: #fff; font-weight: 600; }
.crewv .seg label:has(input:checked) { border-color: var(--oak); background: var(--oak); color: #fff; }
.crewv .seg input { position: absolute; opacity: 0; pointer-events: none; }

@media (max-width: 900px) {
  .staff .two-forms { grid-template-columns: 1fr; }
}
.staff table.costs { font-size: 13px; }
.staff table.costs td, .staff table.costs th { padding: 6px 5px; }
.staff table.costs td.m { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 13.5px; }

/* crew page: members with their invite and access buttons */
.staff .member { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.crewv .sent-receipt { align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
