.buyers-screen{display:grid;gap:10px}
.buyers-heading{display:flex;align-items:center;gap:9px;min-height:24px;margin:0 2px 1px;color:#285f8d;font-size:14px;font-weight:900;letter-spacing:.035em;text-transform:uppercase}
.buyers-heading::before{content:"";width:4px;height:18px;border-radius:3px;background:#4d86b8}
.buyers-heading::after{content:"";height:1px;flex:1;background:#aeb8b3}
.buyers-filter-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.buyers-filter-btn{min-height:42px;padding:8px 10px;border:1px solid #c7d2cc;border-radius:9px;background:#fff;color:#52605a;font-size:12px;font-weight:850;display:flex;align-items:center;justify-content:center;gap:7px}
.buyers-filter-btn strong{font-size:11px;color:#285f8d}
.buyers-filter-btn.active{border-color:#94b4cf;background:#f3f8fd;color:#285f8d;box-shadow:inset 0 0 0 1px rgba(77,134,184,.08)}
.buyers-cards{display:grid;gap:10px}
.job-list-card.buyer{background:#f7fbff;border-color:#d3dce5}
.job-list-card.buyer .job-list-card-identity-open:focus-visible{outline-color:#4d86b8}
.buyer-ops-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr) minmax(0,.8fr)}
.buyer-ops-grid>div{display:grid;gap:3px;grid-template-columns:1fr}
.buyer-ops-grid>div:nth-child(2),.buyer-ops-grid>div:nth-child(3){grid-template-columns:1fr}
.buyer-note-host{margin-top:8px}
.buyer-note-composer{padding:9px;border:1px solid #d5ddd9;border-radius:9px;background:rgba(255,255,255,.82)}
.buyer-note-composer textarea{width:100%;min-height:72px;box-sizing:border-box;border:1px solid #c7d2cc;border-radius:8px;padding:9px 10px;background:#fff;font-size:16px;resize:vertical}
.buyer-note-composer>div{display:flex;justify-content:flex-end;gap:7px;margin-top:7px}
.buyer-note-composer button{min-height:40px;padding:8px 12px;border:1px solid #c7d2cc;border-radius:8px;background:#fff;color:#285f8d;font-weight:850}
.job-list-card.buyer .job-list-contact-actions a,.job-list-card.buyer .job-list-contact-actions button{color:#285f8d;border-color:#b9cad8}
@media(max-width:700px){.buyer-ops-grid{grid-template-columns:1fr 1fr}.buyer-ops-grid>div:first-child{grid-column:1/-1}.buyer-cart-code{max-width:38%}}
@media(min-width:1000px){.buyers-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

.buyer-type-control{flex:0 0 auto;max-width:42%;min-width:126px}
.buyer-type-control select{
  width:100%;
  min-height:42px;
  padding:8px 30px 8px 10px;
  border:1px solid #b8cde0;
  border-top:3px solid #4d86b8;
  border-radius:9px;
  background:#fff;
  color:#285f8d;
  font-size:12px;
  font-weight:900;
}
.buyer-type-control.buyer-terminal-badge{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  border:1px solid #b8cde0;
  border-top:3px solid #4d86b8;
  border-radius:9px;
  background:#fff;
  color:#285f8d;
  font-size:12px;
  font-weight:900;
}
@media(max-width:700px){
  .buyer-type-control{max-width:40%;min-width:122px}
}

.buyer-card-controls{display:grid;gap:5px;min-width:132px}
.buyer-owner-control select{width:100%;min-height:36px;padding:5px 24px 5px 8px;border:1px solid #c8d2cd;border-radius:8px;background:#fff;color:#174f36;font-size:11px;font-weight:900;text-align:center}


/* 2026-10-02 — Buyer parity pass: same softened system, blue workflow identity */
:root{
  --buyer-soft:#f3f8fd;
  --buyer-soft-2:#eef6fd;
  --buyer-line:#b8cfe2;
  --buyer-accent:#4d86b8;
  --buyer-ink:#285f8d;
}
.buyers-screen{gap:12px}
.buyers-heading{font-size:16px;line-height:1.2;color:var(--buyer-ink)}
.buyers-heading::before{height:20px;background:var(--buyer-accent)}
.buyers-filter-btn{min-height:48px;border-radius:11px;font-size:14px;background:#fff}
.buyers-filter-btn strong{font-size:13px;color:var(--buyer-ink)}
.buyers-filter-btn.active{background:var(--buyer-soft-2);border-color:var(--buyer-line);color:var(--buyer-ink)}
.job-list-card.buyer{background:var(--buyer-soft);border-color:#cbddeb}
.job-list-card.buyer .job-list-contact-actions a,
.job-list-card.buyer .job-list-contact-actions button{color:var(--buyer-ink);border-color:var(--buyer-line);background:#fff}
.buyer-type-control select,
.buyer-type-control.buyer-terminal-badge{
  min-height:46px;
  background:#fff;
  border:1px solid var(--buyer-line);
  border-top:3px solid var(--buyer-accent);
  color:var(--buyer-ink);
  font-size:14px;
}
.buyer-owner-control select{
  min-height:42px;
  background:#fff;
  border:1px solid var(--buyer-line);
  border-top:3px solid var(--buyer-accent);
  color:var(--buyer-ink);
  font-size:14px;
}
.buyer-note-composer{background:rgba(255,255,255,.78);border-color:#cbddeb}
.buyer-note-composer textarea{min-height:92px;border-color:#c7d2cc;background:#fff;font-size:16px}
.buyer-note-composer>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.buyer-note-composer button{width:100%;min-height:46px;background:#fff;border-color:var(--buyer-line);color:var(--buyer-ink);font-size:14px}
.buyer-note-composer .primary{background:var(--buyer-soft-2);border-color:var(--buyer-line);color:var(--buyer-ink)}


/* 2026-10-05 — Buyer workflow cleanup.
   Buyer stays speculative/blue; financial activity belongs to Inventory. */
.job-list-card.buyer{
  border:1px solid #cbddeb;
  border-left:4px solid var(--buyer-accent);
  border-radius:14px;
  padding:14px;
  background:var(--buyer-soft);
  box-shadow:0 1px 0 rgba(40,95,141,.04);
}
.job-list-card.buyer .job-list-card-top{align-items:flex-start}
.job-list-card.buyer .job-list-card-name{font-size:18px;line-height:1.14}
.job-list-card.buyer .job-list-card-contact{font-size:12.5px}
.job-list-card.buyer .job-list-ops-grid{margin-top:9px;padding-top:9px}
.job-list-card.buyer .job-list-contact-actions{margin-top:10px}
.buyer-secondary-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:8px;
}
.buyer-secondary-actions button{
  width:100%;
  min-height:44px;
  padding:8px 10px;
  border:1px solid var(--buyer-line);
  border-radius:9px;
  background:#fff;
  color:var(--buyer-ink);
  font-size:13px;
  font-weight:900;
}
.buyer-secondary-actions button.primary{background:var(--buyer-soft-2)}
@media(max-width:700px){
  .job-list-card.buyer{padding:13px}
  .buyer-secondary-actions{gap:7px}
}


/* 2026-10-05 — Buyer list visual parity with Lithium / Repair.
   Same card hierarchy and control geometry; blue remains Buyer identity. */
#app .job-list-card.buyer{
  border-left:1px solid #cbddeb;
  padding:13px;
}
#app .job-list-card.buyer .job-list-card-top{align-items:flex-start}
#app .job-list-card.buyer .job-list-card-name{font-size:var(--ui-font-card);line-height:1.15}
#app .job-list-card.buyer .job-list-card-cart{
  margin-top:4px;
  font-size:var(--ui-font-meta);
  line-height:1.32;
  color:var(--ui-muted);
  font-weight:650;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
#app .job-list-card.buyer .job-list-card-open-chevron{color:#80908a}
#app .buyer-type-compact{
  min-width:92px;
  max-width:29%;
  min-height:46px;
  padding:0;
  border:1px solid var(--buyer-line);
  border-top:3px solid var(--buyer-accent);
  border-radius:9px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
#app .buyer-type-compact::after{display:none}
#app .buyer-type-compact select{
  width:100%;
  min-height:43px;
  padding:7px 24px 7px 9px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#374151;
  font-size:12px;
  font-weight:900;
  text-align:center;
  text-align-last:center;
  appearance:auto;
}
#app .buyer-type-compact.buyer-terminal-badge{padding:8px 10px}
#app .buyer-type-compact.buyer-terminal-badge strong{
  color:#374151;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
#app .job-list-card.buyer .buyer-ops-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 18px;
  margin-top:9px;
  padding-top:9px;
}
#app .job-list-card.buyer .buyer-ops-grid>div{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:9px;
  align-items:baseline;
}
#app .job-list-card.buyer .buyer-ops-grid>div:nth-child(2){grid-template-columns:auto minmax(0,1fr)}
#app .job-list-card.buyer .job-list-contact-actions{margin-top:11px}
#app .job-list-card.buyer .buyer-secondary-actions{margin-top:8px}
@media(max-width:700px){
  #app .buyer-type-compact{min-width:92px;max-width:29%}
  #app .job-list-card.buyer .buyer-ops-grid{grid-template-columns:1fr 1fr}
}


/* 2026-10-05 — Buyer top-right control literal parity.
   Uses the same custom control/menu structure as Lithium and Repair; only the accent is blue. */
#app .job-list-card.buyer .buyer-type-wrap{
  position:relative;
  flex:0 0 auto;
  display:block;
}
#app .job-list-card.buyer .buyer-type-button,
#app .job-list-card.buyer .buyer-terminal-badge{
  position:relative;
  display:grid;
  justify-items:end;
  gap:1px;
  flex:0 1 auto;
  min-width:92px;
  max-width:29%;
  min-height:42px;
  height:auto;
  margin:0;
  padding:8px 20px 8px 9px;
  border:1px solid #b8cfe2;
  border-top:3px solid var(--wf-buyer-accent);
  border-radius:9px;
  background:#fff;
  color:#374151;
  text-align:right;
  box-shadow:none;
}
#app .job-list-card.buyer .buyer-type-button strong,
#app .job-list-card.buyer .buyer-terminal-badge strong{
  color:#374151;
  font-family:Arial,Helvetica,sans-serif;
  font-size:12px;
  font-weight:900;
  line-height:1.2;
}
#app .job-list-card.buyer .buyer-type-button::after{
  color:#6b7280;
  font-size:11px;
}
#app .job-list-card.buyer .buyer-type-picker{
  width:min(230px,72vw);
  padding:5px;
  border:1px solid #b8cfe2;
  border-radius:9px;
  background:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}
#app .job-list-card.buyer .buyer-type-menu button{
  min-height:40px;
  padding:8px 9px;
  border:0;
  border-radius:7px;
  background:#fff;
  color:#374151;
  font-family:Arial,Helvetica,sans-serif;
  font-size:12px;
  font-weight:750;
  line-height:1.15;
  text-align:left;
}
#app .job-list-card.buyer .buyer-type-menu button+button{
  border-top:1px solid #e8eef3;
}
#app .job-list-card.buyer .buyer-type-menu button.current{
  background:#eef6fd;
  color:var(--wf-buyer-ink);
  font-weight:900;
}

/* Buyer > New Sale stays inside the Buyers screen. */
#app .buyer-new-sale-form{margin:0;padding:14px;border:1px solid #d5ddd8;border-radius:12px;background:#fff}
#app .buyer-new-sale-grid{display:grid;gap:12px}
#app .buyer-new-sale-grid label{display:grid;gap:6px;color:#4f5954;font-size:11px;font-weight:900;letter-spacing:.025em;text-transform:uppercase}
#app .new-sale-inline-menu{width:100%}
#app .new-sale-inline-menu>summary{width:100%!important;min-height:48px!important;justify-content:space-between!important;border-top-width:1px!important;text-transform:none}
#app .new-sale-inline-menu>summary strong{font-size:14px!important;letter-spacing:0;text-transform:none}
#app .new-sale-inline-menu .new-sale-inline-options{position:static!important;width:100%!important;min-width:0!important;margin-top:6px!important;box-sizing:border-box}
#app .new-sale-inline-options button strong{display:block}
#app .new-sale-inline-options button small{display:block;margin-top:2px;color:#737d78;font-size:11px}
#app .buyer-new-sale-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
#app .buyer-new-sale-actions button{width:100%;min-height:48px}


/* STEP 19 — Buyer card parity: Budget / Follow-Up / Notes use the shared card language. */
#app .job-list-card.buyer .buyer-budget-inline{
  display:block;
  margin-top:3px;
  color:#59615d;
  font-size:13px;
  line-height:1.2;
  font-weight:850;
}
#app .job-list-card.buyer .buyer-follow-up-row{
  width:100%;
  min-height:72px;
  margin:9px 0 0;
  padding:10px 4px;
  border:0;
  border-top:1px solid #d7e0da;
  border-bottom:1px solid #d7e0da;
  border-radius:0;
  background:transparent;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  color:#202a25;
  text-align:left;
  box-shadow:none;
}
#app .job-list-card.buyer .buyer-follow-up-action,
#app .job-list-card.buyer .buyer-follow-up-when{display:grid;gap:3px}
#app .job-list-card.buyer .buyer-follow-up-action small,
#app .job-list-card.buyer .buyer-follow-up-action strong,
#app .job-list-card.buyer .buyer-follow-up-when strong,
#app .job-list-card.buyer .buyer-follow-up-when small{
  font-size:13px;
  line-height:1.15;
  font-weight:850;
}
#app .job-list-card.buyer .buyer-follow-up-action small{color:#374151}
#app .job-list-card.buyer .buyer-follow-up-action strong{color:#172033;text-transform:uppercase}
#app .job-list-card.buyer .buyer-follow-up-when{text-align:right;justify-items:end}
#app .job-list-card.buyer .buyer-follow-up-when strong,
#app .job-list-card.buyer .buyer-follow-up-when small{color:#172033}
#app .job-list-card.buyer .buyer-follow-up-editor{margin-top:8px}
#app .job-list-card.buyer .buyer-follow-up-editor .inline-actions{grid-template-columns:1fr 1fr}
#app .job-list-card.buyer .buyer-follow-up-editor .inline-actions .primary{grid-column:1 / -1;width:100%}
#app .job-list-card.buyer .buyer-card-notes{
  margin-top:9px;
  border-top:1px solid #d7e0da;
  border-bottom:1px solid #d7e0da;
}
#app .job-list-card.buyer .buyer-card-notes>summary{
  min-height:58px;
  padding:9px 24px 9px 0;
  display:grid;
  grid-template-columns:70px minmax(0,1fr);
  gap:10px;
  align-items:center;
  position:relative;
  list-style:none;
  cursor:pointer;
}
#app .job-list-card.buyer .buyer-card-notes>summary::-webkit-details-marker{display:none}
#app .job-list-card.buyer .buyer-card-notes>summary span,
#app .job-list-card.buyer .buyer-card-notes>summary strong,
#app .job-list-card.buyer .buyer-card-note-row{font-size:13px;line-height:1.25}
#app .job-list-card.buyer .buyer-card-notes>summary span{font-weight:850;color:#374151}
#app .job-list-card.buyer .buyer-card-notes>summary strong{font-weight:850;color:#5f6964;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app .job-list-card.buyer .buyer-card-notes>summary i{position:absolute;right:2px;top:50%;transform:translateY(-50%);font-style:normal;font-size:13px;font-weight:900;color:#626b66}
#app .job-list-card.buyer .buyer-card-notes[open]>summary i{transform:translateY(-50%) rotate(180deg)}
#app .job-list-card.buyer .buyer-card-notes-history{padding:0 0 9px;display:grid;gap:6px}
#app .job-list-card.buyer .buyer-card-note-row{padding:8px 9px;border:1px solid #d9dddb;border-radius:8px;background:#f8f9f8;color:#4e5752;font-weight:850;white-space:pre-wrap;overflow-wrap:anywhere}
#app .job-list-card.buyer .buyer-card-note-row.empty{color:#7d8581}

/* Step 21: Buyer top-right action menu uses unified-card-menu geometry. */
#app .job-list-card.buyer .buyer-card-menu{margin-left:auto;}

/* Step 5: while an inline Buyer editor is active, keep the eye on the work being edited. */
#app .buyers-screen.section-focus-active .buyers-filter-row,
#app .buyers-screen.section-focus-active .buyers-cards{display:none}
#app .buyers-cards:has(>.buyer-standard-card.inline-editing)>.buyer-standard-card:not(.inline-editing){display:none}
