/* Customers module (WP-B): 360 header, chips, scores, relationship map, hierarchy, journey, merge, forms. */
.crm-head { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid #e9e9e9; border-radius: 4px; padding: 14px 16px; min-width: 0; }
.crm-avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 700 20px var(--fb, inherit); color: #fff; flex: none;
  background: linear-gradient(135deg, var(--brand-primary, #1a7fe0), var(--brand-navy-2, #071d42)); box-shadow: 0 2px 6px rgba(7, 29, 66, .25); }
.crm-avatar.org { border-radius: 10px; background: linear-gradient(135deg, #1d4f8f, var(--brand-navy-2, #071d42)); }
.crm-avatar.household { background: linear-gradient(135deg, #13b985, #04955d); }
.crm-head .who { min-width: 0; flex: 1; }
.crm-head h2 { margin: 0; font-size: 20px; color: #0b2a57; overflow-wrap: anywhere; }
.crm-head .meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.crm-head .meta i { color: #7d93ab; margin-right: 3px; }
.crm-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.crm-head .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.crm-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.crm-kpis .ct-kpi strong { font-size: 19px; }
@media (max-width: 1280px) { .crm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .crm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .crm-head { flex-wrap: wrap; } .crm-head .who { flex: 1 1 200px; } .crm-head .acts { flex: 1 1 100%; justify-content: flex-start; } }
.crm-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
.crm-tabs a { white-space: nowrap; }
@media (min-width: 1200px) { .crm-tabs { flex-wrap: wrap; } }

/* chips and natural-language read-back */
.crm-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.crm-chip { display: inline-flex; align-items: center; gap: 6px; background: #e8f2fd; color: #0b4f99; border: 1px solid #b9d6f5; border-radius: 999px; padding: 3px 4px 3px 10px; font-weight: 600; }
.crm-chip a { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #0b4f99; background: #fff; text-decoration: none; font-size: 11px; }
.crm-chip a:hover { background: #0b4f99; color: #fff; }
.crm-nlnote { color: var(--muted); font-size: 11.5px; }

/* list extras */
.crm-bulk { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 8px 12px; background: #f3f8fd; border-bottom: 1px solid #dbe6f1; font-size: 12.5px; }
.crm-bulk .ct-input, .crm-bulk select, .crm-bulk input:not([type=checkbox]) { width: auto; min-width: 0; flex: 0 1 auto; max-width: 240px; }
.crm-bulk input[name=reason] { flex: 1 1 180px; max-width: 320px; }
.crm-bulk .n { font-weight: 700; color: #0b4f99; }
.crm-score { display: inline-flex; align-items: center; gap: 6px; min-width: 70px; }
.crm-score .bar { flex: 1; height: 6px; background: #e8eef4; border-radius: 4px; overflow: hidden; min-width: 34px; }
.crm-score .bar i { display: block; height: 100%; border-radius: 4px; }
.crm-score b { font-variant-numeric: tabular-nums; font-size: 12px; min-width: 20px; text-align: right; }
.crm-tag { display: inline-block; font-size: 10.5px; font-weight: 700; color: #4a6079; background: #eef2f7; border-radius: 3px; padding: 1px 5px; margin: 1px 2px 0 0; }
.crm-lock { color: #c01d47; font-size: 12px; }

/* overview */
.crm-gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .crm-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.crm-nba { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(90deg, #eef7ff, #fff); border: 1px solid #c8def5; border-left: 4px solid var(--brand-primary, #1a7fe0); border-radius: 4px; padding: 12px 14px; }
.crm-nba .ic { font-size: 24px; color: var(--brand-primary, #1a7fe0); }
.crm-nba b { display: block; font-size: 14px; color: #0b2a57; }
.crm-nba small { color: var(--muted); }
.crm-alert { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef2f6; font-size: 12.5px; }
.crm-alert:last-child { border-bottom: 0; }
.crm-alert .ic { width: 30px; height: 30px; flex: none; border-radius: 4px; display: grid; place-items: center; }
.crm-alert .ic.bad { background: var(--badBg); color: var(--badFg); } .crm-alert .ic.warn { background: var(--warnBg); color: var(--warnFg); } .crm-alert .ic.info { background: var(--infoBg); color: var(--infoFg); }
.crm-alert .tx { flex: 1; min-width: 0; }
.crm-alert .tx b { display: block; }
.crm-journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 4px 0 8px; }
.crm-journey .ph { position: relative; text-align: center; padding: 10px 6px 8px; background: #eef3f8; color: #4a6079; font-size: 11.5px; font-weight: 700; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); }
.crm-journey .ph:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.crm-journey .ph.on { background: linear-gradient(90deg, var(--brand-primary, #1a7fe0), #0962d3); color: #fff; }
.crm-journey .ph.done { background: #cfe5fb; color: #0b4f99; }
.crm-journey .ph i { display: block; font-size: 16px; margin-bottom: 2px; }
.crm-journey .ph b { display: block; font-size: 16px; }
@media (max-width: 640px) { .crm-journey .ph { font-size: 10px; padding: 8px 2px; } .crm-journey .ph span { display: none; } }

/* timeline */
.crm-tl { list-style: none; margin: 0; padding: 0; }
.crm-tl li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #eef2f6; align-items: start; font-size: 12.5px; }
.crm-tl li:last-child { border-bottom: 0; }
.crm-tl .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--infoBg); color: var(--infoFg); }
.crm-tl .ic.green { background: var(--okBg); color: var(--okFg); } .crm-tl .ic.amber { background: var(--warnBg); color: var(--warnFg); } .crm-tl .ic.red { background: var(--badBg); color: var(--badFg); }
.crm-tl .tx { min-width: 0; }
.crm-tl .tx b { font-weight: 600; color: #15324f; overflow-wrap: anywhere; }
.crm-tl .tx .meta { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.crm-tl .tx p { margin: 4px 0 0; color: #35506b; white-space: pre-line; overflow-wrap: anywhere; }
.crm-tl .when { color: var(--muted); font-size: 11.5px; white-space: nowrap; text-align: right; }
@media (max-width: 640px) { .crm-tl li { grid-template-columns: 30px 1fr; } .crm-tl .when { grid-column: 2; text-align: left; } }

/* relationship map */
.crm-map { width: 100%; overflow: hidden; background: radial-gradient(circle at 54% 50%, #f5f9fd 0, #fff 60%); border-radius: 4px; }
.crm-map svg { width: 100%; height: auto; display: block; font-family: inherit; }
.crm-map .edge { stroke: #c9d6e3; fill: none; }
.crm-map .edge.knows_staff { stroke: #7fb6ee; stroke-dasharray: 4 3; }
.crm-map .edge.reports_to { stroke: #9aa9ba; stroke-dasharray: 2 3; }
.crm-map .edge.related { stroke: #f5c56b; }
.crm-map .lbl { font-size: 11px; fill: #15324f; font-weight: 600; }
.crm-map .sub { font-size: 9.5px; fill: #6b7f94; }
.crm-map .node { cursor: default; }
.crm-map a .node:hover circle, .crm-map a:focus .node circle { stroke: #0a6fd2; stroke-width: 3; }
.crm-map .ended circle { stroke-dasharray: 3 2; fill-opacity: .35; }
.crm-legend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 11.5px; color: #4a6079; margin-top: 8px; }
.crm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.crm-maptable { display: none; }
@media (max-width: 640px) { .crm-map { display: none; } .crm-maptable { display: block; } }
.crm-intro { border-left: 3px solid #13b985; background: #f2fbf7; padding: 8px 10px; border-radius: 3px; margin-bottom: 8px; font-size: 12.5px; }
.crm-intro.none { border-left-color: #f5a524; background: #fff9ee; }

/* hierarchy */
.crm-tree td.acc { padding-left: calc(10px + var(--d, 0) * 22px) !important; }
.crm-tree td.acc i.bi { color: #7d93ab; margin-right: 4px; }
.crm-tree tr.me td { background: #f3f8fd; }

/* journeys page */
.crm-flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.crm-flow a { display: block; text-decoration: none; background: #fff; border: 1px solid #d7e0e9; border-top: 4px solid var(--c, var(--brand-primary, #1a7fe0)); border-radius: 4px; padding: 12px; color: inherit; }
.crm-flow a.on { box-shadow: 0 0 0 2px #0a6fd2; }
.crm-flow small { color: var(--muted); display: block; }
.crm-flow b { font-size: 22px; display: block; color: #0b2a57; }
@media (max-width: 1100px) { .crm-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .crm-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* merge */
.crm-merge td, .crm-merge th { vertical-align: top; }
.crm-merge label { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; font-weight: 400; }
.crm-merge input[type=radio] { margin-top: 3px; }
.crm-merge .same { color: var(--muted); }
.crm-merge th.surv { background: #e8f5ee; }

/* consent grid */
.crm-consent td.st { text-align: center; }
.crm-hist { font-size: 12px; }

/* form repeater */
.crm-points { display: grid; gap: 8px; }
.crm-point { display: grid; grid-template-columns: 120px 120px 1fr auto auto; gap: 8px; align-items: end; padding: 8px; background: #f8fafc; border: 1px solid #e3eaf1; border-radius: 4px; }
.crm-point .addr { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 110px; gap: 8px; }
.crm-point .ct-field { margin: 0; }
.crm-point .flags { display: flex; gap: 10px; font-size: 12px; align-items: center; padding-bottom: 8px; }
.crm-point .vs { font-size: 11px; }
.crm-point[data-removed] { opacity: .45; }
@media (max-width: 900px) { .crm-point, .crm-point .addr { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .crm-point, .crm-point .addr { grid-template-columns: 1fr; } }

/* dashboard panels */
.crm-qrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #eef2f6; font-size: 12.5px; }
.crm-qrow:last-child { border-bottom: 0; }
.crm-plan { padding: 7px 0; border-bottom: 1px solid #eef2f6; font-size: 12.5px; }
.crm-plan:last-child { border-bottom: 0; }
.crm-steps { display: grid; gap: 4px; }
.crm-steps .s { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.crm-steps .s .tb { height: 20px; background: #eef3f8; border-radius: 4px; overflow: hidden; }
.crm-steps .s .tb i { display: block; height: 100%; border-radius: 4px; }
@media (max-width: 560px) { .crm-steps .s { grid-template-columns: 84px 1fr auto; } }
.crm-mini { font-size: 11.5px; color: var(--muted); }


/* Pinnacle Premier Bank: black navigation with restrained gold selection accents. */
.ct-top,header.top,.ct-modbar,.topnav,.ct-navtitle,.navtitle,.navbar.bg-primary,.nav-menu.bg-primary,.sidebar.bg-primary{background:#000!important;background-image:none!important;border-color:#252525!important;color:#fff!important}
.ct-top-title,.ct-top-title b,.ct-session,.ct-modbar a,.topnav a,.topnav button,.ct-navtitle span,.navtitle span{color:#fff!important}
.ct-modbar a:hover,.ct-modbar a.on,.topnav a:hover,.topnav a.on,.topnav button:hover,.topnav button.on{background:#242424!important;color:#fff!important}
.ct-sidebar,.shell>.sidebar{background:#f2f2f2!important;border-color:#d3d3d3!important}
.ct-navitem,.navitem{color:#171717!important;background:linear-gradient(#fff,#f3f3f3)!important;border-color:#d0d0d0!important}
.ct-navitem i,.navitem svg{color:#171717!important}
.ct-navitem:hover,.ct-navitem.on,.navitem:hover,.navitem.on,.nav-link.active,.sidebar .nav-link.active{color:#fff!important;background:#111!important;box-shadow:inset 3px 0 0 #c8a34a!important}
.ct-navitem:hover i,.ct-navitem.on i,.navitem:hover svg,.navitem.on svg{color:#e3c375!important}
.ct-navtitle span,.navtitle span{background:#292929!important}
.ct-topbtn,.ct-command,.ct-command input,.ct-top .ct-avatar{background:#171717!important;border-color:#454545!important;color:#fff!important}
.ct-menu .drop a:hover,.ct-menu .drop button:hover{background:#111!important;color:#fff!important}
