/* phase6.css - components added in Phase 6 (Contacts CRM). Colours come ONLY from
   the design tokens (tokens.css), so light and dark modes both work. */

/* tags */
.tagchip { display:inline-block; padding:1px 8px; border-radius:999px; font-size:12px; font-weight:600;
  border:1px solid var(--tc, var(--border)); color:var(--tc, var(--muted)); background:transparent; white-space:nowrap; }

/* list: bulk bar + pager */
.bulkbar { display:flex; align-items:center; gap:8px; padding:8px 12px; margin-bottom:10px;
  background:var(--accent-50); border:1px solid var(--accent-200); border-radius:8px; flex-wrap:wrap; }
.pager { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; flex-wrap:wrap; }
.pager__btns { display:flex; gap:6px; }

/* contact detail - 3 columns */
.detail3 { display:grid; grid-template-columns:260px minmax(0,1fr) 300px; gap:16px; align-items:start; }
.idcard { text-align:center; padding-bottom:12px; border-bottom:1px solid var(--border); }
.idcard__tags, .idcard__perms { margin-top:14px; text-align:left; }
.avatar--lg { width:64px; height:64px; border-radius:50%; margin:0 auto 10px; display:grid; place-items:center;
  font-size:22px; font-weight:700; background:var(--accent-100); color:var(--accent-700); }
.permlist { list-style:none; padding:0; margin:6px 0 10px; font-size:14px; }
.permlist li { padding:2px 0; color:var(--muted); }
.ecom-slot { border:1px dashed var(--border); border-radius:8px; padding:10px; }

/* activity timeline */
.timeline { list-style:none; margin:0; padding:0; }
.timeline__item { position:relative; padding:0 0 16px 22px; }
.timeline__item:before { content:''; position:absolute; left:5px; top:6px; bottom:-4px; width:2px; background:var(--border); }
.timeline__item:last-child:before { display:none; }
.timeline__dot { position:absolute; left:0; top:4px; width:12px; height:12px; border-radius:50%;
  background:var(--accent); border:2px solid var(--bg); }

/* rule builder */
.conds { display:flex; flex-direction:column; gap:8px; margin:8px 0; }
.cond { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.cond .input { max-width:200px; }
.cond__val { display:inline-flex; }
.cond__rm { color:var(--muted); }
.countpill { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:999px;
  background:var(--surface); border:1px solid var(--border); }
.countpill strong { font-size:18px; color:var(--accent); }

/* import progress */
.progress { height:6px; background:var(--surface); border-radius:999px; overflow:hidden; max-width:220px; }
.progress__bar { height:100%; background:var(--accent); transition:width .3s; }

/* duplicates */
.dupgroup { padding:12px 0; border-bottom:1px solid var(--border); }
.dupgroup:last-child { border-bottom:0; }

@media (max-width:992px) { .detail3 { grid-template-columns:1fr; } }
