/* u98-work-contacts-ui — Clients → Contact sheet (.wct-* only). Cobalt Paper tokens. Reuses .wcg-stats and the dialog pieces from work-groups.css. */

/* the tiles at the top are filters */
.wct .wct-tile { border: 0; border-right: 1px solid var(--border); background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.wct .wct-tile:last-child { border-right: 0; }
.wct .wct-tile:hover, .wct .wct-tile:focus-visible { background: var(--bg); outline: none; }
.wct .wct-tile.is-on { box-shadow: inset 0 -3px 0 var(--accent); }
.wct .wct-tile.is-attn .wcg-stat-n { color: var(--amber); }

.wct-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wct-bar .wct-q { flex: 1 1 280px; max-width: 420px; height: 34px; }
.wct-bar select { height: 34px; max-width: 240px; }
.wct-filters { margin: 0; }
.wct-foot { margin: 0; }

/* the grid */
.wct-table { table-layout: fixed; min-width: 1090px; width: 100%; border-collapse: collapse; }
.wct-table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); white-space: nowrap; font-size: 11.5px; padding-left: 8px; padding-right: 8px; }
.wct-table th.wct-c-name { width: auto; } .wct-table th.wct-c-role { width: 122px; } .wct-table th.wct-c-email { width: 14%; } .wct-table th.wct-c-phone { width: 156px; }
.wct-table th.wct-c-pref { width: 74px; } .wct-table th.wct-c-src { width: 86px; } .wct-table th.wct-c-act { width: 56px; }
.wct-table thead th.wct-c-tick { width: 62px; overflow: visible; padding: 6px 1px; text-align: center; white-space: normal; line-height: 1.2; text-transform: none; letter-spacing: 0; font-size: 10.5px; font-weight: 600; color: var(--text-2); vertical-align: bottom; }
.wct-table td { padding: 3px 8px; vertical-align: middle; border-bottom: 1px solid var(--border); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.wct-table tbody[data-wcting] > tr > td:first-child { box-shadow: inset 3px 0 0 var(--accent-line); }

/* group and client heading rows */
tr.wct-ghead td { background: var(--accent-soft); padding: 8px 12px; border-top: 1px solid var(--accent-line); border-bottom: 1px solid var(--accent-line); }
tr.wct-ghead .ti { color: var(--accent); }
tr.wct-chead td { background: var(--bg); padding: 9px 12px 8px; border-top: 1px solid var(--border-2); }
.wct-ch { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; min-width: 0; }
.wct-ch .w3-spacer { flex: 1 1 auto; }
.wct-cname { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; color: var(--text); text-decoration: none; }
.wct-cname:hover { color: var(--accent-ink); text-decoration: underline; }
.wct-svc { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.wct-svc .pill { font-size: 11.5px; }
.wct-csub { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 5px; font-size: 12.5px; }
.wct-miss { color: var(--amber); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.wct-msg { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 7px; padding: 6px 10px; border: 1px solid var(--amber); border-radius: var(--r); background: var(--amber-soft); color: var(--text); font-size: 13px; }
.wct-msg > span { flex: 1 1 260px; }
.wct-msg.is-good { border-color: var(--green); background: var(--green-soft); }
.wct-msg.hidden { display: none; }

/* a person */
tr.wct-prow:hover td { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.wct-namecell { display: flex; align-items: center; gap: 4px; min-width: 0; }
.wct-namecell b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 6px; }
.wct-namecell .wct-in { flex: 1 1 auto; min-width: 70px; }
.wct-star { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 24px; border: 0; background: none; padding: 0; color: var(--ink-4); font-size: 15px; }
button.wct-star { cursor: pointer; opacity: .28; border-radius: 6px; }
tr.wct-prow:hover button.wct-star { opacity: .7; }
button.wct-star:hover, button.wct-star:focus-visible { opacity: 1; color: var(--accent); outline: none; background: var(--bg); }
.wct-star.is-on { color: var(--accent); }
.wct-star.is-sug { color: var(--amber); }
.wct-shared { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 5px; border: 1px solid var(--border-2); border-radius: var(--r-pill); background: var(--surface); color: var(--text-2); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: help; }
.wct-shared .ti { font-size: 12px; }
.wct-confirm .ti { color: var(--green); }
.wct-table .wct-in { width: 100%; min-width: 0; height: 28px; margin: 0; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; box-shadow: none; font: inherit; font-size: 13px; color: var(--text); text-overflow: ellipsis; }
.wct-table .wct-in.is-name { font-weight: 600; }
.wct-table .wct-in::placeholder { color: var(--ink-4); font-weight: 400; }
.wct-table .wct-in.is-empty::placeholder { color: var(--amber); }
.wct-table tr:hover .wct-in { border-color: var(--border); }
.wct-table .wct-in:hover { border-color: var(--border-2); background: var(--surface); }
.wct-table .wct-in:focus { border-color: var(--accent); background: var(--surface); outline: none; box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .18); }
.wct-table .wct-in.is-bad { border-color: var(--red); background: var(--red-soft); }
.wct-table .wct-in.is-new { border-color: var(--border-2); background: var(--surface); }
.wct-table .wct-sel { padding: 0 4px; appearance: none; -webkit-appearance: none; background-image: none; cursor: pointer; }
.wct-phonecell { display: flex; align-items: center; gap: 2px; }
.wct-wa { flex: none; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--ink-4); opacity: .45; cursor: pointer; padding: 0; font-size: 15px; }
.wct-wa:hover, .wct-wa:focus-visible { opacity: 1; background: var(--bg); outline: none; }
.wct-wa.is-on { color: var(--green); opacity: 1; }
.wct-wa.is-off { color: var(--red); opacity: .8; text-decoration: line-through; }

/* the ticks */
.wct-table td.wct-c-tick { text-align: center; padding: 3px 2px; white-space: nowrap; overflow: visible; }
.wct-tk { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1.5px solid var(--border-2); border-radius: 6px; background: var(--surface); color: transparent; cursor: pointer; padding: 0; font-size: 15px; vertical-align: middle; }
button.wct-tk:hover { border-color: var(--accent); }
button.wct-tk:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .22); }
.wct-tk.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
span.wct-tk { cursor: default; position: relative; }
.wct-1st { display: inline-block; margin-left: 2px; padding: 0 3px; height: 16px; border: 1px solid var(--border-2); border-radius: 4px; background: var(--surface); color: var(--ink-4); font: 600 10px/14px var(--font-body); font-style: normal; cursor: pointer; vertical-align: middle; }
button.wct-1st:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); }
.wct-1st.is-first, span.wct-tk .wct-1st { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; opacity: 1; }
button.wct-1st:not(.is-first) { border-style: dashed; opacity: .6; }
button.wct-1st:not(.is-first):hover, button.wct-1st:not(.is-first):focus-visible { opacity: 1; outline: none; }
span.wct-tk .wct-1st { position: absolute; left: 100%; top: 3px; }
.wct-na { font-size: 11px; color: var(--ink-4); white-space: nowrap; }
.wct-src { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.wct-table td.wct-c-act { text-align: right; white-space: nowrap; padding: 3px 6px 3px 0; }
.wct-c-act .w3-icon-btn { width: 24px; height: 26px; min-width: 0; padding: 0; border: 0; background: none; box-shadow: none; opacity: .5; }
.wct-c-act .w3-icon-btn:hover { background: var(--bg); }
tr.wct-prow:hover .wct-c-act .w3-icon-btn, .wct-c-act .w3-icon-btn:focus-visible { opacity: 1; }

/* suggested people, add, verify, requests */
tr.wct-srow td { background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--border) 45%, transparent) 7px 8px); color: var(--ink-3); }
tr.wct-srow b { font-weight: 500; color: var(--text-2); }
.wct-where { font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
tr.wct-addrow td { padding: 5px 12px 9px; border-bottom: 0; }
tr.wct-addrow.is-open td { padding: 6px 8px 10px; }
tr.wct-addrow .btn-link { font-size: 12.5px; margin-right: 16px; display: inline-flex; align-items: center; gap: 4px; }
tr.wct-wrow td { background: var(--amber-soft); padding: 7px 12px; }
tr.wct-wrow .ti { color: var(--amber); font-size: 17px; }
tr.wct-rrow td { background: var(--accent-soft); padding: 7px 12px; }
tr.wct-wrow .wct-ch > span:first-of-type, tr.wct-rrow .wct-ch > span:first-of-type { flex: 1 1 320px; white-space: normal; }
tr.wct-wrow .w3-spacer, tr.wct-rrow .w3-spacer { display: none; }
tr.wct-none td { padding: 8px 12px; }

/* dialogs */
.wct-applyticks { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 4px 0 10px; }
.wct-paste { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12.5px; white-space: pre; tab-size: 18; }
.wcg-prevrow.is-bad b { color: var(--red); }

/* small pieces on the client page and the group page */
.wct-tag { font-size: 11px; margin-left: 4px; }
.wct-state { font-size: 13px; color: var(--amber); display: inline-flex; align-items: center; gap: 5px; }
.wct-state.is-ok { color: var(--green); }
.wct-resphead { display: flex; flex-wrap: wrap; gap: 4px 12px; }

@media (max-width: 900px) {
  .wct-bar .wct-q { max-width: none; flex: 1 1 100%; }
  #view-orgs #wctPanel .wct-filters { flex-wrap: wrap; overflow: visible; }
  #view-orgs #wctPanel .wct-filters > button { height: 34px; padding: 0 10px; font-size: 13px; }
  .wct-bar select { flex: 1 1 45%; max-width: none; }
  .wct .wct-tile { border-right: 0; }
  .wct-table { min-width: 1060px; }
  .wct-table thead th { position: static; }
    .wct-c-act .w3-icon-btn { opacity: 1; }
  /* heading rows stay readable while the grid scrolls sideways */
  tr.wct-chead .wct-ch, tr.wct-chead .wct-csub, tr.wct-chead .wct-msg, tr.wct-ghead .wct-ch, tr.wct-wrow .wct-ch, tr.wct-rrow .wct-ch, tr.wct-addrow:not(.is-open) td > * { position: sticky; left: 12px; max-width: calc(100vw - 48px); }
}

/* u113-people-card: the client page's People card */
.cp-ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.cp-st { font-size: 12.5px; margin: 4px 0; line-height: 1.5; }
.cp-warn { color: var(--amber, #b7791f); font-weight: 600; }
.cp-rbs { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.cp-rb { display: inline-block; min-width: 18px; padding: 0 4px; border-radius: 4px; font-size: 10.5px; font-weight: 700; text-align: center; line-height: 18px;
  border: 1px solid var(--border, #ddd); color: var(--muted, #999); opacity: .55; }
.cp-rb.on { background: var(--accent-soft, #eef4ff); color: var(--accent, #2b5cd6); border-color: currentColor; opacity: 1; }
.cp-stop { display: inline-block; padding: 0 5px; border-radius: 4px; font-size: 10.5px; font-weight: 700; background: var(--red-soft, #fdecec); color: var(--red, #c53030); }
.cp-person { margin-bottom: 4px; }
