/* IBG MART CRM Phase 9 - lightweight UI refinements; non-destructive. */
:root{--crm-v9-deep:#19304e;--crm-v9-border:#e2eaf5;--crm-v9-blue:#1e69df}
/* Keep conversation count next to title, never below it. */
.contact-pane .list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:94px}
.contact-pane .list-head .list-heading{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.crm-v9-list-heading{min-width:0;flex:1}
.crm-v9-list-name{display:flex;align-items:center;gap:10px;min-width:0}
.crm-v9-list-name h2{min-width:0;flex:0 1 auto;margin:4px 0 0}
.crm-v9-list-name .list-count{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:27px;height:24px;padding:0 8px;border-radius:99px;background:#eaf2ff;color:#2472e1;font-weight:750;font-size:11px;line-height:1;margin:3px 0 0}
/* Source tabs remain horizontally scrollable on small devices. */
.contact-pane .source-tabs{display:flex;align-items:center;gap:6px;white-space:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.contact-pane .source-tabs::-webkit-scrollbar{display:none}
.contact-pane .source-tabs a{flex:0 0 auto;min-height:36px;display:inline-flex;align-items:center;padding-inline:11px}
/* Lightweight bar: no opaque white strip behind the plus button. */
.workspace .crm-v8-compose-row{background:#f8fbff;border-top:1px solid #edf2f8;box-shadow:none}
.workspace .crm-v8-plus{background:#eaf2ff;border:0;box-shadow:none;color:#2066d7}
.workspace .crm-v8-plus:hover,.workspace .crm-v8-plus[aria-expanded=true]{background:#d7e9ff;color:#125bc9}
.crm-v9-followup-hold{border-radius:12px;padding:12px;background:#fff6e9;color:#7e582c;font-size:12px;line-height:1.6}
.crm-v9-followup-hold strong{display:block;margin-bottom:4px}
/* Inquiry submenus align as nested children instead of floating at different indents. */
.rail-nav .crm-v7-submenu{margin:3px 7px 9px 47px;padding:0 0 0 8px;border-left:2px solid #e7edf6;gap:2px;width:auto;min-width:0}
.rail-nav .crm-v7-subitem{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;padding:9px 10px!important;border-radius:9px;min-height:40px;line-height:1.3;text-align:left;white-space:normal;overflow-wrap:normal;word-break:normal}
.rail-nav .crm-v7-subdot{flex:0 0 6px;width:6px;height:6px;align-self:center}
/* Dashboard: source panel + compact operations card instead of a permanent form. */
.crm-v9-entry-trigger{display:inline-flex;align-items:center;justify-content:center;min-height:42px;gap:7px;border:0;border-radius:12px;background:#176ae5;color:#fff;padding:10px 17px;white-space:nowrap;font-size:12px;font-weight:750;cursor:pointer;box-shadow:0 7px 18px #1769ea21}
.crm-v9-entry-trigger:hover{background:#0d55c5}
.dash-main-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}
.crm-v9-workflow{padding:28px;min-width:0}
.crm-v9-workflow .dash-panel-desc{margin-bottom:18px}
.crm-v9-live-pill{display:inline-flex;align-items:center;gap:7px;color:#4a8e78;border:1px solid #d8eee4;background:#f3fbf7;border-radius:99px;padding:6px 10px;font-size:10px;white-space:nowrap}
.crm-v9-live-pill span{height:7px;width:7px;border-radius:50%;background:#26bd8b}
.crm-v9-action-row{width:100%;min-height:71px;text-decoration:none;display:flex;align-items:center;gap:13px;padding:13px 4px;border:0;border-top:1px solid #edf1f7;background:transparent;color:#253753;text-align:left;cursor:pointer;font:inherit}
.crm-v9-action-row:hover{background:#f8fbff}
.crm-v9-action-row>span:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.crm-v9-action-row strong{font-size:12px;font-weight:760;color:#2c3f5a}
.crm-v9-action-row small{font-size:10px;color:#8999b0;line-height:1.4}
.crm-v9-action-row b{font-size:17px;color:#2268d5;font-variant-numeric:tabular-nums}
.crm-v9-action-symbol{flex:0 0 39px;width:39px;height:39px;border-radius:12px;background:#eef4fc;color:#3975c4;display:grid;place-items:center;font-size:20px;font-weight:700}
.crm-v9-red{background:#fff0ee;color:#e47360}.crm-v9-green{background:#e7f8f1;color:#169c75}.crm-v9-blue{background:#eaf2ff;color:#1671dc}
/* Quick entry modal: centered desktop, bottom sheet mobile; real native dialog. */
.crm-v9-entry-dialog{border:1px solid var(--crm-v9-border);border-radius:24px;background:#fff;color:var(--crm-v9-deep);width:min(450px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 36px);padding:26px;box-shadow:0 25px 88px #16315037;overflow:auto;position:fixed}
.crm-v9-entry-dialog:not([open]){display:none}
.crm-v9-entry-dialog::backdrop{background:rgba(21,37,60,.46);backdrop-filter:blur(5px)}
.crm-v9-entry-modal-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.crm-v9-entry-modal-top h2{font-size:28px;letter-spacing:-.06em;margin:8px 0 0}
.crm-v9-close-entry{border:0;flex:0 0 40px;height:40px;background:#f1f5fa;color:#60718a;border-radius:13px;font-size:25px;cursor:pointer}
.crm-v9-entry-dialog .dash-panel-desc{margin:8px 0 20px;max-width:none}
.crm-v9-entry-dialog .dash-save-form{display:block}
.crm-v9-entry-dialog .dash-entry-foot{margin-top:14px}
.crm-v9-entry-dialog .dash-save-form .dash-product-label{margin-top:16px}
@media(max-width:1100px){.dash-main-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-v9-workflow{padding:23px}}
@media(max-width:850px){.dash-main-grid{grid-template-columns:1fr}}
@media(max-width:680px){
 .contact-pane .list-head{min-height:79px}
 .crm-v9-list-name{gap:8px}.crm-v9-list-name h2{font-size:23px}
 .rail-nav .crm-v7-submenu{margin-left:39px}
 .crm-v9-entry-trigger{min-height:44px}
 .crm-v9-entry-dialog[open]{width:100%;max-width:100%;max-height:calc(92dvh - env(safe-area-inset-top,0px));margin:auto 0 0;inset:auto 0 0 0;border-radius:23px 23px 0 0;padding:23px 19px calc(26px + env(safe-area-inset-bottom,0px));}
 .crm-v9-workflow{padding:20px}
 .crm-v8-plus-wrap{z-index:40}
}
@media(max-width:375px){.crm-v9-list-name h2{font-size:20px}.crm-v9-list-name .list-count{padding:0 7px}.crm-v9-entry-trigger{padding-inline:12px}}
