/* Pete, 1 Nov 2026 (lane C): the Seller Dashboard card on the lead page, the
   People table's new columns and Columns dialog, the Waiting on us quick
   actions, and Diagnostics, Rules. Phone rules for all of these are at the end
   of css/phone.css, which loads after this file. */

/* ---- Seller Dashboard card ---- */
.sdl { display: flex; flex-direction: column; gap: 10px; position: relative; }
.sdl-open { align-self: flex-start; }
.sdl-cs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
/* None attached, or older than 14 days. */
.sdl-cs.sdl-stale { color: var(--red); font-weight: 600; }
.sdl-q {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; padding: 0; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg); color: var(--muted);
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.sdl-q:hover, .sdl-q:focus { background: #dbeafe; color: #1d4ed8; outline: none; }
.sdl-pop {
  border: 1px solid var(--border); border-radius: 9px; background: var(--card);
  padding: 9px 12px; font-size: 12.5px; line-height: 1.45;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
}
.sdl-pop[hidden] { display: none; }
.sdl-pop a { display: inline-block; margin-top: 4px; font-weight: 600; }
.sdl-weekly { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }

/* ---- People table ---- */
th.pp-narrow, td.pp-narrow { width: 74px; text-align: center; white-space: nowrap; }
th.pp-narrow { font-size: 11px; }
.pp-check { color: var(--green); font-weight: 700; font-size: 15px; }
.pp-dash { font-size: 14px; }
/* The number under the name is for a phone, where the row has no Contact cell. */
.pp-phone { display: none; }

.pcols-list { max-height: 52vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 9px; }
.pcols-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 10px; border-bottom: 1px solid var(--border);
}
.pcols-row:last-child { border-bottom: 0; }
.pcols-name { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; cursor: pointer; }
.pcols-fixed { background: var(--bg); }
.pcols-sect { padding: 8px 10px 4px; background: var(--bg); font-weight: 700; }
.pcols-move { display: flex; gap: 2px; }

/* ---- Waiting on us quick actions ---- */
.nr-quick { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ---- Diagnostics, Rules ---- */
.rules-list { display: flex; flex-direction: column; }
.rule-row {
  display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(140px, .9fr) minmax(220px, 2fr);
  gap: 6px 16px; padding: 10px 14px; border-top: 1px solid var(--border); align-items: start;
}
.rule-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rule-value { font-size: 13px; }
.rule-meta > div { margin-bottom: 2px; }
.rule-k { display: inline-block; min-width: 82px; font-weight: 700; color: var(--text); }
.pcols-drag { cursor: grab; }
.pcols-drag:active { cursor: grabbing; }
table.list th[draggable="true"] { cursor: grab; }

/* People table: columns fit what is in them, and a heading's right edge resizes (6 Nov 2026). */
/* Not stretched to the card: spreading spare width across the columns is what left the gaps. */
table.list.people-fit { width: auto; }
table.list.people-fit th { position: sticky; }
table.list.people-fit th .pp-grip {
  position: absolute; top: 0; right: 0; bottom: 0; width: 8px; cursor: col-resize; touch-action: none;
}
table.list.people-fit th .pp-grip:hover, body.pp-resizing .pp-grip:active { background: var(--border); }
table.list.people-fit[style*="fixed"] th, table.list.people-fit[style*="fixed"] td { overflow: hidden; text-overflow: ellipsis; }
body.pp-resizing, body.pp-resizing * { cursor: col-resize !important; user-select: none; }
