/* Several contacts per customer: the picker chips, the customer form's Contacts editor, the contacts card. Logic: js/contacts.js */
[hidden] { display: none !important; }
.cpk { display: grid; gap: 6px; }
.cpk-lab { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cpk-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cpk-item { display: flex; flex-direction: column; max-width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.cpk-item:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--hover); }
.cpk-chip { display: flex; align-items: flex-start; gap: 8px; padding: 7px 10px; font-size: 13px; cursor: pointer; line-height: 1.25; min-height: 44px; }
.cpk-chip input { accent-color: var(--red); margin: 3px 0 0; width: 18px; height: 18px; flex: none; }
.cpk-chip span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.cpk-chip i { font-style: normal; color: var(--muted); font-size: 12px; }
.cpk-chip em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--good); text-transform: uppercase; letter-spacing: .03em; }
.cpk-chip small { color: var(--muted); font-size: 12px; }
.cpk-det { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 8px 36px; }
.cpk-det:empty { display: none; }
.cpk .cpk-sel { font-size: 12.5px; padding: 3px 26px 3px 8px; max-width: 100%; width: auto; height: 32px; min-height: 32px; }
.cpk > small { color: var(--muted); font-size: 12px; }
.snd .cpk { margin-bottom: 0; }
.snd-wa { display: contents; }

/* customer form */
.ce { display: grid; gap: 10px; }
.ce-h { display: grid; gap: 2px; }
.ce-h small { color: var(--muted); font-size: 12.5px; }
.ce-list { display: grid; gap: 10px; }
.ce-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px 12px; margin: 0; min-width: 0; display: grid; gap: 8px; background: var(--hover); }
.ce-top { display: flex; align-items: center; gap: 8px; }
.ce-sp { flex: 1; }
.ce-ch { display: grid; gap: 6px; justify-items: start; }
.ce-lab { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ce-in { display: flex; gap: 6px; width: 100%; }
.ce-in input { flex: 1; min-width: 0; }
.ce .btn.sm { min-height: 36px; }

/* customer page + job drawer */
.ct-list .tx small.ct-ch, .j-ct .ct-ch { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.ct-ph { display: inline-flex; align-items: center; gap: 6px; }
.ct-ico { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); }
.ct-ico svg { width: 15px; height: 15px; }
.ct-ico.wa { color: var(--wa); }
.j-ct > div + div { margin-top: 8px; }
.chip.good { background: var(--good-bg); color: var(--good); }
.sd-fields > .cpk { grid-column: 1 / -1; }
