/* JOB MONEY 2026-11-08 · daily work UI, second pass.
   All cards remain functional. No customer/mail data or APIs changed. */
#jm-client-flow-hub{display:none!important}
#jmcf-hub-slot{display:none!important}
#jm-forklift-targets.jm-dir-updating{cursor:progress}
#jm-forklift-targets .jm-dir-region-tabs button{transition:background-color .13s ease,border-color .13s ease,box-shadow .13s ease}
#jm-forklift-targets{overflow-anchor:none}
#jm-leads-pane .jm-lead-metrics{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:6px;margin:8px 0}
#jm-leads-pane .jm-lead-metrics .jm-lead-stat{display:flex;align-items:center;gap:7px;min-height:35px;padding:6px 10px;min-width:0;max-width:none;border-radius:9px;background:#f7fafc}
#jm-leads-pane .jm-lead-metrics .jm-lead-stat strong{font-size:16px;line-height:1}
#jm-leads-pane .jm-lead-metrics .jm-lead-stat span{font-size:10px;line-height:1.35}
#jm-leads-pane .jm-client-quick-add{align-self:stretch}
#jm-leads-pane .jm-client-quick-add .jm-lead-disclosure>summary{min-height:38px;display:flex;align-items:center}
#jm-leads-pane .jm-lead-tools{min-width:0}
@media(min-width:901px){
 #jm-leads-pane:not([hidden]){display:grid;grid-template-columns:minmax(195px,230px) minmax(0,1fr);column-gap:9px;row-gap:6px;align-items:start}
 #jm-leads-pane .jm-lead-top{grid-column:1/-1;grid-row:1}
 #jm-leads-pane #jm-forklift-targets{grid-column:1/-1;grid-row:2}
 #jm-leads-pane .jm-client-quick-add{grid-column:1;grid-row:3;margin:0!important}
 #jm-leads-pane .jm-lead-tools{grid-column:2;grid-row:3;margin:0!important;grid-template-columns:minmax(150px,205px) minmax(0,1fr) auto}
 #jm-leads-pane .jm-lead-split{grid-column:1/-1;grid-row:4}
 #jm-leads-pane .jm-lead-metrics{grid-column:1/-1;grid-row:5}
 #jm-leads-pane .jm-lead-secondary-tools{grid-column:1/-1;grid-row:6}
 #jm-leads-pane .jm-manual-contacts{grid-column:1/-1;grid-row:7}
 #jm-leads-pane .jm-lead-notice{grid-column:1/-1;grid-row:8}
 /* Opening the add-customer form gives it full width, without covering search. */
 #jm-leads-pane:not([hidden]):has(#jm-add-personal[open]){display:flex;flex-direction:column}
 #jm-leads-pane:has(#jm-add-personal[open]) .jm-client-quick-add{width:100%}
 #jm-leads-pane:has(#jm-add-personal[open]) .jm-lead-tools{width:100%;grid-template-columns:minmax(160px,210px) minmax(0,1fr) auto}
}
@media(max-width:900px){
 #jm-leads-pane .jm-lead-metrics{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px}
 #jm-leads-pane .jm-lead-metrics .jm-lead-stat{flex:0 0 auto;min-width:105px}
}
@media(min-width:1300px){
 .of-desktop-cockpit.of-overview-only{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:10px 12px!important}
 .of-desktop-cockpit.of-overview-only>.of-mob-hero{grid-column:1/-1;order:0}
 .of-desktop-cockpit.of-overview-only>.of-mob-alert{grid-column:1/-1;order:1}
 .of-desktop-cockpit.of-overview-only>.of-overview-note{grid-column:auto!important;order:2;align-self:stretch;display:flex!important;flex-direction:column;justify-content:flex-start}
 .of-desktop-cockpit.of-overview-only>.of-contact-job-summary{grid-column:auto!important;order:2;align-self:stretch;min-width:0}
 .of-desktop-cockpit.of-overview-only>.of-inbound-panel{grid-column:auto!important;order:3;align-self:stretch}
 .of-desktop-cockpit.of-overview-only>#ofMobileFinance{grid-column:auto!important;order:3}
 .of-desktop-cockpit.of-overview-only>#ofMobileTeam{grid-column:1/-1!important;order:4}
 .of-desktop-cockpit.of-overview-only>.of-mob-footer{grid-column:1/-1!important;order:5}
 .of-desktop-cockpit.of-overview-only .of-office-main-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .of-desktop-cockpit.of-overview-only .of-office-action{min-height:65px!important;padding:10px 12px!important}
 .of-desktop-cockpit.of-overview-only .of-office-action strong{font-size:12px}
 .of-desktop-cockpit.of-overview-only .of-office-action small{font-size:10px;line-height:1.35}
 .of-desktop-cockpit.of-overview-only .of-overview-note-label{margin-bottom:10px}
 .of-desktop-cockpit.of-overview-only .of-contact-job-summary>summary{padding:9px 12px;min-height:36px}
 .of-desktop-cockpit.of-overview-only .of-contact-job-row{gap:8px;align-items:center;padding:7px 0}
 .of-desktop-cockpit.of-overview-only .of-contact-job-row>a{max-width:58%;line-height:1.32;font-size:11px}
 .of-desktop-cockpit.of-overview-only .of-contact-job-row>span:last-child{font-size:10px;line-height:1.25}
 .of-desktop-cockpit.of-overview-only .of-job-source-note{font-size:9px;line-height:1.22;margin-top:3px}
 .of-desktop-cockpit.of-overview-only .of-contact-job-summary>div{padding:2px 12px}
 .of-desktop-cockpit.of-overview-only .of-inbound-panel{padding:12px 14px}
 .of-desktop-cockpit.of-overview-only #ofMobileFinance>summary{min-height:56px;padding:12px 14px}
}
@media(max-width:760px){
 .of-overview-only .of-office-main-links{grid-template-columns:repeat(2,minmax(0,1fr))}
 .of-overview-only .of-contact-job-summary>summary{font-size:11px}
 .of-overview-only .of-contact-job-row{gap:3px}
}

