/* ASA OS everyday pages (request 246): Customers, Customer 360, Jobs and Quotes. Built only from shop.css tokens and
 * components (pg-head, seg, jobs/job-row, panel, job-facts, stage, empty); this file adds what those pages need. */

.is-none { color: var(--ink-3); }
.is-late { color: var(--red); font-weight: 500; }
.stage.s-ready { background: var(--green-soft); }
.stage.s-ready::before { background: var(--green); }
.cp-fine { font-size: 12.5px; color: var(--ink-2); margin: 8px 0 0; }
.cp-fine-inline { display: block; font-size: 12px; color: var(--ink-3); }
.jobs-empty.sm { padding: 18px; text-align: left; font-size: 14px; }

/* ---------- Customers ---------- */
.cp-searchbar { margin: -6px 0 22px; }
.cp-search { width: 100%; max-width: 640px; min-height: 46px; font-size: 17px; border-radius: 999px; padding: 0 20px; background: var(--surface);
  border: 1px solid var(--hair-strong); }
.cp-h { display: flex; align-items: baseline; gap: 8px; font-size: 15px; margin: 0 0 10px; }
.cp-n { font-weight: 400; color: var(--ink-2); font-size: 14px; }
.cp-hint { color: var(--ink-2); font-size: 14px; margin: 4px 0 12px; }
.cp-list { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); overflow: hidden; }
.cp-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 130px 170px; align-items: center; gap: 14px; padding: 12px 18px;
  border-bottom: 1px solid var(--hair); }
