/* Customer 360 preview styles. Scoped so the local preview's Command Center
   remains governed exclusively by its own workspace/dashboard rules. */
.content .production-customers-page{width:100%;max-width:none;min-width:0;color:#302942;font-family:Inter,Manrope,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.content:has(.production-customers-page){width:100%;max-width:none;margin:0;padding:26px 34px 42px}.production-customers-page .production-module-heading{display:flex;gap:24px;align-items:flex-start;justify-content:space-between}.production-customers-page h1{margin:0;color:#211d31;font-size:clamp(30px,3.4vw,46px);letter-spacing:-.055em;line-height:1.06}.production-customers-page .production-module-heading p{max-width:760px;margin:13px 0 0;color:#757085;font-size:15px;line-height:1.65}.production-customers-page .production-onboarding-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.production-customers-page .production-button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:0 18px;border:1px solid transparent;border-radius:12px;font:inherit;font-size:14px;font-weight:750;cursor:pointer;text-decoration:none}.production-customers-page .production-button-primary{background:#6e42d8;color:#fff}.production-customers-page .production-button-secondary{border-color:#d9ddea;background:#fff;color:#35405c}.production-customer-summary{display:inline-flex;align-items:baseline;gap:10px;margin:22px 0 -6px;color:#837d90;font-size:12px;font-weight:700}.production-customer-summary strong{color:#302942;font-size:22px}.production-customers-page .production-filter-bar{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:24px 0 18px;padding:11px;border:1px solid #e7e3ed;border-radius:15px;background:rgba(255,255,255,.72);box-shadow:0 5px 14px rgba(46,33,75,.025)}.production-customers-page .production-filter-bar input,.production-customers-page .production-filter-bar select{min-height:42px;padding:0 12px;border:1px solid #e4e0e9;border-radius:9px;background:#fff;color:#302942;font:inherit;font-size:13px}.production-customers-page .production-filter-bar input{flex:1 1 270px}.production-customers-page .production-filter-bar select{flex:0 1 150px}.production-customers-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.production-customers-layout.has-selection{grid-template-columns:minmax(0,7fr) minmax(290px,3fr);align-items:start}.production-customer-table-card,.production-customer-context,.production-customer-import{overflow:hidden;border:1px solid #e7e4ed;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(42,31,70,.04)}.production-customer-table-card>.production-panel-heading,.production-customer-context>.production-panel-heading,.production-customer-import>.production-panel-heading{padding:18px 20px 14px}.production-customer-table-card h2,.production-customer-context h2,.production-customer-import h2{margin:0;color:#302942;font-size:17px}.production-customer-table-card p,.production-customer-context p,.production-customer-import p{margin:5px 0 0;color:#837d90;font-size:12px}.production-customer-table-scroll{overflow:auto}.production-customer-table{width:100%;min-width:900px;border-collapse:collapse;text-align:left}.production-customer-table th{padding:12px 16px;border-top:1px solid #edeaf1;border-bottom:1px solid #edeaf1;color:#817a8f;font-size:10px;letter-spacing:.05em;text-transform:uppercase}.production-customer-table td{padding:13px 16px;border-bottom:1px solid #f0edf3;color:#5f586d;font-size:12px;vertical-align:middle}.production-customer-table td small{display:block;max-width:180px;overflow:hidden;color:#766f82;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.production-customer-cell{display:flex;min-width:160px;align-items:center;gap:10px;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.production-customer-avatar{display:grid;width:32px;height:32px;flex:0 0 auto;place-items:center;border-radius:50%;background:#eee8ff;color:#6940cd;font-size:11px;font-weight:800}.production-customer-tag{display:inline-flex;margin:2px 3px 2px 0;padding:4px 7px;border-radius:6px;background:#ede8ff;color:#6340ba;font-size:10px;font-weight:800}.production-customer-context{position:sticky;top:18px}.production-customer-context .production-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.production-customer-details{display:grid;gap:0;margin:0;padding:0 20px 16px}.production-customer-details>div{display:grid;grid-template-columns:minmax(105px,.8fr) minmax(0,1.2fr);gap:12px;padding:10px 0;border-bottom:1px solid #f0edf3}.production-customer-details dt{color:#898293;font-size:11px}.production-customer-details dd{min-width:0;margin:0;color:#4e475c;font-size:12px;overflow-wrap:anywhere}.production-customer-activity{padding:17px 20px 20px;border-top:1px solid #edeaf1}.production-customer-activity h2{font-size:15px}.production-customer-activity .workspace-empty-state{padding:18px 0 0;border:0;box-shadow:none}.production-customer-import{margin:18px 0;padding-bottom:20px}.production-import-steps{display:flex;flex-wrap:wrap;gap:7px;margin:0;padding:0 20px 18px;list-style:none}.production-import-steps li{padding:5px 8px;border-radius:999px;background:#f2eff8;color:#837d90;font-size:11px;font-weight:750}.production-import-steps li.is-active{background:#eee8ff;color:#6340ba}.production-import-file{display:grid;gap:8px;margin:0 20px;padding:17px;border:1px dashed #bbb0d9;border-radius:12px;color:#423a56;font-size:13px;font-weight:750}.production-import-file input{font:inherit;font-size:12px}.production-import-help,.production-import-review{margin:14px 20px!important;padding:13px;border-radius:10px;background:#f8f6fc;color:#716a7d;font-size:12px;line-height:1.55}.production-import-review strong{color:#393047}.production-import-review ul{margin:10px 0 0;padding-left:18px}.production-customer-import>.production-onboarding-actions{padding:0 20px}.production-customers-page .workspace-empty-state{width:100%;margin-top:18px;padding:34px;border:1px solid #e7e4ed;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(42,31,70,.04)}.production-customers-page .workspace-empty-state h2{margin:0;color:#302942;font-size:19px}.production-customers-page .workspace-empty-state p{max-width:620px;margin:8px 0 18px;color:#7b7488;line-height:1.55}.production-customers-page .workspace-button{min-height:42px;padding:0 17px;border:0;border-radius:11px;background:#6e42d8;color:#fff;font:inherit;font-weight:750;cursor:pointer}@media(max-width:980px){.production-customers-layout.has-selection{grid-template-columns:minmax(0,1fr) minmax(280px,.48fr)}}@media(max-width:720px){.content:has(.production-customers-page){padding:22px 16px 34px}.production-customers-page .production-module-heading{display:block}.production-customers-page .production-onboarding-actions{margin-top:16px}.production-customers-page .production-filter-bar{display:grid;grid-template-columns:1fr;padding:9px}.production-customers-page .production-filter-bar input,.production-customers-page .production-filter-bar select{width:100%}.production-customers-layout.has-selection{grid-template-columns:1fr}.production-customer-context{position:static}.production-customer-table-scroll{overflow:visible}.production-customer-table{min-width:0}.production-customer-table thead{display:none}.production-customer-table,.production-customer-table tbody,.production-customer-table tr,.production-customer-table td{display:block;width:100%}.production-customer-table tr{padding:8px 16px;border-bottom:1px solid #f0edf3}.production-customer-table td{padding:6px 0;border:0}.production-customer-table td:nth-child(n+5){display:none}.production-customer-cell{min-width:0}.production-customers-page .workspace-empty-state{padding:24px 18px}}@media(max-width:560px){.production-customer-summary{margin-top:18px}.production-customer-details{padding-inline:16px}.production-customer-import>.production-panel-heading,.production-customer-import>.production-onboarding-actions{padding-inline:16px}.production-import-steps,.production-import-file{margin-inline:16px;padding-inline:0}.production-import-help,.production-import-review{margin-inline:16px!important}}

/* The recovered Demo customer renderer shares the same Customer 360 width and
   header hierarchy as Production, without inheriting the generic contact rail. */
.content .customer-master-workspace{width:100%;max-width:none;grid-template-columns:minmax(0,1fr);margin:0}.customer-master-workspace .contacts-panel{width:100%;max-width:none}.customer-master-workspace .panel-heading h1{margin:0;color:#211d31;font-size:clamp(27px,3vw,38px);letter-spacing:-.045em;line-height:1.1}.customer-master-workspace .panel-heading>div>p{max-width:700px}.contact-import-steps{display:flex;flex-wrap:wrap;gap:7px;margin:0 18px 14px;padding:0;list-style:none}.contact-import-steps li{padding:5px 8px;border-radius:999px;background:#edf4ef;color:#728077;font-size:10px;font-weight:800}.contact-import-steps li.is-active{background:#e5f6eb;color:#087b44}@media(max-width:720px){.content .customer-master-workspace{display:block}.customer-master-workspace .contacts-table .data-head{display:none}.customer-master-workspace .contacts-table .data-row{min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:12px 14px}.customer-master-workspace .contacts-table .data-row>div{grid-column:1 / -1}.customer-master-workspace .contacts-table .data-row>span:nth-child(n+5){display:none}}

/* Customer 360 is a workspace, not a centred card: the customer master takes
   the primary column and the selected profile stays visible alongside it. */
.content .customer-master-workspace{display:grid;grid-template-columns:minmax(0,7fr) minmax(300px,3fr);gap:18px;align-items:start;padding:0;max-width:none}.customer-workspace-header,.customer-kpi-row{grid-column:1 / -1}.customer-workspace-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:2px 0 4px}.customer-workspace-header h1{margin:0;color:#211d31;font-size:clamp(27px,3vw,38px);letter-spacing:-.045em;line-height:1.1}.customer-workspace-header p{max-width:700px;margin:9px 0 0;color:#757085;font-size:14px;line-height:1.55}.customer-kpi-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.customer-kpi-row article{display:grid;gap:5px;min-height:104px;padding:17px 19px;border:1px solid #e8e4ee;border-radius:15px;background:#fff;box-shadow:0 7px 18px rgba(43,28,73,.035)}.customer-kpi-row span{color:#7d748d;font-size:11px;font-weight:750}.customer-kpi-row strong{color:#302942;font-size:24px;letter-spacing:-.035em}.customer-kpi-row small{color:#8c8498;font-size:10px;line-height:1.35}.customer-master-workspace .contacts-panel{grid-column:1;overflow:hidden;border:1px solid #e7e3ed;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(42,31,70,.035)}.customer-master-workspace .contacts-toolbar{padding:12px;grid-template-columns:minmax(260px,1.6fr) repeat(3,minmax(125px,.72fr));border:0;border-bottom:1px solid #eeeaf2;background:#fcfbfe}.customer-table-title{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:17px 18px 13px}.customer-table-title h2{margin:0;color:#332c45;font-size:15px}.customer-table-title span{color:#8a8296;font-size:11px}.customer-master-workspace .contacts-table{overflow:auto}.customer-master-workspace .contacts-table .data-head,.customer-master-workspace .contacts-table .data-row{grid-template-columns:minmax(170px,1.45fr) minmax(145px,1.1fr) minmax(105px,.85fr) minmax(72px,.65fr) minmax(112px,.85fr) minmax(68px,.55fr) minmax(100px,.75fr);gap:10px;min-width:900px}.customer-master-workspace .contacts-table .data-row{width:100%;min-height:65px;padding:11px 18px;border:0;border-top:1px solid #f0edf3;background:#fff;color:#5e566c;text-align:left;cursor:pointer}.customer-master-workspace .contacts-table .data-row:hover,.customer-master-workspace .contacts-table .data-row.is-selected{background:#f8f5ff}.customer-master-workspace .contacts-table .data-row.is-selected{box-shadow:inset 3px 0 #7345de}.customer-master-workspace .contacts-table .data-row strong{display:block;color:#393148;font-size:12px}.customer-master-workspace .contacts-table .data-row small{display:block;margin-top:3px;color:#8c8498;font-size:10px}.customer-master-workspace .contacts-table .data-row .tag-cluster{display:flex;flex-wrap:wrap;gap:3px}.customer-master-workspace .contacts-table .data-row .tag{margin:0}.customer-360-rail{grid-column:2;display:grid;gap:16px;position:sticky;top:16px;min-width:0}.customer-360-rail .panel{margin:0;overflow:hidden;border:1px solid #e7e3ed;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(42,31,70,.035)}.customer-rail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 18px 13px;border-bottom:1px solid #eeeaf2}.customer-rail-heading h2{margin:0;color:#332c45;font-size:15px}.customer-rail-heading .row-action{color:#7040d8;font-size:11px;font-weight:800}.customer-360-rail .customer-360-profile{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;padding:16px 18px;border:0;border-radius:0}.customer-360-rail .customer-360-avatar{width:44px;height:44px;border-radius:50%;color:#6740ca;background:#eee8ff}.customer-360-rail .customer-360-profile>div:nth-child(2){display:grid;align-content:center;gap:3px}.customer-360-rail .customer-360-profile strong{font-size:13px}.customer-status{display:flex;gap:5px;margin-top:2px}.customer-status em{padding:3px 6px;border-radius:5px;background:#e6f7ec;color:#138351;font-size:9px;font-style:normal;font-weight:800}.customer-360-rail .customer-channel{grid-column:1 / -1;display:grid;grid-template-columns:90px minmax(0,1fr);gap:5px 10px;padding-top:12px;border-top:1px solid #f0edf3}.customer-channel span{color:#8b8496;font-size:10px}.customer-channel b{overflow:hidden;color:#5a5168;font-size:10px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.customer-profile-metadata{display:grid;gap:0;margin:0;padding:0 18px 15px}.customer-profile-metadata>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px;padding:8px 0;border-top:1px solid #f0edf3}.customer-profile-metadata dt{color:#8d8697;font-size:10px}.customer-profile-metadata dd{min-width:0;margin:0;color:#584f64;font-size:10px;overflow-wrap:anywhere}.customer-profile-metadata .tag-cluster{display:flex;flex-wrap:wrap;gap:3px}.customer-activity-panel .customer-rail-heading{border-bottom:0}.customer-activity-list{display:grid;gap:0;margin:0;padding:0 18px 9px;list-style:none}.customer-activity-list li{display:grid;grid-template-columns:16px minmax(0,1fr);gap:8px;padding:10px 0;border-top:1px solid #f0edf3}.customer-activity-dot{display:grid;width:16px;height:16px;place-items:center;border-radius:5px;color:#7040d8;background:#efeaff;font-size:14px;line-height:1}.customer-activity-list strong{display:block;color:#4a4256;font-size:10px}.customer-activity-list p{margin:3px 0 0;color:#827a8e;font-size:10px;line-height:1.4}.customer-activity-list time{grid-column:2;color:#9a92a4;font-size:9px}.customer-rail-empty{padding:6px 18px 20px;color:#8a8296;font-size:11px;line-height:1.55}.customer-master-workspace:not(.has-selection) .contacts-panel{grid-column:1 / -1}.customer-master-workspace:not(.has-selection) .customer-kpi-row{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1080px){.content .customer-master-workspace{grid-template-columns:minmax(0,1fr) minmax(280px,.48fr)}.customer-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-master-workspace .contacts-toolbar{grid-template-columns:minmax(220px,1fr) repeat(2,minmax(120px,.65fr)}.customer-master-workspace .contacts-toolbar>label:last-child{grid-column:2 / -1}}@media(max-width:820px){.content .customer-master-workspace{grid-template-columns:1fr}.customer-master-workspace .contacts-panel,.customer-360-rail{grid-column:1}.customer-360-rail{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.customer-workspace-header{display:block}.customer-workspace-header .contacts-panel-actions{margin-top:14px}}@media(max-width:620px){.content .customer-master-workspace{display:grid;gap:14px}.customer-kpi-row,.customer-master-workspace:not(.has-selection) .customer-kpi-row,.customer-360-rail{grid-template-columns:1fr}.customer-master-workspace .contacts-toolbar{grid-template-columns:1fr}.customer-master-workspace .contacts-toolbar>label:last-child{grid-column:auto}.customer-master-workspace .contacts-table .data-row{min-width:0;grid-template-columns:1fr 1fr}.customer-master-workspace .contacts-table .data-row>span:first-child{grid-column:1 / -1}.customer-master-workspace .contacts-table .data-row>span:nth-child(n+5){display:none}.customer-workspace-header .contacts-panel-actions{width:100%}.customer-workspace-header .contacts-panel-actions .button{flex:1}.customer-table-title{padding-inline:14px}.customer-360-rail{gap:14px}}

/* Keep the Customer 360 canvas aligned to the application edges even when no
   customer has been created yet; the profile rail uses an honest empty state. */
body[data-production-page="app"] .content:has(.customer-master-workspace){width:100%;max-width:none;margin:0;padding:26px 34px 42px}.customer-profile-empty>div:not(.customer-rail-heading){display:grid;justify-items:start;gap:9px;padding:22px 18px 24px}.customer-empty-avatar{display:grid;width:40px;height:40px;place-items:center;border-radius:50%;background:#eee8ff;color:#6740ca;font-size:22px;font-weight:500}.customer-profile-empty strong{color:#463d55;font-size:13px}.customer-profile-empty p{margin:0;color:#857d91;font-size:11px;line-height:1.55}@media(max-width:720px){body[data-production-page="app"] .content:has(.customer-master-workspace){padding:22px 16px 34px}}