/* Quiet per-row actions, available for every Job and directory record. */
#jm-leads-pane .jm-unified-record{position:relative;overflow:visible}
#jm-leads-pane .jm-unified-record>.jm-unified-row{padding-right:91px!important}
#jm-leads-pane .jm-unified-record>.jm-row-more{position:absolute;right:11px;top:50%;transform:translateY(-50%);width:30px;height:30px;z-index:3;display:grid;place-items:center;border:1px solid transparent;background:transparent;color:#7793a5;font-size:19px;letter-spacing:1px;font-weight:800;line-height:1;cursor:pointer;border-radius:8px;padding:0}
#jm-leads-pane .jm-unified-record>.jm-row-more:hover,#jm-leads-pane .jm-unified-record>.jm-row-more:focus-visible,#jm-leads-pane .jm-unified-record>.jm-row-more[aria-expanded="true"]{border-color:#c7dde9;background:#f1f7fa;color:#1d526e}
#jm-leads-pane .jm-unified-record:has(.jm-row-menu:not([hidden])){z-index:15}
#jm-leads-pane .jm-row-menu{position:absolute;z-index:30;right:10px;top:calc(50% + 14px);padding:5px;min-width:178px;border:1px solid #d8e4ed;background:#fff;border-radius:10px;box-shadow:0 8px 30px #193b5424}
#jm-leads-pane .jm-row-menu[hidden]{display:none!important}
#jm-leads-pane .jm-row-menu button{display:block;width:100%;text-align:left;padding:9px 11px;background:transparent;border:0;border-radius:7px;color:#b45b40;font-size:11px;font-weight:750;cursor:pointer}
#jm-leads-pane .jm-row-menu button:hover,#jm-leads-pane .jm-row-menu button:focus-visible{background:#fff2ea;color:#a1432a}
#jm-leads-pane .jm-unified-record:last-child .jm-row-menu{top:auto;bottom:calc(50% + 15px)}
#jm-leads-pane .jm-lead-list-panel{overflow:visible}
#jm-leads-pane .jm-lead-rows{overflow:visible}
#jm-leads-pane .jm-unified-row .jm-lead-arrow{margin-left:-42px}
#jm-leads-pane .jm-removed-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid #e6edf3}
#jm-leads-pane .jm-removed-row span{display:grid;gap:5px;min-width:0}
#jm-leads-pane .jm-removed-row b{font-size:12px;color:#244a64;overflow-wrap:anywhere}
#jm-leads-pane .jm-removed-row small{font-size:10px;color:#7b8c98;line-height:1.5}
#jm-leads-pane .jm-removed-row button{flex:0 0 auto;border:1px solid #c9dfe9;background:#f3f9fb;border-radius:8px;padding:8px 11px;color:#2e6984;font-weight:760;font-size:11px;cursor:pointer}
#jm-leads-pane .jm-removed-row button:hover{background:#e1f1f8}
@media(max-width:760px){
 #jm-leads-pane .jm-unified-record>.jm-unified-row{padding-right:48px!important}
 #jm-leads-pane .jm-unified-record>.jm-row-more{right:7px;top:34px;width:32px;height:32px}
 #jm-leads-pane .jm-row-menu{top:57px;right:6px}
 #jm-leads-pane .jm-unified-record:last-child .jm-row-menu{top:auto;bottom:50px}
 #jm-leads-pane .jm-removed-row{padding:12px;gap:7px}
 #jm-leads-pane .jm-removed-row button{font-size:10px}
}

