/* Same neutral panels and scrolling treatment as Telefon AI, across all themes. */
html body #myClients{--mc-card:var(--panel,#181819);--mc-line:var(--border,#343438);--mc-text:var(--ink,#ddd);--mc-muted:var(--muted,#909097)}
html body #myClients .mc-grid.has-detail{grid-template-columns:var(--crm-phone-list-width) minmax(0,1fr);gap:12px}
html body #myClients .mc-table-scroll,html body #myClients #workspaceScroll{scrollbar-width:thin;scrollbar-color:var(--border,#343438) transparent}
html body #myClients .mc-table-scroll::-webkit-scrollbar{width:6px;height:6px}html body #myClients .mc-table-scroll::-webkit-scrollbar-thumb{background:var(--border,#343438);border-radius:8px}
html body #myClients .mc-table tbody tr{background:transparent;border-left:0;box-shadow:none}
html body #myClients .mc-table tbody tr.selected{background:color-mix(in srgb,var(--premium-accent,#648fbd) 12%,var(--mc-card));box-shadow:inset 3px 0 var(--premium-accent,#648fbd)}
html body #myClients #mcFilterPanel.mc-simple-filters{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr) auto;gap:6px;padding:9px;position:relative}
html body #myClients .mc-simple-filters>label{min-width:0;display:grid;gap:5px;font-size:var(--fs-xs,11.5px)}
html body #myClients .mc-simple-filters select{min-width:0;width:100%;font-size:var(--fs-xs,11.5px);padding:7px 4px}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-extra-filters{flex:0 0 auto;position:static;margin:0;padding:0;border:0}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-extra-filters>summary{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:32px;height:32px;padding:6px;cursor:pointer;list-style:none;border:1px solid var(--mc-line);border-radius:6px;color:var(--mc-muted);background:var(--mc-card)}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-extra-filters>summary::-webkit-details-marker{display:none}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-extra-filters>summary::after{display:none}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-extra-filters[open]>summary{color:var(--mc-text);border-color:var(--premium-accent,var(--mc-line))}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-extra-filters>summary .icon{width:17px;height:17px}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-extra-filters>div>label{display:grid;gap:5px;min-width:0;font-size:var(--fs-xs,11.5px)}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-extra-filters>div :is(select,input){width:100%;min-width:0;box-sizing:border-box;height:32px;padding:4px 6px;border:1px solid var(--mc-line);border-radius:6px;background:var(--mc-card);color:var(--mc-text);font:inherit}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-extra-filters>div{position:absolute;inset:100% 0 auto;z-index:20;background:var(--mc-card);border:1px solid var(--mc-line);border-radius:8px;box-shadow:0 12px 24px #0003;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:calc(55vh / var(--crm-ui-scale, 1));overflow:auto}
html body #myClients .mc-filter-result{grid-column:4;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;gap:5px;font-size:var(--fs-xs,11.5px);line-height:14px;color:var(--mc-muted);white-space:nowrap;text-align:right}
html body #myClients .mc-filter-result button{padding:7px 8px;font-size:var(--fs-xs,11.5px);line-height:15px}
html body #myClients.mc-shared-phone #mcDetail{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:0;max-height:none;background:var(--panel,#181819);border:1px solid var(--border,#343438)}
html body #myClients.mc-shared-phone #mcDetail>.workspace{display:grid;grid-template-rows:auto minmax(0,1fr) auto;flex:1;min-height:0;min-width:0;max-width:100%;width:100%;border:0;overflow:hidden}
html body #myClients.mc-shared-phone #workspaceScroll{min-height:0;overflow-y:auto}
html body #myClients.mc-shared-phone .workflow{flex-shrink:0}
html body #myClients.mc-shared-phone .workspace .section-grid{grid-template-columns:minmax(0,1.38fr) minmax(230px,.72fr)}
.mc-office-inbox{flex:0 0 auto;padding:10px 12px;border-bottom:1px solid var(--crm-task-line);background:var(--crm-task-bg);color:var(--crm-task-ink)}
.mc-office-inbox summary{cursor:pointer;display:flex;gap:8px;align-items:center;font-weight:var(--fw-s,600);font-size:var(--fs-sm,12.5px)}.mc-office-inbox .inbox-body{max-height:calc(32vh / var(--crm-ui-scale, 1));overflow:auto;padding-top:8px}.mc-office-inbox p{margin:6px 0;font-size:var(--fs-sm,12.5px);white-space:pre-wrap}.mc-office-inbox textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:64px;background:var(--mc-card);color:var(--mc-text);border:1px solid var(--mc-line);border-radius:7px;padding:8px}.mc-office-inbox .inbox-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.mc-office-inbox small{display:block;font-size:var(--fs-xs,11.5px)}.mc-office-inbox .oc-error{margin:4px 0}
@media(max-width:1100px){html body #myClients .mc-grid.has-detail{grid-template-columns:var(--crm-phone-list-width) minmax(0,1fr)}html body #myClients.mc-shared-phone .workspace .section-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){html body #myClients .mc-grid.has-detail{grid-template-columns:minmax(0,1fr)}html body #myClients.mc-shared-phone #mcDetail{height:calc(85dvh / var(--crm-ui-scale, 1));max-height:none}html body #myClients #mcFilterPanel.mc-simple-filters{grid-template-columns:1fr 1fr 1.3fr auto}}
html body #myClients .mc-table tr.late td:first-child{box-shadow:none}

/* Approved left-list mockup, 12 Sep: compact rows only. Never targets #mcDetail or the Telefon workspace. */
html.crm-premium-trial[data-theme] body #myClients .mc-grid .mc-list{background:var(--wa-panel,var(--panel));border:1px solid var(--wa-line,var(--border));border-radius:12px;overflow:hidden;min-width:0}
html.crm-premium-trial[data-theme] body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-grid .mc-list-search{padding:10px 10px 5px;background:var(--wa-panel,var(--panel));border:0;gap:6px;position:relative;display:flex;align-items:center}
html.crm-premium-trial[data-theme] body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-grid .mc-list-search .mc-filters:empty{display:none}
html.crm-premium-trial[data-theme] body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-grid .mc-list-search input:is(#mcSearch,.mc-search){--crm-type-body:var(--fs-sm,12.5px);height:32px!important;min-height:32px!important;font-size:var(--fs-sm,12.5px)!important;line-height:16px!important;padding:6px 8px!important;border-radius:6px;background:var(--wa-chrome,var(--panel))!important;max-width:none!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid #mcFilterPanel{padding:6px 10px 8px;gap:5px;background:var(--wa-panel,var(--panel));border-bottom:1px solid var(--wa-line,var(--border))}
html.crm-premium-trial[data-theme] body #myClients .mc-grid #mcFilterPanel .mc-filter-result{--crm-type-body:var(--fs-xs,11.5px);font-size:var(--fs-xs,11.5px);padding-top:0}
html.crm-premium-trial[data-theme] body #myClients .mc-grid .mc-table-scroll{scrollbar-width:thin;scrollbar-color:var(--wa-line,var(--border)) transparent;background:var(--wa-panel,var(--panel));min-width:0}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table{display:table!important;table-layout:fixed!important;width:100%!important;min-width:0!important;border-spacing:0!important;border-collapse:collapse!important;background:var(--wa-panel,var(--panel))!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table thead{display:table-header-group!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table tbody{display:table-row-group!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table tr{display:table-row!important;position:static!important;padding:0!important;border-radius:0!important;background:var(--wa-panel,var(--panel))!important;border:0!important;box-shadow:none!important;transform:none!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table :is(td,th){display:table-cell!important;position:static!important;transform:none!important;float:none!important;width:auto!important;min-width:0!important;max-width:none!important;padding:8px!important;border:0!important;border-bottom:1px solid var(--wa-line,var(--border))!important;vertical-align:middle!important;text-align:left!important;background:transparent!important;box-shadow:none!important;line-height:16px!important;--crm-type-body:var(--fs-sm,12.5px);font-size:var(--fs-sm,12.5px)!important;overflow:hidden!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table :is(td,th):first-child{width:43%!important;padding-left:11px!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table :is(td,th):nth-child(2){width:19%!important;padding-left:3px!important;padding-right:3px!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table td{height:48px!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table td::before{display:none!important;content:none!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table th{--crm-type-body:var(--fs-xs,11.5px);font-size:var(--fs-xs,11.5px)!important;line-height:13px!important;font-weight:var(--fw-s,600)!important;color:var(--wa-muted,var(--muted))!important;background:var(--wa-chrome,var(--panel))!important;white-space:nowrap!important;padding-top:8px!important;padding-bottom:8px!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table tr:hover:not(.selected){background:var(--wa-section-hover,var(--wa-chrome))!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table tr.selected{background:var(--wa-selected,var(--wa-chrome))!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table tr.selected td:first-child{box-shadow:inset 3px 0 var(--wa-accent,var(--premium-accent))!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table .mc-name{display:block!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-align:left!important;background:transparent!important;color:var(--wa-ink,var(--ink))!important;--crm-type-body:var(--fs-sm,12.5px);font-size:var(--fs-sm,12.5px)!important;line-height:17px!important;font-weight:var(--fw-s,600)!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table :is(small,.mc-compact-next>span,.mc-compact-stage>span){display:block!important;min-width:0!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;padding:0!important;margin:0!important;--crm-type-body:var(--fs-xs,11.5px);font-size:var(--fs-xs,11.5px)!important;line-height:16px!important;font-weight:var(--fw-n,400)!important;color:var(--wa-ink,var(--ink))}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table small{color:var(--wa-muted,var(--muted))!important;margin-top:1px!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table small:empty{display:none!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table .mc-compact-stage b{--crm-type-body:var(--fs-xs,11.5px);font-size:var(--fs-xs,11.5px)!important;line-height:16px!important;font-weight:var(--fw-s,600);color:var(--wa-ink,var(--ink))}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table .mc-compact-stage>span{color:var(--wa-muted,var(--muted));font-size:var(--fs-xs,11.5px)!important;--crm-type-body:var(--fs-xs,11.5px)}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table .mc-compact-message>span{color:var(--crm-task-ink)!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table .mc-compact-late{color:var(--mc-red)!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid .mc-list-foot{padding:8px 10px;font-size:var(--fs-xs,11.5px);--crm-type-body:var(--fs-xs,11.5px);line-height:16px;background:var(--wa-panel,var(--panel));color:var(--wa-muted,var(--muted));border-top:0}

/* Full list and split list retain the same row treatment; bulk tools remain available. */
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table .mc-bulk-cell{width:84px!important;min-width:84px!important;text-align:center!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid .mc-bulk-compact{display:none!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid .mc-bulk-tools{padding:0 10px;background:var(--wa-panel);border-bottom:1px solid var(--wa-line)}
html.crm-premium-trial[data-theme] body #myClients .mc-grid .mc-bulk-tools>summary{font-size:var(--fs-xs,11.5px);--crm-type-body:var(--fs-xs,11.5px);padding:7px 0}
html.crm-premium-trial[data-theme] body #myClients .mc-grid .mc-bulk-tools .mc-bulk-bar{margin:0 0 8px;padding:8px;gap:6px;flex-wrap:wrap}
html.crm-premium-trial[data-theme] body #myClients .mc-show-full-list{--crm-type-body:var(--fs-sm,12.5px);font-size:var(--fs-sm,12.5px);display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
/* One row of existing stages. Overflow scrolls instead of stretching the toolbar vertically. */
html.crm-premium-trial[data-theme] body :is(.workspace #workflow.workflow,#newFirmWorkspace .nf-stage-navigation){display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:4px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:4px!important;min-width:0;scrollbar-width:thin}
html.crm-premium-trial[data-theme] body :is(.workspace #workflow .flow-step:not([hidden]),#newFirmWorkspace .nf-stage-button){display:flex!important;align-items:center!important;justify-content:center!important;flex:1 0 auto!important;min-width:104px!important;min-height:36px!important;height:36px!important;gap:5px!important;padding:6px!important;white-space:nowrap!important;--crm-type-body:var(--fs-xs,11.5px);font-size:var(--fs-xs,11.5px)!important;line-height:16px!important}
html.crm-premium-trial[data-theme] body :is(.workspace #workflow,#newFirmWorkspace .nf-stage-navigation) .step-num{display:inline-grid!important;place-items:center!important;box-sizing:border-box!important;flex:0 0 20px!important;width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;min-height:20px!important;max-height:20px!important;aspect-ratio:1!important;border-radius:50%!important;padding:0!important;margin:0!important;--crm-type-body:var(--fs-xs,11.5px);font-size:var(--fs-xs,11.5px)!important;line-height:1!important;font-variant-numeric:tabular-nums!important}
/* Both entry points share the same default and the same saved divider preference. */
:root{--crm-phone-list-width:285px}
@media(max-width:1500px){:root{--crm-phone-list-width:270px}}
@media(max-width:1350px){:root{--crm-phone-list-width:260px}}
@media(min-width:761px){
 html body #myClients{padding-inline:22px}
 html.crm-premium-trial[data-theme] body .phone-layout,html.crm-premium-trial[data-theme] body #myClients .mc-grid.has-detail{grid-template-columns:var(--crm-phone-list-width) minmax(0,1fr);gap:12px}
 html body #myClients .mc-grid.has-detail>#mcDetail{grid-column:2;grid-row:1;position:relative;top:0}
 html body #myClients .mc-grid.has-detail>.mc-list{grid-column:1;grid-row:1}
}

html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-extra-filters:not([open])>div{display:none}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-extra-filters>div{margin:0}
html body #myClients #mcFilterPanel .mc-filter-result button{height:32px;min-height:32px;box-sizing:border-box}

/* Compact empty search field; separate room for the filter control. */
html.crm-premium-trial[data-theme] body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-grid .mc-list-search{justify-content:flex-start;gap:12px;flex-wrap:nowrap}
html.crm-premium-trial[data-theme] body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-grid .mc-list-search .mc-search-field{flex:0 1 230px;max-width:calc(100% - 44px);min-width:0;margin-right:auto;gap:7px;box-sizing:border-box}
html.crm-premium-trial[data-theme] body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-grid .mc-list-search input:is(#mcSearch,.mc-search){
 appearance:none;-webkit-appearance:none;box-sizing:border-box;flex:1 1 0;width:0!important;min-width:0!important;max-width:100%!important;
 height:30px!important;min-height:30px!important;margin:0!important;padding:5px 8px!important;
 border:1px solid var(--wa-action-line,var(--mc-line))!important;border-radius:6px!important;
 background:var(--wa-chrome,var(--mc-card))!important;color:var(--mc-text)!important;
 outline:none!important;box-shadow:none!important;
}
html.crm-premium-trial[data-theme] body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-grid .mc-list-search input:is(#mcSearch,.mc-search):is(:focus,:focus-visible){
 border-color:var(--wa-accent,#7896b1)!important;outline:none!important;outline-offset:0!important;
 box-shadow:0 0 0 2px color-mix(in srgb,var(--wa-accent,#7896b1) 28%,transparent)!important;
 background:var(--mc-card)!important;
}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-extra-filters>summary{gap:0!important;flex:none;overflow:hidden}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-extra-filters>summary::after{content:none!important;display:none!important}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-extra-filters>summary .icon{flex:0 0 17px}

.shared-client-recovery{padding:20px;max-width:640px;line-height:1.5}.shared-client-recovery h3{margin:0 0 10px}.shared-client-recovery .btn{margin:6px 8px 0 0}

/* SALES154 — only sales list columns: room for company, compact centered stage. */
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table tr>:is(th,td):first-child{width:48%!important;box-sizing:border-box!important;padding-right:12px!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table tr>:is(th,td):nth-child(2){width:84px!important;box-sizing:border-box!important;text-align:center!important;padding-left:6px!important;padding-right:6px!important}
html.crm-premium-trial[data-theme] body #myClients .mc-grid table.mc-compact-table td.mc-compact-stage>:is(b,span){display:block!important;width:100%!important;text-align:center!important;margin:0!important}
