/* Sales and CRM (crm- prefix). */
.crm-grade { display: inline-block; min-width: 20px; padding: 1px 5px; border-radius: 3px; font-size: 11px; font-weight: 700; text-align: center; background: #edf1f4; color: #5b6f82; }
.crm-grade.gA { background: var(--okBg); color: var(--okFg); }
.crm-grade.gB { background: var(--infoBg); color: var(--infoFg); }
.crm-grade.gC { background: var(--warnBg); color: var(--warnFg); }
.crm-grade.gD { background: #f1f3f6; color: #7c8a99; }
.crm-h4 { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.crm-links { margin: 10px 0 0; font-size: 12px; }
.crm-mini { width: 110px !important; min-width: 0 !important; }
.crm-inlineform { margin-top: 12px; }
.crm-more { border-top: 1px solid var(--line2); padding: 8px 0; }
.crm-more:first-child { border-top: 0; padding-top: 0; }
.crm-more > summary { cursor: pointer; font-weight: 700; color: var(--blue); min-height: 32px; display: flex; align-items: center; }
.crm-more[open] > summary { margin-bottom: 8px; }
.crm-risks { margin: 0 0 8px; padding: 0; list-style: none; }
.crm-risks li { padding: 4px 0; color: var(--text2); }
.crm-risks li .bi { color: var(--warnFg); margin-right: 4px; }
.crm-movebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crm-movebar form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crm-req { display: inline-flex; margin: 0 8px 2px 0; font-size: 11.5px; white-space: nowrap; }

/* Kanban pipeline board */
.crm-boardbar { flex-wrap: wrap; }
.crm-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 10px; overflow-x: auto; position: relative; padding-bottom: 6px; }
.crm-col { background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; min-height: 260px; }
.crm-col > header { padding: 9px 10px; border-bottom: 1px solid var(--line2); display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; background: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.crm-col > header b { font-size: 13px; }
.crm-col > header span { color: var(--muted); font-size: 12px; font-weight: 700; }
.crm-col > header em { grid-column: 1 / -1; font-style: normal; color: var(--muted); font-size: 11.5px; }
.crm-col.won > header { border-top: 3px solid var(--okFg); }
.crm-col.lost > header { border-top: 3px solid var(--badFg); }
.crm-col.open > header { border-top: 3px solid #111111; }
.crm-cards { padding: 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.crm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; cursor: grab; }
.crm-card.drag { opacity: .5; }
.crm-card.won { border-left: 3px solid var(--okFg); cursor: default; }
.crm-card.lost { border-left: 3px solid var(--badFg); cursor: default; opacity: .8; }
.crm-card.stalled { border-left: 3px solid var(--warnFg); }
.crm-card .who { color: var(--text2); font-size: 12px; }
.crm-card .amt { font-weight: 700; }
.crm-card .meta { color: var(--muted); font-size: 11.5px; }
.crm-none { color: var(--muted); font-size: 12px; text-align: center; margin: 14px 0; }

/* Relationship map and group tree */
.crm-map, .crm-map ul { list-style: none; margin: 0; padding: 0; }
.crm-map ul { margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--line2); }
.crm-map li { margin: 6px 0; }
.crm-node { display: inline-flex; flex-direction: column; padding: 6px 10px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; min-width: 190px; max-width: 100%; }
.crm-node span { color: var(--text2); font-size: 12px; }
.crm-node em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.crm-node.supporter { border-left: 4px solid var(--okFg); }
.crm-node.neutral { border-left: 4px solid var(--infoFg); }
.crm-node.opponent { border-left: 4px solid var(--badFg); }
.crm-legend { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.crm-legend .crm-node { min-width: 0; padding: 2px 8px; font-size: 11.5px; }
.crm-tree, .crm-tree ul { list-style: none; margin: 0; padding: 0; }
.crm-tree ul { margin-left: 16px; padding-left: 10px; border-left: 2px solid var(--line2); }
.crm-tree li { padding: 3px 0; }
.crm-tree li.me > a { font-weight: 700; color: var(--text); }
.crm-health { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 8px 10px; }

/* Sequences */
.crm-steplist { list-style: none; margin: 0 0 10px; padding: 0; counter-reset: s; }
.crm-steplist li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.crm-steplist li > .bi { font-size: 16px; color: var(--blue); }
.crm-steplist li.wait > .bi { color: var(--muted); }
.crm-steplist li.branch > .bi { color: var(--warnFg); }
.crm-steplist li em { font-style: normal; font-size: 11px; background: var(--infoBg); color: var(--infoFg); padding: 2px 6px; border-radius: 10px; white-space: nowrap; }
.crm-hist td { background: var(--panel2); padding-top: 2px !important; }

/* Meeting slots */
.crm-findtime select[multiple] { min-height: 64px; }
.crm-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; margin-top: 10px; }
.crm-slot { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border-radius: var(--radius); font-weight: 700; font-size: 12.5px; border: 1px solid var(--line); }
.crm-slot.free { background: var(--okBg); color: var(--okFg); border-color: #b9e6d1; cursor: pointer; font-family: inherit; }
.crm-slot.free:hover { background: #c9f0dd; }
.crm-slot.busy { background: #f1f3f6; color: #9aaabb; text-decoration: line-through; }
.crm-legend .crm-slot { min-height: 26px; padding: 0 10px; }

@media (max-width: 760px) {
    .crm-board { grid-auto-columns: minmax(240px, 82%); }
    .crm-health { grid-template-columns: 1fr; }
    .crm-node { min-width: 0; }
    .crm-map ul { margin-left: 8px; padding-left: 8px; }
}


/* 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}
