/* =====================================================================
   Activity / product picker — shared by the register wizard (step 4-6)
   and the dashboard Products & activities section.

   Values from design/register.html. It lived in register.css until the
   dashboard needed the same control; moved here rather than copied, so
   the two cannot drift apart.
   ===================================================================== */

/* ---------- Activity / product pickers ----------
   Values lifted from design/register.html: a quota line, a full-width
   search, a sticky category rail and one white card per category or
   product group, whose options are pills rather than checkbox rows. */
.sel-wrap{display:flex;flex-direction:column;gap:14px;margin-top:20px}

.quota-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:0 4px}
.quota{font-size:13px;font-weight:700;color:var(--mute)}
/* Over the free allowance, the count turns to the same orange the
   overage price uses. */
.quota[data-over="true"]{color:#C2410C}
.review{border:0;background:none;color:var(--blue);font:inherit;font-size:13px;font-weight:700;cursor:pointer;padding:8px 0;min-height:40px;display:inline-flex;align-items:center;gap:6px}
.review:hover{color:var(--navy);transform:none}
.review span{font-size:11px}

.sel-search{width:100%;border:0;border-radius:14px;padding:0 18px;min-height:50px;font:inherit;font-size:15px;font-weight:700;outline:0;color:var(--ink);background:#fff;box-shadow:var(--shadow)}
.sel-search::placeholder{font-weight:600}

.sel{display:grid;grid-template-columns:260px minmax(0,1fr);gap:14px;align-items:start}

/* Category rail — sticky, so it stays put down a long list of pills. */
.cats{display:flex;flex-direction:column;background:#fff;border-radius:18px;padding:8px;box-shadow:var(--shadow);position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}
.cats button{display:flex;align-items:center;gap:10px;border:0;background:none;text-align:left;font:inherit;font-size:13.5px;font-weight:600;color:#475569;padding:10px 12px;border-radius:12px;cursor:pointer;min-height:44px;width:100%}
.cats button:hover{background:var(--bg);transform:none}
.cats button[data-on="true"]{background:var(--blue-10);color:var(--blue);font-weight:800}
.cats .dot{width:10px;height:10px;border-radius:50%;flex:none}
.cats .nm{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cats .tot{font-size:11.5px;color:var(--faint);font-weight:600;flex:none}
.cats .n{font-size:10.5px;font-weight:800;background:var(--blue);color:#fff;border-radius:999px;padding:2px 7px;flex:none}
.cats[data-kind="sell"] .n{background:#047857}
.cats[data-kind="buy"] .n{background:#C2410C}

.panes{display:flex;flex-direction:column;gap:10px;min-width:0}
.pane{background:#fff;border-radius:18px;padding:18px 20px;box-shadow:var(--shadow)}
.pane .ph{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}
.pane .ph.baseline{align-items:baseline;margin-bottom:12px}
.pane .ph .dot{width:10px;height:10px;border-radius:50%;flex:none;margin-top:6px}
.pane .ph .txt{flex:1;min-width:0}
.pane .ph b{font-size:16px;letter-spacing:-.01em}
.pane .ph.baseline b{flex:1}
.pane .ph .hint{display:block;font-size:12.5px;color:var(--mute);font-weight:600;margin-top:2px}
.pane .ph .meta{font-size:12px;color:var(--faint);font-weight:600}
.pane .all{border:0;background:none;color:var(--blue);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;padding:6px 0;min-height:32px;white-space:nowrap}
.pane .all:hover{color:var(--navy);transform:none}
.pane .rows{display:flex;flex-direction:column;gap:12px}
.pane .rlabel{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);margin-bottom:8px}
.pills{display:flex;flex-wrap:wrap;gap:8px}
.sel-none{background:#fff;border-radius:18px;text-align:center;padding:36px;color:var(--faint);font-size:13.5px;font-weight:600}

/* The pill lives in mesteel.css now — the back office uses it too and
   does not load this file. */

/* ---------- Steps 5 & 6 only ---------- */
.mode-card{display:flex;align-items:center;gap:14px;border-radius:18px;padding:14px 18px}
.mode-card .tag{width:44px;height:44px;border-radius:12px;color:#fff;display:grid;place-items:center;font-size:11.5px;font-weight:800;flex:none}
.mode-card .txt{flex:1;min-width:0}
.mode-card b{display:block;font-size:16px;line-height:1.2}
.mode-card .hint{display:block;font-size:12.5px;color:#475569;margin-top:3px;font-weight:600;overflow:hidden;text-overflow:ellipsis}
.mode-card .num{font-size:24px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;flex:none}
.mode-card[data-kind="sell"]{background:#D1FAE5}
.mode-card[data-kind="sell"] .tag{background:#047857}
.mode-card[data-kind="sell"] b,.mode-card[data-kind="sell"] .num{color:#047857}
.mode-card[data-kind="buy"]{background:#FFEDD5}
.mode-card[data-kind="buy"] .tag{background:#C2410C}
.mode-card[data-kind="buy"] b,.mode-card[data-kind="buy"] .num{color:#C2410C}

.tools-row{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap}
.tools-row .sel-search{flex:1;min-width:220px;width:auto}
/* Sourcing choice — company_products.from_stock and from_mill, which the
   legacy import already populates. */
.src-card{flex:1;min-width:280px;background:#fff;border-radius:14px;padding:6px 6px 6px 16px;box-shadow:var(--shadow);display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.src-card > span{font-size:13.5px;font-weight:700;white-space:nowrap}
.seg{display:flex;gap:2px;background:var(--bg);border-radius:999px;padding:3px;margin-left:auto}
.seg button{border:0;background:none;border-radius:999px;padding:0 14px;min-height:36px;font:inherit;font-size:13px;font-weight:700;color:var(--mute);cursor:pointer;white-space:nowrap}
.seg button:hover{transform:none}
.seg button[data-on="true"]{background:var(--blue);color:#fff;box-shadow:0 12px 30px rgba(31,63,143,.3)}
.copy-btn{border:0;background:#fff;color:var(--blue);border-radius:14px;padding:0 16px;min-height:50px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;box-shadow:var(--shadow)}
.copy-btn:hover{color:var(--navy);transform:none}


/* ---------- Responsive ---------- */
@media (max-width:1023px){
  /* The rail drops under the search and becomes a row of scrolling pills,
     from the reference's own max-width:1023px block. */
  .sel{grid-template-columns:minmax(0,1fr)}
  .cats{flex-direction:row;overflow-x:auto;scrollbar-width:none;padding:6px;gap:4px;
        position:static;max-height:none}
  .cats::-webkit-scrollbar{display:none}
  .cats button{white-space:nowrap;flex:none;width:auto;border-radius:999px;
               border:1px solid var(--line);padding:0 14px;min-height:40px}
  .cats .nm{overflow:visible}
}