.cp-row:last-child { border-bottom: 0; }
.cp-row:hover { background: var(--surface-2); }
.cp-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font: 600 13px/1 var(--font); color: var(--ink-2); flex: none; }
.cp-avatar.lg { width: 56px; height: 56px; font-size: 19px; background: var(--accent-soft); color: var(--accent); }
.cp-main { min-width: 0; }
.cp-name { font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.cp-name::after { content: ""; position: absolute; inset: 0; }   /* the whole row opens the customer */
.cp-name:hover { text-decoration: none; }
.cp-row:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.cp-sub { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.cp-sub a { position: relative; z-index: 1; }
.cp-veh { overflow: hidden; text-overflow: ellipsis; }
.cp-phone { white-space: nowrap; }
.cp-match { color: var(--accent); }
.cp-last { display: flex; flex-direction: column; font-size: 13.5px; }
.cp-k { font-size: 12px; color: var(--ink-2); }
.cp-openwrap { justify-self: end; }
.cp-open { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.cp-open:hover { text-decoration: none; }
.cp-open:hover .stage { box-shadow: 0 0 0 1px var(--hair-strong); }
.cp-more { padding: 12px 0; text-align: center; }

/* ---------- Customer 360 ---------- */
.cp-head { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); padding: 22px 24px 4px; margin-bottom: 20px; }
.cp-head > .skeleton { border: 0; border-radius: var(--r-m); }
.cp-head.is-plain { padding-bottom: 20px; }
.cp-head.is-plain .cp-banner { margin-bottom: 0; }
.cp-head-top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cp-who { flex: 1; min-width: 220px; }
.cp-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-title h1 { font: 700 28px/1.15 var(--font-display); letter-spacing: -0.024em; margin: 0; }
.cp-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.cp-contact > span:not(.is-none) { color: var(--ink); }
.cp-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cp-menuwrap { position: relative; }
.cp-menuwrap .menu { right: 0; width: 260px; }
.cp-head .job-facts { margin-top: 18px; }
.cp-edit { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hair); }
.cp-edit-grid { display: grid; gap: 4px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-edit-grid > .jc-addr-set { grid-column: 1 / -1; }
.cp-edit .jc-addr-set .jc-pair { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.cp-edit .jc-city { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.cp-edit .jc-city .jc-f-city { grid-column: auto; }
.cp-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 14px; padding: 12px 14px;
  border-radius: var(--r-m); background: var(--accent-soft); font-size: 14px; }

.cp-sec { margin-bottom: 22px; }
.cp-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cp-sec-head h2 { font-size: 17px; margin: 0; }
.shop-on .cp-chip { min-height: 26px; padding: 0 10px; font-size: 12.5px; background: var(--accent-soft); color: var(--accent); }

.cp-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cp-vcard { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.cp-vcard.is-sel { box-shadow: 0 0 0 1.5px var(--accent); }
.cp-vcard.is-past { background: var(--surface-2); }
.cp-vtitle { font: 600 16px/1.3 var(--font-display); letter-spacing: -0.014em; }
.cp-vtrim { font: 400 14px/1.3 var(--font); color: var(--ink-2); margin-left: 6px; }
.cp-vmeta { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; color: var(--ink-2); }
.cp-vin { font-size: 12px; letter-spacing: 0.02em; }
.cp-vactions { display: flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 4px; }

.cp-hist { background: var(--surface); border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: 0 0 0 .5px var(--hair); overflow: hidden; }
.cp-hrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 90px 120px; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--hair); color: var(--ink); }
.cp-hrow:last-child { border-bottom: 0; }
a.cp-hrow:hover { background: var(--surface-2); text-decoration: none; }
a.cp-hrow:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); border-radius: 0; }
.cp-hdate { font-size: 13.5px; color: var(--ink-2); }
.cp-hmain { min-width: 0; display: flex; flex-direction: column; }
.cp-hperf { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-hsub { font-size: 12.5px; color: var(--ink-2); }
.cp-hstat { justify-self: start; }
.cp-amt { text-align: right; font-weight: 500; display: flex; flex-direction: column; align-items: flex-end; }
.cp-amt small { font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.cp-amt.is-none { color: var(--ink-3); font-weight: 400; }
.cp-hist-foot { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 18px; font-size: 13px; color: var(--ink-2);
  background: var(--surface-2); border-radius: 0 0 var(--r-l) var(--r-l); box-shadow: 0 0 0 .5px var(--hair); }
.cp-drow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--hair); }
.cp-drow:last-child { border-bottom: 0; }
.cp-dname { font-weight: 500; }
.cp-frow { display: grid; grid-template-columns: minmax(0, 1.3fr) 110px minmax(0, 1fr) 90px; gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.cp-frow:last-child { border-bottom: 0; }
.cp-fval { font-weight: 600; }
.cp-fval.g-ok { color: var(--green); }
.cp-fval.g-attention { color: var(--amber); }
.cp-fval.g-urgent { color: var(--red); }
.cp-fprev { font-size: 12.5px; color: var(--ink-2); }
.cp-fdate { font-size: 12.5px; color: var(--ink-2); text-align: right; }
.panel small { font-weight: 400; }

/* ---------- Jobs ---------- */
.jb-tools { align-items: center; }
@media (min-width: 1241px) { .jb-list .jobs-head, .jb-list .job-row { grid-template-columns: 58px minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, 1.35fr) minmax(0, 1.15fr) 128px 96px; } }   /* batch 30: customer over vehicle */
.jb-seg { flex-wrap: wrap; }
.jb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 4px; font-size: 13px; color: var(--ink-2); }
.jb-busy { color: var(--ink-3); }
.jb-pager { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Quotes ---------- */
.qt-head, .qt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) 110px 120px 130px 130px; align-items: center; gap: 12px; padding: 0 16px; }   /* + 167 Price */
.qt-head { font-size: 12px; color: var(--ink-2); font-weight: 500; min-height: 36px; border-bottom: 1px solid var(--hair); background: var(--surface-2); }
.qt-row { min-height: 56px; border-bottom: 1px solid var(--hair); color: var(--ink); }
.qt-row:last-child { border-bottom: 0; }
.qt-row:hover { background: var(--surface-2); text-decoration: none; }
.qt-row:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); border-radius: 0; }
.qt-phone { font-size: 13.5px; white-space: nowrap; }
.qt-form h2 { font-size: 17px; }
.qt-sub { font-size: 13px; color: var(--ink-2); font-weight: 600; margin: 18px 0 4px; }
.qt-label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 4px; }
.qt-form .jc-field textarea, .qt-form .jc-field input, .qt-form .jc-field select { width: 100%; }
.qt-veh { display: grid; grid-template-columns: 90px repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.qt-reqs { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.qt-req { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; width: 100%; }
.qt-dirty { font-size: 13px; color: var(--amber); }
.qt-assoc { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qt-assoc-name { font-weight: 600; }
.qt-cands { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.qt-cand { border-top: 1px solid var(--hair); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.shop-on .qt-pick { min-height: 30px; font-size: 13px; }
.qt-hist summary { font-size: 14px; color: var(--ink); font-weight: 600; }
.qt-hist .hist { box-shadow: none; margin-top: 10px; }
.qt-hist .hist li { padding-left: 0; padding-right: 0; }

/* ---------- narrower screens ---------- */
@media (max-width: 1240px) {
  .qt-head { display: none; }
  .qt-row { grid-template-columns: 1fr auto; grid-template-areas: "cust stage" "veh amt" "svc when"; gap: 2px 12px; padding: 12px 16px; }   /* + 167 amt */
  .qt-row > .qt-amt { grid-area: amt; justify-self: end; }
  .qt-row > .job-cust { grid-area: cust; } .qt-row > .job-veh { grid-area: veh; font-size: 14px; } .qt-row > .job-svc { grid-area: svc; font-size: 13px; }
  .qt-row > .stage-cell { grid-area: stage; justify-self: end; } .qt-row > .job-when { grid-area: when; justify-self: end; } .qt-row > .qt-phone { display: none; }
}
@media (max-width: 860px) {
  .cp-search { font-size: 16px; }
  .cp-row { grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: "av main main" "av last open"; gap: 4px 12px; padding: 12px 14px; }
  .cp-row > .cp-avatar { grid-area: av; align-self: start; } .cp-row > .cp-main { grid-area: main; } .cp-row > .cp-openwrap { grid-area: open; align-self: center; }
  .cp-row > .cp-last { grid-area: last; flex-direction: row; gap: 6px; font-size: 12.5px; color: var(--ink-2); align-self: center; }
  .cp-head { padding: 18px 16px 2px; }
  .cp-title h1 { font-size: 24px; }
  .cp-head-actions { width: 100%; }
  .cp-head .job-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .cp-edit-grid { grid-template-columns: 1fr; }
  .cp-edit .jc-addr-set .jc-pair { grid-template-columns: 1fr; }
  .cp-edit .jc-city { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cp-edit .jc-city .jc-f-city { grid-column: 1 / -1; }
  .cp-hrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main amt" "date stat"; gap: 2px 12px; padding: 12px 14px; }
  .cp-hrow > .cp-hmain { grid-area: main; } .cp-hrow > .cp-amt { grid-area: amt; } .cp-hrow > .cp-hdate { grid-area: date; font-size: 12.5px; } .cp-hrow > .cp-hstat { grid-area: stat; justify-self: end; }
  .cp-frow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label val" "prev date"; gap: 2px 12px; padding: 10px 14px; }
  .cp-frow > .cp-flabel { grid-area: label; } .cp-frow > .cp-fval { grid-area: val; text-align: right; } .cp-frow > .cp-fprev { grid-area: prev; } .cp-frow > .cp-fdate { grid-area: date; }
  /* Daily screens (Oct 21): nowrap, so the column's width is the screen's; with wrap the filter strip set the line width
     and the whole page scrolled sideways on a phone (615 px wide at 390). */
  .jb-tools { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .jb-seg { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; min-width: 0; max-width: 100%; }
  .qt-veh { grid-template-columns: 1fr 1fr; }
  .qt-req { grid-template-columns: 1fr auto; }
  .qt-req > input:nth-child(2) { grid-column: 1; grid-row: 2; }
}

/* request 246 refinements */
.cp-sec-head .cp-sec-act { margin-left: auto; }
.cp-more-n { color: var(--ink-2); font-weight: 400; }
.cp-due-for { font-size: 13px; color: var(--ink-2); margin: -4px 0 10px; }

/* request 246: plates and contact preferences */
.cp-plate { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; }
.cp-plate .notice { flex-basis: 100%; margin: 4px 0; font-size: 13px; padding: 8px 10px; }
.cp-plate-v { color: var(--ink); font-weight: 500; letter-spacing: 0.02em; }
.shop-on .cp-plate-edit { min-height: 24px; padding: 0 6px; font-size: 13px; }
.cp-plate-form { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; flex-basis: 100%; }
.cp-plate-form input { text-transform: uppercase; letter-spacing: 0.04em; }
.cp-plate .jc-actions { flex-basis: 100%; }
.cp-plate .jc-err { flex-basis: 100%; color: var(--red); font-size: 12.5px; }
.cp-saved { flex-basis: 100%; color: var(--green); font-size: 12.5px; }
.cp-pref { align-items: center; }
.shop-on .cp-pref-seg button { min-height: 24px; padding: 0 10px; font-size: 12.5px; }
/* ---------- New customer + vehicle (request 246E) ---------- */
.reg-form h2 { font-size: 17px; }
.reg-form + .reg-form { margin-top: 16px; }
.reg-form .jc-field { margin-top: 10px; }
.reg-form .jc-pair .jc-field, .reg-form .qt-veh .jc-field { margin-top: 0; }
.reg-form .qt-veh { margin-top: 10px; grid-template-columns: 124px repeat(3, minmax(0, 1fr)); }
/* Shop M1: the VIN lookup under the VIN field (decoded vehicle + Use these) */
.reg-vin-dec:empty { display: none; }
.reg-vin-dec { margin-top: 10px; }
.reg-vin-found { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--fill, rgba(127,127,127,.12)); }
.reg-vin-found strong { display: block; }
@media (max-width: 560px) { .reg-vin-found { flex-direction: column; align-items: stretch; } .reg-vin-found button { width: 100%; } }
.reg-actions { margin-top: 16px; }
.reg-quote { align-items: flex-start; }
.reg-quote .cp-fine { margin-top: 4px; }
.reg-what { margin: 2px 0 6px; }
.reg-k { color: var(--ink-2); }
.reg-v { text-align: right; min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-weight: 500; }
.reg-v.is-none { color: var(--ink-3); font-weight: 400; }
.reg-cands { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 10px; }
.reg-cand { border-top: 1px solid var(--hair); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.reg-cand .cp-fine { margin: 0; }
.reg-cand .btn { margin-top: 4px; }
.reg-confirm { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 12px 0 4px; cursor: pointer; }
.reg-confirm input { margin-top: 3px; flex: none; }
.reg-pending { max-width: 560px; }

/* ---------- Quote follow-ups (request 246E) ---------- */
.qf-list { margin-bottom: 4px; }
.qf-row { flex-direction: column; gap: 2px; }   /* the aside is narrow: purpose, then who and when */
.qf-main { min-width: 0; display: flex; flex-direction: column; }
.qf-main a { font-weight: 500; }
.qf-row > span { font-size: 13px; }
.qf-due { color: var(--ink); }
.qf-form .jc-pair { grid-template-columns: 1fr; }
.qf-form { border-top: 1px solid var(--hair); margin-top: 10px; padding-top: 2px; display: flex; flex-direction: column; gap: 8px; }
.qf-form .qt-sub { margin-top: 10px; }
.qf-form .cp-fine { margin: 0; }
@media (max-width: 860px) {
  .reg-form .qt-veh { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .reg-actions { flex-direction: column-reverse; align-items: stretch; }
  .reg-actions > * { text-align: center; justify-content: center; }
}

/* ---------- S4 (131): a vehicle that changed owners (Customer 360 › vehicle card › Owners) ---------- */
.cp-own-line { color: var(--ink-2); }
.cp-owners { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); padding: 16px 18px; }
.cp-owners h3 { font-size: 14px; margin: 0 0 6px; }
.cp-own-h { margin-top: 16px !important; }
.cp-own-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cp-own-grid .panel { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.cp-own-grid .panel h3 + .panel-row { border-top: 0; }
.cp-own-grid .panel .panel-row { flex-wrap: wrap; }
.cp-own-grid .panel > button { align-self: flex-start; margin-top: 8px; }
.cp-own-sub { font-size: 12.5px; color: var(--ink-2); }
.cp-own-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.cp-own-hist { border-radius: var(--r-l); }
.cp-orow { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--hair); color: var(--ink); }
.cp-orow:last-child { border-bottom: 0; }
a.cp-orow:hover { background: var(--surface-2); text-decoration: none; }
.cp-own-flag { color: var(--amber); font-weight: 500; }
.cp-owners .cp-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--ink-2); }
.cp-own-form { max-width: 640px; }
.cp-own-l { font-size: 13px; font-weight: 600; }
.cp-own-prev { margin: 0; font-size: 14px; }
.cp-own-results { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.shop-on button.cp-own-pick { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; padding: 6px 12px; background: var(--fill); color: var(--ink); text-align: left; flex-wrap: wrap; }
button.cp-own-pick small { color: var(--ink-2); font-weight: 400; }
.cp-own-chosen { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-m); background: var(--accent-soft); }
.cp-own-review { margin-top: 8px; padding: 10px 12px; border-radius: var(--r-m); background: var(--amber-soft); }
.cp-own-review p { margin: 0 0 4px; font-size: 14px; }
.cp-own-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.cp-own-what { padding: 10px 12px; border-radius: var(--r-m); background: var(--surface-2); }
.cp-own-summary { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 860px) {
  .cp-own-grid { grid-template-columns: 1fr; }
  .cp-owners { padding: 14px 14px; }
  .cp-orow { grid-template-columns: 1fr auto; padding: 10px 12px; }
  .cp-orow > .cp-hdate { grid-column: 1 / -1; }
  .cp-own-pair { grid-template-columns: 1fr; }
  .cp-own-seg { flex-wrap: wrap; }
}
/* G-A (149): App access on Customer 360 (customer-app-access.js) */
.aa-h3 { font-size: 14px; margin: 12px 0 4px; color: var(--ink-2, #6e6e73); }
.aa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aa-item { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line, rgba(0,0,0,.08)); }
.aa-item:first-child { border-top: 0; padding-top: 0; }
.aa-top { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; overflow-wrap: anywhere; }
.aa-hint { font-size: 13px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 159, 10, .12); }
.aa-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.aa-acts input { flex: 1 1 160px; min-width: 0; }
.aa-msg { font-size: 13px; }
.aa-msg:empty { display: none; }
.aa-hist summary { font-size: 13px; cursor: pointer; }
.aa-hist ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.aa-search { margin-top: 12px; display: grid; gap: 4px; }

/* 167: quote prices */
.qt-amt { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qt-amt.is-none { color: var(--ink-3, var(--ink-2)); }
.qt-prices { margin-top: 16px; }
.qt-prices h2 { font-size: 17px; }
.qt-price-row { border-top: 1px solid var(--hair); padding: 10px 0; }
.qt-price-row:first-of-type { border-top: 0; }
.qt-price-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.qt-price-n { font-weight: 600; }
.qt-price { font-variant-numeric: tabular-nums; font-weight: 600; }
.qt-price.is-none { color: var(--ink-2); font-weight: 500; }
.qt-price-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.qt-pkgs { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; align-items: stretch; }
.qt-pkgs .qt-pkg, .shop-on .qt-pkgs .qt-pkg { display: flex; justify-content: space-between; gap: 12px; text-align: left; width: 100%; }
.qt-pkg-p { font-variant-numeric: tabular-nums; }
.qt-price-form { margin-top: 8px; }
.qt-price-sum { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--hair); padding-top: 10px; margin-top: 4px; }

/* Shop M2: Follow-ups (quote follow-ups, job callbacks and visit follow-ups in one list, by due time). */
.fu-mine { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.fu-list { background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
.fu-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.fu-row:last-child { border-bottom: 0; }
.fu-kind { justify-self: start; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.fu-kind.k-callback { color: var(--accent); }
.fu-what { font-weight: 600; color: var(--ink); }
.fu-who { font-size: 14px; color: var(--ink-2); }
.fu-state { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.fu-acts { display: flex; gap: 8px; }
@media (max-width: 700px) {
  .fu-row { grid-template-columns: 1fr; gap: 6px; }
  .fu-acts .btn { flex: 1; text-align: center; }
}

/* Shop M3: Decisions (what waits on a manager) reuses the Follow-ups rows. */
.dc-sum { margin: 0; color: var(--ink-2); font-size: 14px; flex: 1 1 auto; }
.dc-row .fu-kind { white-space: nowrap; }
.dc-row { grid-template-columns: 130px minmax(0, 1fr) auto; }
@media (max-width: 700px) { .dc-row { grid-template-columns: 1fr; } }
/* 186: the customer's sales tax (store rate or exempt) */
.cp-tax-btn { margin-left: 8px; padding: 0 4px; font-size: 0.9em; }
.cp-tax-box { display: grid; gap: 8px; max-width: 460px; margin: 10px 0 0; padding: 12px; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.cp-tax-box .cp-fine { margin: 0; color: var(--ink-2); font-size: 0.9em; }
.cp-tax-acts { display: flex; gap: 8px; }
/* 205: the cash drawer (shop-pages.js) */
.dr-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.dr-card { display: grid; gap: 8px; padding: 16px; margin: 0 0 12px; }
.dr-card h2 { margin: 0; font-size: 1.05rem; }
.dr-row { display: flex; justify-content: space-between; gap: 12px; }
.dr-row strong { font-variant-numeric: tabular-nums; }
.dr-row.is-total { border-top: 1px solid var(--hair); padding-top: 8px; }
.dr-row.is-ok strong { color: var(--green); }
.dr-row.is-bad strong, .dr-msg .is-bad { color: var(--red, #b42318); }
.dr-list { list-style: none; margin: 0 0 4px; padding: 0 0 0 12px; display: grid; gap: 2px; font-size: 0.9em; color: var(--ink-2); }
.dr-list li { display: flex; justify-content: space-between; gap: 12px; }
.dr-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.dr-form label { display: grid; gap: 4px; font-size: 0.9em; flex: 1 1 160px; min-width: 0; }
.dr-msg { min-height: 1.2em; margin: 0 0 8px; }
/* 209: owner objectives on Decisions (shop-pages.js) */
.ob-card { margin-top: 16px; }   /* batch 30: a band panel; its body holds the list and the form */
.ob-card > .band-body { display: grid; gap: 8px; }
.ob-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ob-row { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--hair); }
.ob-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ob-form { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.ob-form input, .ob-form select { min-width: 0; }
.ob-form { align-items: flex-end; }
.ob-f { display: grid; gap: 4px; flex: 1 1 140px; min-width: 0; }
/* 212: in-person conversations on the customer page */
.ip-row { display: block; }
.ip-form { display: grid; gap: 6px; margin-top: 6px; }
.ip-form textarea { width: 100%; box-sizing: border-box; }
/* 216: legal hold (Customer 360, the job) and Settings › Records and holds */
.lh-row.is-active strong { color: var(--bad, #b42318); }
.lh-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.lh-form input { flex: 1 1 200px; min-height: 36px; }
.lh-place { margin-top: 8px; }
.lh-place summary { cursor: pointer; font-weight: 600; }
.lh-kept { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
/* Navigation cleanup (Oct 22): Quotes is the active offers; a booked quote found by search names the repair order it became */
.qt-count { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 600; color: var(--ink); }
.qt-count .seg-n { color: var(--ink-2); font-weight: 400; }
.qt-note { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); }
.qt-row.is-booked { color: var(--ink-2); }
.qt-row.is-booked a { color: var(--ink); }
.qt-row.is-booked .qt-booked { color: var(--accent, #2f6fde); font-size: 13px; }
/* 313 (Oct 22): a quote service's own part / labor / fee lines, as on the estimate */
.qt-lines { margin: 6px 0 4px; border-top: 1px solid var(--hair); }
.qt-line { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 90px auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.qt-line-k { color: var(--ink-2); }
.qt-line-q { color: var(--ink-2); white-space: nowrap; }
.qt-line-t { text-align: right; font-variant-numeric: tabular-nums; }
.qt-line-form { margin-top: 8px; }
/* Job page cleanup §4 (Oct 22): imported visits without line detail fold into one row */
.cp-fold { border-bottom: 1px solid var(--hair); }
.cp-fold:last-child { border-bottom: 0; }
button.cp-hrow.cp-fold { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; padding: 12px 18px; cursor: pointer; color: var(--ink); }
button.cp-hrow.cp-fold:hover { background: var(--surface-2); }
button.cp-hrow.cp-fold:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cp-fold-chev { color: var(--ink-3); }
.cp-fold-rows { background: var(--surface-2); }

/* Batch 30 (UI direction, Oct 22): Customers and Quotes as one compact table in a panel under an accent band; name over
   phone, the vehicle in its own column, prices right-aligned, search on top. */
.cp-searchbar { margin: 0 0 16px; }
.cp-searchbar input[type="search"] { width: 100%; max-width: none; min-height: 46px; font-size: 16px; padding-left: 16px; }
.band-panel > .cp-list, .band-panel > .jobs { border: 0; border-radius: 0; box-shadow: none; }
.cp-panel .cp-h, .qt-panel .band-title { display: flex; align-items: baseline; margin: 0; font-size: 23px; }
.band .qt-count, .band .qt-count .seg-n { color: inherit; font: inherit; }
.band .cp-n, .band .band-n { color: inherit; }
@media (min-width: 861px) { .cp-thead, .cp-row { grid-template-columns: 40px minmax(0, 1.2fr) minmax(0, 1fr) 140px 190px; } }
.cp-thead { display: grid; align-items: center; gap: 14px; padding: 0 18px; min-height: 38px; background: var(--surface-2); border-bottom: 1px solid var(--hair);
  font: 500 11.5px/1.2 var(--font); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); }
.cp-row { padding: 10px 18px; }
.cp-row .cp-name { font-weight: 600; }
.cp-vehcell { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-vehcell .is-none { color: var(--ink-3); }
.cp-last .cp-k { display: none; }
.cp-openwrap { justify-self: start; }
@media (min-width: 1241px) { .qt-head, .qt-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.4fr) 110px 140px 140px; } }
@media (max-width: 1240px) { .qt-row > .job-cv { grid-area: cust; } }
.qt-head { text-transform: uppercase; font-size: 11.5px; letter-spacing: .03em; min-height: 38px; }
.qt-head .num, .qt-row > .qt-amt { text-align: right; }
.qt-row .job-cv .qt-phone { font-size: 13.5px; color: var(--ink-2); }
.qt-row .job-cust { font-weight: 600; }
@media (max-width: 860px) {
  .cp-thead { display: none; }
  .cp-row { grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: "av main main" "av veh veh" "av last open"; }
  .cp-row > .cp-vehcell { grid-area: veh; font-size: 13px; color: var(--ink-2); }
  .cp-last .cp-k { display: inline; }
}
.shop-on .jb-chips .jb-chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 600; }
.shop-on .jb-chips .jb-chip[aria-pressed="true"] .seg-n { color: inherit; }

/* Batch 32 (Clay's review): Follow-ups (and Decisions, which shares its rows) in the shared look: the filters on one toolbar,
   the list in the accent-band panel like Quotes and Inbox, one row rhythm (16px sides, 12px between parts). */
.fu-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 16px; }
.fu-tools .jb-chips { margin: 0; }
.fu-tools select { margin-left: auto; }
.fu-panel { margin: 12px 0 4px; }   /* a summary line above (Decisions) keeps its distance; after the Follow-ups toolbar the larger 16px wins */
.fu-panel .fu-list { border: 0; border-radius: 0; background: transparent; }
.fu-panel .band-body .empty { margin: 0; padding: 8px 0; border: 0; background: transparent; }
.fu-panel .band-fine { border-top: 1px solid var(--hair); padding-top: 10px; }
.fu-row { padding: 12px 18px; }
.fu-kind { justify-self: start; border-radius: 4px; }
.fu-acts { justify-content: flex-end; }
@media (max-width: 860px) { .fu-row { padding: 12px 14px; } }
@media (max-width: 760px) { .fu-tools { flex-direction: column; align-items: stretch; } .fu-tools select { margin-left: 0; } }
/* Batch 32 (audit, 375): a quote line's five columns left the description 0px wide and pushed Remove out of the panel;
   on a phone the line is two rows: what it is and its total, then the kind, quantity and Remove. */
@media (max-width: 600px) {
  .qt-line { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "d d t" "k q b"; gap: 2px 10px; padding: 8px 0; }
  .qt-line > .qt-line-d { grid-area: d; } .qt-line > .qt-line-t { grid-area: t; } .qt-line > .qt-line-k { grid-area: k; }
  .qt-line > .qt-line-q { grid-area: q; } .qt-line > button { grid-area: b; justify-self: end; }
}
/* Batch 32: Estimates to review in its list band (the rows run edge to edge under the band, like Follow-ups) */
.er-panel .band-body { padding-bottom: 10px; }
.er-panel .sf-list { border-radius: 0; box-shadow: none; background: transparent; border-top: 1px solid var(--hair); }
.er-panel .sf-row { padding: 14px 18px; }
.er-panel .band-fine { border-top: 1px solid var(--hair); padding-top: 10px; max-width: none; }
@media (max-width: 860px) { .er-panel .sf-row { padding: 12px 14px; } }

/* batch 39: Jobs: booked today, a search's matches in the other views, Scheduled groups (upcoming / no time / past) */
.jb-notes:empty { display: none; }
.jb-notes { margin: -4px 0 10px; display: grid; gap: 4px; }
.jb-note { margin: 0; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.jb-note strong { color: var(--ink); font-weight: 600; }
.jb-note button.link { background: none; border: 0; padding: 0; min-height: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.jb-group { padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--hair); }
.jb-group.is-past { color: var(--ink); border-top: 2px solid var(--hair); }
.jb-note.is-bad { color: var(--red, #b42318); }
.jb-sort:empty { display: none; }
.jb-sort { margin: 0 0 10px; }
.job-when .jb-booked { display: block; font-size: 11.5px; color: var(--ink-3, var(--ink-2)); font-weight: 400; }
/* U17-C: Follow-ups, one list: texts not delivered and calls to return; a done row; owner and due day set on top */
.fu-kind.k-text, .fu-kind.k-call { color: var(--ink); }
.fu-row.is-done .fu-what { color: var(--ink-2); }
.fu-edit { margin-top: 6px; font-size: 13px; }
.fu-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; margin-top: 6px; align-items: center; }
.fu-form select, .fu-form input { min-height: 36px; font-size: 14px; width: 100%; box-sizing: border-box; }
.fu-form button { justify-self: start; }
@media (max-width: 860px) { .fu-form { grid-template-columns: 1fr; } }
/* U31-D a15[5]: Ratchet's own decision inbox and its read under each objective (shop-pages.js) */
.dc-ratchet { margin-top: 16px; }
.dc-ratchet > .band-body { display: grid; gap: 8px; }
.dc-ratchet .fu-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.dc-sub { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.ob-ai { margin-top: 2px; }
.ob-ai-list { margin: 2px 0 0; padding-left: 18px; }

/* U31-A (p025[6]): carry the quoted prices onto the job (the advisor's choice) */
.qt-carry { margin: 10px 0 12px; }
.qt-carry-l { display: flex; gap: 8px; align-items: center; font-weight: 600; }

/* Customer workspace: one identity row and full-width work, with secondary controls in details. */
.cp-workspace { max-width: 1500px; margin: 0 auto; }
.cp-head.cp-head-streamlined { padding: 20px 22px; margin-bottom: 14px; }
.cp-head-streamlined .cp-head-top { flex-wrap: nowrap; gap: 28px; }
.cp-head-streamlined .cp-who { flex: 1; min-width: 0; }
.cp-head-streamlined h1 { margin: 3px 0 6px; }
button.cp-identity-link { border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; padding: 0; text-align: left; cursor: pointer; }
button.cp-identity-link:hover { color: var(--accent); text-decoration: underline; }
button.cp-identity-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cp-contact-summary { color: var(--muted); font-size: 14px; }
.cp-vehicle-bar { border: 1px solid var(--hair); border-radius: 6px; padding: 16px 20px; margin-bottom: 12px; background: var(--surface); }
.cp-vehicle-bar .cp-vgrid { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.cp-vehicle-select { display: grid; gap: 4px; min-width: min(260px, 100%); }
.cp-vehicle-select select { min-height: 38px; max-width: 100%; }
.cp-vehicle-summary { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cp-add-vehicle { margin-left: auto; white-space: nowrap; }
.cp-workspace-tabs { margin-bottom: 16px; }
.cp-workspace > [hidden] { display: none !important; }
.cp-workspace .cp-sec-head { background: #0864df; color: white; padding: 14px 18px; margin: 0; border-radius: 4px 4px 0 0; }
.cp-workspace .cp-sec-head h2 { color: white; font: italic 900 23px/1.1 var(--font-title); text-transform: uppercase; margin: 0; }
.cp-history-panel, .cp-recommendations-panel { border: 1px solid var(--hair); border-radius: 5px; background: var(--surface); overflow: hidden; }
.cp-search-bar { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.cp-history-search { width: min(460px, 100%); min-height: 40px; padding: 8px 12px; }
.cp-history-panel .cp-hist { border: 0; box-shadow: none; border-radius: 0; }
.cp-history-panel .cp-hist-foot { padding: 14px 18px; }
.cp-recommendations-panel > .panel { margin: 16px 18px; }
.cp-recommendations-panel > .cp-sec { padding: 0 18px 18px; }
.cp-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.cp-dialog-heading h2 { margin: 0; }
.cp-detail-dialog { width: min(800px, calc(100vw - 32px)); padding: 24px; }
.cp-detail-dialog .cp-contact { margin: 12px 0; }
.cp-detail-dialog .panel, .cp-detail-dialog .cp-sec { margin-top: 18px; padding: 16px; border: 1px solid var(--hair); border-radius: 5px; }
.cp-detail-dialog .vehicle-profile { border: 0; padding: 0; margin: 0; }
.cp-detail-dialog .job-facts { margin: 16px 0; }
.cp-detail-dialog details { margin: 18px 0; }
.cp-detail-dialog summary { cursor: pointer; padding: 10px 0; }
@media(max-width: 800px) {
 .cp-head-streamlined .cp-head-top { flex-wrap: wrap; gap: 14px; }
 .cp-head-streamlined .cp-head-actions { width: auto; margin-left: auto; }
 .cp-head-streamlined .cp-who { flex-basis: 100%; }
 .cp-vehicle-select { width: 100%; }
 .cp-vehicle-summary { flex: 1; }
 .cp-search-bar .cp-fine { margin: 0; }
}
body.shop-on .cp-workspace-tabs { display: flex; gap: 12px; border-bottom: 1px solid var(--hair); padding: 0; }
body.shop-on .cp-workspace-tabs button { border: 0; border-radius: 0; background: transparent; color: var(--ink-2); padding: 12px 14px; margin: 0; border-bottom: 3px solid transparent; font-size: 14px; }
body.shop-on .cp-workspace-tabs button.active { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }
.cp-contact-summary { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cp-vehicle-vin { display: flex; gap: 8px; align-items: baseline; overflow-wrap: anywhere; }
.cp-detail-dialog .vehicle-profile > h2 { display: none; }

/* Customer conversation history: full-width, compact summaries, readable source text. */
.cp-conversations-panel .cp-sec-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.cp-conversations-panel .cp-sec-head > button { background:#fff; color:#0863df; padding:8px 12px; }
.cp-conversations-panel .cp-search-bar { display:flex; gap:10px; flex-wrap:wrap; padding:16px 0; }
.cp-conversations-panel .cp-search-bar input { flex:1; min-width:180px; }
.cp-conversation-entry { border:1px solid var(--line,#dce1e8); border-radius:7px; margin-bottom:10px; }
.cp-conversation-entry > summary { padding:15px 18px; cursor:pointer; }
.cp-conversation-entry > summary span,.cp-conversation-entry > summary strong { display:block; overflow-wrap:anywhere; }
.cp-conversation-entry > summary strong { margin-top:5px; font-weight:600; }
.cp-conversation-body { padding:0 18px 18px; }
.cp-conversation-body p { white-space:pre-wrap; overflow-wrap:anywhere; margin:10px 0; }
.cp-conversation-body .cp-conversation-speaker { font-weight:650; margin-top:18px; }
.cp-conversation-source { display:inline-block; margin:8px 16px 0 0; }
.cp-conversation-empty { padding:20px 16px; color:var(--muted,#667085); }
