.team-crm-heading,.crm-team-toolbar,.crm-owner-overview,.crm-report-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:15px 0}.team-crm-heading{justify-content:space-between}.team-crm-heading h2{margin:0}.crm-team-toolbar input[type=search]{flex:1;min-width:220px}.crm-owner-overview{padding-bottom:16px;border-bottom:1px solid #ddd}.crm-team-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.team-crm label{display:block;font-size:13px}.team-crm label>input:not([type=checkbox]),.team-crm label>select,.team-crm label>textarea{display:block;width:100%;margin-top:8px;box-sizing:border-box}.team-crm form>label{margin:14px 0}.team-crm textarea{min-height:90px;resize:vertical}.team-crm details{margin:20px 0;padding-top:14px;border-top:1px solid #ddd}.team-crm summary{cursor:pointer;font-weight:600}.crm-detail-section{margin-top:28px;padding-top:20px;border-top:1px solid #ddd}.crm-timeline{padding:14px 0;border-bottom:1px solid #ddd}.crm-timeline time{margin-left:18px;font-size:12px;color:#777}.crm-timeline p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.crm-contact-links{display:flex;gap:18px}.crm-muted{font-size:12px;color:#777}#team-crm-error{color:#9c2314;background:#fff0e8;padding:12px}#team-crm-notice{padding:12px;background:#edf4e9}.team-crm .crm-report-row{justify-content:space-between}.team-crm #crm-save-result{margin-left:14px;color:#3d653b}@media(max-width:650px){.crm-team-fields{grid-template-columns:1fr}.crm-team-toolbar>*{width:100%}.team-crm .table-wrap{overflow-x:auto}}

.crm-submitted-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.crm-submitted-details div{border-bottom:1px solid #ddd;padding:8px 0}.crm-submitted-details dt{font-size:12px;color:#777}.crm-submitted-details dd{margin:6px 0;overflow-wrap:anywhere}.crm-contact-consent{display:flex!important;align-items:flex-start;gap:10px;font-size:13px;line-height:1.7;margin-top:20px}.crm-submit-status{font-size:14px;line-height:1.6}.crm-submitted h3{font-size:24px}@media(max-width:650px){.crm-submitted-details{grid-template-columns:1fr}}

.crm-personal-account{padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid #ddd}.crm-personal-account form{max-width:480px;margin-top:20px}.crm-staff-actions{display:flex;gap:8px;flex-wrap:wrap}.crm-staff-actions button{white-space:nowrap}.crm-personal-account dd{overflow-wrap:anywhere}

.crm-dash-meta{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;color:#65737c;font-size:12px;margin-bottom:20px}.crm-dash-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0 0 28px;border-top:1px solid #dce2e4;border-bottom:1px solid #dce2e4}.crm-dash-metric{padding:20px 18px;border-bottom:1px solid #e5e9ea;min-width:0}.crm-dash-metric>span{display:block;color:#52636a;font-size:13px}.crm-dash-metric strong{display:block;font-size:36px;line-height:1.25;color:#202c31;margin:8px 0;font-variant-numeric:tabular-nums}.crm-dash-metric small{color:#7c888e;font-size:11px;line-height:1.5}.crm-dash-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:34px;row-gap:24px}.crm-dash-section{min-width:0;border-top:1px solid #dce2e4;padding-top:17px}.crm-dash-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.crm-dash-section-head h2{font-size:17px;line-height:1.4;margin:0}.crm-dash-section-head>span,.crm-dash-section-head>a{font-size:12px;color:#697980}.crm-dash-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #e5e9ea}.crm-dash-row>div{min-width:0}.crm-dash-row b{font-size:13px;line-height:1.5}.crm-dash-row small{display:block;font-size:12px;color:#75848b;line-height:1.6;overflow-wrap:anywhere;margin-top:4px}.crm-dash-row button{flex-shrink:0}.crm-dash-empty{color:#75848b;font-size:13px;line-height:1.7;margin:20px 0}.crm-dash-bar{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:13px;margin:15px 0}.crm-dash-bar>div{grid-column:1/-1;height:4px;background:#e5e9ea;border-radius:2px}.crm-dash-bar i{display:block;height:100%;background:#f58b32;border-radius:2px}.crm-dash-wide{grid-column:1/-1}.crm-dash-connection{font-size:12px;line-height:1.7;color:#7c888e;margin:26px 0 0}
@media(max-width:720px){.crm-dash-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-dash-metric{padding:16px 8px}.crm-dash-metric strong{font-size:30px}.crm-dash-grid{grid-template-columns:minmax(0,1fr);gap:22px}.crm-dash-meta{font-size:12px;line-height:1.5}.crm-dash-section-head h2{font-size:17px}.crm-dash-row{gap:10px}.crm-dash-row button{min-height:44px}.crm-dash-wide{grid-column:auto}}
/* Account settings: compact profile, open permission rows and one page title. */
.account-profile{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:4px 0 20px}.account-kicker{font-size:11px;color:#7b878d}.account-profile h2{font-size:20px;margin:7px 0}.account-profile p{margin:6px 0;overflow-wrap:anywhere}.account-profile small{color:#75848b;font-size:12px}.account-security{display:grid;gap:9px;justify-items:end}.account-list-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 18px}.account-list-heading h2{font-size:20px;margin:0 0 6px}.account-list-heading p{font-size:13px;color:#75848b;margin:0}.account-admins{margin-top:24px}.account-edit-basics{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:880px;margin:22px 0}.account-edit-basics input{font-size:14px}.account-edit-basics input[readonly]{background:#eef1f2;color:#697980}.permission-intro h2{font-size:19px;margin-bottom:8px}.permission-intro p,.permission-scope p{font-size:12px;line-height:1.7;color:#718087;max-width:900px}.permission-bulk{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.permission-group{border-top:1px solid #dce2e4!important;margin:0!important;padding:0!important}.permission-group>summary{font-size:14px;font-weight:600;padding:18px 0;cursor:pointer}.permission-row{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:center;gap:20px;padding:16px 0;border-top:1px solid #e7ebed}.permission-module b{font-size:13px}.permission-module small{display:block;color:#88939a;font-size:11px;margin-top:5px}.permission-options{display:flex;flex-wrap:wrap;gap:14px 22px}.permission-options label,.permission-scope label{display:flex;gap:7px;align-items:center;margin:0!important;font-size:12px!important;line-height:1.5}.permission-options input,.permission-scope input{margin:0!important;accent-color:#e67f2c}.permission-scope{padding:18px 0;border-top:1px solid #dce2e4}.permission-scope h3{font-size:14px}.account-save-bar{position:sticky;bottom:0;z-index:12;background:#f5f6f6eb;backdrop-filter:blur(16px);border-top:1px solid #dce2e4;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0}.account-save-bar span{font-size:12px;color:#7c888e}#crm-account-security{margin:22px 0}#crm-staff-delete{color:#a04332}
@media(max-width:720px){.account-profile{display:block}.account-security{justify-items:start;margin-top:18px}.account-list-heading{align-items:flex-start;gap:12px}.account-edit-basics{grid-template-columns:minmax(0,1fr);gap:14px}.account-edit-basics input{font-size:16px}.permission-row{grid-template-columns:minmax(0,1fr);gap:14px;padding:17px 0}.permission-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.permission-options label{min-height:36px;font-size:13px!important}.permission-options input{min-height:20px;min-width:20px}.account-save-bar{padding-bottom:max(14px,env(safe-area-inset-bottom))}.account-profile h2{font-size:21px}}

/* Compact search stays visible; secondary filters share one disclosure. */
.team-crm .crm-filter-details{flex:0 0 100%;width:100%;margin:0;padding:0;border:0}
.crm-filter-details>summary{font-size:13px;font-weight:500;padding:10px 0;min-height:44px;box-sizing:border-box}
.crm-filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 0 10px}
.crm-filter-fields select{width:100%;min-width:0}
@media(max-width:720px){
 .crm-team-toolbar{gap:10px;margin:12px 0}.crm-team-toolbar>input[type=search]{flex:1 1 180px;width:auto;min-width:0!important}
 .crm-team-toolbar>#crm-add{flex:0 0 auto;width:auto;padding:10px 14px}
 .crm-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .team-crm #crm-save-result{display:block;margin:10px 0 0;line-height:1.5;overflow-wrap:anywhere}
 .crm-contact-links a{display:inline-flex;align-items:center;min-height:44px}
}
.crm-stock-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}.crm-stock-photo{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px}.crm-stock-editor h2{margin:0 0 12px;line-height:1.3;font-size:24px;overflow-wrap:anywhere}.crm-stock-editor form{margin-top:24px}.crm-stock-history{margin-top:24px}.crm-stock-history p{font-size:13px;line-height:1.6}.crm-pagination{display:flex;align-items:center;gap:14px;margin-top:20px}@media(max-width:700px){.crm-stock-editor{grid-template-columns:minmax(0,1fr);gap:18px}.crm-stock-photo{max-height:250px}.crm-stock-editor h2{font-size:21px}.crm-pagination{flex-wrap:wrap}}
@media(max-width:700px){.crm-stock-table table,.crm-stock-table tbody{display:block;width:100%}.crm-stock-table thead{display:none}.crm-stock-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:14px 0;border-bottom:1px solid #263b3a22}.crm-stock-table td{display:block;min-width:0!important;padding:0!important;border:0!important;overflow-wrap:anywhere}.crm-stock-table td:first-child{grid-column:1/-1}.crm-stock-table td:nth-child(4){color:#64736d;font-size:11px}.crm-stock-table td:last-child{grid-column:2;grid-row:3/5;align-self:end}.crm-stock-table td button{min-height:44px}}
.team-crm>a.primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;text-decoration:none}
.crm-stock-editor.crm-stock-no-photo{grid-template-columns:minmax(0,1fr)}

/* Customer records: clear summary cards and a two-column working area. */
.crm-customer-list{display:grid;gap:14px;margin:20px 0}.crm-customer-card{padding:22px 24px;background:#fff;border:1px solid #e1e6e8;border-radius:14px}.crm-customer-card-head{display:flex;align-items:center;gap:18px}.crm-customer-card-head>div{flex:1;min-width:0}.crm-customer-card h3{font-size:17px;font-weight:600;margin:0;overflow-wrap:anywhere}.crm-customer-card p{font-size:13px;color:#76838a;margin:8px 0}.crm-customer-card-body{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #edf0f1;padding:8px 0 12px}.crm-customer-card-foot{display:flex;justify-content:space-between;gap:16px;font-size:11px;color:#879199;padding-top:12px}.crm-customer-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px 36px;margin:24px 0 32px;padding:28px;background:#fff;border:1px solid #e1e6e8;border-radius:16px}.crm-customer-workspace>#crm-edit{display:contents}.crm-customer-identity{grid-column:1;grid-row:1/4}.crm-customer-follow{grid-column:2;grid-row:1}.crm-customer-contact{grid-column:2;grid-row:2;margin:0!important;padding-top:18px!important}.crm-customer-save{grid-column:2;grid-row:3;display:flex;gap:16px;align-items:center;justify-content:flex-end;border-top:1px solid #e3e8ea;padding-top:18px}.crm-customer-workspace h3{font-size:14px;margin:0 0 20px}.crm-customer-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}.crm-customer-fields label{margin:0!important;font-size:12px}.crm-customer-wide{grid-column:1/-1}.crm-customer-follow .crm-customer-fields>label:last-child{grid-column:1/-1}.crm-customer-workspace input,.crm-customer-workspace select{min-height:42px}.crm-customer-workspace textarea{min-height:110px}.crm-customer-workspace .crm-contact-links{justify-content:flex-end;flex-wrap:wrap;gap:15px}.crm-customer-workspace .crm-timeline{padding:12px 0}.crm-customer-workspace .crm-timeline time{font-size:11px}.crm-customer-workspace .crm-timeline p{font-size:12px}.crm-contact-history{margin-bottom:0!important}
@media(max-width:850px){.crm-customer-workspace{grid-template-columns:minmax(0,1fr);padding:20px;gap:26px}.crm-customer-identity,.crm-customer-follow,.crm-customer-contact,.crm-customer-save{grid-column:1;grid-row:auto}.crm-customer-card-head{flex-wrap:wrap;gap:12px}.crm-customer-card-head>div{flex-basis:65%}.crm-customer-card-body,.crm-customer-card-foot{flex-direction:column;gap:6px}.crm-customer-card{padding:18px}.crm-customer-save{flex-wrap:wrap}}
@media(max-width:440px){.crm-customer-fields{grid-template-columns:minmax(0,1fr)}.crm-customer-fields>label{grid-column:1}}

.crm-list-state{font-size:12px;color:#7b878e;min-height:20px;margin:8px 0 12px}.crm-filter-shortcuts button{min-height:40px;cursor:pointer}.crm-filter-shortcuts button[aria-pressed=true]{background:#fff1e4;border-color:#f58b32;color:#a55217}

.crm-edit-contact{float:right;padding:3px 8px;font-size:11px;background:transparent;border:0;color:#bd6a2b}.crm-activity-editor{margin-top:12px;padding:16px;background:#f7f8f9;border-radius:10px}.crm-activity-editor>div{display:flex;gap:10px;margin-top:12px}.crm-activity-editor textarea{min-height:100px}

.crm-customer-fields>label,.crm-customer-fields .crm-interest-field>label{display:grid!important;grid-template-columns:108px minmax(0,1fr);align-items:center;column-gap:12px;row-gap:8px;line-height:1.5}.crm-customer-fields label>input,.crm-customer-fields label>select,.crm-customer-fields label>textarea{margin-top:0!important}.crm-customer-fields label:has(textarea){align-items:start}.crm-customer-fields label>textarea{grid-column:2}.crm-customer-fields .crm-interest-field{grid-column:1/-1}.crm-customer-fields .crm-interest-field details{margin:0 0 18px;padding:0;border:0}.crm-customer-fields .crm-interest-field details>input{width:100%;margin:10px 0 0}.crm-customer-fields .crm-interest-field details summary{color:#aa632d}.crm-customer-assignment{padding:18px 24px;margin:20px 0;background:#fff;border:1px solid #e1e6e8;border-left:3px solid #f58b32;border-radius:10px}.crm-customer-assignment h3{margin:0 0 14px;font-size:14px}.crm-customer-assignment #crm-assign{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;gap:16px;align-items:end}.crm-customer-assignment #crm-assign>label{margin:0;font-size:12px}.crm-customer-assignment #crm-assign button{min-height:42px}.crm-customer-assignment>p{margin:12px 0 0;font-size:11px;color:#7d8990;line-height:1.6}
@media(max-width:1050px){.crm-customer-fields{grid-template-columns:minmax(0,1fr)}.crm-customer-fields>label{grid-column:1}.crm-customer-assignment #crm-assign{grid-template-columns:minmax(0,1fr)}}
@media(max-width:440px){.crm-customer-fields>label,.crm-customer-fields .crm-interest-field>label{grid-template-columns:88px minmax(0,1fr);column-gap:8px}.crm-customer-assignment{padding:16px}}

.crm-dash-group-title{font-size:14px;font-weight:600;margin:28px 0 14px}.crm-dash-metrics{gap:14px!important;border:0!important}.crm-dash-metrics button.crm-dash-metric{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:8px;min-height:158px;padding:20px!important;border:1px solid #e1e6e8!important;border-radius:12px;background:#fff;color:#25323a;transition:border-color .2s,box-shadow .2s}.crm-dash-metrics button.crm-dash-metric:hover{border-color:#f58b32!important;box-shadow:0 6px 20px #26343e09}.crm-dash-priority button.crm-dash-metric{border-top:3px solid #f58b32!important}.crm-dash-metrics button.crm-dash-metric em{position:absolute;right:15px;bottom:15px;font-size:10px;font-style:normal;color:#b66b2f}.crm-dash-metrics button.crm-dash-metric small{padding-right:52px;line-height:1.5}.crm-dash-metrics button.crm-dash-metric:focus-visible{outline:2px solid #f58b32;outline-offset:3px}.crm-dash-metrics button.crm-dash-metric:disabled{cursor:default}

.crm-customer-card-foot .crm-card-assignment{width:100%;flex-wrap:wrap}.crm-card-assignment select{flex:1;max-width:none}}
.crm-finance-scope{max-width:900px;font-size:13px;line-height:1.7;color:#667787}.crm-finance-stages{display:flex;flex-wrap:wrap;gap:8px;padding:16px 0 24px}.crm-finance-stages button{padding:10px 14px;border:1px solid #d6dfe4;border-radius:10px;background:#fff;color:#576979}.crm-finance-stages button[aria-pressed="true"]{border-color:#ff8b30;background:#fff3e8;color:#a84e0a}.crm-finance-stages b{margin-left:8px;font-variant-numeric:tabular-nums}.crm-finance-list{display:grid;gap:14px}.crm-finance-application{border-bottom:1px solid #dce3e7;background:#fff;padding:22px 24px;border-radius:12px}.crm-finance-application header,.crm-finance-application footer{display:flex;align-items:center;justify-content:space-between;gap:18px}.crm-finance-application h3{margin:0 0 8px;font-size:17px}.crm-finance-application p{font-size:12px;color:#718391}.crm-finance-plan{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:20px 0}.crm-finance-plan span{font-size:11px;color:#718391}.crm-finance-plan strong{display:block;margin-top:8px;font-size:17px;font-weight:500;color:#233b4b}.crm-finance-application footer{border-top:1px solid #edf0f2;padding-top:15px;font-size:11px;color:#718391}.crm-finance-application footer button{min-height:38px;padding:8px 16px;background:#ff8b30;color:#24201b;border:0;border-radius:9px}@media(max-width:600px){.crm-finance-application{padding:18px 16px}.crm-finance-plan{gap:10px}.crm-finance-plan strong{font-size:14px}.crm-finance-application footer{align-items:flex-start;flex-direction:column}.crm-finance-stages button{font-size:12px;padding:9px 11px}}