/* Keep the three-dot action aligned to the ROW, not the expanded mail workflow below it. */
#jm-leads-pane .jm-unified-record>.jm-row-more{top:38px;transform:translateY(-50%)}
#jm-leads-pane .jm-row-menu{top:57px;bottom:auto}
#jm-leads-pane .jm-unified-record:last-child .jm-row-menu{top:57px;bottom:auto}
@media(max-width:760px){#jm-leads-pane .jm-unified-record>.jm-row-more{top:32px}#jm-leads-pane .jm-row-menu,#jm-leads-pane .jm-unified-record:last-child .jm-row-menu{top:55px;bottom:auto}}
/* Place the three dots immediately beside the expand/collapse chevron. */
#jm-leads-pane .jm-unified-record>.jm-unified-row{padding-right:51px!important}
#jm-leads-pane .jm-unified-row .jm-lead-arrow{margin-left:0!important}
@media(max-width:760px){#jm-leads-pane .jm-unified-record>.jm-unified-row{padding-right:47px!important}}

/* Compact 3-line CRM row: title / contact+source / quick actions. */
#jm-leads-pane .jm-lead-rows .jm-unified-record{position:relative;display:block;min-width:0;overflow:visible}
#jm-leads-pane .jm-lead-rows .jm-unified-record>.jm-unified-row{
 display:grid!important;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) auto 18px!important;
 grid-template-rows:auto!important;min-height:49px!important;padding:8px 55px 5px 12px!important;
 gap:8px;align-items:center;background:transparent;max-width:100%
}
#jm-leads-pane .jm-unified-row .jm-lead-primary{min-width:0;gap:2px;max-width:100%}
#jm-leads-pane .jm-unified-row .jm-lead-primary strong{
 display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;
 font-size:12px!important;line-height:1.45
}
#jm-leads-pane .jm-unified-row .jm-lead-primary small{
 display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 font-size:10px!important;line-height:1.4
}
#jm-leads-pane .jm-unified-row .jm-unified-origin{display:flex;flex-direction:column;gap:2px;min-width:0}
#jm-leads-pane .jm-unified-row .jm-unified-origin b,
#jm-leads-pane .jm-unified-row .jm-unified-origin small{
 display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 font-size:9px!important;line-height:1.45
}
#jm-leads-pane .jm-unified-row .jmcf-inline-status{font-size:10px;white-space:nowrap;justify-self:end}
#jm-leads-pane .jm-unified-record>.jm-row-more{top:24px!important;right:7px!important;transform:translateY(-50%)!important}
#jm-leads-pane .jm-unified-record>.jm-row-menu,
#jm-leads-pane .jm-unified-record:last-child>.jm-row-menu{top:43px!important;bottom:auto!important}
#jm-leads-pane .jm-row-quick{
 display:flex;align-items:center;gap:7px;min-width:0;
 padding:4px 50px 7px 12px;border-top:1px solid #edf3f7;
 background:#fafcfd;min-height:34px;max-width:100%;box-sizing:border-box
}
#jm-leads-pane .jm-quick-copy,#jm-leads-pane .jm-quick-send{display:flex;align-items:center;gap:4px;flex:0 0 auto;white-space:nowrap}
#jm-leads-pane .jm-quick-copy{padding-right:7px;border-right:1px solid #dde9ef}
#jm-leads-pane .jm-quick-group-label{font-size:9px;color:#71869a;font-weight:700;padding:0 2px}
#jm-leads-pane .jm-row-quick button{
 border:1px solid #d5e3ec;border-radius:7px;background:#fff;
 color:#2c607d;font-size:10px;line-height:1.2;font-weight:730;
 padding:5px 8px;min-height:25px;white-space:nowrap;cursor:pointer;transition:background .12s
}
#jm-leads-pane .jm-quick-send button{color:#356d5e;border-color:#d3e7df}
#jm-leads-pane .jm-row-quick button:hover,#jm-leads-pane .jm-row-quick button:focus-visible{background:#e8f3fa;border-color:#85b6d1}
#jm-leads-pane .jm-row-quick button.jm-quick-done{background:#e8f7f0;color:#167650;border-color:#bfe6d2}
#jm-leads-pane .jm-row-quick button:disabled{opacity:.43;cursor:not-allowed}
#jm-leads-pane .jm-quick-feedback{display:block;min-width:0;max-width:210px;flex:1;
 font-size:9px;color:#2e7a68;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#jm-leads-pane .jm-quick-feedback:empty{display:none}
