.crm-priority-label{display:inline-flex!important;align-items:center;gap:4px;padding:3px 7px;margin:0 7px 5px 0;border-radius:6px;font-size:var(--fs-sm,12.5px)!important;line-height:1.3;font-weight:var(--fw-b,700)!important;white-space:nowrap}
.crm-priority-label.urgent{color:var(--premium-red,#ffb1bd)!important;background:var(--premium-red-bg,#3b242c)!important;border:1px solid color-mix(in srgb,var(--premium-red,#ffb1bd) 38%,transparent)}
.crm-priority-label.starred{color:#e7c66e!important;background:#59482033!important;border:1px solid #ad8f4159}
html[data-theme=light] .crm-priority-label.starred{color:#765b18!important;background:#fff5d4!important;border-color:#d7bd74}
#bpxsMessenger .crm-task-urgent,#myClients .crm-task-urgent,#clientPersistentWorkbench .crm-task-urgent{border-left:3px solid var(--premium-red,#df6c7d)!important;background:color-mix(in srgb,var(--premium-red-bg,#3b242c) 48%,var(--premium-paper,#18191b))!important;padding:10px 12px!important;border-radius:8px}
#bpxsMessenger .crm-task-starred:not(.crm-task-urgent),#myClients .crm-task-starred:not(.crm-task-urgent),#clientPersistentWorkbench .crm-task-starred:not(.crm-task-urgent){border-left:3px solid #E5A83D!important;background:color-mix(in srgb,#E5A83D 9%,var(--premium-paper,#18191b))!important;padding:10px 12px!important;border-radius:8px}
.crm-priority-tags{display:flex;flex-wrap:wrap;align-items:center;grid-column:1/-1}
#myClients .mc-task:has(>.crm-priority-tags){flex-wrap:wrap}#myClients .mc-task>.crm-priority-tags{width:100%}
.mc-bulk-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px;border-bottom:1px solid var(--premium-line);background:var(--premium-soft)}
.mc-bulk-cell{text-align:center!important;vertical-align:middle!important;min-width:44px}
.mc-bulk-cell input{width:18px;height:18px;accent-color:var(--premium-accent);cursor:pointer}
#myClients .mc-bulk-cell .mc-btn{font-size:var(--fs-sm,12.5px)!important;white-space:nowrap;max-width:100%;line-height:1.35;padding:5px 7px!important;min-height:28px!important}
.mc-bulk-inline{display:none!important}
/* Contact and handoff are separate columns, not three competing contact icons. */
#myClients{--mc-action-divider:#30363d}
html[data-theme=light] #myClients{--mc-action-divider:#c6ced6}
html body #myClients .mc-table :is(th,td).mc-contact-cell,
html body #myClients .mc-table :is(th,td).mc-bulk-cell{border-left:1px solid var(--mc-action-divider)!important;text-align:center!important;vertical-align:middle!important;padding:7px 6px!important}
html body #myClients .mc-table .mc-contact-cell{width:104px;min-width:0}
html body #myClients .mc-table .mc-contact-cell .mc-row-contact{display:flex;align-items:center;justify-content:center;gap:7px}
html body #myClients .mc-table .mc-contact-cell .mc-row-contact{gap:5px;flex-wrap:wrap}
html body #myClients .mc-table .mc-contact-cell .mc-row-contact .mc-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;padding:6px!important;box-sizing:border-box;border-radius:8px}
html body #myClients .mc-table .mc-contact-cell .mc-row-contact .mc-btn svg{width:16px!important;height:16px!important;flex:none}
html body #myClients .mc-table th.mc-bulk-cell{width:96px;min-width:0}
html body #myClients .mc-table td.mc-bulk-cell{white-space:nowrap}
html body #myClients .mc-table td.mc-bulk-cell input{vertical-align:middle;margin:0 5px 0 0}
html body #myClients .mc-bulk-cell .mc-transfer{vertical-align:middle;margin:0}
html body #myClients .mc-bulk-select-all{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:var(--mc-muted);font-size:var(--fs-md,13.5px)!important;font-weight:var(--fw-n,400);line-height:1.4;white-space:nowrap;margin-top:7px}
html body #myClients .mc-bulk-select-all input{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--mc-blue);cursor:pointer}
html body #myClients .mc-bulk-select-all:has(input:checked){color:var(--mc-text)}
/* Keep identity in three rows and fit the full table to its available panel. */
html body #myClients .mc-table{table-layout:fixed;width:100%;min-width:0}
html body #myClients .mc-table th{white-space:normal;padding:8px;overflow-wrap:anywhere}
html body #myClients .mc-table th:first-child{width:21%}
html body #myClients .mc-table th:nth-child(2){width:18%}
html body #myClients .mc-table th:nth-child(3){width:16%}
html body #myClients .mc-table th:nth-child(4){width:13%}
html body #myClients .mc-table td{padding:8px;overflow-wrap:anywhere;min-width:0}
html body #myClients .mc-table .mc-person{gap:7px;min-width:0}
html body #myClients .mc-table .mc-person-copy{min-width:0;flex:1}
html body #myClients .mc-table .mc-person-top{display:flex;flex-direction:column;align-items:stretch;gap:3px;min-width:0}
html body #myClients .mc-table .mc-name{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}
html body #myClients .mc-table .mc-stage{margin:0;min-width:0;flex-wrap:nowrap;line-height:20px}
html body #myClients .mc-table .mc-stage-label{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:var(--fw-n,400);color:var(--mc-muted)}
html body #myClients .mc-table .mc-person-copy small{margin-top:3px;min-height:18px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #myClients .mc-table .mc-next{min-width:0;max-width:none}
html body #myClients .mc-table .mc-status{max-width:100%;box-sizing:border-box;white-space:normal}
html body #myClients .mc-table .mc-next-meta{gap:4px;margin-top:4px!important}
html body #myClients .mc-table .mc-sub{margin-top:3px}
html body #myClients .mc-bulk-select-all{font-size:var(--fs-sm,12.5px)!important;gap:4px;margin-top:4px}
.mc-bulk-compact{display:none}
#myClients .mc-bulk-compact .mc-bulk-select-all{margin:0}
@container(max-width:900px){
 html body #myClients .mc-table tbody tr{padding-right:10px!important}
 html body #myClients .mc-table tbody td.mc-contact-cell,
 html body #myClients .mc-table tbody td.mc-bulk-cell{position:static!important;top:auto!important;right:auto!important;transform:none!important;grid-row:auto;min-width:0;width:auto;align-self:stretch;padding:10px 8px!important;border-top:1px solid var(--mc-action-divider)!important}
 html body #myClients .mc-table tbody td.mc-contact-cell{grid-column:1!important;border-left:0!important}
 html body #myClients .mc-table tbody td.mc-bulk-cell{display:flex!important;grid-column:2!important;justify-content:center!important;align-items:center;gap:8px}
 html body #myClients .mc-table td.mc-contact-cell::before{display:none!important}
 #myClients .mc-bulk-compact{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
 #myClients .mc-bulk-compact .mc-bulk-inline{display:inline-flex!important}
 #myClients .mc-list-search{flex-wrap:wrap}
}
/* No row actions in the narrow selector beside an open client card. */
html body #myClients .mc-grid.has-detail .mc-table :is(th,td).mc-contact-cell,
html body #myClients .mc-grid.has-detail .mc-table :is(th,td).mc-bulk-cell,
html body #myClients:has(.mc-grid.has-detail) :is(.mc-bulk-compact,.mc-bulk-bar){display:none!important}
html body #myClients .mc-grid.has-detail .mc-table tbody td:first-child{padding-right:0!important}

/* A message count has its own space; never squeeze it into the 30px icon square. */
html body #myClients .mc-table .mc-contact-cell .mc-row-contact .mc-btn.mc-message.has-unread{flex:0 0 auto;width:auto!important;min-width:50px!important;max-width:none!important;padding:5px 7px!important;gap:5px;white-space:nowrap;border-radius:10px!important}
html body #myClients .mc-table .mc-contact-cell .mc-message-count{display:inline-block;position:static;flex:none;min-width:1ch;margin:0;padding:0;font-size:var(--fs-sm,12.5px)!important;line-height:1!important;font-weight:var(--fw-s,600);font-variant-numeric:tabular-nums;color:inherit}
html body #myClients .mc-table td.mc-bulk-cell input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:none;cursor:pointer;accent-color:var(--mc-blue)}

#myClients .mc-transferred-row{color:var(--mc-muted);background:var(--mc-soft);cursor:default}
#myClients .mc-transferred-row small{display:block;margin-top:5px}
#myClients .mc-transferred-lock{display:inline-block;color:var(--mc-muted);border:1px solid var(--mc-line);border-radius:8px;padding:6px 9px;font-size:var(--fs-sm,12.5px);cursor:not-allowed;white-space:nowrap}
#myClients .mc-transferred-help{padding:12px;color:var(--mc-muted)}
