/* Leads, Clients, Proposals: the pieces house.css and money-kit.css do not have (CRM-PARITY-v1). Tokens only, so dark, light, accents and
   the wallpaper glass apply. Styling only: no data, safe to be public. */

/* the record's name is a button that opens it; it keeps looking like the bold name it wraps */
.hb-crm-name{display:inline;border:0;background:none;padding:0;margin:0;font:inherit;color:inherit;text-align:left;cursor:pointer;letter-spacing:inherit}
.hb-crm-name:hover b{text-decoration:underline}
.hb-crm-name:focus-visible{outline:2px solid var(--ta-blue);outline-offset:2px;border-radius:4px}
.hb-rec td[data-act="edit"]{cursor:text}

/* warmth: a short meter and its number */
.hb-crm-warm{display:inline-block;width:56px;height:6px;border-radius:3px;background:var(--ta-chip);vertical-align:middle;overflow:hidden}
.hb-crm-warm i{display:block;height:100%;width:var(--w,0%);border-radius:3px;background:var(--hb-c-done)}
.hb-rec small.hb-crm-wn{display:inline;margin-left:8px;font-size:12px;color:var(--hb-mute)}
.hb-rec small.hb-crm-flag{display:block;font-size:12px;line-height:16px;color:var(--ta-amber)}

/* cards layout: the list box drops its own panel so each record is the panel */
html body #hb-rec-list.hb-crm-plain{background:transparent;box-shadow:none;border:0;overflow:visible;-webkit-backdrop-filter:none;backdrop-filter:none}
.hb-crm-card .hb-cn-hd h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hb-crm-card .hb-cn-hd small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hb-crm-card .hb-act{align-items:center}
.hb-crm-card .hb-select{height:32px;font-size:13px;max-width:150px}
.hb-crm-card p{overflow-wrap:anywhere}
.hb-crm-card .hb-prov{display:block;flex-basis:100%;font-size:11px;color:var(--hb-mute)}

/* the toolbar: view switch, sort, layout, search, New */
#hb-rec .hb-st-top .hb-act{align-items:center;justify-content:flex-end}
#hb-rec .hb-seg button{min-width:0}

/* figure cards under the list */
.hb-crm-more{margin-top:36px}
.hb-crm-more > .ta-h2{margin:40px 0 18px}
.hb-crm-more > .ta-h2:first-child{margin-top:0}
.hb-crm-c{margin-bottom:0}
.hb-crm-t{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:20px 24px 0}
.hb-crm-t h3{margin:0;font-size:15px;line-height:20px;font-weight:600;letter-spacing:-.16px}
.hb-crm-t span{font-size:13px;color:var(--hb-mute);font-variant-numeric:tabular-nums}
.hb-crm-more .hm-g3,.hb-crm-more .hm-g2{margin-bottom:24px}
.hb-crm-more .hm-donut{padding:20px 24px 24px}
.hb-crm-more .hm-key{grid-template-columns:10px minmax(0,1fr) auto}
.hb-crm-more .hm-key .p{display:none}
.hb-crm-more .hm-bars{padding:18px 24px 22px}
.hb-crm-pills{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.hb-crm-more .hb-table td small,.hb-crm-more .hb-table td b{display:block}
.hb-crm-more .hb-table td b{font-weight:600}
.hb-crm-more .hb-table td small{font-size:12px;line-height:16px;color:var(--hb-mute)}

/* the record sheet */
dialog.hb-crm-sheet{width:min(560px,calc(100vw - 32px))}
.hb-crm-sub{margin:2px 0 0;font-size:14px;line-height:20px;color:var(--hb-mute)}
.hb-crm-sheet .hb-crm-pills{margin:0}
.hb-crm-kv{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:10px 18px;margin:0;padding:14px 0 0;border-top:1px solid var(--ta-line-2)}
.hb-crm-kv dt{font-size:13px;line-height:20px;font-weight:600;color:var(--ta-ink)}
.hb-crm-kv dd{margin:0;font-size:14px;line-height:20px;color:var(--ta-ink-2);overflow-wrap:anywhere}
.hb-crm-q{margin:0;padding:12px 14px;border-radius:10px;background:var(--ta-chip);font-size:14px;line-height:20px;color:var(--ta-ink)}
.hb-crm-q small{display:block;margin-bottom:4px;font-size:12px;line-height:16px;font-weight:600;color:var(--ta-ink-3);text-transform:uppercase;letter-spacing:.04em}
.hb-crm-sheet .hb-sheet-foot{flex-wrap:wrap}
.hb-crm-sheet .hb-sheet-foot a.hb-btn{height:30px;padding:0 20px;font-size:13px}
@media (max-width:734px),(pointer:coarse) and (orientation:landscape) and (max-height:500px){.hb-crm-kv{grid-template-columns:minmax(0,1fr);gap:2px}.hb-crm-kv dd{margin-bottom:8px}}

/* long text in a row stays in the row: two lines here, the whole of it in the record sheet */
.hb-rec .hb-crm-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:240px}
.hb-rec td.hb-m:not(.hb-wrap){white-space:nowrap}
.hb-rec td small.risk.hb-crm-clamp{display:-webkit-box}

/* round two: a row is a name, a status, one figure and one action */
.hb-crm-who{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.hb-crm-who .hb-due{padding:0 8px}
.hb-crm-x{margin-top:2px}
.hb-rec td .hb-crm-x small,.hb-rec td small.hb-crm-note{display:block;font-size:12px;line-height:16px;color:var(--hb-mute)}
.hb-rec td small.hb-crm-note{max-width:320px;white-space:normal}
.hb-crm-x .risk{color:var(--hb-bad-fg)}
.hb-crm-x .hb-crm-flag{display:inline}
button.hb-crm-all{margin-top:14px;border:0;font:inherit}
button.hb-crm-all[hidden]{display:none}
.hb-crm-card .hb-crm-x{margin-top:4px}
