.scrm-page,.scrm-workbench{min-width:0}.scrm-scope{display:flex;background:#EAF2F6;padding:4px;border-radius:9px;gap:4px}.scrm-scope button{border:0;border-radius:6px;padding:8px 14px;background:transparent;color:#60718a;font:inherit;cursor:pointer}.scrm-scope button.active{background:white;color:#426C84;box-shadow:0 1px 4px #172e5212}.scrm-workbench-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}.scrm-workbench-card{display:grid;gap:9px;padding:18px;border:1px solid #CBDDE7;border-radius:10px;background:#EAF2F6;text-align:left;font:inherit;color:#50627c;cursor:pointer}.scrm-workbench-card strong{font-size:27px;color:#203d78}.scrm-workbench-card small{font-size:12px;color:#617dad}.scrm-workbench-card:hover{border-color:#426C84;background:#EAF2F6}.scrm-update{margin:16px 0 0;color:#8895a8;font-size:12px}.scrm-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;margin:18px 0;padding:16px;background:#EAF2F6;border-radius:10px}.scrm-filters label{display:grid;gap:7px;font-size:12px;color:#60718a}.scrm-filters .input,.scrm-filters .select{max-width:180px;min-width:120px}.scrm-filters .scrm-search{flex:1;min-width:220px}.scrm-filters .scrm-search input{max-width:none;width:100%}.scrm-queue-tabs{overflow:auto;white-space:nowrap}.scrm-batch{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 16px;margin-bottom:12px;border:1px solid #CBDDE7;border-radius:8px;background:#EAF2F6;color:#426C84}.scrm-table{min-width:820px}.scrm-table th:first-child,.scrm-table td:first-child{width:36px}.scrm-table td>small{display:block;color:#8795ab;margin-top:5px}.scrm-text-button{padding:0;border:0;background:none;color:#426C84;font:inherit;font-weight:600;text-align:left;cursor:pointer}.scrm-expanded{background:#EAF2F6;padding:20px!important}.scrm-record-head{display:flex;gap:20px;align-items:flex-start;justify-content:space-between}.scrm-record-head>div:first-child{display:grid;gap:7px}.scrm-record-head strong{font-size:20px}.scrm-record-head small{font-size:12px;color:#8391a7}.scrm-record-head .actions{flex-wrap:wrap;justify-content:flex-end}.scrm-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:18px;margin:22px 0}.scrm-facts>div{display:grid;gap:6px}.scrm-facts dt{color:#8391a7;font-size:12px}.scrm-facts dd{margin:0;color:#354963}.scrm-note{white-space:pre-wrap;padding:14px;background:#fff;border-left:3px solid #426C84}.scrm-contacts{display:flex;gap:16px;flex-wrap:wrap;padding:12px 0;color:#4b607e}.scrm-record h3{font-size:14px;margin:24px 0 12px}.scrm-timeline{border-left:2px solid #CBDDE7;padding-left:18px;max-height:420px;overflow:auto}.scrm-timeline article{position:relative;padding:0 0 20px}.scrm-timeline article:before{content:'';position:absolute;width:8px;height:8px;border-radius:50%;background:#426C84;left:-23px;top:5px}.scrm-timeline article>div{display:flex;justify-content:space-between;gap:15px}.scrm-timeline time,.scrm-timeline small{font-size:12px;color:#8593a8}.scrm-timeline p{white-space:pre-wrap;line-height:1.6;color:#4a607c;margin:8px 0}.scrm-pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 0 0;color:#78879c;font-size:13px}.scrm-pagination label{display:flex;align-items:center;gap:8px}.scrm-pagination .select{width:75px;min-width:0}.scrm-error{background:#fff6f4;border:1px solid #f1cfc9;border-radius:8px;padding:16px;color:#a1453a}.scrm-loading{padding:32px;text-align:center;color:#8090a7}.scrm-guidance{padding:14px 16px;background:#EAF2F6;border-radius:8px;color:#547097;line-height:1.7}.scrm-panorama-tabs{margin-top:28px}.scrm-report-group{border-top:1px solid #EAF2F6;margin-top:20px;padding-top:10px}.scrm-report-group td small{display:block;font-size:12px;color:#8493a8;margin-bottom:6px}.scrm-trials{padding:14px;background:#EAF2F6;border-radius:8px}.scrm-trials p{margin:8px 0 0;color:#647da4}.scrm-page button:focus-visible,.scrm-workbench button:focus-visible{outline:2px solid #426C84;outline-offset:3px}@media(max-width:800px){.scrm-record-head{flex-direction:column}.scrm-record-head .actions{justify-content:flex-start}.scrm-page>.toolbar,.scrm-workbench>.toolbar{align-items:flex-start;flex-wrap:wrap}.scrm-filters .input,.scrm-filters .select{max-width:none;width:100%}.scrm-filters label{flex:1;min-width:130px}.scrm-pagination{flex-direction:column;align-items:flex-start}.scrm-scope button{padding:8px 12px}.scrm-workbench-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

.scrm-reception-results article{display:flex;justify-content:space-between;gap:18px;padding:18px;border-bottom:1px solid #EAF2F6}.scrm-reception-results p{color:#73859e;margin:7px 0 0}.scrm-section-title{font-size:15px;margin:30px 0 18px}.scrm-import-upload{display:flex;align-items:center;gap:18px;padding:18px;background:#EAF2F6;border-radius:8px}.scrm-import-upload label,.scrm-import-mapping label{display:grid;gap:9px;color:#60718a;font-size:13px}.scrm-import-mapping{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:18px 0}.scrm-import h3{font-size:15px;margin:24px 0 14px}.scrm-import-summary{display:flex;gap:16px;flex-wrap:wrap;padding:14px;background:#EAF2F6;border-radius:8px;margin-bottom:14px}.scrm-import-summary strong{color:#426C84}.scrm-import .table-wrap{max-height:420px;overflow:auto}@media(max-width:700px){.scrm-reception-results article,.scrm-import-upload{flex-direction:column;align-items:flex-start}}

.scrm-saved-views{display:flex;gap:12px;align-items:center;margin:14px 0}.scrm-saved-views label{display:flex;gap:8px;align-items:center;font-size:13px;color:#6c7f99}.scrm-saved-views .select{min-width:180px}

/* Expanded records must not inherit the compact table row layout. */
body .content table.table.scrm-table{table-layout:fixed;width:100%}
body .content table.table.scrm-table td.scrm-expanded{white-space:normal!important;overflow-wrap:anywhere}
.scrm-record-head{flex-direction:column;min-width:0}
.scrm-record-head>div{min-width:0;max-width:100%}
body .content table.table.scrm-table .scrm-record-head .actions,.scrm-page .scrm-record-head .actions{display:flex;flex-wrap:wrap;white-space:normal;justify-content:flex-start;gap:8px}
.scrm-record-head small{overflow-wrap:anywhere}

/* Lead follow-up stays in the same operational workspace as its customer context. */
.scrm-followup-workspace{min-width:0}.scrm-followup-workspace .scrm-followup-form{padding:0;background:transparent;border:0;box-shadow:none}.scrm-followup-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:920px}.scrm-followup-fields>label{display:flex;flex-direction:column;gap:8px;color:var(--text,#243342);font-size:14px}.scrm-followup-fields .scrm-followup-note{grid-column:1/-1}.scrm-followup-fields textarea{min-height:160px;resize:vertical;line-height:1.65}.scrm-followup-workspace .business-submit-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0}.scrm-followup-workspace .scrm-timeline{max-width:980px}.scrm-followup-workspace .business-error:empty{display:none}@media(max-width:680px){.scrm-followup-fields{grid-template-columns:1fr}.scrm-followup-workspace .business-submit-actions>.btn{flex:1 1 auto}}

.scrm-followup-confirm-note p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:8px 0 0}.scrm-followup-confirm-facts{margin-top:0}.scrm-followup-workspace .scrm-timeline article p{white-space:pre-wrap}

.scrm-opportunity-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.scrm-opportunity-actions .btn:disabled{cursor:not-allowed}.scrm-opportunity-histories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:28px}.scrm-opportunity-history{min-width:0;border-top:1px solid var(--line,#e3e9ef);padding-top:16px}.scrm-opportunity-history h3{font-size:15px;margin:0 0 16px}.scrm-opportunity-history .scrm-timeline{max-height:360px}.scrm-related-table{width:100%;min-width:680px}.scrm-related-table td{overflow-wrap:anywhere}.scrm-opportunity-workspace .crm-followup-panel{min-width:0}@media(max-width:800px){.scrm-opportunity-histories{grid-template-columns:1fr}}

/* Customer directory actions are borderless; keyboard focus remains visible. */
body .content .scrm-customer-list button.btn,body .content .scrm-customer-list button.scrm-text-button{border:0;box-shadow:none}
body .content .scrm-customer-list button:focus-visible{outline:2px solid var(--primary,#426C84);outline-offset:3px}

[data-crm-resource="customers"] .btn{border-color:transparent;box-shadow:none}

/* One lead, one workspace: history scrolls independently, actions retain two rows. */
.scrm-list-header{flex-wrap:wrap}.scrm-list-header .scrm-register-shortcut{margin-left:auto;flex:none}.scrm-lead-row{cursor:pointer}.scrm-lead-row:hover,.scrm-lead-row:focus-visible{background:#eaf2f6;outline-offset:-2px}
.scrm-lead-single{display:grid;gap:16px;min-width:0}.scrm-lead-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.scrm-lead-heading h2{font-size:20px;margin:0;overflow-wrap:anywhere}.scrm-lead-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto;flex-wrap:wrap;max-width:100%}.scrm-lead-heading-actions>.btn{margin-left:0}.scrm-lead-profile,.scrm-lead-history,.scrm-lead-form,.scrm-lead-action-card{background:#fff;border:1px solid #dce8ee;border-radius:12px;padding:18px;min-width:0}.scrm-lead-profile{background:#eaf2f6}.scrm-lead-single h3{font-size:15px;margin:0 0 12px}.scrm-lead-profile .scrm-facts{margin:0}.scrm-history-window{height:260px;max-height:38vh;min-height:150px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:12px}.scrm-history-window .scrm-timeline{margin:0}.scrm-history-window:focus-visible{outline:2px solid #82adc2;outline-offset:4px}.scrm-lead-form .form-actions{flex-wrap:wrap;margin-top:16px}.scrm-lead-form .scrm-followup-fields{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none}.scrm-lead-form .scrm-followup-note{grid-column:1/-1}.scrm-lead-form textarea{min-height:100px;resize:vertical}.scrm-lead-action-row{display:flex;flex-wrap:wrap;gap:10px}.scrm-lead-action-row+.scrm-lead-action-row{border-top:1px solid #e5edf1;margin-top:16px;padding-top:16px}.scrm-lead-action{display:inline-flex;align-items:center;gap:8px;border-radius:24px;padding:10px 18px;text-decoration:none;justify-content:center}.scrm-lead-action svg{flex:none}.scrm-lead-more{margin-top:16px}.scrm-lead-more>.actions{margin-top:12px;flex-wrap:wrap}
@media(max-width:700px){.scrm-lead-form .scrm-followup-fields{grid-template-columns:1fr}.scrm-lead-profile,.scrm-lead-history,.scrm-lead-form,.scrm-lead-action-card{padding:14px}.scrm-lead-action-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.scrm-lead-action{padding:9px 7px;font-size:12px;gap:4px}.scrm-lead-action svg{width:15px;height:15px}}

.scrm-list-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start;gap:12px}.scrm-list-header .scrm-queue-navigation{min-width:0}.scrm-list-header .scrm-register-shortcut{margin-left:0}
@media(max-width:900px){.scrm-list-header{grid-template-columns:minmax(0,1fr) auto}.scrm-list-header .scrm-queue-navigation{grid-column:1/-1}}

body #view.content .scrm-list-header{grid-template-columns:minmax(0,1fr) auto auto}body #view.content .scrm-list-header .scrm-register-shortcut{justify-self:end;align-self:start;width:auto;max-width:max-content;margin:0}body #view.content .scrm-list-header .scrm-register-shortcut+.filter-collapse-toggle{grid-column:1/-1}
.scrm-lead-single .scrm-lead-action-neutral{color:#59636e;border-color:#cbd1d7;background:#f3f4f6}.scrm-lead-single .scrm-lead-action-neutral:hover:not(:disabled){color:#414b57;background:#e8ebef;border-color:#aeb7c2}
@media(max-width:900px){body #view.content .scrm-list-header{grid-template-columns:minmax(0,1fr) auto}body #view.content .scrm-list-header .scrm-queue-navigation{grid-column:1/-1;grid-row:1}body #view.content .scrm-list-header .scrm-scope{grid-row:2;justify-self:start}body #view.content .scrm-list-header .scrm-register-shortcut{grid-column:2;grid-row:2}}

body #view.content .scrm-lead-single .scrm-lead-action-row{display:grid;grid-template-columns:repeat(3,minmax(0,180px));gap:12px;justify-content:start}body #view.content .scrm-lead-single .scrm-lead-action-row>.btn{display:flex;align-items:center;justify-content:center;width:100%;height:42px;min-height:42px;margin:0;padding:8px 14px;box-sizing:border-box;white-space:nowrap}body #view.content .scrm-lead-single .scrm-lead-action-neutral{color:#59636e;border-color:#cbd1d7;background:#f3f4f6}body #view.content .scrm-lead-single .scrm-lead-action-neutral:hover:not(:disabled){color:#414b57;border-color:#aeb7c2;background:#e8ebef}
body #view.content .scrm-lead-single .scrm-followup-fields{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;gap:14px}body #view.content .scrm-lead-single .scrm-followup-fields textarea{min-height:96px}
.scrm-lead-savebar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.scrm-lead-save-primary{display:flex;gap:10px;justify-content:flex-end}.scrm-lead-save-primary>.btn{min-width:112px}.scrm-lead-save-more>.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.scrm-lead-save-more>summary{cursor:pointer;color:#677f8b;font-size:13px}
@media(max-width:700px){body #view.content .scrm-lead-single .scrm-lead-action-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}body #view.content .scrm-lead-single .scrm-lead-action-row>.btn{padding:8px 5px;font-size:12px}body #view.content .scrm-lead-single .scrm-followup-fields{grid-template-columns:1fr}.scrm-lead-savebar{flex-wrap:wrap}.scrm-lead-save-primary{margin-left:auto}}

/* Quiet open-circle timeline; inset markers remain visible inside the scroll window. */
.scrm-timeline{border-left:0;padding:2px 0 0 26px}.scrm-timeline article{padding:0 0 22px}.scrm-timeline article:before{box-sizing:border-box;width:12px;height:12px;left:-25px;top:4px;border:2px solid #9ab6c5;background:#fff;z-index:1}.scrm-timeline article:not(:last-child):after{content:"";position:absolute;left:-20px;top:17px;bottom:0;width:1px;background:#dce7ed}.scrm-timeline article:last-child{padding-bottom:4px}.scrm-timeline article>div{align-items:baseline;flex-wrap:wrap;gap:6px 16px}.scrm-timeline article p{padding:10px 12px;border:1px solid #e5edf1;border-radius:8px;background:#f8fafb;overflow-wrap:anywhere}

.scrm-timeline article p:empty{display:none}

.scrm-lead-title,.scrm-field-value{display:flex;align-items:center;gap:8px;min-width:0}.scrm-field-value>span{min-width:0;overflow-wrap:anywhere}.scrm-field-pencil{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;padding:4px;border:0;border-radius:6px;background:transparent;color:#7198ad;cursor:pointer}.scrm-field-pencil:hover{background:#dce9f0;color:#426c84}.scrm-field-pencil:focus-visible{outline:2px solid #82adc2;outline-offset:2px}.scrm-field-pencil:disabled{opacity:.45;cursor:default}.scrm-field-pencil svg{width:16px;height:16px}.scrm-lead-note{display:grid;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid #d5e3eb}.scrm-lead-note>strong{font-size:12px;color:#8391a7;font-weight:400}.scrm-lead-note .scrm-field-value>span{white-space:pre-wrap}.scrm-inline-edit{grid-column:1/-1;min-width:0}.scrm-inline-edit .business-form-grid{grid-template-columns:minmax(0,1fr);gap:10px}.scrm-inline-edit .business-form{margin:0;padding:0;background:transparent;border:0}.scrm-inline-edit .form-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.scrm-inline-edit input,.scrm-inline-edit textarea,.scrm-inline-edit select{max-width:100%;box-sizing:border-box}.scrm-inline-edit textarea{min-height:80px}

.scrm-facts>.scrm-inline-edit{grid-column:auto;position:relative}.scrm-facts>.scrm-inline-edit dd{position:relative}.scrm-facts .scrm-field-editor{position:absolute;z-index:5;left:0;top:calc(100% + 8px);width:400px;max-width:calc(100vw - 64px);box-sizing:border-box;padding:16px;border:1px solid #cbdde7;border-radius:10px;background:#fff;box-shadow:0 10px 28px #243b531c}.scrm-field-editor .business-form-grid{display:block}.scrm-field-editor .business-submit-actions .btn{font-size:12px;padding:7px 10px}.scrm-field-editor #business-preview-hint{display:none}.scrm-inline-edit .business-error:empty{display:none}.scrm-field-editing-value{display:block;color:#426c84}.scrm-lead-note .scrm-field-editor{margin-top:8px;max-width:640px}.scrm-lead-profile>.scrm-inline-edit{max-width:640px;margin-bottom:16px}@media(max-width:700px){.scrm-facts .scrm-field-editor{position:static;margin-top:8px;width:100%;max-width:none}.scrm-facts>.scrm-inline-edit{grid-column:1/-1}}

.scrm-owner-picker{min-width:0}.scrm-owner-picker .scrm-owner-search{margin-bottom:8px}.scrm-owner-recommendations{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-top:8px}.scrm-owner-recommendation{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;border:1px solid #cbdde7;border-radius:8px;padding:9px 10px;background:#f8fbfc;color:#426c84;font:inherit;text-align:left;cursor:pointer}.scrm-owner-recommendation span{font-size:13px;overflow-wrap:anywhere}.scrm-owner-recommendation small{font-size:11px;color:#748895;line-height:1.5}.scrm-owner-recommendation:hover,.scrm-owner-recommendation.selected{background:#e3eff5;border-color:#82adc2}.scrm-owner-recommendation:focus-visible{outline:2px solid #82adc2;outline-offset:2px}.scrm-owner-recommendation:disabled{opacity:.55;cursor:default}.scrm-field-editor .scrm-owner-recommendations{grid-template-columns:repeat(2,minmax(0,1fr))}

.scrm-field-editor:has(.scrm-owner-picker){max-height:min(65vh,480px);overflow-y:auto;overscroll-behavior:contain}
