:root{--accent:#00a6c9;--nav:#062d47;--nav2:#0a4160;--bg:#f3f7fa}body{font-family:"Tahoma","Arial",sans-serif}.side .brand{flex-direction:column;align-items:flex-start}.motawar-logo{width:144px;height:83px;object-fit:contain;background:#fff;border-radius:12px;padding:6px}.side .brand div{padding:4px 0}.brand small{color:#bcdae5}.nav button{font-size:13px}.nav button.active{border-right:3px solid var(--accent)}.filterbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;gap:12px;background:#fff;border:1px solid var(--border);padding:16px;border-radius:14px;margin-bottom:20px;align-items:end}.filterbar .field{gap:5px}.filterbar label{font-size:11px}.filter-shortcuts{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:7px}.filter-shortcuts span{font-size:11px;color:var(--muted);margin-right:auto}.dashboard-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat{min-width:0;border-top:3px solid #04add0}.stat strong{font-size:25px;overflow-wrap:anywhere}.stat small{display:block;font-size:11px;color:var(--muted);margin-top:10px}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.analysis{padding:22px;margin-bottom:18px}.analysis h3{margin:0 0 18px;font-size:17px}.bar-row{display:grid;grid-template-columns:105px 1fr 28px;gap:10px;align-items:center;margin:18px 0;font-size:12px}.bar-track{height:9px;background:#edf3f7;border-radius:20px;overflow:hidden;min-width:30px}.bar-track i{display:block;height:100%;background:linear-gradient(90deg,#0b6b97,#00b7d1);border-radius:20px}.trendrow{display:grid;grid-template-columns:82px 1fr 100px;gap:10px;align-items:center;margin:18px 0;font-size:11px}.insight{padding:13px;background:#edf9fc;border-right:3px solid var(--accent);border-radius:8px;font-size:13px;line-height:1.8}.smalltable{min-width:660px}.smalltable td,.smalltable th{padding:14px 12px}.cellmeta{display:block;color:var(--muted);font-size:11px;line-height:1.8;margin-top:6px}.textbutton{background:none;border:0;color:var(--nav2);font-weight:700;text-align:right;cursor:pointer;padding:0;font-size:13px}.due-label{color:#b55213;background:#fff3e8;padding:4px 7px;border-radius:6px;font-size:12px}.danger-text{color:#ad3240}.compact{width:auto;max-width:230px}.pill{text-decoration:none;display:inline-block;font-size:11px;line-height:1.5}.actions{flex-wrap:wrap;max-width:360px;gap:5px}.table{min-width:1260px}.table td{vertical-align:top;padding:16px 12px}.modal.wide{max-width:1120px;width:min(1120px,96vw)}.modalbody{max-height:76vh;overflow-y:auto}.modalfoot.wrap{flex-wrap:wrap;gap:8px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.quote-editor{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(300px,1.2fr);gap:24px}.service-card{text-align:right;width:100%;font:inherit;background:#fff;cursor:pointer}.service-card p{font-size:12px;color:var(--muted);font-weight:400}.service-card.on{border-color:var(--accent);background:#effafe}.manual-composer{border:1px dashed #78aabc;background:#f5fafc;padding:16px;border-radius:12px;margin-top:20px}.manual-composer .field,.editable-service .field{margin-bottom:10px}.preview{padding:12px 16px;border:1px solid #bde3ed;background:#ecf9fc;border-radius:10px;color:#064663;font-size:13px;font-weight:700}.signature-consent{background:#eff8f3;border:1px solid #c0ddc9;border-radius:12px;padding:16px;font-size:13px}.signature-consent p{font-size:12px;color:#376148;line-height:1.8}.checkline{display:flex;gap:9px;align-items:flex-start;line-height:1.9;margin:14px 0;font-size:12px}.checkline input{margin-top:6px;accent-color:var(--accent)}.inlinefield{display:flex;gap:8px;margin-top:7px}.quote-card{overflow-wrap:anywhere}.quote-card .big{display:block;font-size:25px;margin:17px 0}.quote-status-control{width:100%;margin-top:10px}.timeline article{padding:12px 16px;border-right:2px solid #9bcbd9;margin:0 6px 0 0;position:relative}.timeline article:before{content:"";width:9px;height:9px;border-radius:50%;background:var(--accent);position:absolute;right:-6px;top:21px}.timeline strong,.timeline small{display:block;line-height:1.9}.timeline small{color:var(--muted);font-size:11px}.timeline p{font-size:12px}.contract-terms{white-space:pre-wrap;line-height:1.9}.login .brandmark{width:110px;height:66px;background:transparent;font-size:0;border-radius:10px;overflow:hidden}.login .brandmark:before{content:"";background:#fff url("assets/motawar-logo.png") center/contain no-repeat;width:110px;height:66px}.loginbox{max-width:440px}.btn:disabled{opacity:.6;cursor:wait}
@media(max-width:1100px){.filterbar{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.layout{grid-template-columns:205px 1fr}.content{padding:20px}}
@media(max-width:760px){.layout{display:block}.side{position:relative;height:auto;padding:14px}.side .brand{flex-direction:row;align-items:center}.side .motawar-logo{width:95px;height:57px}.side .nav{display:flex;overflow-x:auto;gap:6px;padding:6px 0}.nav button{white-space:nowrap;min-width:max-content}.nav b{margin-right:10px;float:none}.side .user{display:flex;align-items:center;gap:8px;border:0;padding:6px 0}.side .user br{display:none}.side .user button{margin:0!important;margin-right:auto!important}.top{padding:12px;height:auto}.content{padding:14px}.heading h1{font-size:24px}.filterbar{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:10px}.filter-shortcuts span{width:100%;margin-top:6px}.dashboard-grid{grid-template-columns:1fr}.dashboard-stats{gap:9px}.stat{padding:14px}.stat strong{font-size:21px}.quote-editor{grid-template-columns:1fr}.grid3{gap:7px}.grid3 label{font-size:10px}.analysis{padding:16px}.modalbody{padding:16px}.modalfoot{flex-wrap:wrap}.motawar-logo{width:100px;height:60px}}
.leadtable td:last-child,.leadtable th:last-child{position:sticky;left:0;background:#fff;min-width:230px;max-width:250px;z-index:1;border-right:1px solid var(--border)}.leadtable th:last-child{background:#deedf1}.leadtable td:first-child,.leadtable th:first-child{position:sticky;right:0;background:#fff;min-width:150px;z-index:1}.leadtable th:first-child{background:#deedf1}
.side .motawar-logo{width:88px;height:88px;padding:0;background:transparent;border-radius:18px;flex-shrink:0}
@media(max-width:760px){.side .motawar-logo{width:56px;height:56px;border-radius:12px}}
/* Role permissions and employee accounts */
.access-toolbar{display:flex;align-items:end;gap:24px;margin-bottom:24px}.access-toolbar .field{min-width:240px}.access-toolbar p{line-height:1.8;max-width:620px}.permission-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0 24px}.permission-groups fieldset{border:1px solid var(--border);border-radius:12px;padding:16px;min-width:0}.permission-groups legend{font-weight:700;color:var(--nav2);padding:0 8px}.permission-check{display:flex;align-items:flex-start;gap:10px;line-height:1.8;padding:8px 0;font-size:13px;cursor:pointer}.permission-check input{margin-top:5px;accent-color:var(--accent);width:17px;height:17px;flex-shrink:0}.permission-check:has(input:disabled){cursor:default;opacity:.65}.account-notice{padding:16px;background:#edf9fc;border:1px solid #bde3ed;border-radius:10px;line-height:1.9;margin-bottom:20px;overflow-wrap:anywhere}.account-notice .pill{margin:0 8px}.team-table{min-width:1050px}.team-table .actions{min-width:175px}.password-field{display:flex;gap:8px;align-items:center}.password-field .input{min-width:0;flex:1}.password-field .pill{flex-shrink:0}.credential-grid{display:grid;grid-template-columns:140px minmax(0,1fr);gap:16px;padding:20px 0;align-items:center}.credential-grid>span{color:var(--muted);font-size:12px}.credential-grid strong,.credential-grid code{overflow-wrap:anywhere;text-align:right}.credential-grid code{background:#f0f5f7;padding:10px;border-radius:8px;user-select:all}.welcome-preview{margin-top:20px;line-height:1.9}.welcome-preview summary{cursor:pointer;color:var(--nav2);font-weight:700}.welcome-preview p{padding:16px;background:#f4f8fa;border-radius:10px}.mail-settings{max-width:1000px}.mail-settings .grid2{gap:24px}.mail-settings small{line-height:1.8}.password-change .motawar-logo{width:64px;height:64px;padding:0;border-radius:14px}.password-change .brand{align-items:center}.password-change .field{margin:16px 0}.password-change>.btn{width:100%;margin:8px 0}.password-change p{line-height:1.9}.checkline.full{flex-wrap:wrap}.btn:disabled{cursor:default}
@media(max-width:760px){.access-toolbar{display:block}.access-toolbar .field{min-width:0}.permission-groups{grid-template-columns:1fr;gap:14px}.credential-grid{grid-template-columns:1fr;gap:8px}.credential-grid>span:not(:first-child){margin-top:10px}.credential-grid strong,.credential-grid code{text-align:start}.mail-settings .grid2{grid-template-columns:1fr;gap:18px}.heading{flex-wrap:wrap;gap:12px}.heading>.btn{font-size:12px}}

/* Employee permissions and sign-in */
.employee-permissions{border-top:1px solid var(--border);padding-top:20px;margin-top:20px}.employee-permissions h4{margin:0 0 16px;color:var(--nav2)}.employee-permissions .muted{line-height:1.9}.employee-permission-details summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--nav2);padding:8px 0}.employee-permissions .permission-groups{margin:16px 0 0;gap:12px}.employee-permissions .permission-check{font-size:12px}.loginbox .brand{align-items:center;margin-bottom:24px}.loginbox .motawar-logo{width:64px;height:64px;padding:0;border-radius:14px}.loginbox .brand small{color:var(--muted)}.login-help{line-height:1.9;margin:16px 0}.loginbox #loginSubmit{width:100%}.first-setup{border-top:1px solid var(--border);padding-top:18px;margin-top:24px}.first-setup summary{cursor:pointer;margin-bottom:16px}.first-setup .field{margin:12px 0}

.password-language{color:#9b591e;line-height:1.8;margin:0}.password-language[hidden]{display:none}

.login .loginbox{width:min(440px,100%);min-width:0}
/* Customer deletion and undo */
.lead-delete-backdrop{background:rgba(6,35,50,.42);backdrop-filter:blur(5px)}.lead-delete-dialog{width:min(470px,100%);max-height:calc(100dvh - 36px);border-radius:22px;box-shadow:0 26px 85px rgba(4,36,55,.24);animation:delete-dialog-in .18s ease-out}.lead-delete-dialog .modalhead{border:0;padding:18px 22px 0}.delete-section{font-size:11px;color:var(--muted);font-weight:700}.lead-delete-dialog .modalbody{padding:16px 26px 20px;max-height:none;text-align:center}.delete-symbol{width:64px;height:64px;border-radius:20px;background:#e9f8fc;color:#047797;display:grid;place-items:center;margin:0 auto 18px}.delete-symbol svg{width:31px;height:31px}.lead-delete-dialog h3{font-size:21px;margin:0 0 10px;color:var(--nav2);line-height:1.6}.delete-description{font-size:12px;line-height:1.9;color:var(--muted);margin:0 0 20px}.delete-target{background:#f3f7fa;border:1px solid #e3edf2;border-radius:14px;padding:16px;display:flex;gap:12px;align-items:center;text-align:right;min-width:0}.delete-avatar{width:42px;height:42px;border-radius:13px;background:#dceef4;color:var(--nav2);display:grid;place-items:center;flex-shrink:0;font-size:20px;font-weight:700}.delete-target>div{min-width:0}.delete-target strong{display:block;font-size:15px;line-height:1.7;overflow-wrap:anywhere}.delete-target small{display:block;font-size:10px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere;text-align:start}.delete-effect{font-size:12px;color:var(--muted);line-height:1.9;margin:18px 0 0}.lead-delete-dialog .modalfoot{padding:18px 26px 22px;gap:12px;border-color:#edf2f5;display:grid;grid-template-columns:1fr 1fr}.lead-delete-dialog .modalfoot .btn{width:100%;min-height:44px;font-size:12px}.lead-delete-dialog.permanent .delete-symbol{background:#fff0f0;color:#bd4051}.delete-consent{padding:14px;background:#fff5f5;border:1px solid #f1d3d7;border-radius:12px;text-align:right;color:#8a3945;margin-bottom:0}.lead-delete-dialog .error{margin:14px 0 0;text-align:right}.lead-delete-dialog [hidden],.lead-undo-notice [hidden]{display:none}.lead-undo-notice{position:fixed;left:22px;bottom:22px;z-index:900;max-width:min(570px,calc(100vw - 32px));background:#083d50;color:#fff;border:1px solid #1b5c71;border-radius:16px;box-shadow:0 16px 48px rgba(4,35,49,.23);padding:16px;display:flex;gap:12px;align-items:center;animation:delete-dialog-in .18s ease-out}.undo-mark{width:30px;height:30px;border-radius:50%;background:#126176;color:#b9f3ed;display:grid;place-items:center;flex-shrink:0}.lead-undo-notice>div{min-width:0;flex:1}.lead-undo-notice strong{font-size:12px;display:block}.lead-undo-notice small{font-size:11px;color:#c4dfe8;display:block;margin-top:5px;overflow-wrap:anywhere}.undo-button{border:1px solid #57b5c9;background:#0d566d;color:#fff;border-radius:9px;padding:9px 13px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;min-height:40px}.undo-button:disabled{opacity:.65;cursor:default}.undo-close{border:0;background:transparent;color:#bad7e1;font-size:22px;padding:4px;cursor:pointer}.undo-error{font-size:11px;color:#ffd6d6;line-height:1.7;margin:7px 0 0}@keyframes delete-dialog-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}@media(max-width:600px){.lead-delete-dialog .modalbody{padding:16px 20px 20px}.lead-delete-dialog .modalfoot{padding:16px 20px 20px}.lead-delete-dialog h3{font-size:19px}.lead-undo-notice{left:16px;right:16px;bottom:16px;padding:13px;gap:9px}}@media(prefers-reduced-motion:reduce){.lead-delete-dialog,.lead-undo-notice{animation:none}}

/* The profile invitation is the only AI UI loaded with the CRM. */
.rayhana-card{display:flex;align-items:center;gap:20px;padding:20px 24px;margin-bottom:24px;border:1px solid #cce8ec;border-radius:18px;background:linear-gradient(115deg,#e5f7f5,#f1f9fc);position:relative;overflow:hidden}.rayhana-card:before{content:"";position:absolute;right:0;top:18px;bottom:18px;width:4px;border-radius:5px;background:#00a8b1}.rayhana-card img{width:105px;height:110px;object-fit:contain;flex-shrink:0}.rayhana-card>div{flex:1;min-width:0}.rayhana-card small{color:#467786;font-size:11px}.rayhana-card h3{font-size:23px;margin:6px 0!important;color:#083e52}.rayhana-card p{font-size:13px;line-height:1.8;margin:0 0 8px;color:#285668}.rayhana-card span{font-size:10px;color:#63818c}.rayhana-card .btn{white-space:nowrap;min-height:42px}.rayhana-card .btn span{color:#fff;font-size:16px;margin-right:10px}@media(max-width:600px){.rayhana-card{padding:18px 16px;gap:12px;flex-wrap:wrap}.rayhana-card img{width:75px;height:83px}.rayhana-card h3{font-size:21px}.rayhana-card .btn{width:100%}}

/* Client profile has one content scroller and always-visible actions. */
body:has(> .crm-client-profile-back){overflow:hidden}
.crm-client-profile-back{overflow:hidden;overscroll-behavior:none}
.crm-client-profile-back>.modal{display:flex;flex-direction:column;height:min(92dvh,calc(var(--crm-viewport-height,100dvh) - 36px - var(--crm-connection-space,0px)));max-height:calc(var(--crm-viewport-height,100dvh) - 36px - var(--crm-connection-space,0px));min-height:0;overflow:hidden}
.crm-client-profile-back>.modal>.modalhead,.crm-client-profile-back>.modal>.modalfoot{flex:0 0 auto;background:var(--surface,var(--card,#fff));position:relative;z-index:1}
.crm-client-profile-back>.modal>.modalhead{min-width:0;align-items:center}
.crm-client-profile-back>.modal>.modalhead h3{min-width:0;margin:0;overflow-wrap:anywhere;line-height:1.5}
.crm-client-profile-back>.modal>.modalhead .close{flex-shrink:0}
.crm-client-profile-back>.modal>.modalbody{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;scroll-padding-block:16px}
.crm-client-profile-back>.modal>.modalfoot{justify-content:flex-start;gap:8px;padding:12px 18px;box-shadow:0 -6px 18px #0001}
.crm-client-profile-back>.modal>.modalfoot>.btn{flex:0 1 auto;min-height:44px;font-size:12px;white-space:nowrap}
@media(max-width:700px){.crm-client-profile-back{padding:10px}.crm-client-profile-back>.modal{height:calc(var(--crm-viewport-height,100dvh) - 20px - var(--crm-connection-space,0px));max-height:calc(var(--crm-viewport-height,100dvh) - 20px - var(--crm-connection-space,0px))}.crm-client-profile-back>.modal>.modalfoot{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:10px 12px max(10px,env(safe-area-inset-bottom));scroll-padding-inline:12px}.crm-client-profile-back>.modal>.modalfoot>.btn{flex:0 0 auto}.crm-client-profile-back>.modal>.modalhead{padding:12px 14px}.crm-client-profile-back>.modal>.modalhead h3{font-size:16px}}

/* Client profile has one content scroller and always-visible actions. */
body:has(> .crm-quote-editor-back){overflow:hidden}
.crm-quote-editor-back{overflow:hidden;overscroll-behavior:none}
.crm-quote-editor-back>.modal{display:flex;flex-direction:column;height:min(92dvh,calc(var(--crm-viewport-height,100dvh) - 36px - var(--crm-connection-space,0px)));max-height:calc(var(--crm-viewport-height,100dvh) - 36px - var(--crm-connection-space,0px));min-height:0;overflow:hidden}
.crm-quote-editor-back>.modal>.modalhead,.crm-quote-editor-back>.modal>.modalfoot{flex:0 0 auto;background:var(--surface,var(--card,#fff));position:relative;z-index:1}
.crm-quote-editor-back>.modal>.modalhead{min-width:0;align-items:center}
.crm-quote-editor-back>.modal>.modalhead h3{min-width:0;margin:0;overflow-wrap:anywhere;line-height:1.5}
.crm-quote-editor-back>.modal>.modalhead .close{flex-shrink:0}
.crm-quote-editor-back>.modal>.modalbody{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;scroll-padding-block:16px}
.crm-quote-editor-back>.modal>.modalfoot{justify-content:flex-start;gap:8px;padding:12px 18px;box-shadow:0 -6px 18px #0001}
.crm-quote-editor-back>.modal>.modalfoot>.btn{flex:0 1 auto;min-height:44px;font-size:12px;white-space:nowrap}
@media(max-width:700px){.crm-quote-editor-back{padding:10px}.crm-quote-editor-back>.modal{height:calc(var(--crm-viewport-height,100dvh) - 20px - var(--crm-connection-space,0px));max-height:calc(var(--crm-viewport-height,100dvh) - 20px - var(--crm-connection-space,0px))}.crm-quote-editor-back>.modal>.modalfoot{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:10px 12px max(10px,env(safe-area-inset-bottom));scroll-padding-inline:12px}.crm-quote-editor-back>.modal>.modalfoot>.btn{flex:0 0 auto}.crm-quote-editor-back>.modal>.modalhead{padding:12px 14px}.crm-quote-editor-back>.modal>.modalhead h3{font-size:16px}}

.crm-quote-editor-back>.modal>.modalfoot{flex-wrap:wrap;overflow:visible}.dm-service-feedback{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 12px;min-height:22px}.service-card.dm-rate-pending small{color:var(--accent);text-decoration:underline;text-underline-offset:3px}

/* Client profile: separate communication from money without changing their data. */
.crm-client-profile-back .modalbody>.grid2{gap:12px;margin-block:18px 26px}
.crm-client-profile-back .modalbody>.grid2>.quote-card{margin:0;padding:16px 18px}
.crm-client-profile-back .modalbody>.grid2 .cellmeta{font-size:15px;line-height:1.6;color:var(--text);margin-top:5px;overflow-wrap:anywhere}
.crm-client-profile-back .modalbody>.grid2 .cpf-next-tile{background:var(--accent-soft);border-color:var(--accent-border);border-inline-start:4px solid var(--accent)}
.crm-client-profile-back .modalbody>h3{display:flex;align-items:center;gap:10px;margin:30px 0 14px;padding-top:22px;border-top:1px solid var(--border);font-size:19px;line-height:1.5}
.crm-client-profile-back .modalbody>.cpf-payments-title{color:var(--success)}
.crm-client-profile-back .cpf-followups{--cpf-bg:#f6f0e4;--cpf-card:#fffdfa;--cpf-border:#c4aa83;background:var(--cpf-bg);border:1px solid var(--cpf-border);border-inline-start:5px solid #ac8751;border-radius:18px;padding:22px;margin-block:28px;box-shadow:0 3px 14px #38233307}
.crm-client-profile-back .cpf-followups-head{display:flex;align-items:center;gap:13px;margin-bottom:18px}
.crm-client-profile-back .cpf-followups-head h3{margin:0;display:flex;align-items:center;gap:10px;font-size:21px;color:var(--text)}
.crm-client-profile-back .cpf-followups-head p{margin:4px 0 0;font-size:13px;color:var(--muted)}
.crm-client-profile-back .cpf-followups-icon{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:12px;background:#e6d7bd;color:#631d35}
.crm-client-profile-back .cpf-followups-icon svg{width:25px;height:25px}
.crm-client-profile-back .cpf-count{font-size:13px;min-width:28px;min-height:26px;padding:2px 8px;background:#e8ddca;color:#513128;border-radius:8px;display:inline-grid;place-items:center}
.crm-client-profile-back .cpf-next{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 18px;border-radius:12px;background:#eaddc2;color:#463122;margin-bottom:18px}
.crm-client-profile-back .cpf-next>div{display:grid;gap:7px}
.crm-client-profile-back .cpf-next>div>span{font-size:13px;color:#5d4736}
.crm-client-profile-back .cpf-next strong{font-size:21px;line-height:1.3;letter-spacing:.2px;text-align:start}
.crm-client-profile-back .cpf-status{font-size:12px;font-weight:700;line-height:1.5;padding:7px 11px;border-radius:8px;background:#fff8ec;color:#5b4430;border:1px solid #c5ae86}
.crm-client-profile-back .cpf-next-overdue .cpf-status{background:#ffe1ba;color:#73370d;border-color:#c4945c}
.crm-client-profile-back .cpf-next-today .cpf-status{background:#d5ebe0;color:#214c39;border-color:#88b29b}
.crm-client-profile-back .cpf-followup-list{display:grid;gap:12px}
.crm-client-profile-back .cpf-followup-entry{background:var(--cpf-card);border:1px solid var(--cpf-border);border-radius:12px;padding:18px 20px;border-inline-start:3px solid #b89157;min-width:0}
.crm-client-profile-back .cpf-followup-entry>header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.crm-client-profile-back .cpf-followup-entry time{font-size:15px;line-height:1.5;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums}
.crm-client-profile-back .cpf-latest-label{color:var(--muted);font-size:12px;padding:4px 8px;background:var(--soft);border-radius:7px}
.crm-client-profile-back .cpf-followup-entry>p{font-size:16px;line-height:1.9;font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:var(--text)}
.crm-client-profile-back .cpf-empty{color:var(--muted);font-size:14px;line-height:1.7;margin:0;padding:16px 4px}
html[data-theme="dark"] .crm-client-profile-back .cpf-followups{--cpf-bg:#3d2933;--cpf-card:#30222a;--cpf-border:#8c705b}
html[data-theme="dark"] .crm-client-profile-back .cpf-followups-icon{background:#eadfc6;color:#631d35}
html[data-theme="dark"] .crm-client-profile-back .cpf-count{background:#5a414a;color:#f5e8cb}
.crm-client-profile-back .timeline article{padding-block:14px;margin-block:8px;border-radius:10px}
.crm-client-profile-back .timeline article>p{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){.crm-client-profile-back .cpf-followups{padding:16px 14px;border-radius:14px;margin-block:22px}.crm-client-profile-back .cpf-followups-head h3{font-size:19px}.crm-client-profile-back .cpf-followup-entry{padding:15px 14px}.crm-client-profile-back .cpf-followup-entry>p{font-size:15px}.crm-client-profile-back .cpf-next{padding:14px}.crm-client-profile-back .cpf-next strong{font-size:19px}.crm-client-profile-back .modalbody>.grid2>.quote-card{padding:12px}.crm-client-profile-back .modalbody>h3{font-size:18px}}

/* Scoped client profile sections; API hosts retain their existing IDs and behavior. */
.crm-client-profile-back .cpf-section{--cps-bg:#f4f1eb;--cps-card:#fffdfa;--cps-line:#cbbda5;--cps-mark:#8e7245;background:var(--cps-bg);border:1px solid var(--cps-line);border-inline-start:4px solid var(--cps-mark);border-radius:17px;padding:22px;margin-block:24px;min-width:0}
.crm-client-profile-back .cpf-results{--cps-bg:#eff4ef;--cps-line:#b8cabe;--cps-mark:#5c8270}
.crm-client-profile-back .cpf-activity{--cps-bg:#f2edf0;--cps-line:#cdbac5;--cps-mark:#99758b}
html[data-theme="dark"] .crm-client-profile-back .cpf-section{--cps-bg:#382d2b;--cps-card:#2d2325;--cps-line:#796353;--cps-mark:#c2a26d}
html[data-theme="dark"] .crm-client-profile-back .cpf-results{--cps-bg:#283831;--cps-line:#577566;--cps-mark:#a2c4af;--cps-card:#232e29}
html[data-theme="dark"] .crm-client-profile-back .cpf-activity{--cps-bg:#342c38;--cps-line:#75617e;--cps-mark:#b69ac0;--cps-card:#2c2430}
.crm-client-profile-back .cpf-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.crm-client-profile-back .cpf-section-heading{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 230px}
.crm-client-profile-back .cpf-section-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;background:var(--cps-card);color:var(--cps-mark);border:1px solid var(--cps-line);border-radius:12px}
.crm-client-profile-back .cpf-section-icon svg{width:23px;height:23px}
.crm-client-profile-back .cpf-section-head h3{margin:0;font-size:20px;line-height:1.5;color:var(--text);overflow-wrap:anywhere}
.crm-client-profile-back .cpf-section-head p{margin:4px 0 0;font-size:13px;line-height:1.7;color:var(--muted)}
.crm-client-profile-back .cpf-section-head>.pill{min-height:40px;margin:0;white-space:normal;background:var(--cps-card);border-color:var(--cps-line);color:var(--text)}
.crm-client-profile-back .cpf-section-body>.empty,.crm-client-profile-back .cpf-section-body>[data-client-history]>.empty{min-height:0;height:auto;padding:16px 4px;margin:0;text-align:start;font-size:14px;line-height:1.8;color:var(--muted)}
.crm-client-profile-back .cpf-section-body>p.muted,.crm-client-profile-back .cpf-section-body>[data-client-history]>p.muted{padding:12px 4px;margin:0;font-size:14px;line-height:1.8}
.crm-client-profile-back .cpf-results .crm-client-sales-results{display:grid;gap:12px}
.crm-client-profile-back .cpf-results .pm-client-result-card{background:var(--cps-card);border:1px solid var(--cps-line);border-radius:12px;padding:18px;gap:12px;min-width:0}
.crm-client-profile-back .cpf-results .pm-client-result-heading strong{font-size:16px;line-height:1.6;overflow-wrap:anywhere}
.crm-client-profile-back .cpf-results .pm-client-result-heading span{font-size:12px;padding:5px 10px;color:var(--text);background:var(--soft);border-color:var(--cps-line)}
.crm-client-profile-back .cpf-results .pm-client-result-card small{font-size:13px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}
.crm-client-profile-back .cpf-results .pm-client-result-outcome{justify-self:start;font-size:13px;line-height:1.5;padding:6px 10px;border-radius:8px;color:#245440;background:#dcebe1;border:1px solid #9ab9a5}
html[data-theme="dark"] .crm-client-profile-back .cpf-results .pm-client-result-outcome{background:#354c3f;color:#dcefe1;border-color:#648a71}
.crm-client-profile-back .cpf-results .pm-client-result-note{font-size:16px;line-height:1.9;font-weight:500;margin:0;padding-top:10px;border-top:1px solid var(--cps-line);color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere}
.crm-client-profile-back .cpf-execution #crmClientTasks>p:first-child{background:var(--cps-card);border:1px solid var(--cps-line);border-radius:10px;padding:12px 15px;font-size:14px;line-height:1.8;margin:0 0 14px;color:var(--text)}
.crm-client-profile-back .cpf-execution .crm-client-task-list{display:grid;gap:12px}
.crm-client-profile-back .cpf-execution .crm-client-task-list>article{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 18px;border:1px solid var(--cps-line);border-radius:12px;background:var(--cps-card);min-width:0}
.crm-client-profile-back .cpf-execution .crm-client-task-list>article>div{display:grid;gap:8px;min-width:0;flex:1 1 220px}
.crm-client-profile-back .cpf-execution .textbutton{font-size:16px;font-weight:700;line-height:1.7;text-align:start;white-space:normal;overflow-wrap:anywhere;color:var(--text);padding:0}
.crm-client-profile-back .cpf-execution .crm-client-task-list small{font-size:13px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}
.crm-client-profile-back .cpf-execution .crm-client-task-list .pill{margin:0;min-height:40px;border-color:var(--cps-line);color:var(--text);background:var(--cps-bg)}
.crm-client-profile-back .cpf-activity .timeline{border:0;margin:0;padding:0;display:grid;gap:12px}
.crm-client-profile-back .cpf-activity .timeline article{position:relative;margin:0;padding:16px 20px;border:1px solid var(--cps-line);border-inline-start:3px solid var(--cps-mark);border-radius:12px;background:var(--cps-card);display:grid;gap:9px;min-width:0}
.crm-client-profile-back .cpf-activity .timeline article small{font-size:13px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}
.crm-client-profile-back .cpf-activity .timeline article strong{display:block;font-size:15px;font-weight:600;line-height:1.9;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere}
.crm-client-profile-back .cpf-activity .timeline article>p{margin:0;font-size:15px;line-height:1.9;padding-top:9px;border-top:1px solid var(--cps-line);color:var(--text)}
.crm-client-profile-back .cpf-activity .timeline article:before,.crm-client-profile-back .cpf-activity .timeline article:after{content:none}
@media(max-width:700px){.crm-client-profile-back .cpf-section{padding:16px 14px;margin-block:22px;border-radius:14px}.crm-client-profile-back .cpf-section-head{gap:12px;margin-bottom:16px}.crm-client-profile-back .cpf-section-head h3{font-size:18px}.crm-client-profile-back .cpf-section-heading{gap:10px}.crm-client-profile-back .cpf-section-head>.pill{width:100%}.crm-client-profile-back .cpf-results .pm-client-result-card,.crm-client-profile-back .cpf-execution .crm-client-task-list>article,.crm-client-profile-back .cpf-activity .timeline article{padding:14px}.crm-client-profile-back .cpf-results .pm-client-result-note,.crm-client-profile-back .cpf-execution .textbutton{font-size:15px}}
