1import{a as Oe}from"./chunk-PL3RGIXA.js";import{b as Ce}from"./chunk-LXXKGS24.js";import{a as Pe,b as ve}from"./chunk-HJP2GWBW.js";import{a as fe,b as we}from"./chunk-OHFI4Z5D.js";import{a as B}from"./chunk-CNF5DJMC.js";import{b as he,c as ke}from"./chunk-6UDGKNW6.js";import{a as ue}from"./chunk-XML3DWH5.js";import"./chunk-YJUGRHPO.js";import"./chunk-7LYSJ4LW.js";import"./chunk-7P5EWSRK.js";import"./chunk-HJKSXZ3C.js";import"./chunk-YXLLGVHE.js";import"./chunk-FWQGROSD.js";import"./chunk-4AATWMGU.js";import"./chunk-SBMHVCC5.js";import"./chunk-JVZ7F4YJ.js";import"./chunk-W7X6U5AQ.js";import"./chunk-LCFYYJD2.js";import{a as _e}from"./chunk-UX33EBHB.js";import"./chunk-JIH5N2CQ.js";import"./chunk-4N4E33CZ.js";import"./chunk-PJOALDWA.js";import"./chunk-GRWL5M6U.js";import"./chunk-ZRFOO27F.js";import"./chunk-CU4COBU7.js";import"./chunk-JLG4YW5B.js";import"./chunk-4KMPRLTV.js";import"./chunk-IKKBRAUQ.js";import"./chunk-JI2M5G2Z.js";import"./chunk-S35HUXPS.js";import"./chunk-DBK6GQ45.js";import"./chunk-BHBQQ55S.js";import"./chunk-7YZCTSEC.js";import"./chunk-ZL5WUXA4.js";import"./chunk-DWXLXVBO.js";import{B as ge,c as pe,f as de,j as me}from"./chunk-BKZN26IZ.js";import"./chunk-N7I43KDQ.js";import{h as se,j as le}from"./chunk-UW2IUR6S.js";import"./chunk-P7ZY4TXP.js";import"./chunk-RKBEALUS.js";import{ha as z}from"./chunk-IXUMU2TC.js";import"./chunk-NZV7SEZX.js";import"./chunk-6F63ZG7X.js";import"./chunk-PKZJNWAJ.js";import{l as ie,n as ce,o as q}from"./chunk-MH6BJ7X6.js";import"./chunk-T5JS72MM.js";import{$b as n,Ac as ee,B as H,Bb as T,Bc as te,Cc as ne,Dc as f,Ea as C,Fa as P,Fd as W,Hb as g,Nc as I,Oc as oe,Pb as l,Pc as V,Qb as x,Rb as k,Sc as O,U as G,_b as a,a as j,ac as u,bc as L,cc as Q,ec as A,fc as b,ga as K,gc as m,lb as J,nd as F,o as U,od as N,pd as R,qb as r,rb as M,rc as v,sc as i,tc as p,uc as Y,xd as ae,yc as X,yd as re,zc as Z}from"./chunk-APOSNKLN.js";import{a as E,b as $}from"./chunk-TWZW5B45.js";var Fe=()=>({});function Ne(o,t){o&1&&(a(0,"section",2)(1,"p",3),i(2,"Loading next actions\u2026"),n()())}function Re(o,t){o&1&&(a(0,"p",11),i(1,"Could not load workflow signals. Try again in a moment."),n())}function We(o,t){if(o&1&&(a(0,"li",14)(1,"a",15)(2,"span",16),i(3),I(4,"uppercase"),n(),a(5,"span",17),i(6),n(),a(7,"span",18),i(8,"Open \u2192"),n()()()),o&2){let e=t.$implicit,s=m(3);r(),l("routerLink",e.route)("queryParams",e.queryParams||f(7,Fe)),r(),l("ngClass",s.severityClass(e.severity)),r(),p(oe(4,5,e.severity)),r(3),p(e.title)}}function qe(o,t){if(o&1&&(a(0,"ul",12),g(1,We,9,8,"li",13),n()),o&2){let e=m(2);r(),l("ngForOf",e.insights)("ngForTrackBy",e.trackById)}}function ze(o,t){o&1&&(a(0,"p",19),i(1,"No blocking items \u2014 pipeline looks clear for this view."),n())}function Be(o,t){if(o&1&&(a(0,"section",4)(1,"div",5)(2,"span",6),i(3),n(),a(4,"p",7),i(5),n()(),g(6,Re,2,0,"p",8)(7,qe,2,2,"ul",9)(8,ze,2,0,"p",10),n()),o&2){let e=m();r(3),p(e.copy.revenueEyebrow),r(2),p(e.copy.workflowSub),r(),l("ngIf",e.error),r(),l("ngIf",e.insights.length&&!e.error),r(),l("ngIf",!e.insights.length&&!e.error&&!e.loading)}}var D=class o{constructor(t){this.workflow=t}context;accountId=null;maxItems=3;copy=B;insights=[];loading=!0;error=!1;ngOnInit(){this.workflow.loadInsights().subscribe({next:t=>{let e=this.workflow.filterInsightsForContext(t,this.context,this.accountId);this.insights=e.slice(0,this.maxItems),this.loading=!1},error:()=>{this.error=!0,this.loading=!1}})}trackById(t,e){return e.id}severityClass(t){return`workflow-next-strip__badge--${t}`}static \u0275fac=function(e){return new(e||o)(M(Oe))};static \u0275cmp=T({type:o,selectors:[["app-workflow-next-strip"]],inputs:{context:"context",accountId:"accountId",maxItems:"maxItems"},decls:2,vars:2,consts:[["class","workflow-next-strip workflow-next-strip--loading",4,"ngIf"],["class","workflow-next-strip",4,"ngIf"],[1,"workflow-next-strip","workflow-next-strip--loading"],[1,"workflow-next-strip__hint"],[1,"workflow-next-strip"],[1,"workflow-next-strip__head"],[1,"workflow-next-strip__eyebrow"],[1,"workflow-next-strip__sub"],["class","workflow-next-strip__error",4,"ngIf"],["class","workflow-next-strip__list",4,"ngIf"],["class","workflow-next-strip__empty",4,"ngIf"],[1,"workflow-next-strip__error"],[1,"workflow-next-strip__list"],["class","workflow-next-strip__item",4,"ngFor","ngForOf","ngForTrackBy"],[1,"workflow-next-strip__item"],[1,"workflow-next-strip__link",3,"routerLink","queryParams"],[1,"workflow-next-strip__badge",3,"ngClass"],[1,"workflow-next-strip__title"],[1,"workflow-next-strip__cta"],[1,"workflow-next-strip__empty"]],template:function(e,s){e&1&&g(0,Ne,3,0,"section",0)(1,Be,9,5,"section",1),e&2&&(l("ngIf",s.loading),r(),l("ngIf",!s.loading&&(s.insights.length||s.error)))},dependencies:[W,F,N,R,ae,q],styles:[".workflow-next-strip[_ngcontent-%COMP%]{margin-bottom:1rem;padding:.65rem .85rem;border-radius:.75rem;border:1px solid var(--surface-border);background:linear-gradient(180deg,var(--surface-card) 0%,color-mix(in srgb,var(--surface-card) 90%,var(--primary-color)) 100%)}.workflow-next-strip--loading[_ngcontent-%COMP%]{padding:.65rem .85rem;border-radius:.75rem;border:1px dashed var(--surface-border)}.workflow-next-strip__head[_ngcontent-%COMP%]{margin-bottom:.35rem}.workflow-next-strip__eyebrow[_ngcontent-%COMP%]{display:block;font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--primary-color)}.workflow-next-strip__sub[_ngcontent-%COMP%]{margin:.25rem 0 0;font-size:.78rem;color:var(--text-color-secondary);line-height:1.35}.workflow-next-strip__list[_ngcontent-%COMP%]{list-style:none;margin:.35rem 0 0;padding:0;display:flex;flex-direction:column;gap:.35rem}.workflow-next-strip__link[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 1fr auto;gap:.65rem;align-items:center;padding:.65rem .85rem;min-height:48px;border-radius:.75rem;text-decoration:none;color:inherit;border:1px solid var(--surface-border);background:var(--surface-ground);transition:border-color .15s ease,box-shadow .15s ease}.workflow-next-strip__link[_ngcontent-%COMP%]:hover{border-color:color-mix(in srgb,var(--primary-color) 40%,var(--surface-border));box-shadow:0 4px 12px color-mix(in srgb,var(--primary-color) 12%,transparent)}.workflow-next-strip__badge[_ngcontent-%COMP%]{font-size:.65rem;font-weight:800;letter-spacing:.06em;padding:.2rem .4rem;border-radius:.35rem}.workflow-next-strip__badge--critical[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--p-red-500) 22%,transparent);color:var(--p-red-400)}.workflow-next-strip__badge--warn[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--p-orange-500) 22%,transparent);color:var(--p-orange-300)}.workflow-next-strip__badge--info[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--primary-color) 22%,transparent);color:var(--primary-color)}.workflow-next-strip__title[_ngcontent-%COMP%]{font-size:.88rem;font-weight:700;color:var(--text-color)}.workflow-next-strip__cta[_ngcontent-%COMP%]{font-size:.78rem;font-weight:700;color:var(--primary-color)}.workflow-next-strip__hint[_ngcontent-%COMP%], .workflow-next-strip__empty[_ngcontent-%COMP%]{margin:0;font-size:.82rem;color:var(--text-color-secondary)}.workflow-next-strip__error[_ngcontent-%COMP%]{margin:0;font-size:.82rem;color:var(--p-red-400)}"]})};var De=()=>[1,2,3,4,5],Me=()=>[1,2,3],be=()=>[1,2,3,4],Le=()=>["/home/crm/contact"],Qe=()=>["/home/crm/quotation"],Ve=()=>["/home/crm/deals"],$e=()=>["/home/crm/service-desk"];function je(o,t){o&1&&(a(0,"article",43),u(1,"p-skeleton",44)(2,"p-skeleton",45)(3,"p-skeleton",46),n())}function Ue(o,t){o&1&&(a(0,"div",47)(1,"div",48),u(2,"p-skeleton",49)(3,"p-skeleton",50),n(),u(4,"p-skeleton",51),n())}function He(o,t){o&1&&(a(0,"div",52),u(1,"p-skeleton",53)(2,"p-skeleton",54),n())}function Ge(o,t){o&1&&(a(0,"div",58),u(1,"p-skeleton",59)(2,"p-skeleton",60),n())}function Ke(o,t){o&1&&(a(0,"article",36),u(1,"p-skeleton",55)(2,"p-skeleton",56),g(3,Ge,3,0,"div",57),n()),o&2&&(r(3),l("ngForOf",f(1,Me)))}
1function Je(o,t){o&1&&(L(0),a(1,"div",11)(2,"section",12)(3,"div",13),u(4,"p-skeleton",14)(5,"p-skeleton",15)(6,"p-skeleton",16),a(7,"div",17),u(8,"p-skeleton",18)(9,"p-skeleton",19)(10,"p-skeleton",20)(11,"p-skeleton",21),n()(),a(12,"div",22),u(13,"p-skeleton",23)(14,"p-skeleton",24)(15,"p-skeleton",25)(16,"p-skeleton",26)(17,"p-skeleton",27)(18,"p-skeleton",28),n()(),a(19,"section",29),g(20,je,4,0,"article",30),n(),a(21,"section",31)(22,"article",32),u(23,"p-skeleton",33)(24,"p-skeleton",34),g(25,Ue,5,0,"div",35),n(),a(26,"article",36),u(27,"p-skeleton",37)(28,"p-skeleton",38)(29,"p-skeleton",39),g(30,He,3,0,"div",40),n()(),a(31,"section",41),g(32,Ke,4,2,"article",42),n()(),Q()),o&2&&(r(20),l("ngForOf",f(4,De)),r(5),l("ngForOf",f(5,Me)),r(5),l("ngForOf",f(6,be)),r(2),l("ngForOf",f(7,be)))}function Ye(o,t){if(o&1&&(a(0,"span",126),i(1),n()),o&2){let e=m(2);r(),p(e.ownerName)}}function Xe(o,t){if(o&1&&(a(0,"span",126),i(1),n()),o&2){let e=m(2);r(),p(e.account==null?null:e.account.industry)}}function Ze(o,t){if(o&1&&(a(0,"span",126),i(1),n()),o&2){let e=m(2);r(),p(e.locationLabel)}}function et(o,t){if(o&1&&u(0,"app-workflow-next-strip",127),o&2){let e=m(2);l("accountId",e.accountId)}}function tt(o,t){if(o&1&&(a(0,"section",128)(1,"div",129)(2,"div")(3,"span",89),i(4,"Infinity AI"),n(),a(5,"h2",90),i(6,"Account assistant"),n(),a(7,"p",130),i(8,"Summaries, follow-up drafts, deal risk, and quote shortcuts \u2014 powered by your live CRM data."),n()()(),a(9,"div",131),u(10,"app-chatbot",132),n()()),o&2){let e=m(2);x("--delay","70ms"),r(10),l("copilotAccountId",e.accountId)("workspaceCopilotOnly",!0)}}function nt(o,t){if(o&1&&(a(0,"span",135),i(1),n()),o&2){let e=m().$implicit;r(),p(e.count)}}function ot(o,t){if(o&1){let e=A();a(0,"button",133),b("click",function(){let c=C(e).$implicit,_=m(2);return P(_.scrollToRelatedSection(c.id))}),a(1,"span"),i(2),n(),g(3,nt,2,1,"span",134),n()}if(o&2){let e=t.$implicit,s=m(2);k("crm-section-tabs__item--active",s.activeRelatedSection===e.id),r(2),p(e.label),r(),l("ngIf",e.count>0)}}function at(o,t){if(o&1&&(a(0,"section",136)(1,"div",137)(2,"span",138),i(3),n(),a(4,"strong"),i(5),n(),a(6,"p"),i(7),n()(),u(8,"a",139),n()),o&2){let e=t.ngIf,s=m(2);x("--delay","80ms"),r(3),p(s.crmCopy.revenueEyebrow),r(2),p(e.title),r(2),p(e.detail),r(),l("label",e.cta)("routerLink",e.route)("queryParams",e.queryParams)}}function rt(o,t){if(o&1&&(a(0,"article",140)(1,"div",141)(2,"span",142),i(3),n(),a(4,"a",143),i(5,"Open"),n()(),a(6,"strong",144),i(7),n(),a(8,"p",145),i(9),n()()),o&2){let e=t.$implicit;l("ngClass","workspace-stat-card--"+e.tone),r(3),p(e.label),r(),l("routerLink",e.route)("queryParams",e.queryParams),r(3),p(e.value),r(2),p(e.detail)}}function it(o,t){if(o&1&&(a(0,"a",146)(1,"div",147)(2,"strong"),i(3),n(),a(4,"span"),i(5),n()(),a(6,"span",148),i(7),n()()),o&2){let e=t.$implicit,s=m(2);l("ngClass",s.getRecommendationToneClass(e))("routerLink",e.route)("queryParams",e.queryParams),r(3),p(e.title),r(2),p(e.detail),r(2),p(e.cta)}}function ct(o,t){if(o&1&&(a(0,"a",149),i(1),n()),o&2){let e=m(2);l("href",e.websiteUrl,J),r(),p((e.account==null?null:e.account.website)||(e.account==null?null:e.account.account_site))}}function st(o,t){o&1&&(a(0,"strong"),i(1,"Not captured"),n())}function lt(o,t){if(o&1&&(a(0,"article",150)(1,"span",151),i(2),n(),a(3,"strong",152),i(4),n(),a(5,"p",153),i(6),n()()),o&2){let e=t.$implicit;l("ngClass","workspace-stage-card--"+e.tone),r(2),p(e.label),r(2),p(e.count),r(2),p(e.detail)}}function pt(o,t){if(o&1&&(a(0,"li",156),u(1,"span",157),a(2,"div")(3,"strong"),i(4),n(),a(5,"p"),i(6),n()()()),o&2){let e=t.$implicit,s=m(3);l("ngClass",s.riskSeverityClass(e)),r(4),p(e.label),r(2),p(e.detail)}}function dt(o,t){if(o&1&&(a(0,"ul",154),g(1,pt,7,3,"li",155),n()),o&2){let e=m(2);r(),l("ngForOf",e.riskFlags)("ngForTrackBy",e.trackByIndex)}}function mt(o,t){o&1&&(a(0,"div",158)(1,"strong"),i(2,"No critical flags"),n(),a(3,"span"),i(4,"Signals look balanced for now \u2014 still review pipeline and fulfilment regularly."),n()())}function gt(o,t){if(o&1&&(a(0,"li")(1,"span",161),i(2),n(),a(3,"span",162),i(4),n()()),o&2){let e=t.$implicit,s=m(3);r(2),p(s.getContactDisplayName(e)),r(2),p((e==null?null:e.email)||"Contact")}}function _t(o,t){if(o&1&&(a(0,"li")(1,"span",161),i(2),n(),a(3,"span",163),i(4),n()()),o&2){let e=t.$implicit,s=m(3);r(2),p((e==null?null:e.quotation_number)||"Quote"),r(2),p(s.formatCurrency(s.numericOf(e==null?null:e.total_amount)))}}function ut(o,t){if(o&1&&(a(0,"li")(1,"span",161),i(2),n(),a(3,"span",163),i(4),n()()),o&2){let e=t.$implicit,s=m(3);r(2),p((e==null?null:e.sales_order_number)||"Order"),r(2),p(s.formatCurrency(s.numericOf(e==null?null:e.total_amount)))}}function ht(o,t){if(o&1&&(a(0,"li")(1,"span",161),i(2),n(),a(3,"span",163),i(4),n()()),o&2){let e=t.$implicit,s=m(3);r(2),p((e==null?null:e.invoice_number)||"Invoice"),r(2),p(s.formatCurrency(s.numericOf(e==null?null:e.total_amount)))}}function kt(o,t){if(o&1&&(a(0,"li")(1,"span",161),i(2),n(),a(3,"span",163),i(4),n()()),o&2){let e=t.$implicit,s=m(3);r(2),p((e==null?null:e.challan_number)||"Challan"),r(2),p(s.formatCurrency(s.numericOf(e==null?null:e.total_amount)))}}function ft(o,t){if(o&1&&(a(0,"li")(1,"span",161),i(2),n(),a(3,"span",162),i(4),n()()),o&2){let e=t.$implicit,s=m(3);r(2),p((e==null?null:e.ticket_number)||"Ticket"),r(2),p(s.humanizeTicketStatus(e==null?null:e.status))}}function wt(o,t){if(o&1&&(a(0,"ul",159),g(1,gt,5,2,"li",160)(2,_t,5,2,"li",160)(3,ut,5,2,"li",160)(4,ht,5,2,"li",160)(5,kt,5,2,"li",160)(6,ft,5,2,"li",160),n()),o&2){let e=m(2);r(),l("ngForOf",e.contacts)("ngForTrackBy",e.trackById),r(),l("ngForOf",e.quotations)("ngForTrackBy",e.trackById),r(),l("ngForOf",e.salesOrders)("ngForTrackBy",e.trackById),r(),l("ngForOf",e.invoices)("ngForTrackBy",e.trackById),r(),l("ngForOf",e.challans)("ngForTrackBy",e.trackById),r(),l("ngForOf",e.serviceTickets)("ngForTrackBy",e.trackById)}}function Ct(o,t){o&1&&(a(0,"div",116)(1,"p"),i(2,"No connected records yet."),n()())}function Pt(o,t){if(o&1&&(a(0,"li")(1,"span",161),i(2),n(),a(3,"span",162),i(4),n(),a(5,"span",163),i(6),n()()),o&2){let e=t.$implicit,s=m(3);r(2),p((e==null?null:e.deal_name)||"Deal"),r(2),p((e==null?null:e.stage)||"Stage not set"),r(2),p(s.formatCurrency(+(e==null?null:e.amount)||0))}}function vt(o,t){if(o&1&&(a(0,"ul",159),g(1,Pt,7,3,"li",160),n()),o&2){let e=m(2);r(),l("ngForOf",e.deals)("ngForTrackBy",e.trackById)}}function Ot(o,t){o&1&&(a(0,"div",116)(1,"p"),i(2,"No deals linked yet."),n()())}function bt(o,t){if(o&1&&(a(0,"li")(1,"span",161),i(2),n(),a(3,"span",162),i(4),I(5,"date"),n()()),o&2){let e=t.$implicit;r(2),p((e==null?null:e.title)||(e==null?null:e.subject)||"Activity"),r(2),p(e!=null&&e.due_date?V(5,2,e.due_date,"dd MMM yyyy"):"No due date")}}function xt(o,t){if(o&1&&(a(0,"ul",159),g(1,bt,6,5,"li",160),n()),o&2){let e=m(2);r(),l("ngForOf",e.openActivities)("ngForTrackBy",e.trackById)}}function Mt(o,t){o&1&&(a(0,"div",116)(1,"p"),i(2,"No open activities."),n()())}function yt(o,t){if(o&1&&(a(0,"li")(1,"span",161),i(2),n(),a(3,"span",162),i(4),n()()),o&2){let e=t.$implicit;r(2),p((e==null?null:e.title)||(e==null?null:e.subject)||"Activity"),r(2),p((e==null?null:e.activity_status)||"Closed")}}function St(o,t){if(o&1&&(a(0,"ul",159),g(1,yt,5,2,"li",160),n()),o&2){let e=m(2);r(),l("ngForOf",e.closedActivities)("ngForTrackBy",e.trackById)}}function It(o,t){o&1&&(a(0,"div",116)(1,"p"),i(2,"No closed activities."),n()())}function Et(o,t){if(o&1&&(a(0,"a",166)(1,"span",167),i(2),n(),a(3,"strong",168),i(4),n(),a(5,"span",169),i(6),n()()),o&2){let e=t.$implicit;l("ngClass","workspace-commerce-card--"+e.tone)("routerLink",e.route)("queryParams",e.queryParams),r(2),p(e.label),r(2),p(e.amount),r(2),p(e.meta)}}function Tt(o,t){if(o&1&&(a(0,"div",164),g(1,Et,7,6,"a",165),n()),o&2){let e=m(2);r(),l("ngForOf",e.topCommercialRecords)("ngForTrackBy",e.trackByIndex)}}function At(o,t){o&1&&(a(0,"div",170)(1,"strong"),i(2,"No downstream commercial records yet"),n(),a(3,"span"),i(4,"Once quotations, invoices, sales orders, or challans are created, they will appear here."),n()())}function Ft(o,t){if(o&1&&(a(0,"a",173)(1,"span",174),i(2),n(),a(3,"div",175)(4,"strong"),i(5),n(),a(6,"span"),i(7),n()(),a(8,"time"),i(9),I(10,"date"),n()()),o&2){let e=t.$implicit,s=m(3);l("routerLink",e.route)("queryParams",e.queryParams),r(),l("ngClass",s.getTimelineCategoryClass(e)),r(),p(e.category),r(3),p(e.title),r(2),p(e.detail),r(2),p(e.date?V(10,7,e.date,"dd MMM yyyy"):"Date unavailable")}}function Nt(o,t){if(o&1&&(a(0,"div",171),g(1,Ft,11,10,"a",172),n()),o&2){let e=m(2);r(),l("ngForOf",e.timelineItems)("ngForTrackBy",e.trackByIndex)}}function Rt(o,t){o&1&&(a(0,"div",170)(1,"strong"),i(2,"No timeline movement yet"),n(),a(3,"span"),i(4,"As the team adds activities, deals, and documents, the command center timeline will start to tell the story."),n()())}function Wt(o,t){if(o&1){let e=A();
1L(0),a(1,"div",61)(2,"section",62)(3,"div",63)(4,"span",64),i(5,"Account Command Center"),n(),a(6,"div",65)(7,"h1",66),i(8),n(),a(9,"div",67)(10,"span",68),u(11,"span",69),i(12),n(),g(13,Ye,2,1,"span",70)(14,Xe,2,1,"span",70)(15,Ze,2,1,"span",70),n()()(),a(16,"div",71)(17,"button",72),b("click",function(){C(e);let c=m();return P(c.navigateBack())}),n(),u(18,"a",73),a(19,"button",74),b("click",function(){C(e);let c=m();return P(c.createActivityForAccount())}),n(),a(20,"button",75),b("click",function(){C(e);let c=m();return P(c.editAccount())}),n(),u(21,"a",76)(22,"a",77)(23,"a",78),n()(),g(24,et,1,1,"app-workflow-next-strip",79)(25,tt,11,4,"section",80),a(26,"nav",81),g(27,ot,4,4,"button",82),n(),a(28,"section",83),g(29,at,9,8,"section",84),a(30,"section",85),g(31,rt,10,6,"article",86),n()(),a(32,"section",87)(33,"div",88)(34,"div")(35,"span",89),i(36,"Suggested Next Moves"),n(),a(37,"h2",90),i(38,"Keep the account moving"),n()(),a(39,"span",91),i(40),n()(),a(41,"div",92),g(42,it,8,6,"a",93),n()(),a(43,"section",94)(44,"div",88)(45,"div")(46,"span",89),i(47,"Health Signal"),n(),a(48,"h2",90),i(49,"Account readiness"),n()()(),a(50,"div",95)(51,"div",96)(52,"strong"),i(53),n(),a(54,"span"),i(55),n()(),a(56,"div",97),u(57,"div",98),n(),a(58,"div",99)(59,"p"),i(60),n()()(),a(61,"div",100)(62,"div",101)(63,"span"),i(64,"Website"),n(),g(65,ct,2,2,"a",102)(66,st,2,0,"ng-template",null,1,O),n(),a(68,"div",101)(69,"span"),i(70,"Phone"),n(),a(71,"strong"),i(72),n()(),a(73,"div",101)(74,"span"),i(75,"Ownership"),n(),a(76,"strong"),i(77),n()(),a(78,"div",101)(79,"span"),i(80,"Employees"),n(),a(81,"strong"),i(82),n()()()(),a(83,"section",103)(84,"section",104),g(85,lt,7,4,"article",105),n()(),a(86,"section",106)(87,"div",88)(88,"div")(89,"span",89),i(90,"Risk & attention"),n(),a(91,"h2",90),i(92,"Flags to watch"),n()()(),g(93,dt,2,2,"ul",107)(94,mt,5,0,"ng-template",null,2,O),n(),a(96,"section",108)(97,"div",88)(98,"div")(99,"span",89),i(100,"Notes"),n(),a(101,"h2",90),i(102,"Account notes"),n()()(),a(103,"label",109),i(104,"Account notes"),n(),a(105,"textarea",110),te("ngModelChange",function(c){C(e);let _=m();return ee(_.notesText,c)||(_.notesText=c),P(c)}),n(),a(106,"div",111)(107,"button",112),b("click",function(){C(e);let c=m();return P(c.saveNotes())}),n()()(),a(108,"section",113)(109,"div",88)(110,"div")(111,"span",89),i(112,"Connected Records"),n(),a(113,"h2",90),i(114,"People & documents"),n()()(),g(115,wt,7,12,"ul",114)(116,Ct,3,0,"ng-template",null,3,O),n(),a(118,"section",115)(119,"div",88)(120,"div")(121,"span",89),i(122,"Cadences"),n(),a(123,"h2",90),i(124,"Follow-up sequences"),n()()(),a(125,"div",116)(126,"p"),i(127,"Cadences are not configured for this account yet."),n()()(),a(128,"section",117)(129,"div",88)(130,"div")(131,"span",89),i(132,"Attachments"),n(),a(133,"h2",90),i(134,"Files"),n()()(),a(135,"div",116)(136,"p"),i(137,"No attachments uploaded yet."),n()()(),a(138,"section",118)(139,"div",88)(140,"div")(141,"span",89),i(142,"Deals"),n(),a(143,"h2",90),i(144,"Pipeline for this account"),n()(),a(145,"button",119),b("click",function(){C(e);let c=m();return P(c.createDealForAccount())}),n()(),g(146,vt,2,2,"ul",114)(147,Ot,3,0,"ng-template",null,4,O),n(),a(149,"section",120)(150,"div",88)(151,"div")(152,"span",89),i(153,"Open Activities"),n(),a(154,"h2",90),i(155,"Upcoming follow-ups"),n()(),a(156,"button",121),b("click",function(){C(e);let c=m();return P(c.createActivityForAccount())}),n()(),g(157,xt,2,2,"ul",114)(158,Mt,3,0,"ng-template",null,5,O),n(),a(160,"section",122)(161,"div",88)(162,"div")(163,"span",89),i(164,"Closed Activities"),n(),a(165,"h2",90),i(166,"Completed work"),n()()(),g(167,St,2,2,"ul",114)(168,It,3,0,"ng-template",null,6,O),n(),a(170,"section",123)(171,"div",88)(172,"div")(173,"span",89),i(174,"Revenue Journey"),n(),a(175,"h2",90),i(176,"Quotes, billing, and fulfilment"),n()()(),g(177,Tt,2,2,"div",124)(178,At,5,0,"ng-template",null,7,O),a(180,"div",88)(181,"div")(182,"span",89),i(183,"Unified Timeline"),n(),a(184,"h2",90),i(185,"Latest movement"),n()()(),g(186,Nt,2,2,"div",125)(187,Rt,5,0,"ng-template",null,8,O),n()(),Q()}if(o&2){let e=v(67),s=v(95),c=v(117),_=v(148),w=v(159),h=v(169),y=v(179),S=v(188),d=m();r(2),x("--delay","0ms"),r(6),p(d.accountName),r(4),Y(" ",d.accountStatusLabel," "),r(),l("ngIf",d.ownerName),r(),l("ngIf",d.account==null?null:d.account.industry),r(),l("ngIf",d.locationLabel),r(3),l("routerLink",f(87,Le)),r(3),l("routerLink",f(88,Qe))("queryParams",d.quotationWorkflowQueryParams),r(),l("routerLink",f(89,Ve))("queryParams",d.dealWorkflowQueryParams),r(),l("routerLink",f(90,$e))("queryParams",d.serviceDeskWorkflowQueryParams),r(),l("ngIf",d.accountId),r(),l("ngIf",!1),r(2),l("ngForOf",d.pageSectionItems)("ngForTrackBy",d.trackByRelatedNav),r(),k("crm-page-section--active",d.activeRelatedSection==="overview"),r(),l("ngIf",d.primaryNextAction),r(2),l("ngForOf",d.statCards)("ngForTrackBy",d.trackByIndex),r(),x("--delay","180ms"),k("crm-page-section--active",d.activeRelatedSection==="next-moves"),r(8),p(d.latestTouchLabel),r(2),l("ngForOf",d.recommendations)("ngForTrackBy",d.trackByIndex),r(),x("--delay","260ms"),k("crm-page-section--active",d.activeRelatedSection==="profile"),r(10),p(d.healthScore),r(2),p(d.healthLabel),r(2),x("width",d.healthScore,"%"),r(3),X("",d.contacts.length," contacts, ",d.activities.length," activities, ",d.deals.length," deals, ",d.invoices.length," invoices, and ",d.openServiceTickets.length," open service tickets are currently linked."),r(5),l("ngIf",d.websiteUrl)("ngIfElse",e),r(7),p(d.phoneLabel),r(5),p((d.account==null?null:d.account.ownership)||(d.account==null?null:d.account.ownershi)||"Not tagged"),r(5),p((d.account==null?null:d.account.employees)||"Not captured"),r(),k("crm-page-section--active",d.activeRelatedSection==="commerce"),r(2),l("ngForOf",d.commerceStages)("ngForTrackBy",d.trackByIndex),r(),x("--delay","300ms"),k("crm-page-section--active",d.activeRelatedSection==="risk"),r(7),l("ngIf",d.riskFlags.length)("ngIfElse",s),r(3),k("crm-page-section--active",d.activeRelatedSection==="notes"),r(9),Z("ngModel",d.notesText),r(3),k("crm-page-section--active",d.activeRelatedSection==="connected"),r(7),l("ngIf",d.connectedRecordCount)("ngIfElse",c),r(3),k("crm-page-section--active",d.activeRelatedSection==="cadences"),r(10),k("crm-page-section--active",d.activeRelatedSection==="attachments"),r(10),k("crm-page-section--active",d.activeRelatedSection==="deals"),r(8),l("ngIf",d.deals.length)("ngIfElse",_),r(3),k("crm-page-section--active",d.activeRelatedSection==="open-activities"),r(8),l("ngIf",d.openActivities.length)("ngIfElse",w),r(3),k("crm-page-section--active",d.activeRelatedSection==="closed-activities"),r(7),l("ngIf",d.closedActivities.length)("ngIfElse",h),r(3),k("crm-page-section--active",d.activeRelatedSection==="timeline"),r(7),l("ngIf",d.topCommercialRecords.length)("ngIfElse",y),r(9),l("ngIf",d.timelineItems.length)("ngIfElse",S)}}function qt(o,t){if(o&1){let e=A();
1a(0,"div",177)(1,"div",178)(2,"span",179),i(3,"Account Workspace"),n(),a(4,"h1",180),i(5,"Workspace unavailable"),n(),a(6,"p",181),i(7),n(),a(8,"button",182),b("click",function(){C(e);let c=m(2);return P(c.navigateBack())}),n()()()}if(o&2){let e=m(2);r(7),p(e.errorMessage||"We could not prepare this workspace right now.")}}function zt(o,t){if(o&1&&g(0,qt,9,1,"div",176),o&2){let e=m();l("ngIf",!e.loading)}}var xe=class o{constructor(t,e,s,c){this.route=t;this.router=e;this.apiService=s;this.messageService=c}crmCopy=B;loading=!0;accountId=null;account=null;ownerName="Account Owner";errorMessage="";notesText="";activeRelatedSection="overview";contacts=[];deals=[];quotations=[];invoices=[];salesOrders=[];challans=[];serviceTickets=[];activities=[];healthScore=0;healthLabel="Needs attention";latestTouchLabel="No recent movement captured yet.";statCards=[];recommendations=[];timelineItems=[];commerceStages=[];riskFlags=[];subscriptions=new j;ngOnInit(){this.subscriptions.add(this.route.paramMap.subscribe(t=>{let e=Number(t.get("id"));if(!Number.isFinite(e)||e<=0){this.accountId=null,this.account=null,this.loading=!1,this.errorMessage="This account workspace could not be opened.";return}this.accountId=e,this.loadWorkspace()}))}ngOnDestroy(){this.subscriptions.unsubscribe()}get accountName(){return this.account?.account_name||"Account workspace"}get accountStatusLabel(){return this.isAccountActive?"Active account":"Inactive account"}get isAccountActive(){let t=this.account?.is_active;return t===!0||t==="true"||t==="True"}get locationLabel(){return[this.account?.city,this.account?.state,this.account?.country].filter(Boolean).join(", ")||"Location not captured"}get websiteUrl(){let t=this.account?.website||this.account?.account_site;return t?/^https?:\/\//i.test(t)?t:`https://${t}`:null}get phoneLabel(){return this.account?.phone||"Phone not captured"}get revenueSummaryLabel(){return!this.deals.length&&!this.quotations.length&&!this.invoices.length?"No commercial activity captured yet.":`${this.formatCurrency(this.openPipelineValue)} open pipeline, ${this.formatCurrency(this.getQuotedValue())} quoted, ${this.formatCurrency(this.getBilledValue())} billed.`}get topContacts(){return this.contacts.slice(0,4)}get topDeals(){return[...this.openDeals].sort((t,e)=>this.getNumericValue(e?.amount)-this.getNumericValue(t?.amount)).slice(0,4)}get openDeals(){return this.deals.filter(t=>!this.isDealClosed(t))}get openPipelineValue(){return this.openDeals.reduce((t,e)=>t+this.getNumericValue(e?.amount),0)}get primaryNextAction(){return this.recommendations.length?this.recommendations[0]:null}get accountNotes(){let t=this.account?.description;return typeof t=="string"?t.trim():""}get openActivities(){return this.activities.filter(t=>!this.isActivityClosed(t))}get closedActivities(){return this.activities.filter(t=>this.isActivityClosed(t))}get connectedRecordCount(){return this.contacts.length+this.quotations.length+this.salesOrders.length+this.invoices.length+this.challans.length+this.serviceTickets.length}get notesCount(){return this.notesText?.trim()?1:0}get relatedNavItems(){return this.pageSectionItems}get pageSectionItems(){return[{id:"overview",label:"Overview",count:this.statCards.length},{id:"next-moves",label:"Next Moves",count:this.recommendations.length},{id:"profile",label:"Profile",count:0},{id:"commerce",label:"Commerce",count:this.commerceStages.length},{id:"risk",label:"Risk",count:this.riskFlags.length},{id:"notes",label:"Notes",count:this.notesCount},{id:"connected",label:"Connected Records",count:this.connectedRecordCount},{id:"cadences",label:"Cadences",count:0},{id:"attachments",label:"Attachments",count:0},{id:"deals",label:"Deals",count:this.deals.length,canAdd:!0},{id:"open-activities",label:"Open Activities",count:this.openActivities.length,canAdd:!0},{id:"closed-activities",label:"Closed Activities",count:this.closedActivities.length},{id:"timeline",label:"Timeline",count:this.timelineItems.length}]}get recentQuotations(){return this.quotations.slice(0,6)}get recentInvoices(){return this.invoices.slice(0,6)}get recentSalesOrders(){return this.salesOrders.slice(0,6)}get recentChallans(){return this.challans.slice(0,6)}get recentServiceTickets(){return this.serviceTickets.slice(0,6)}get openServiceTickets(){return this.serviceTickets.filter(t=>!this.isServiceTicketClosed(t))}get overdueServiceTickets(){return this.openServiceTickets.filter(t=>!!t?.is_overdue||this.isPastDue(t?.due_date))}get highPriorityServiceTickets(){return this.openServiceTickets.filter(t=>this.isHighPriorityServiceTicket(t))}get accountScopedQueryParams(){return this.buildScopedAccountQueryParams()}get dealWorkflowQueryParams(){return this.buildScopedAccountQueryParams({workflowOpen:"1"})}get quotationWorkflowQueryParams(){return this.buildCustomerWorkflowQueryParams()}get serviceDeskWorkflowQueryParams(){return this.buildScopedAccountQueryParams({workflowOpen:"1"})}riskSeverityClass(t){return`workspace-risk-flag--${t.severity}`}get topCommercialRecords(){return[...this.quotations.slice(0,2).map(t=>({label:t.quotation_number||"Quotation",route:["/home/crm/quotation"],queryParams:this.buildFocusQueryParams("focusQuotation",t?.id),tone:"quote",meta:t.quotation_date||"Date unavailable",amount:this.formatCurrency(this.getNumericValue(t.total_amount))})),...this.invoices.slice(0,2).map(t=>({label:t.invoice_number||"Invoice",route:["/home/crm/invoice"],queryParams:this.buildFocusQueryParams("focusInvoice",t?.id),tone:"invoice",meta:t.invoice_date||"Date unavailable",amount:this.formatCurrency(this.getNumericValue(t.total_amount))})),...this.salesOrders.slice(0,2).map(t=>({label:t.sales_order_number||"Sales Order",route:["/home/crm/sales-order"],queryParams:this.buildFocusQueryParams("focusSalesOrder",t?.id),tone:"order",meta:t.order_status||"Status unavailable",amount:this.formatCurrency(this.getNumericValue(t.total_amount))})),...this.challans.slice(0,2).map(t=>({label:t.challan_number||"Challan",route:["/home/crm/challan"],queryParams:this.buildFocusQueryParams("focusChallan",t?.id),tone:"challan",meta:t.status||"Status unavailable",amount:this.formatCurrency(this.getNumericValue(t.total_amount))}))].slice(0,6)}navigateBack(){this.router.navigate(["/home/crm/account"])}editAccount(){if(!this.accountId){this.router.navigate(["/home/crm/account"]);return}this.router.navigate(["/home/crm/account",this.accountId,"edit"])}openModule(t,e){this.router.navigate(t,{queryParams:e})}createActivityForAccount(){let t=String(this.account?.account_name||"").trim(),e={};t&&(e.account=t),this.router.navigate(["/home/crm/activity/new"],{queryParams:e})}onRelatedTabChange(t){}scrollToRelatedSection(t){this.activeRelatedSection=t,setTimeout(()=>{document.getElementById(`related-${t}`)?.scrollIntoView({behavior:"smooth",block:"start"})})}onRelatedAdd(t,e){if(t.stopPropagation(),e==="deals"){this.createDealForAccount();return}e==="open-activities"&&this.createActivityForAccount()}trackByRelatedNav(t,e){return e.id}createDealForAccount(){this.router.navigate(["/home/crm/deals/new"],{queryParams:this.accountId?{accountId:this.accountId,workflowOpen:"1"}:void 0})}saveNotes(){if(!this.accountId||!this.account)return;let t=$(E({},this.account),{id:this.accountId,action_type:"edit",description:this.notesText});this.subscriptions.add(this.apiService.AddAccount(t).subscribe({next:e=>{if(e?.success===!1||e?.status>=400||e?.error){this.messageService.add({severity:"error",summary:"Error",detail:"Failed to save notes: "+(e?.message||"Error occurred")});return}
1this.account.description=this.notesText,this.messageService.add({severity:"success",summary:"Success",detail:"Notes saved successfully."})},error:()=>{this.messageService.add({severity:"error",summary:"Error",detail:"Failed to save notes. Please try again."})}}))}trackByIndex(t){return t}trackById(t,e){return e?.id??t}getContactDisplayName(t){let e=String(t?.first_name||"").trim(),s=String(t?.last_name||"").trim();return`${e} ${s}`.trim()||t?.contact_name||t?.account_name||"Contact"}formatCurrency(t){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",maximumFractionDigits:0}).format(Number.isFinite(t)?t:0)}numericOf(t){return this.getNumericValue(t)}getRecommendationToneClass(t){return`workspace-recommendation--${t.tone}`}getTimelineCategoryClass(t){return`workspace-timeline__badge--${t.category.toLowerCase().replace(/[^a-z]+/g,"-")}`}humanizeTicketStatus(t){return String(t||"").replace(/_/g," ").trim()||"Status not set"}loadWorkspace(){if(!this.accountId)return;this.loading=!0,this.errorMessage="";let t={offset:0,limit:6e3},e=this.accountId;this.subscriptions.add(this.apiService.getAccounts(t).pipe(K(s=>{let _=this.extractRecords(s).find(h=>this.normalizeId(h?.id)===e)||null;if(!_)return this.account=null,this.errorMessage="We could not find that account in the current workspace.",this.resetWorkspaceCollections(),U(null);this.account=_,this.notesText=typeof _?.description=="string"?_.description:"";let w=String(_?.account_name||"").trim();return H({contacts:this.apiService.getAllContaactleads({offset:0,limit:500,account_id:e}),deals:this.apiService.getDeals({offset:0,limit:500,account_id:e}),quotations:this.apiService.getQuotations({offset:0,limit:500,to_customer:e}),invoices:this.apiService.getInvoices({offset:0,limit:500,to_customer:e}),salesOrders:this.apiService.getSalesOrders({offset:0,limit:500,to_customer:e}),challans:this.apiService.getChallans({offset:0,limit:500,to_customer:e}),serviceTickets:this.apiService.getServiceDeskTickets({offset:0,limit:500,account_id:e,is_active:!0}),activities:w?this.apiService.getActivities({account:w}):this.apiService.getActivities({}),users:this.apiService.getUsersList("")})}),G(()=>this.loading=!1)).subscribe(s=>{if(!s||!this.account)return;let c=this.extractRecords(s.users);this.ownerName=this.resolveOwnerName(this.account?.account_owner,c),this.contacts=this.filterContacts(this.extractRecords(s.contacts)),this.deals=this.filterDeals(this.extractRecords(s.deals)),this.quotations=this.filterCustomerRecords(this.extractRecords(s.quotations),"to_customer"),this.invoices=this.filterCustomerRecords(this.extractRecords(s.invoices),"to_customer"),this.salesOrders=this.filterCustomerRecords(this.extractRecords(s.salesOrders),"to_customer"),this.challans=this.filterCustomerRecords(this.extractRecords(s.challans),"to_customer"),this.serviceTickets=this.extractRecords(s.serviceTickets),this.activities=this.filterActivities(this.extractRecords(s.activities)),this.buildWorkspaceViewModel()}))}resetWorkspaceCollections(){this.contacts=[],this.deals=[],this.quotations=[],this.invoices=[],this.salesOrders=[],this.challans=[],this.serviceTickets=[],this.activities=[],this.statCards=[],this.recommendations=[],this.riskFlags=[],this.timelineItems=[],this.commerceStages=[],this.healthScore=0,this.healthLabel="Needs attention",this.latestTouchLabel="No recent movement captured yet."}buildWorkspaceViewModel(){let t=this.openPipelineValue,e=this.getQuotedValue(),s=this.getBilledValue();this.healthScore=this.calculateHealthScore(),this.healthLabel=this.resolveHealthLabel(this.healthScore),this.statCards=[{label:"Relationships",value:String(this.contacts.length),detail:this.contacts.length?"Known people linked to this account.":"No contact is linked yet.",tone:"teal",route:["/home/crm/contact"]},{label:"Open Pipeline",value:this.formatCurrency(t),detail:this.openDeals.length?`${this.openDeals.length} open deals (${this.deals.length} total).`:this.deals.length?"All deals are closed \u2014 add a new opportunity.":"No deals created yet.",tone:"amber",route:["/home/crm/deals"],queryParams:this.buildScopedAccountQueryParams()},{label:"Quoted Value",value:this.formatCurrency(e),detail:this.quotations.length?`${this.quotations.length} quotations prepared.`:"No quotations raised yet.",tone:"blue",route:["/home/crm/quotation"],queryParams:this.buildScopedAccountQueryParams()},{label:"Service Desk",value:String(this.openServiceTickets.length),detail:this.serviceTickets.length?`${this.overdueServiceTickets.length} overdue and ${this.highPriorityServiceTickets.length} high-priority tickets are linked.`:"No service cases have been linked yet.",tone:"coral",route:["/home/crm/service-desk"],queryParams:this.buildScopedAccountQueryParams()},{label:"Billed Value",value:this.formatCurrency(s),detail:this.invoices.length?`${this.invoices.length} invoices issued.`:"No invoices generated yet.",tone:"coral",route:["/home/crm/invoice"],queryParams:this.buildScopedAccountQueryParams()}],this.commerceStages=[{label:"Contacts",count:this.contacts.length,detail:this.contacts.length?"Relationship coverage is in place.":"Still missing people mapping.",tone
1:"teal"},{label:"Open deals",count:this.openDeals.length,detail:this.openDeals.length?"Opportunities still in play for this account.":this.deals.length?"Every deal is closed \u2014 time to open a new one.":"No pipeline has been opened yet.",tone:"amber"},{label:"Quotations",count:this.quotations.length,detail:this.quotations.length?"Commercial proposals are moving.":"No quotes have been sent yet.",tone:"blue"},{label:"Execution",count:this.salesOrders.length+this.challans.length,detail:this.salesOrders.length+this.challans.length>0?`${this.salesOrders.length} orders and ${this.challans.length} dispatch records are live.`:"Fulfilment has not started yet.",tone:"coral"},{label:"Service desk",count:this.openServiceTickets.length,detail:this.serviceTickets.length?`${this.openServiceTickets.length} open tickets and ${this.overdueServiceTickets.length} overdue cases are tied to this account.`:"No service cases are linked yet.",tone:this.overdueServiceTickets.length?"coral":"teal"}],this.recommendations=this.buildRecommendations(),this.riskFlags=this.buildRiskFlags(),this.timelineItems=this.buildTimelineItems(),this.latestTouchLabel=this.timelineItems.length?`${this.timelineItems[0].category} logged on ${this.formatDateLabel(this.timelineItems[0].date)}.`:"No recent movement captured yet.",this.recommendations.length||(this.recommendations=[{title:"Workspace is moving well",detail:"Relationship, proposal, and billing signals are all present. Focus on the next conversion step.",route:["/home/crm/deals"],queryParams:this.buildScopedAccountQueryParams(),cta:"Review deals",tone:"good"}])}buildRecommendations(){let t=[];return this.contacts.length||t.push({title:"Add a primary contact",detail:"This account has no linked people, which makes follow-up and quoting fragile.",route:["/home/crm/contact"],cta:"Open contacts",tone:"urgent"}),this.overdueServiceTickets.length?t.push({title:"Resolve overdue service cases",detail:`${this.overdueServiceTickets.length} linked tickets are already past due and need immediate follow-through.`,route:["/home/crm/service-desk"],queryParams:this.buildScopedAccountQueryParams(),cta:"Open service desk",tone:"urgent"}):this.openServiceTickets.length&&t.push({title:"Keep service tickets moving",detail:`${this.openServiceTickets.length} active service cases are linked to this account and should stay in the same workflow view.`,route:["/home/crm/service-desk"],queryParams:this.buildScopedAccountQueryParams(),cta:"Review tickets",tone:"steady"}),this.activities.length||t.push({title:"Schedule the next touchpoint",detail:"There is no visible activity history yet, so ownership and follow-up can get lost.",route:["/home/crm/activity"],cta:"Open activity",tone:"steady"}),this.deals.length||t.push({title:"Create pipeline around this account",detail:"Customer data exists, but there is no deal yet to track revenue movement.",route:["/home/crm/deals"],queryParams:this.buildScopedAccountQueryParams({workflowOpen:"1"}),cta:"Create deal",tone:"steady"}),this.quotations.length>0&&!this.salesOrders.length&&t.push({title:"Convert quotations into committed business",detail:"Quotes are present, but no sales order has been captured for fulfilment.",route:["/home/crm/sales-order"],queryParams:this.buildCustomerWorkflowQueryParams(this.normalizeId(this.quotations[0]?.id)!==null?{quotationId:this.normalizeId(this.quotations[0]?.id)}:{}),cta:"Create sales order",tone:"urgent"}),this.salesOrders.length>0&&!this.challans.length&&t.push({title:"Plan fulfilment and dispatch",detail:"Sales orders are live, but challan movement is still missing.",route:["/home/crm/challan"],queryParams:this.buildCustomerWorkflowQueryParams(this.normalizeId(this.salesOrders[0]?.id)!==null?{salesOrderId:this.normalizeId(this.salesOrders[0]?.id)}:{}),cta:"Create challan",tone:"steady"}),this.quotations.length>0&&!this.invoices.length&&t.push({title:"Close the billing loop",detail:"Commercial work has started, but invoice generation has not followed through yet.",route:["/home/crm/invoice"],queryParams:this.buildCustomerWorkflowQueryParams(),cta:"Create invoice",tone
1:"steady"}),t.slice(0,4)}buildRiskFlags(){let t=[];return this.contacts.length||t.push({label:"No people mapped",detail:"This account has no linked contacts \u2014 follow-ups and quotes are harder to execute.",severity:"high"}),this.activities.length||t.push({label:"Silent activity trail",detail:"No activities logged against this account name in the CRM.",severity:"high"}),this.overdueServiceTickets.length&&t.push({label:"Overdue service cases",detail:`${this.overdueServiceTickets.length} linked service tickets are overdue and can damage trust if they stay unresolved.`,severity:"high"}),this.highPriorityServiceTickets.length&&t.push({label:"High-priority issues are open",detail:`${this.highPriorityServiceTickets.length} active service tickets are marked high or urgent.`,severity:"medium"}),this.openDeals.length===0&&this.deals.length>0&&t.push({label:"Pipeline is fully closed",detail:"All deals are won or lost \u2014 consider opening a new opportunity.",severity:"medium"}),this.quotations.length>0&&this.salesOrders.length===0&&t.push({label:"Quotes not converting to orders",detail:"Quotations exist but no sales order has been captured for fulfilment.",severity:"medium"}),this.salesOrders.length>0&&this.challans.length===0&&t.push({label:"Fulfilment not dispatched",detail:"Sales orders exist without challan / dispatch records.",severity:"low"}),this.quotations.length>0&&this.invoices.length===0&&t.push({label:"Revenue not invoiced",detail:"Commercial work started but no invoice has been issued yet.",severity:"medium"}),!this.activities.length&&(this.quotations.length>0||this.openDeals.length>0)&&t.push({label:"Execution without touch tracking",detail:"Pipeline or quotes exist but activities are not being logged.",severity:"low"}),t.slice(0,6)}isDealClosed(t){let e=String(t?.status??"").trim().toLowerCase();if(["won","lost"].includes(e)||e.includes("closed"))return!0;let s=String(t?.stage??"").trim().toLowerCase();return s==="closed won"||s==="closed lost"}buildTimelineItems(){let t=[];this.accountNotes&&t.push({title:"Account note",detail:this.accountNotes.length>200?`${this.accountNotes.slice(0,197)}\u2026`:this.accountNotes,category:"Note",date:null,route:["/home/crm/account"]});let e=this.contacts.map(c=>({title:this.getContactDisplayName(c),detail:[c?.email,c?.phone||c?.mobile].filter(Boolean).join(" \xB7 ")||"Contact record",category:"Contact",date:c?.created_at||c?.updated_at||null,route:["/home/crm/contact"]}));return[...t,...e,...this.activities.map(c=>({title:c?.title||c?.subject||"Scheduled activity",detail:[c?.priority,c?.activity_status].filter(Boolean).join(" \u2022 ")||"Follow-up touchpoint",category:"Activity",date:c?.due_date||c?.updated_at||c?.created_at||null,route:["/home/crm/activity"]})),...this.deals.map(c=>({title:c?.deal_name||"Deal",detail:[c?.stage,this.formatCurrency(this.getNumericValue(c?.amount))].filter(Boolean).join(" \u2022 "),category:"Deal",date:c?.expected_close_date||c?.updated_at||c?.created_at||null,route:["/home/crm/deals"],queryParams:this.buildFocusQueryParams("focusDeal",c?.id)})),...this.quotations.map(c=>({title:c?.quotation_number||"Quotation",detail:this.formatCurrency(this.getNumericValue(c?.total_amount)),category:"Quotation",date:c?.quotation_date||c?.updated_at||c?.created_at||null,route:["/home/crm/quotation"],queryParams:this.buildFocusQueryParams("focusQuotation",c?.id)})),...this.invoices.map(c=>({title:c?.invoice_number||"Invoice",detail:this.formatCurrency(this.getNumericValue(c?.total_amount)),category:"Invoice",date:c?.invoice_date||c?.updated_at||c?.created_at||null,route:["/home/crm/invoice"],queryParams:this.buildFocusQueryParams("focusInvoice",c?.id)})),...this.salesOrders.map(c=>({title:c?.sales_order_number||"Sales Order",detail:c?.order_status||this.formatCurrency(this.getNumericValue(c?.total_amount)),category:"Sales Order",date:c?.sales_order_date||c?.updated_at||c?.created_at||null,route:["/home/crm/sales-order"],queryParams:this.buildFocusQueryParams("focusSalesOrder",c?.id)})),...this.challans.map(c=>({title:c?.challan_number||"Challan",detail:c?.status||this.formatCurrency(this.getNumericValue(c?.total_amount)),category:"Challan",date:c?.challan_date||c?.updated_at||c?.created_at||null,route:["/home/crm/challan"],queryParams:this.buildFocusQueryParams("focusChallan",c?.id)})),...this.serviceTickets.map(c=>({title:c?.ticket_number||"Service ticket",detail:[c?.priority,c?.status].filter(
1Boolean).join(" \xE2\u20AC\xA2 ")||c?.subject||"Service case",category:"Service Desk",date:c?.updated_at||c?.created_at||null,route:["/home/crm/service-desk"],queryParams:this.buildFocusQueryParams("focusTicket",c?.id)}))].sort((c,_)=>this.getComparableDate(_.date)-this.getComparableDate(c.date)).slice(0,14)}filterContacts(t){let e=this.normalizeText(this.account?.account_name),s=this.normalizeId(this.account?.contact_id||this.account?.primary_contact_id||this.account?.contact?.id),c=this.normalizeText(this.account?.contact_name||this.account?.primary_contact||this.account?.contact?.contact_name),_=t.filter(h=>{let y=this.normalizeId(h?.company_account_id),S=this.normalizeId(h?.account_id||h?.account||h?.account__id),d=this.normalizeText(h?.account_name||h?.account__account_name),ye=this.normalizeId(h?.id||h?.contact_id),Se=this.normalizeText(this.getContactDisplayName(h)),Ie=this.normalizeText(h?.contact_name);return y===this.accountId||S===this.accountId||e&&d===e||s!==null&&ye===s||c&&(Se===c||Ie===c)}),w=new Map;return _.forEach(h=>{let y=this.normalizeId(h?.id||h?.contact_id),S=y!==null?`id:${y}`:`name:${this.normalizeText(this.getContactDisplayName(h))}`;w.has(S)||w.set(S,h)}),Array.from(w.values())}filterDeals(t){let e=this.normalizeText(this.account?.account_name);return t.filter(s=>{let c=this.normalizeId(s?.account_id||s?.account||s?.account__id),_=this.normalizeText(s?.account_name||s?.account__account_name);return c===this.accountId||e&&_===e})}filterCustomerRecords(t,e){return t.filter(s=>this.normalizeId(s?.[e])===this.accountId)}filterActivities(t){let e=this.normalizeText(this.account?.account_name);return t.filter(s=>this.normalizeText(s?.account)===e)}extractRecords(t){return Array.isArray(t?.data)?t.data:Array.isArray(t?.results)?t.results:Array.isArray(t)?t:[]}resolveOwnerName(t,e){let s=this.normalizeId(t);if(s!==null){let _=e.find(w=>this.normalizeId(w?.id)===s);if(_)return _?.user_name||_?.email||_?.username||"Account Owner"}let c=typeof t=="string"?t.trim():"";return c&&!/^\d+$/.test(c)?c:"Account Owner"}calculateHealthScore(){let t=this.isAccountActive?15:5;return this.contacts.length&&(t+=20),this.activities.length&&(t+=15),this.deals.length&&(t+=20),this.quotations.length&&(t+=15),this.invoices.length&&(t+=15),t-=Math.min(15,this.openServiceTickets.length*3),t-=Math.min(20,this.overdueServiceTickets.length*8),Math.max(0,Math.min(100,t))}resolveHealthLabel(t){return t>=80?"Strong":t>=60?"Growing":t>=40?"Building":"Needs attention"}getQuotedValue(){return this.quotations.reduce((t,e)=>t+this.getNumericValue(e?.total_amount),0)}getBilledValue(){return this.invoices.reduce((t,e)=>t+this.getNumericValue(e?.total_amount),0)}getNumericValue(t){let e=Number(t);return Number.isFinite(e)?e:0}getComparableDate(t){if(!t)return 0;let e=new Date(t).getTime();return Number.isFinite(e)?e:0}formatDateLabel(t){if(!t)return"date unavailable";let e=new Date(t);return Number.isNaN(e.getTime())?"date unavailable":e.toLocaleDateString("en-IN",{day:"2-digit",month:"short",year:"numeric"})}normalizeId(t){let e=Number(t);return Number.isFinite(e)?e:null}buildScopedAccountQueryParams(t={}){let e=E({},t);return this.accountId&&(e.accountId=this.accountId),Object.keys(e).length?e:void 0}buildCustomerWorkflowQueryParams(t={}){return this.accountId?this.buildScopedAccountQueryParams(E({workflowOpen:"1",toCustomer:this.accountId},t)):this.buildScopedAccountQueryParams(t)}buildFocusQueryParams(t,e){let s=this.normalizeId(e);return s!==null?this.buildScopedAccountQueryParams({[t]:s}):this.buildScopedAccountQueryParams()}isServiceTicketClosed(t){let e=String(t?.status||"").trim().toUpperCase();return e==="RESOLVED"||e==="CLOSED"}isHighPriorityServiceTicket(t){let e=String(t?.priority||"").trim().toUpperCase();return e==="HIGH"||e==="URGENT"}isPastDue(t){let e=t?new Date(t).getTime():NaN;return Number.isFinite(e)&&e<Date.now()}normalizeText(t){return String(t||"").trim().toLowerCase()}isActivityClosed(t){let e=this.normalizeText(t?.activity_status||t?.status);return e==="closed"||e==="completed"||e==="done"}static \u0275fac=function(e){return new(e||o)(M(ie),M(ce),M(_e),M(z))};static \u0275cmp=T({type:o,selectors:[["app-account-workspace"]],features:[ne([z])],decls:5,vars:3,consts:[["workspaceEmptyState",""],["noWebsite",""],["noRiskFlags",""],["noConnected",""],["noDeals",""],["noOpenActivities",""],["noClosedActivities",""],["emptyCommercial",""],["emptyTimeline",""],[4,"ngIf"],[4,"ngIf","ngIfElse"],["aria-hidden","true",1,"workspace-loading","dashboard-shell","account-workspace-skeleton"],[1,"account-workspace-skeleton__hero"],[1,"account-workspace-skeleton__hero-copy"],["width","10rem","height","1rem","borderRadius","999px"],["width","22rem","height","2.15rem","borderRadius","0.5rem"],["width","34rem","height","1rem","borderRadius","0.45rem"],[1,"account-workspace-skeleton__chip-row"],["width","7.8rem","height","1.8rem","borderRadius","999px"],["width","7rem","height","1.8rem","borderRadius","999px"],["width","8.4rem","height","1.8rem","borderRadius","999px"],["width","9.2rem","height","1.8rem","borderRadius","999px"],[1,"account-workspace-skeleton__hero-actions"],["width","8.6rem","height","2.55rem","borderRadius","0.65rem"],["width","7.5rem","height","2.55rem","borderRadius","0.65rem"],["width","8.8rem","height","2.55rem","borderRadius","0.65rem"],["width","7.7rem","height","2.55rem","borderRadius","0.65rem"],["width","6.6rem","height","2.55rem","borderRadius","0.65rem"],["width","7.4rem","height","2.55rem","borderRadius","0.65rem"],[1,"account-workspace-skeleton__stats"],["class","account-workspace-skeleton__card",4,"ngFor","ngForOf"],[1,"account-workspace-skeleton__main-grid"],[1,"account-workspace-skeleton__panel","account-workspace-skeleton__panel--wide"],["width","11.5rem","height","1rem","borderRadius","0.5rem"],["width","15rem","height","1.25rem","borderRadius","0.5rem"],["class","account-workspace-skeleton__recommendation",4,"ngFor","ngForOf"],[1,"account-workspace-skeleton__panel"],["
1width","8.4rem","height","1rem","borderRadius","0.5rem"],["width","9.2rem","height","1.25rem","borderRadius","0.5rem"],["width","100%","height","0.75rem","borderRadius","999px"],["class","account-workspace-skeleton__profile-row",4,"ngFor","ngForOf"],[1,"account-workspace-skeleton__content-grid"],["class","account-workspace-skeleton__panel",4,"ngFor","ngForOf"],[1,"account-workspace-skeleton__card"],["width","5.8rem","height","0.9rem","borderRadius","0.5rem"],["width","7.6rem","height","1.8rem","borderRadius","0.5rem"],["width","100%","height","0.85rem","borderRadius","0.4rem"],[1,"account-workspace-skeleton__recommendation"],[1,"account-workspace-skeleton__recommendation-copy"],["width","11rem","height","0.95rem","borderRadius","0.4rem"],["width","94%","height","0.8rem","borderRadius","0.4rem"],["width","5.8rem","height","0.95rem","borderRadius","0.4rem"],[1,"account-workspace-skeleton__profile-row"],["width","4.8rem","height","0.85rem","borderRadius","0.4rem"],["width","6.6rem","height","0.85rem","borderRadius","0.4rem"],["width","8.8rem","height","1rem","borderRadius","0.5rem"],["width","12rem","height","1.2rem","borderRadius","0.5rem"],["class","account-workspace-skeleton__list-row",4,"ngFor","ngForOf"],[1,"account-workspace-skeleton__list-row"],["width","7.6rem","height","0.85rem","borderRadius","0.4rem"],["width","5.8rem","height","0.85rem","borderRadius","0.4rem"],[1,"dashboard-shell","account-workspace"],[1,"workspace-hero-bar","dash-reveal"],[1,"workspace-hero-bar__left"],[1,"workspace-hero-bar__eyebrow"],[1,"workspace-hero-bar__row"],[1,"workspace-hero-bar__title"],[1,"workspace-hero-bar__chips"],[1,"hero-chip"],[1,"hero-chip__dot"],["class","hero-chip hero-chip--ghost",4,"ngIf"],[1,"workspace-hero-bar__actions"],["pButton","","type","button","label","Back To Accounts","icon","pi pi-arrow-left",1,"p-button-text","p-button-sm",3,"click"],["pButton","","type","button","label","Contacts","icon","pi pi-users",1,"p-button-outlined","p-button-sm",3,"routerLink"],["pButton","","type","button","label","Create Activity","icon","pi pi-calendar-plus",1,"p-button-outlined","p-button-sm",3,"click"],["pButton","","type","button","label","Edit Account","icon","pi pi-pencil",1,"p-button-outlined","p-button-sm",3,"click"],["pButton","","type","button","label","New Quotation","icon","pi pi-file-edit",1,"p-button-outlined","p-button-sm",3,"routerLink","queryParams"],["pButton","","type","button","label","New Deal","icon","pi pi-briefcase",1,"p-button-sm",3,"routerLink","queryParams"],["pButton","","type","button","label","New Ticket","icon","pi pi-headset",1,"p-button-outlined","p-button-sm",3,"routerLink","queryParams"],["context","account",3,"accountId",4,"ngIf"],["class","workspace-copilot-panel dashboard-card dash-reveal",3,"--delay",4,"ngIf"],["aria-label","Page sections",1,"crm-section-tabs"],["type","button","class","crm-section-tabs__item",3,"crm-section-tabs__item--active","click",4,"ngFor","ngForOf","ngForTrackBy"],["id","related-overview",1,"crm-page-section"],["class","workspace-next-action dash-reveal",3,"--delay",4,"ngIf"],[1,"workspace-stat-grid"],["class","dashboard-card dash-reveal workspace-stat-card",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["id","related-next-moves",1,"crm-page-section","dashboard-card","dash-reveal","workspace-panel"],[1,"workspace-panel__header"],[1,"workspace-panel__eyebrow"],[1,"workspace-panel__title"],[1,"workspace-panel__meta"],[1,"workspace-recommendations"],["class","workspace-recommendation",3,"ngClass","routerLink","queryParams",4,"ngFor","ngForOf","ngForTrackBy"],["id","related-profile",1,"crm-page-section","dashboard-card","dash-reveal","workspace-panel"],[1,"workspace-health"],[1,"workspace-health__score"],[1,"workspace-health__meter"],[1,"workspace-health__meter-fill"],[1,"workspace-health__summary"],[1,"workspace-profile"],[1,"workspace-profile__row"],["target","_blank","rel","noopener noreferrer",3,"href",4,"ngIf","ngIfElse"],["id","related-commerce",1,"crm-page-section"],[1,"workspace-stage-grid"],["class","workspace-stage-card",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["id","related-risk",1,"crm-page-section","dashboard-card","dash-reveal","workspace-panel","workspace-panel--risk"],["class","workspace-risk-list",4,"ngIf","ngIfElse"],["id","related-notes",1,"crm-page-section","dashboard-card","workspace-panel"],["for","account-notes",1,"block","mb-2","font-semibold"],["
1id","account-notes","pTextarea","","rows","8","placeholder","Write internal notes about this account...",1,"w-full",3,"ngModelChange","ngModel"],[1,"crm-related-panel__actions"],["pButton","","type","button","label","Save Notes","icon","pi pi-check",3,"click"],["id","related-connected",1,"crm-page-section","dashboard-card","workspace-panel"],["class","workspace-lane__list",4,"ngIf","ngIfElse"],["id","related-cadences",1,"crm-page-section","dashboard-card","workspace-panel"],[1,"empty-state-card"],["id","related-attachments",1,"crm-page-section","dashboard-card","workspace-panel"],["id","related-deals",1,"crm-page-section","dashboard-card","workspace-panel"],["pButton","","type","button","label","New Deal","icon","pi pi-plus",1,"p-button-outlined","p-button-sm",3,"click"],["id","related-open-activities",1,"crm-page-section","dashboard-card","workspace-panel"],["pButton","","type","button","label","New Activity","icon","pi pi-plus",1,"p-button-outlined","p-button-sm",3,"click"],["id","related-closed-activities",1,"crm-page-section","dashboard-card","workspace-panel"],["id","related-timeline",1,"crm-page-section","dashboard-card","workspace-panel","workspace-panel--wide"],["class","workspace-commerce-grid",4,"ngIf","ngIfElse"],["class","workspace-timeline",4,"ngIf","ngIfElse"],[1,"hero-chip","hero-chip--ghost"],["context","account",3,"accountId"],[1,"workspace-copilot-panel","dashboard-card","dash-reveal"],[1,"workspace-panel__header","workspace-copilot-panel__head"],[1,"workspace-copilot-panel__hint"],[1,"workspace-copilot-panel__embed"],[3,"copilotAccountId","workspaceCopilotOnly"],["type","button",1,"crm-section-tabs__item",3,"click"],["class","crm-section-tabs__badge",4,"ngIf"],[1,"crm-section-tabs__badge"],[1,"workspace-next-action","dash-reveal"],[1,"workspace-next-action__copy"],[1,"workspace-next-action__eyebrow"],["pButton","","type","button","icon","pi pi-arrow-right","iconPos","right",3,"label","routerLink","queryParams"],[1,"dashboard-card","dash-reveal","workspace-stat-card",3,"ngClass"],[1,"workspace-stat-card__header"],[1,"workspace-stat-card__label"],[1,"workspace-stat-card__link",3,"routerLink","queryParams"],[1,"workspace-stat-card__value"],[1,"workspace-stat-card__detail"],[1,"workspace-recommendation",3,"ngClass","routerLink","queryParams"],[1,"workspace-recommendation__copy"],[1,"workspace-recommendation__cta"],["target","_blank","rel","noopener noreferrer",3,"href"],[1,"workspace-stage-card",3,"ngClass"],[1,"workspace-stage-card__label"],[1,"workspace-stage-card__count"],[1,"workspace-stage-card__detail"],[1,"workspace-risk-list"],["class","workspace-risk-flag",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[1,"workspace-risk-flag",3,"ngClass"],[1,"workspace-risk-flag__dot"],[1,"workspace-empty","workspace-empty--compact"],[1,"workspace-lane__list"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"workspace-lane__title"],[1,"workspace-lane__meta"],[1,"workspace-lane__amt"],[1,"workspace-commerce-grid"],["class","workspace-commerce-card",3,"ngClass","routerLink","queryParams",4,"ngFor","ngForOf","ngForTrackBy"],[1,"workspace-commerce-card",3,"ngClass","routerLink","queryParams"],[1,"workspace-commerce-card__label"],[1,"workspace-commerce-card__amount"],[1,"workspace-commerce-card__meta"],[1,"workspace-empty"],[1,"workspace-timeline"],["class","workspace-timeline__item",3,"routerLink","queryParams",4,"ngFor","ngForOf","ngForTrackBy"],[1,"workspace-timeline__item",3,"routerLink","queryParams"],[1,"workspace-timeline__badge",3,"ngClass"],[1,"workspace-timeline__copy"],["class","dashboard-shell workspace-empty-state",4,"ngIf"],[1,"dashboard-shell","workspace-empty-state"],[1,"workspace-empty-state__copy"],[1,"dashboard-hero__eyebrow"],[1,"dashboard-hero__title"],[1,"dashboard-hero__subtitle"],["pButton","","type","button","label","Back To Accounts","icon","pi pi-arrow-left",3,"click"]],template:function(e,s){if(e&1&&(g(0,Je,33,8,"ng-container",9)(1,Wt,189,91,"ng-container",10),u(2,"p-toast"),g(3,zt,1,1,"ng-template",null,0,O)),e&2){let c=v(4);l("ngIf",s.loading),r(),l("ngIf",!s.loading&&s.account)("ngIfElse",c)}},dependencies:[W,F,N,R,re,ge,pe,de,me,q,le,se,Ce,ve,Pe,ue,D,we,fe,ke,he],styles:['[_nghost-%COMP%]{display:block}.account-workspace[_ngcontent-%COMP%], .workspace-loading[_ngcontent-%COMP%], .workspace-empty-state[_ngcontent-%COMP%]{margin:1.5rem .5rem 2rem}.workspace-loading[_ngcontent-%COMP%], .workspace-empty-state[_ngcontent-%COMP%]{min-height:18rem;display:flex;align-items:flex-start}.workspace-loading__copy[_ngcontent-%COMP%], .workspace-empty-state__copy[_ngcontent-%COMP%]{max-width:42rem}.account-workspace-skeleton[_ngcontent-%COMP%]{display:grid;gap:1rem;width:100%}.account-workspace-skeleton__hero[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(19rem,1fr);gap:1rem}.account-workspace-skeleton__hero-copy[_ngcontent-%COMP%], .account-workspace-skeleton__hero-actions[_ngcontent-%COMP%], .account-workspace-skeleton__card[_ngcontent-%COMP%], .account-workspace-skeleton__panel[_ngcontent-%COMP%], .account-workspace-skeleton__recommendation[_ngcontent-%COMP%], .account-workspace-skeleton__list-row[_ngcontent-%COMP%], .account-workspace-skeleton__profile-row[_ngcontent-%COMP%]{border:1px solid color-mix(in srgb,var(--surface-border) 78%,#ffffff 22%);border-radius:1rem;background:color-mix(in srgb,#ffffff 97%,var(--surface-card) 3%)}.account-workspace-skeleton__hero-copy[_ngcontent-%COMP%], .account-workspace-skeleton__hero-actions[_ngcontent-%COMP%], .account-workspace-skeleton__card[_ngcontent-%COMP%], .account-workspace-skeleton__panel[_ngcontent-%COMP%]{padding:1rem}.account-workspace-skeleton__hero-copy[_ngcontent-%COMP%], .account-workspace-skeleton__hero-actions[_ngcontent-%COMP%], .account-workspace-skeleton__panel[_ngcontent-%COMP%], .account-workspace-skeleton__recommendation-copy[_ngcontent-%COMP%]{display:grid;gap:.7rem}.account-workspace-skeleton__chip-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.55rem}.account-workspace-skeleton__hero-actions[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr));align-content:flex-start}.account-workspace-skeleton__stats[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem}.account-workspace-skeleton__card[_ngcontent-%COMP%]{display:grid;gap:.75rem}.account-workspace-skeleton__main-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(18.5rem,.8fr);gap:1rem}.account-workspace-skeleton__panel[_ngcontent-%COMP%]{display:grid;gap:.75rem}.account-workspace-skeleton__recommendation[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.8rem;padding:.75rem .9rem}.account-workspace-skeleton__recommendation-copy[_ngcontent-%COMP%]{min-width:0;flex:1}.account-workspace-skeleton__profile-row[_ngcontent-%COMP%], .account-workspace-skeleton__list-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.9rem;padding:.65rem .75rem}.account-workspace-skeleton__content-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}@media (max-width: 1100px){.account-workspace-skeleton__hero[_ngcontent-%COMP%], .account-workspace-skeleton__main-grid[_ngcontent-%COMP%], .account-workspace-skeleton__content-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.account-workspace-skeleton__stats[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 700px){.account-workspace-skeleton__hero-actions[_ngcontent-%COMP%], .account-workspace-skeleton__stats[_ngcontent-%COMP%]{grid-template-columns:1fr}}
1.workspace-hero-bar[_ngcontent-%COMP%]{position:relative;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:1rem 1.25rem;flex-wrap:wrap;padding:.35rem 0 1rem;margin:0;border:0;background:transparent}.workspace-hero-bar__left[_ngcontent-%COMP%]{flex:1 1 18rem;min-width:0;display:flex;flex-direction:column;gap:.35rem}.workspace-hero-bar__eyebrow[_ngcontent-%COMP%]{display:inline-block;font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-color-secondary, #64748b);white-space:nowrap;line-height:1.2}.workspace-hero-bar__row[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem .75rem;min-width:0}.workspace-hero-bar__title[_ngcontent-%COMP%]{margin:0;font-size:1.35rem;font-weight:750;line-height:1.25;color:var(--text-color, #0f172a);white-space:nowrap}.workspace-hero-bar__chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;min-width:0}.workspace-hero-bar__chips[_ngcontent-%COMP%] .hero-chip[_ngcontent-%COMP%]{padding:.28rem .7rem;font-size:.78rem;white-space:nowrap}.workspace-hero-bar__actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.4rem;flex:0 1 auto;max-width:100%}.workspace-hero-bar__actions[_ngcontent-%COMP%] :is(.p-button[_ngcontent-%COMP%], a.p-button[_ngcontent-%COMP%], button[_ngcontent-%COMP%]){flex:0 0 auto}.workspace-stat-grid[_ngcontent-%COMP%], .workspace-stage-grid[_ngcontent-%COMP%], .workspace-main-grid[_ngcontent-%COMP%], .workspace-content-grid[_ngcontent-%COMP%]{display:grid;gap:1rem;position:relative;z-index:1}.workspace-stat-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(5,minmax(0,1fr))}.workspace-main-grid[_ngcontent-%COMP%], .workspace-content-grid--bottom[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1.4fr) minmax(20rem,.8fr);margin-top:1rem}.workspace-content-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:1rem}.workspace-stage-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:1rem}.workspace-panel[_ngcontent-%COMP%]{min-height:100%}.workspace-panel__header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.workspace-panel__eyebrow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.45rem;font-size:.75rem;letter-spacing:.18em;text-transform:uppercase;font-weight:700;color:var(--dash-muted)}.workspace-panel__title[_ngcontent-%COMP%]{margin:.45rem 0 0;color:var(--dash-ink);font-size:1.2rem;font-weight:700}.workspace-panel__meta[_ngcontent-%COMP%], .workspace-panel__link[_ngcontent-%COMP%]{color:var(--dash-muted);font-size:.88rem}.workspace-panel__link[_ngcontent-%COMP%]{text-decoration:none;font-weight:600}.workspace-panel__link[_ngcontent-%COMP%]:hover{color:var(--dash-ink)}.workspace-stat-card__header[_ngcontent-%COMP%], .workspace-deal-card__header[_ngcontent-%COMP%], .workspace-profile__row[_ngcontent-%COMP%], .workspace-timeline__item[_ngcontent-%COMP%], .workspace-recommendation[_ngcontent-%COMP%], .workspace-health__score[_ngcontent-%COMP%], .workspace-stage-card[_ngcontent-%COMP%], .workspace-commerce-card[_ngcontent-%COMP%]{display:flex;align-items:center}.workspace-stat-card__header[_ngcontent-%COMP%]{justify-content:space-between;gap:.75rem}.workspace-stat-card__label[_ngcontent-%COMP%]{color:var(--dash-muted);text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;font-weight:700}.workspace-stat-card__link[_ngcontent-%COMP%]{text-decoration:none;color:var(--dash-ink);font-size:.82rem;font-weight:600}.workspace-stat-card__value[_ngcontent-%COMP%]{display:block;margin-top:1rem;color:var(--dash-ink);font-size:1.75rem;line-height:1.1}.workspace-stat-card__detail[_ngcontent-%COMP%]{margin:.8rem 0 0;color:var(--dash-muted);line-height:1.6}.workspace-stat-card--amber[_ngcontent-%COMP%]:before, .workspace-stage-card--amber[_ngcontent-%COMP%]:before{background:linear-gradient(90deg,#f4a261,#f6bd60)}.workspace-stat-card--teal[_ngcontent-%COMP%]:before, .workspace-stage-card--teal[_ngcontent-%COMP%]:before{background:linear-gradient(90deg,#2a9d8f,#4cc9b0)}.workspace-stat-card--blue[_ngcontent-%COMP%]:before, .workspace-stage-card--blue[_ngcontent-%COMP%]:before{background:linear-gradient(90deg,#3b82f6,#60a5fa)}.workspace-stat-card--coral[_ngcontent-%COMP%]:before, .workspace-stage-card--coral[_ngcontent-%COMP%]:before{background:linear-gradient(90deg,#ef4444,#f97316)}.workspace-recommendations[_ngcontent-%COMP%]{display:grid;gap:.85rem}.workspace-recommendation[_ngcontent-%COMP%]{justify-content:space-between;gap:1rem;padding:1rem 1.1rem;border-radius:1rem;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease}.workspace-recommendation[_ngcontent-%COMP%]:hover{transform:translateY(-2px)}.workspace-recommendation__copy[_ngcontent-%COMP%]{display:grid;gap:.3rem}.workspace-recommendation__copy[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--dash-ink)}.workspace-recommendation__copy[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .workspace-recommendation__cta[_ngcontent-%COMP%]{color:var(--dash-muted)}.workspace-recommendation__cta[_ngcontent-%COMP%]{white-space:nowrap;font-weight:700}.workspace-recommendation--urgent[_ngcontent-%COMP%]{background:#ef444414;box-shadow:inset 0 0 0 1px #ef44441f}.workspace-recommendation--steady[_ngcontent-%COMP%]{background:#3b82f614;box-shadow:inset 0 0 0 1px #3b82f61f}.workspace-recommendation--good[_ngcontent-%COMP%]{background:#16a34a14;box-shadow:inset 0 0 0 1px #16a34a1f}.workspace-health[_ngcontent-%COMP%]{display:grid;gap:1rem}.workspace-health__score[_ngcontent-%COMP%]{justify-content:space-between;gap:1rem}.workspace-health__score[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:2.25rem;line-height:1;color:var(--dash-ink)}.workspace-health__score[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--dash-muted);font-weight:700}.workspace-health__meter[_ngcontent-%COMP%]{height:.75rem;border-radius:999px;background:#0f172a14;overflow:hidden}.workspace-health__meter-fill[_ngcontent-%COMP%]{height:100%;border-radius:inherit;background:linear-gradient(90deg,#f4a261,#2a9d8f)}.workspace-health__summary[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:var(--dash-muted);line-height:1.7}.workspace-profile[_ngcontent-%COMP%]{display:grid;gap:.8rem;margin-top:1.25rem;padding-top:1.1rem;border-top:1px solid var(--dash-border)}.workspace-profile__row[_ngcontent-%COMP%]{justify-content:space-between;gap:1rem}.workspace-profile__row[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--dash-muted)}.workspace-profile__row[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .workspace-profile__row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--dash-ink);font-weight:600;text-align:right}.workspace-stage-card[_ngcontent-%COMP%]{position:relative;align-items:flex-start;flex-direction:column;gap:.45rem;padding:1.1rem 1.15rem;border-radius:1.2rem;background:color-mix(in srgb,var(--surface-card) 88%,transparent);border:1px solid var(--dash-border);overflow:hidden}.workspace-stage-card[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0 auto 0 0;width:4px}.workspace-stage-card__label[_ngcontent-%COMP%]{color:var(--dash-muted);text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;font-weight:700}.workspace-stage-card__count[_ngcontent-%COMP%]{color:var(--dash-ink);font-size:1.65rem;line-height:1.1}.workspace-stage-card__detail[_ngcontent-%COMP%]{margin:0;color:var(--dash-muted);line-height:1.6}.workspace-contact-list[_ngcontent-%COMP%], .workspace-deal-list[_ngcontent-%COMP%], .workspace-timeline[_ngcontent-%COMP%]{display:grid;gap:.9rem}.workspace-contact-card[_ngcontent-%COMP%], .workspace-deal-card[_ngcontent-%COMP%], .workspace-timeline__item[_ngcontent-%COMP%]{border-radius:1rem;
1background:color-mix(in srgb,var(--surface-card) 86%,transparent);border:1px solid var(--dash-border)}.workspace-contact-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.9rem;padding:.95rem 1rem}.workspace-contact-card__avatar[_ngcontent-%COMP%]{width:2.75rem;height:2.75rem;border-radius:999px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#2a9d8f,#4cc9b0);color:#fff;font-weight:700;flex-shrink:0}.workspace-contact-card__copy[_ngcontent-%COMP%]{display:grid;gap:.18rem}.workspace-contact-card__copy[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--dash-ink)}.workspace-contact-card__copy[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--dash-muted)}.workspace-deal-card[_ngcontent-%COMP%]{padding:1rem}.workspace-deal-card__header[_ngcontent-%COMP%]{justify-content:space-between;gap:.75rem}.workspace-deal-card__header[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .workspace-deal-card__header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--dash-ink)}.workspace-deal-card__meta[_ngcontent-%COMP%]{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:.7rem}.workspace-deal-card__meta[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:.32rem .65rem;border-radius:999px;background:#0f172a0f;color:var(--dash-muted);font-size:.8rem;font-weight:600}.workspace-deal-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.85rem 0 0;color:var(--dash-muted);line-height:1.65}.workspace-commerce-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem}.workspace-commerce-card[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.45rem;padding:1rem;border-radius:1rem;text-decoration:none;border:1px solid transparent}.workspace-commerce-card__label[_ngcontent-%COMP%]{color:var(--dash-muted);font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700}.workspace-commerce-card__amount[_ngcontent-%COMP%]{color:var(--dash-ink);font-size:1.15rem}.workspace-commerce-card__meta[_ngcontent-%COMP%]{color:var(--dash-muted)}.workspace-commerce-card--quote[_ngcontent-%COMP%]{background:#3b82f614;border-color:#3b82f629}.workspace-commerce-card--invoice[_ngcontent-%COMP%]{background:#ef444414;border-color:#ef444424}.workspace-commerce-card--order[_ngcontent-%COMP%]{background:#f4a2611a;border-color:#f4a2612e}.workspace-commerce-card--challan[_ngcontent-%COMP%]{background:#2a9d8f1a;border-color:#2a9d8f2e}.workspace-timeline__item[_ngcontent-%COMP%]{justify-content:space-between;align-items:flex-start;gap:1rem;padding:.95rem 1rem;text-decoration:none}.workspace-timeline__badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:6.6rem;padding:.38rem .8rem;border-radius:999px;font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.workspace-timeline__badge--activity[_ngcontent-%COMP%]{background:#2a9d8f1f;color:#0f766e}.workspace-timeline__badge--note[_ngcontent-%COMP%]{background:#64748b24;color:#475569}.workspace-timeline__badge--contact[_ngcontent-%COMP%]{background:#6366f11f;color:#4f46e5}.workspace-timeline__badge--deal[_ngcontent-%COMP%]{background:#f4a2611f;color:#c57a09}.workspace-timeline__badge--quotation[_ngcontent-%COMP%]{background:#3b82f61f;color:#2563eb}.workspace-timeline__badge--invoice[_ngcontent-%COMP%]{background:#ef44441f;color:#dc2626}.workspace-timeline__badge--sales-order[_ngcontent-%COMP%]{background:#8b5cf61f;color:#7c3aed}.workspace-timeline__badge--challan[_ngcontent-%COMP%]{background:#0d94881f;color:#0f766e}.workspace-timeline__badge--service-desk[_ngcontent-%COMP%]{background:#ef44441f;color:#b91c1c}.workspace-timeline__copy[_ngcontent-%COMP%]{flex:1;display:grid;gap:.2rem}.workspace-timeline__copy[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--dash-ink)}.workspace-timeline__copy[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .workspace-timeline__item[_ngcontent-%COMP%] time[_ngcontent-%COMP%]{color:var(--dash-muted)}.workspace-empty[_ngcontent-%COMP%]{display:grid;gap:.35rem;padding:1rem;border-radius:1rem;background:color-mix(in srgb,var(--surface-card) 84%,transparent);border:1px dashed var(--dash-border)}.workspace-empty[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--dash-ink)}.workspace-empty[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--dash-muted);line-height:1.6}@media (max-width: 1200px){.workspace-stat-grid[_ngcontent-%COMP%], .workspace-stage-grid[_ngcontent-%COMP%], .workspace-commerce-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-main-grid[_ngcontent-%COMP%], .workspace-content-grid[_ngcontent-%COMP%], .workspace-content-grid--bottom[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media (max-width: 760px){.account-workspace[_ngcontent-%COMP%], .workspace-loading[_ngcontent-%COMP%], .workspace-empty-state[_ngcontent-%COMP%]{margin-inline:0}.workspace-stat-grid[_ngcontent-%COMP%], .workspace-stage-grid[_ngcontent-%COMP%], .workspace-commerce-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.workspace-hero__actions[_ngcontent-%COMP%], .workspace-panel__header[_ngcontent-%COMP%], .workspace-timeline__item[_ngcontent-%COMP%], .workspace-recommendation[_ngcontent-%COMP%], .workspace-health__score[_ngcontent-%COMP%], .workspace-profile__row[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.workspace-timeline__badge[_ngcontent-%COMP%]{min-width:0}.workspace-profile__row[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .workspace-profile__row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:left}.workspace-commerce-lanes[_ngcontent-%COMP%]{grid-template-columns:1fr}}.workspace-next-action[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1.25rem 1.5rem;margin-top:1rem;border-radius:1rem;border:1px solid rgba(31,75,153,.18);background:linear-gradient(135deg,#1f4b990f,#f28c3814)}.workspace-next-action__eyebrow[_ngcontent-%COMP%]{display:block;font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#1f4b99;margin-bottom:.35rem}.workspace-next-action__copy[_ngcontent-%COMP%]{flex:1;min-width:14rem}.workspace-next-action__copy[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block;font-size:1.05rem;color:#123055;margin-bottom:.25rem}.workspace-next-action__copy[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#5d6f89;font-size:.92rem;line-height:1.45}.workspace-risk-notes-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:1rem;margin-top:1rem}.workspace-panel--risk[_ngcontent-%COMP%], .workspace-panel--notes[_ngcontent-%COMP%]{min-height:12rem}.workspace-risk-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.85rem}.workspace-risk-flag[_ngcontent-%COMP%]{display:flex;gap:.75rem;
1align-items:flex-start;padding:.65rem .75rem;border-radius:.75rem;border:1px solid #e7eef8;background:#fbfdff}.workspace-risk-flag__dot[_ngcontent-%COMP%]{width:.5rem;height:.5rem;border-radius:999px;margin-top:.35rem;flex-shrink:0}.workspace-risk-flag--high[_ngcontent-%COMP%] .workspace-risk-flag__dot[_ngcontent-%COMP%]{background:#c62828}.workspace-risk-flag--high[_ngcontent-%COMP%]{border-color:#c6282840}.workspace-risk-flag--medium[_ngcontent-%COMP%] .workspace-risk-flag__dot[_ngcontent-%COMP%]{background:#f57c00}.workspace-risk-flag--medium[_ngcontent-%COMP%]{border-color:#f57c0038}.workspace-risk-flag--low[_ngcontent-%COMP%] .workspace-risk-flag__dot[_ngcontent-%COMP%]{background:#2e7d32}.workspace-risk-flag--low[_ngcontent-%COMP%]{border-color:#2e7d3233}.workspace-risk-flag[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block;font-size:.95rem;color:#123055}.workspace-risk-flag[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.2rem 0 0;font-size:.85rem;color:#5d6f89;line-height:1.4}.workspace-notes-body[_ngcontent-%COMP%]{margin:0;white-space:pre-wrap;font-size:.95rem;line-height:1.55;color:#123055}.workspace-empty--compact[_ngcontent-%COMP%]{padding:.5rem 0}.workspace-empty--compact[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block;margin-bottom:.35rem}.workspace-commerce-lanes[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem;margin-top:1rem}.workspace-lane[_ngcontent-%COMP%]{padding:1rem 1.1rem;min-height:10rem}.workspace-lane__head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.75rem;font-weight:700;font-size:.88rem;color:#123055}.workspace-lane__head-actions[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4rem}.workspace-lane__count[_ngcontent-%COMP%]{font-size:.78rem;font-weight:600;color:#1f4b99}.workspace-lane__link[_ngcontent-%COMP%]{font-size:.78rem;font-weight:600;color:#1f4b99;text-decoration:none}.workspace-lane__link--icon[_ngcontent-%COMP%]{width:1.8rem;height:1.8rem;border-radius:999px;border:1px solid rgba(31,75,153,.22);display:inline-flex;align-items:center;justify-content:center;font-size:.82rem}.workspace-lane__link[_ngcontent-%COMP%]:hover{text-decoration:underline}.workspace-lane__link--icon[_ngcontent-%COMP%]:hover{text-decoration:none;background:#1f4b9914}.workspace-lane__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.55rem}.workspace-lane__list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:.15rem .5rem;padding-bottom:.45rem;border-bottom:1px solid #eef2f8;font-size:.82rem}.workspace-lane__list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{border-bottom:0;padding-bottom:0}.workspace-lane__title[_ngcontent-%COMP%]{grid-column:1/-1;font-weight:600;color:#123055}.workspace-lane__meta[_ngcontent-%COMP%]{color:#7a8aa3;font-size:.78rem}.workspace-lane__amt[_ngcontent-%COMP%]{grid-column:2;grid-row:2;font-weight:600;color:#1f4b99;text-align:right}.workspace-lane__empty[_ngcontent-%COMP%]{margin:0;font-size:.85rem;color:#7a8aa3}@media (max-width: 1100px){.workspace-risk-notes-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.workspace-commerce-lanes[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}.workspace-copilot-panel[_ngcontent-%COMP%]{margin-bottom:1.25rem;padding:1.25rem 1.35rem}.workspace-copilot-panel__hint[_ngcontent-%COMP%]{margin:.35rem 0 0;font-size:.88rem;color:#5d6f89;line-height:1.45}.workspace-copilot-panel__embed[_ngcontent-%COMP%]{margin-top:.85rem;max-height:520px;overflow:hidden;border-radius:14px;border:1px solid rgba(31,75,153,.12);background:#fbfdff}.app-dark[_nghost-%COMP%] .workspace-copilot-panel__hint[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-copilot-panel__hint[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .workspace-next-action__copy[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-next-action__copy[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .workspace-lane__meta[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-lane__meta[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .workspace-lane__empty[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-lane__empty[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-copilot-panel__hint[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-copilot-panel__hint[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-next-action__copy[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-next-action__copy[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-lane__meta[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-lane__meta[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-lane__empty[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-lane__empty[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-copilot-panel__hint[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-copilot-panel__hint[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-next-action__copy[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-next-action__copy[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-lane__meta[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-lane__meta[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-lane__empty[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-lane__empty[_ngcontent-%COMP%]{color:#a9b8cc}.app-dark[_nghost-%COMP%] .workspace-copilot-panel__embed[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-copilot-panel__embed[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-copilot-panel__embed[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-copilot-panel__embed[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-copilot-panel__embed[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-copilot-panel__embed[_ngcontent-%COMP%]{background:#0b1120;border-color:#94a3b847}.app-dark[_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .workspace-empty[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-empty[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .workspace-lane__list[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-lane__list[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-empty[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-empty[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-lane__list[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-lane__list[_ngcontent-%COMP%] li[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-empty[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-empty[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-lane__list[_ngcontent-%COMP%] li[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-lane__list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{background:#111827;border-color:#94a3b83d}.app-dark[_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .workspace-notes-body[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-notes-body[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .workspace-next-action__copy[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-next-action__copy[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .workspace-lane__head[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-lane__head[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .workspace-lane__title[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-lane__title[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-notes-body[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-notes-body[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-next-action__copy[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-next-action__copy[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-lane__head[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-lane__head[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-lane__title[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-lane__title[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-risk-flag[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-notes-body[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-notes-body[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-next-action__copy[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-next-action__copy[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-lane__head[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-lane__head[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-lane__title[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-lane__title[_ngcontent-%COMP%]{color:#f8fafc}.app-dark[_nghost-%COMP%] .workspace-lane__link[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-lane__link[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .workspace-lane__count[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-lane__count[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .workspace-lane__amt[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-lane__amt[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-lane__link[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-lane__link[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-lane__count[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-lane__count[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-lane__amt[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-lane__amt[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-lane__link[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-lane__link[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-lane__count[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-lane__count[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-lane__amt[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-lane__amt[_ngcontent-%COMP%]{color:#93c5fd}.app-dark[_nghost-%COMP%] .workspace-lane__link--icon[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-lane__link--icon[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-lane__link--icon[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-lane__link--icon[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-lane__link--icon[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-lane__link--icon[_ngcontent-%COMP%]{border-color:#93c5fd59;background:#93c5fd14}.app-dark[_nghost-%COMP%] .workspace-risk-flag--high[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-risk-flag--high[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-risk-flag--high[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-risk-flag--high[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-risk-flag--high[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-risk-flag--high[_ngcontent-%COMP%]{border-color:#f871716b}
1.app-dark[_nghost-%COMP%] .workspace-risk-flag--medium[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-risk-flag--medium[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-risk-flag--medium[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-risk-flag--medium[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-risk-flag--medium[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-risk-flag--medium[_ngcontent-%COMP%]{border-color:#fbbf2461}.app-dark[_nghost-%COMP%] .workspace-risk-flag--low[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .workspace-risk-flag--low[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .workspace-risk-flag--low[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .workspace-risk-flag--low[_ngcontent-%COMP%], [class*=app-dark][_nghost-%COMP%] .workspace-risk-flag--low[_ngcontent-%COMP%], [class*=app-dark] [_nghost-%COMP%] .workspace-risk-flag--low[_ngcontent-%COMP%]{border-color:#4ade8057}.crm-related-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(220px,260px) minmax(0,1fr);gap:1rem;align-items:start;margin-top:.5rem}.crm-related-nav[_ngcontent-%COMP%]{position:sticky;top:1rem;max-height:calc(100vh - 6rem);overflow:auto;padding:.85rem .75rem 1rem;border-radius:.9rem;background:var(--surface-card, #fff);border:1px solid color-mix(in srgb,var(--surface-border, #e2e8f0) 88%,transparent);box-shadow:0 8px 22px #0f172a0a}.crm-related-nav__head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.15rem .35rem .75rem;border-bottom:1px solid color-mix(in srgb,var(--surface-border, #e2e8f0) 80%,transparent);margin-bottom:.45rem}.crm-related-nav__title[_ngcontent-%COMP%]{margin:0;font-size:1rem;font-weight:700;color:var(--text-color, #1e293b)}.crm-related-nav__list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.2rem}.crm-related-nav__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.45rem;width:100%;padding:.55rem .65rem;border:0;border-radius:.55rem;background:transparent;color:var(--text-color, #334155);cursor:pointer;text-align:left}.crm-related-nav__item[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--primary-color, #2563eb) 8%,transparent)}.crm-related-nav__item--active[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--primary-color, #2563eb) 14%,#eff6ff);color:var(--primary-color, #1d4ed8);font-weight:600}.crm-related-nav__label[_ngcontent-%COMP%]{flex:1;font-size:.92rem}.crm-related-nav__badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:1.35rem;height:1.35rem;padding:0 .35rem;border-radius:.35rem;background:color-mix(in srgb,var(--surface-100, #f1f5f9) 88%,#cbd5e1);color:var(--text-color, #334155);font-size:.72rem;font-weight:700}.crm-related-nav__add[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;border:0;border-radius:.35rem;background:transparent;color:var(--primary-color, #2563eb);cursor:pointer}.crm-related-nav__add[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--primary-color, #2563eb) 12%,transparent)}.crm-related-nav__loading[_ngcontent-%COMP%]{margin:.5rem .35rem 0;font-size:.8rem;color:var(--text-color-secondary, #64748b)}.crm-related-sections[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;min-width:0}.crm-related-section[_ngcontent-%COMP%]{scroll-margin-top:1.25rem;padding:1.1rem 1.25rem 1.25rem}.crm-related-section--active[_ngcontent-%COMP%]{outline:2px solid color-mix(in srgb,var(--primary-color, #2563eb) 35%,transparent);outline-offset:1px}.crm-related-panel__actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:.85rem}.empty-state-card[_ngcontent-%COMP%]{padding:1.25rem .5rem;color:var(--text-color-secondary, #64748b)}@media (max-width: 960px){.crm-related-layout[_ngcontent-%COMP%]{grid-template-columns:1fr}.crm-related-nav[_ngcontent-%COMP%]{position:static;max-height:none}.crm-related-nav__list[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:nowrap;overflow-x:auto;gap:.35rem;padding-bottom:.25rem}.crm-related-nav__item[_ngcontent-%COMP%]{flex:0 0 auto;white-space:nowrap}}.crm-section-tabs[_ngcontent-%COMP%]{position:relative;z-index:2;display:flex;flex-wrap:nowrap;gap:.35rem;overflow-x:auto;padding:.75rem .35rem;margin:0 0 1.15rem;background:color-mix(in srgb,var(--surface-card, #fff) 88%,#f1f5f9);border:1px solid color-mix(in srgb,var(--surface-border, #e2e8f0) 85%,transparent);border-radius:.85rem;scrollbar-width:thin}.crm-section-tabs__item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4rem;flex:0 0 auto;padding:.55rem .9rem;border:0;border-radius:999px;background:var(--surface-card, #fff);color:var(--text-color, #334155);font-size:.88rem;font-weight:600;cursor:pointer;box-shadow:0 1px 2px #0f172a0a;white-space:nowrap}.crm-section-tabs__item[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--primary-color, #2563eb) 10%,#fff)}.crm-section-tabs__item--active[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--primary-color, #2563eb) 16%,#eff6ff);color:var(--primary-color, #1d4ed8)}.crm-section-tabs__badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:1.25rem;height:1.25rem;padding:0 .3rem;border-radius:.35rem;background:color-mix(in srgb,var(--surface-100, #f1f5f9) 88%,#cbd5e1);font-size:.7rem;font-weight:700}.crm-page-section[_ngcontent-%COMP%]{scroll-margin-top:1.25rem;margin-bottom:1rem}.crm-page-section.dashboard-card[_ngcontent-%COMP%], .crm-page-section.workspace-panel[_ngcontent-%COMP%]{padding:1.1rem 1.25rem 1.25rem}.crm-page-section--active[_ngcontent-%COMP%]{outline:2px solid color-mix(in srgb,var(--primary-color, #2563eb) 35%,transparent);outline-offset:2px;border-radius:1rem}.contact-workspace.dashboard-shell[_ngcontent-%COMP%], .account-workspace.dashboard-shell[_ngcontent-%COMP%]{overflow:visible}
1.contact-workspace[_ngcontent-%COMP%] .workspace-hero-bar[_ngcontent-%COMP%], .account-workspace[_ngcontent-%COMP%] .workspace-hero-bar[_ngcontent-%COMP%]{position:relative;z-index:3;overflow:visible}.contact-workspace[_ngcontent-%COMP%] .workspace-hero-bar__actions[_ngcontent-%COMP%], .account-workspace[_ngcontent-%COMP%] .workspace-hero-bar__actions[_ngcontent-%COMP%]{position:relative;z-index:3}@media (min-width: 992px){.account-workspace[_ngcontent-%COMP%] .workspace-hero-bar[_ngcontent-%COMP%], .contact-workspace[_ngcontent-%COMP%] .workspace-hero-bar[_ngcontent-%COMP%]{align-items:center;padding:1rem 1.15rem;border:1px solid var(--surface-border);border-radius:1rem;background:var(--surface-card)}.account-workspace[_ngcontent-%COMP%] .workspace-hero-bar__title[_ngcontent-%COMP%], .contact-workspace[_ngcontent-%COMP%] .workspace-hero-bar__title[_ngcontent-%COMP%]{white-space:normal;overflow-wrap:anywhere}.account-workspace[_ngcontent-%COMP%] .crm-section-tabs[_ngcontent-%COMP%], .contact-workspace[_ngcontent-%COMP%] .crm-section-tabs[_ngcontent-%COMP%]{position:sticky;top:0;z-index:30;background:var(--surface-card, #fff);box-shadow:0 10px 22px #0f172a14}.account-workspace[_ngcontent-%COMP%] .crm-page-section[_ngcontent-%COMP%], .contact-workspace[_ngcontent-%COMP%] .crm-page-section[_ngcontent-%COMP%]{scroll-margin-top:5.5rem}}@media (max-width: 991px){.contact-workspace[_ngcontent-%COMP%], .account-workspace[_ngcontent-%COMP%]{padding-bottom:calc(5.75rem + env(safe-area-inset-bottom,0px))}.contact-workspace[_ngcontent-%COMP%] .crm-page-section[_ngcontent-%COMP%], .account-workspace[_ngcontent-%COMP%] .crm-page-section[_ngcontent-%COMP%]{scroll-margin-bottom:calc(5.75rem + env(safe-area-inset-bottom,0px))}.contact-workspace[_ngcontent-%COMP%] .crm-section-tabs[_ngcontent-%COMP%], .account-workspace[_ngcontent-%COMP%] .crm-section-tabs[_ngcontent-%COMP%]{position:fixed;left:0;right:0;bottom:0;z-index:1000;margin:0;padding:.55rem .65rem calc(.55rem + env(safe-area-inset-bottom,0px));border-radius:0;border-left:0;border-right:0;border-bottom:0;box-shadow:0 -8px 24px #0f172a1f;overflow-x:auto;overflow-y:hidden;max-width:100%}.account-workspace[_ngcontent-%COMP%] .workspace-hero-bar[_ngcontent-%COMP%], .contact-workspace[_ngcontent-%COMP%] .workspace-hero-bar[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;gap:.75rem;padding:.9rem;border:1px solid var(--surface-border);border-radius:1rem;background:var(--surface-card)}.account-workspace[_ngcontent-%COMP%] .workspace-hero-bar__title[_ngcontent-%COMP%], .contact-workspace[_ngcontent-%COMP%] .workspace-hero-bar__title[_ngcontent-%COMP%]{white-space:normal;overflow-wrap:anywhere;font-size:1.28rem}.account-workspace[_ngcontent-%COMP%] .workspace-hero-bar__chips[_ngcontent-%COMP%], .contact-workspace[_ngcontent-%COMP%] .workspace-hero-bar__chips[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.2rem}.account-workspace[_ngcontent-%COMP%] .workspace-hero-bar__chips[_ngcontent-%COMP%] .hero-chip--ghost[_ngcontent-%COMP%], .contact-workspace[_ngcontent-%COMP%] .workspace-hero-bar__chips[_ngcontent-%COMP%] .hero-chip--ghost[_ngcontent-%COMP%]{padding:0;border:0;border-radius:0;background:transparent;font-size:.84rem;font-weight:500;white-space:normal;overflow-wrap:anywhere}.account-workspace[_ngcontent-%COMP%] .workspace-hero-bar__actions[_ngcontent-%COMP%], .contact-workspace[_ngcontent-%COMP%] .workspace-hero-bar__actions[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:.45rem}.account-workspace[_ngcontent-%COMP%] .workspace-hero-bar__actions[_ngcontent-%COMP%] :is(.p-button[_ngcontent-%COMP%], a.p-button[_ngcontent-%COMP%], button[_ngcontent-%COMP%]), .contact-workspace[_ngcontent-%COMP%] .workspace-hero-bar__actions[_ngcontent-%COMP%] :is(.p-button[_ngcontent-%COMP%], a.p-button[_ngcontent-%COMP%], button[_ngcontent-%COMP%]){width:100%;min-width:0;justify-content:center}.account-workspace[_ngcontent-%COMP%] .workspace-hero-bar__actions[_ngcontent-%COMP%] .p-button-text[_ngcontent-%COMP%], .contact-workspace[_ngcontent-%COMP%] .workspace-hero-bar__actions[_ngcontent-%COMP%] .p-button-text[_ngcontent-%COMP%]{grid-column:1/-1;width:auto;justify-content:flex-start}.account-workspace[_ngcontent-%COMP%] .crm-page-section[_ngcontent-%COMP%], .contact-workspace[_ngcontent-%COMP%] .crm-page-section[_ngcontent-%COMP%]{display:none}.account-workspace[_ngcontent-%COMP%] .crm-page-section.crm-page-section--active[_ngcontent-%COMP%], .contact-workspace[_ngcontent-%COMP%] .crm-page-section.crm-page-section--active[_ngcontent-%COMP%]{display:block;outline:none}.account-workspace[_ngcontent-%COMP%] .workspace-stat-grid[_ngcontent-%COMP%], .account-workspace[_ngcontent-%COMP%] .workspace-stage-grid[_ngcontent-%COMP%], .account-workspace[_ngcontent-%COMP%] .workspace-commerce-grid[_ngcontent-%COMP%], .contact-workspace[_ngcontent-%COMP%] .workspace-stat-grid[_ngcontent-%COMP%], .contact-workspace[_ngcontent-%COMP%] .workspace-stage-grid[_ngcontent-%COMP%], .contact-workspace[_ngcontent-%COMP%] .workspace-commerce-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}']})};export{xe as AccountWorkspaceComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.