#jm-leads-pane .jm-contact-record .jm-row-quick{background:#f4f9fd}
#jm-leads-pane .jm-unified-row .jm-lead-arrow{margin:0!important;justify-self:center}
@media(max-width:1270px) and (min-width:761px){
 #jm-leads-pane .jm-row-quick{gap:4px;overflow-x:auto}
 #jm-leads-pane .jm-quick-group-label{display:none}
 #jm-leads-pane .jm-quick-feedback{max-width:140px}
}
@media(max-width:760px){
 #jm-leads-pane .jm-lead-rows .jm-unified-record>.jm-unified-row{
  grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;
  min-height:60px!important;padding:8px 48px 4px 10px!important;row-gap:3px!important
 }
 #jm-leads-pane .jm-unified-row .jm-lead-primary{grid-column:1;grid-row:1}
 #jm-leads-pane .jm-unified-row .jm-unified-origin{grid-column:1;grid-row:2;display:block}
 #jm-leads-pane .jm-unified-row .jm-unified-origin small{display:none}
 #jm-leads-pane .jm-unified-row .jmcf-inline-status{grid-column:2;grid-row:2;font-size:9px}
 #jm-leads-pane .jm-unified-record>.jm-row-more{top:23px!important}
 #jm-leads-pane .jm-row-quick{overflow-x:auto;flex-wrap:nowrap;gap:8px;padding:5px 10px 7px 10px;scrollbar-width:thin}
 #jm-leads-pane .jm-quick-feedback{flex:0 0 175px}
 #jm-leads-pane .jm-quick-group-label{display:none}
 #jm-leads-pane .jm-row-quick button{min-height:30px;padding:6px 9px;font-size:11px}
 #jm-leads-pane .jm-unified-record>.jm-row-menu,#jm-leads-pane .jm-unified-record:last-child>.jm-row-menu{top:43px!important}
}

