/* Customer account profile — v0.16.6.48
   Compact, tabbed and directly editable. Based on the supplied account
   profile reference while retaining the Operations design tokens. */
.customer-profile-page{max-width:1200px;margin:0 auto;padding:0 0 44px;color:#17181b}
.customer-profile-page .crumbs{padding:16px 2px 10px}
.customer-profile-hero,.customer-profile-card{background:#fff;border:1px solid #e4e1da;border-radius:12px}
.customer-profile-hero{padding:20px 22px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 24px}
.customer-profile-identity{display:flex;align-items:center;gap:15px;min-width:0}
.customer-profile-identity>i{width:58px;height:58px;display:grid;place-items:center;flex:0 0 58px;border-radius:14px;background:#f3e6e9;color:#9f1730;font-style:normal;font-size:19px;font-weight:700}
.customer-profile-identity>div{min-width:0}
.customer-profile-identity>div>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.customer-profile-identity h1{margin:0;font:600 25px/1.2 'Poppins',sans-serif;letter-spacing:-.02em}
.customer-profile-identity p{margin:6px 0 0;color:#666970;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-profile-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.customer-profile-actions a{height:38px;display:inline-flex;align-items:center;padding:0 14px;border-radius:8px;text-decoration:none;font-size:14px;font-weight:600;box-sizing:border-box}
.customer-profile-actions a.ghost{border:1px solid #dad7cf;background:#fff;color:#17181b}
.customer-profile-actions a.ghost:hover{background:#faf9f6}
.customer-profile-actions a.primary{background:#c8102e;color:#fff;border:1px solid #c8102e}
.customer-profile-tabs{grid-column:1/-1;display:flex;gap:26px;overflow-x:auto;overflow-y:hidden;border-top:1px solid #efede7;padding-top:2px}
.customer-profile-tab{display:inline-flex;align-items:center;gap:6px;padding:12px 2px 11px;margin-bottom:-1px;border-bottom:2px solid transparent;color:#5b5f66;text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap}
.customer-profile-tab:hover{color:#17181b}
.customer-profile-tab.active{color:#17181b;border-bottom-color:#c8102e}
.customer-profile-tab span{font-size:11px;padding:1px 6px;border-radius:999px;background:#eeede8;color:#5b5f66}
.customer-profile-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.customer-profile-kpis a{min-height:78px;display:flex;flex-direction:column;justify-content:center;padding:12px 16px;background:#fff;border:1px solid #e4e1da;border-radius:10px;text-decoration:none;color:#17181b;box-sizing:border-box}
.customer-profile-kpis a:hover{border-color:#beb9af;box-shadow:0 4px 14px rgba(25,25,25,.05)}
.customer-profile-kpis b{font:600 23px/1.1 'Poppins',sans-serif}
.customer-profile-kpis span{margin-top:5px;color:#666970;font-size:12px}
.customer-profile-content{display:block}
.customer-profile-overview{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:16px;align-items:start}
.customer-profile-card{overflow:hidden}
.customer-profile-card>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border-bottom:1px solid #efede7}
.customer-profile-card>header h2{margin:0;font:600 15px/1.3 'Poppins',sans-serif}
.customer-profile-card>header p{margin:3px 0 0;color:#666970;font-size:12px}
.customer-profile-card>header>a{font-size:13px;font-weight:600;color:#b3122b;text-decoration:none}
.customer-profile-details>.notice{margin:12px 18px 0}
.customer-profile-save-state{display:inline-flex;align-items:center;gap:6px;color:#666970;font-size:12px;font-weight:600;white-space:nowrap}
.customer-profile-save-state:before{content:'';width:7px;height:7px;border-radius:50%;background:#a5a7ab}
.customer-profile-save-state.saving:before,.customer-profile-save-state.dirty:before{background:#ca8a04}
.customer-profile-save-state.saved:before{background:#168a4b}
.customer-profile-save-state.error:before{background:#c8102e}
.customer-inline-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:7px 18px 18px}
.customer-inline-field{display:flex;flex-direction:column;gap:5px;padding:10px 12px;margin:0;border-bottom:1px solid #efede7}
.customer-inline-field:nth-last-child(-n+2){border-bottom:0}
.customer-inline-field.wide{grid-column:1/-1}
.customer-inline-field span{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#6b6e74}
.customer-inline-field input{width:100%;height:36px;padding:0 9px;border:1px solid transparent;border-radius:7px;background:#f8f7f4;color:#17181b;font:500 14px 'Google Sans','Poppins',sans-serif;box-sizing:border-box;transition:.15s border-color,.15s background,.15s box-shadow}
.customer-inline-field input:hover:not(:disabled){border-color:#d9d5cc;background:#fff}
.customer-inline-field input:focus{outline:0;border-color:#9b1930;background:#fff;box-shadow:0 0 0 3px rgba(200,16,46,.1)}
.customer-inline-field input:disabled{opacity:1;color:#44474d;cursor:default}
.customer-inline-field input::placeholder{color:#a1a3a7;font-weight:400}
.customer-profile-side{display:flex;flex-direction:column;gap:16px}
.customer-profile-completeness>header b{font:600 22px 'Poppins',sans-serif;color:#9f1730}
.customer-profile-completeness>div{height:7px;margin:17px 18px 8px;border-radius:999px;background:#eeece7;overflow:hidden}
.customer-profile-completeness>div i{display:block;height:100%;border-radius:inherit;background:#c8102e}
.customer-profile-completeness>p{margin:0;padding:0 18px 17px;color:#666970;font-size:12px}
.customer-profile-recent>a{display:grid;grid-template-columns:minmax(70px,auto) minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 18px;border-top:1px solid #efede7;color:#17181b;text-decoration:none;font-size:13px}
.customer-profile-recent>header+a{border-top:0}
.customer-profile-recent>a:hover{background:#faf9f6}
.customer-profile-recent>a>b{font-family:ui-monospace,'IBM Plex Mono',monospace;font-size:12px}
.customer-profile-recent>a>span:not(.customer-profile-status){overflow:hidden;color:#666970;text-overflow:ellipsis;white-space:nowrap}
.customer-profile-status{display:inline-flex;align-items:center;gap:6px;min-height:22px;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:600;white-space:nowrap;box-sizing:border-box}
.customer-profile-status i{width:6px;height:6px;border-radius:50%;background:currentColor}
.customer-profile-status.good{background:#e2f2e8;color:#1b6b3d}
.customer-profile-status.warn{background:#fbefd9;color:#855000}
.customer-profile-status.info{background:#e7eefb;color:#1b4fb0}
.customer-profile-status.muted{background:#eeede8;color:#50535a}
.customer-profile-list>header>b{min-width:34px;height:26px;display:grid;place-items:center;border-radius:999px;background:#eeede8;color:#50535a;font-size:12px}
.customer-profile-columns,.customer-profile-row{display:grid;grid-template-columns:120px minmax(220px,1.5fr) minmax(150px,.8fr) minmax(120px,.65fr) 18px;align-items:center;gap:14px;padding:0 18px}
.customer-profile-columns{min-height:38px;background:#faf9f6;color:#666970;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.customer-profile-row{min-height:58px;border-top:1px solid #efede7;color:#17181b;text-decoration:none;font-size:13px}
.customer-profile-columns+.customer-profile-row{border-top:0}
.customer-profile-row:hover{background:#faf9f6}
.customer-profile-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.customer-profile-row>span>b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.customer-profile-row small{display:block;margin-top:3px;color:#73767c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.customer-profile-row em{color:#999;font-size:20px;font-style:normal;text-align:right}
.customer-profile-row .mono{font-family:ui-monospace,'IBM Plex Mono',monospace;font-size:12px}
.customer-profile-empty{padding:42px 20px;text-align:center;color:#73767c}
.customer-profile-empty b{display:block;margin-bottom:4px;color:#17181b;font-size:14px}
.customer-profile-empty span{font-size:12px}
.customer-profile-recent .customer-profile-empty{padding:28px 18px}
@media(max-width:980px){
  .customer-profile-hero{grid-template-columns:1fr}.customer-profile-actions{justify-content:flex-start}.customer-profile-kpis{grid-template-columns:repeat(2,1fr)}.customer-profile-overview{grid-template-columns:1fr}
}
@media(max-width:700px){
  .customer-profile-page{padding-bottom:24px}.customer-profile-hero{padding:16px 16px 0}.customer-profile-identity>i{width:48px;height:48px;flex-basis:48px}.customer-profile-identity h1{font-size:21px}.customer-profile-identity p{white-space:normal}.customer-profile-actions a{flex:1;justify-content:center}.customer-profile-tabs{gap:18px}.customer-profile-kpis{grid-template-columns:1fr 1fr;gap:8px}.customer-inline-form{grid-template-columns:1fr}.customer-inline-field.wide{grid-column:auto}.customer-inline-field:nth-last-child(-n+2){border-bottom:1px solid #efede7}.customer-inline-field:last-child{border-bottom:0}.customer-profile-columns{display:none}.customer-profile-row{grid-template-columns:1fr auto;gap:8px;padding:12px 16px}.customer-profile-row>span{grid-column:1}.customer-profile-row>span:nth-child(3),.customer-profile-row>span:nth-child(4){grid-column:auto}.customer-profile-row>em{grid-column:2;grid-row:1/4}.customer-profile-recent>a{grid-template-columns:1fr auto}.customer-profile-recent>a>span:not(.customer-profile-status){grid-column:1}
}

/* Approved Customers list and quick view. These rules intentionally load
   after the older CRM styles so the live list cannot fall back to the
   previous red-action, four-stat quick-view treatment. */
#crm-view:not([hidden]){background:#f4f3ef!important}
#crm-view .customers-heading h1{font-family:'Google Sans','Poppins',sans-serif!important;font-size:28px!important;font-weight:600!important}
#crm-view .customers-stats button{min-height:64px!important;text-align:left!important}
#crm-view .customers-stats button i{display:grid!important;place-items:center!important;flex:0 0 36px!important}
#crm-view .customers-list,#crm-view .customers-preview{border-color:#e4e1da!important;border-radius:12px!important;box-shadow:none!important}
#crm-view .customers-tabs{background:#f1efea!important;padding:3px!important;border-radius:8px!important}
#crm-view .customers-tabs button.active{background:#fff!important;color:#17181b!important;box-shadow:0 1px 2px rgba(20,20,20,.1)!important}
#crm-view .customers-list .customers-source:not(.rd){display:none!important}
#crm-view .customers-list .customers-source.rd{display:inline-flex!important;align-items:center!important;line-height:17px!important}
#crm-view .customers-preview{flex-basis:392px!important;width:392px!important;background:#fff!important}
#crm-view .customers-preview>header.customer-preview-head{display:grid!important;grid-template-columns:48px minmax(0,1fr) 32px!important;gap:12px!important;align-items:start!important;padding:18px 20px 14px!important}
#crm-view .customers-preview .customer-preview-head>div{min-width:0!important}
#crm-view .customers-preview .customer-preview-head h2{margin:0!important;line-height:1.25!important}
#crm-view .customers-preview .customer-preview-actions{display:flex!important;align-items:center!important;gap:8px!important;padding:0 20px 16px!important}
#crm-view .customers-preview .customer-preview-actions .button-link{height:38px!important;min-width:38px!important;padding:0 10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:8px!important;box-sizing:border-box!important;font-size:14px!important;font-weight:500!important;text-decoration:none!important}
#crm-view .customers-preview .customer-preview-actions .primary{flex:1 1 auto!important;background:#17181b!important;border:1px solid #17181b!important;color:#fff!important}
#crm-view .customers-preview .customer-preview-actions .primary:hover{background:#2b2d31!important;color:#fff!important}
#crm-view .customers-preview .customer-preview-actions .ghost{flex:0 0 38px!important;border:1px solid #dad7cf!important;background:#fff!important;color:#17181b!important}
#crm-view .customer-quick-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;border-top:1px solid #efede7!important;border-bottom:1px solid #efede7!important}
#crm-view .customer-quick-stats>div{padding:12px 20px!important;border-left:1px solid #efede7!important}
#crm-view .customer-quick-stats>div:first-child{border-left:0!important}
#crm-view .customer-preview-section{padding:16px 20px 0!important}
#crm-view .customer-preview-section:last-child{padding-bottom:18px!important}
#crm-view .customer-preview-section-head{padding-bottom:4px!important}
#crm-view .customer-preview-row{grid-template-columns:minmax(0,1fr) auto 10px!important;min-height:54px!important}
#crm-view .customer-preview-row strong{font-weight:500!important;color:#17181b!important}
#crm-view .customer-preview-row em{color:#7a7d82!important}
#crm-view .customer-preview-empty{padding:20px 0!important;text-align:left!important;background:transparent!important}
@media(max-width:1250px){#crm-view .customers-preview{flex-basis:360px!important;width:360px!important}}
@media(max-width:950px){#crm-view .customers-preview{width:auto!important;flex-basis:auto!important}}
