/* KONSALTOFF CRM v97.67 · чат сотрудников: три колонки, пузыри, панель сведений */
#content.cx-page{padding-bottom:0}
.cx{display:grid;grid-template-columns:330px minmax(0,1fr) 300px;gap:12px;height:calc(100vh - 235px);min-height:460px}
.cx.no-info{grid-template-columns:330px minmax(0,1fr)}.cx.no-info .cx-info{display:none}
.cx-left,.cx-main,.cx-info{background:#fff;border:1px solid #dfe7f0;border-radius:14px;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.cx-info{background:transparent;border:0;gap:10px;overflow:auto}
.cx-left-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 8px}.cx-left-head h3{margin:0;font-size:18px;color:#12304f}
.cx-me{border:0;background:none;padding:0;cursor:pointer;border-radius:50%}
.cx-search{margin:0 14px 8px;width:auto!important;min-height:36px!important;border-radius:10px!important;border:1px solid #d5e0ec!important;padding:7px 12px!important;font-size:13.5px}
.cx-tabs{display:flex;gap:16px;padding:0 16px;border-bottom:1px solid #e3ebf4}
.cx-tabs button{border:0;background:none;padding:8px 0;font-size:13px;font-weight:600;color:#6b7f96;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}
.cx-tabs button.active{color:#1f6fe5;border-bottom-color:#1f6fe5}.cx-tabs i{font-style:normal;display:inline-block;min-width:18px;padding:0 5px;border-radius:999px;background:#e5484d;color:#fff;font-size:11px;line-height:18px;text-align:center}
.cx-list{flex:1;overflow:auto;padding:6px 8px 10px}
.cx-sec{font-size:13px;font-weight:700;color:#12304f;padding:10px 8px 6px}
.cx-item{display:flex;align-items:center;gap:11px;width:100%;border:0;background:none;text-align:left;padding:9px 8px;border-radius:10px;cursor:pointer}
.cx-item:hover{background:#f4f8fd}.cx-item.active{background:#e8f1fd}
.cx-item-main{flex:1;min-width:0;display:flex;flex-direction:column}.cx-item-main b{font-size:14px;color:#12304f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cx-item-main small{font-size:12px;color:#6b7f96}.cx-item-main em{font-style:normal;font-size:12.5px;color:#7a8ba1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cx-item-side{display:flex;flex-direction:column;align-items:flex-end;gap:5px;align-self:flex-start}.cx-item-side time{font-size:11.5px;color:#7a8ba1}
.cx-badge{font-style:normal;min-width:20px;padding:0 6px;border-radius:999px;background:#e5484d;color:#fff;font-size:11.5px;font-weight:700;line-height:20px;text-align:center}.cx-badge.mention{background:#1f6fe5}
.cx-star{font-style:normal;color:#e0a31c;font-size:12px}
.cx-av{position:relative;flex:0 0 40px;width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;color:#12509e}
.cx-av-emoji{font-size:21px;line-height:1}.cx-av.cx-group{background:#dbeafe;font-size:18px}.cx-av.cx-big{flex-basis:52px;width:52px;height:52px;font-size:22px}.cx-av.cx-big .cx-av-emoji{font-size:28px}
.cx-on{position:absolute;right:0;bottom:0;width:11px;height:11px;border-radius:50%;background:#1fb866;border:2px solid #fff}
.cx-main-head{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #e3ebf4}
.cx-main-title{flex:1;min-width:0}.cx-main-title b{display:block;font-size:16px;color:#12304f}.cx-main-title small{font-size:12.5px;color:#6b7f96}
.cx-main-tools{display:flex;align-items:center;gap:6px}.cx-main-tools input{width:170px!important;min-height:32px!important;border-radius:9px!important;border:1px solid #d5e0ec!important;padding:5px 10px!important;font-size:13px}
.cx-main-tools button{border:0;background:#f1f5fa;width:34px;height:34px;border-radius:9px;cursor:pointer;font-size:16px;color:#12509e}.cx-main-tools button:hover{background:#e8f1fd}
.cx-messages{flex:1;overflow:auto;padding:14px 18px;background:linear-gradient(180deg,#f8fbff,#f3f7fc)}
.cx-day,.cx-new{text-align:center;margin:10px 0}.cx-day span{display:inline-block;padding:3px 12px;border-radius:999px;background:#e9eff7;color:#6b7f96;font-size:12px}
.cx-new{position:relative}.cx-new:before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px solid #9cc0f3}.cx-new span{position:relative;display:inline-block;padding:3px 14px;border-radius:999px;background:#fff;border:1px solid #9cc0f3;color:#12509e;font-size:12.5px;font-weight:700}
.cx-msg{display:flex;gap:10px;margin:10px 0;max-width:78%}.cx-msg.own{margin-left:auto;justify-content:flex-end}
.cx-msg-body{min-width:0;display:flex;flex-direction:column;align-items:flex-start}.cx-msg.own .cx-msg-body{align-items:flex-end}
.cx-msg-head{display:flex;gap:10px;align-items:baseline;margin-bottom:3px}.cx-msg-head b{font-size:13.5px;color:#1f6fe5}.cx-msg-head time,.cx-msg-foot time{font-size:11.5px;color:#7a8ba1}
.cx-bubble{background:#fff;border:1px solid #e3ebf4;border-radius:4px 14px 14px 14px;padding:9px 13px;font-size:14px;line-height:1.45;color:#12304f;box-shadow:0 1px 2px rgba(18,48,79,.04);word-break:break-word}
.cx-msg.own .cx-bubble{background:#dceafd;border-color:#c5dcfa;border-radius:14px 4px 14px 14px}
.cx-reply{font-size:12.5px;color:#52667f;border-left:3px solid #9cc0f3;padding:2px 8px;margin-bottom:5px;background:rgba(31,111,229,.05);border-radius:0 6px 6px 0}
.cx-mention{color:#1f6fe5;font-weight:600}.cx-mention.me{background:#fff3c4;border-radius:4px;padding:0 3px;color:#8a6100}
.cx-link{display:inline-flex;align-items:center;gap:4px;border:1px solid #c5dcfa;background:#f1f7ff;color:#12509e;border-radius:8px;padding:2px 9px;font-size:13px;font-weight:600;cursor:pointer;margin:1px 2px}
.cx-file{display:flex;align-items:center;gap:10px;margin-top:6px;padding:8px 10px;border:1px solid #e3ebf4;border-radius:10px;background:#fff;text-decoration:none;color:#12304f;min-width:220px}
.cx-file b,.cx-side-file b{display:block;font-size:13px;word-break:break-all}.cx-file small,.cx-side-file small{font-size:11.5px;color:#6b7f96}.cx-file i{margin-left:auto;font-style:normal;color:#1f6fe5;font-size:17px}
.cx-file-ico{flex:0 0 34px;width:34px;height:38px;border-radius:6px;background:#e5484d;color:#fff;font-size:9.5px;font-weight:700;display:flex;align-items:center;justify-content:center}
.cx-msg-foot{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:4px;min-height:22px;position:relative}
.cx-react{border:1px solid #dfe7f0;background:#fff;border-radius:999px;padding:1px 8px;font-size:12.5px;cursor:pointer}.cx-react.mine{background:#e8f1fd;border-color:#9cc0f3}
.cx-tools{display:inline-flex;gap:2px;opacity:0;transition:opacity .12s}.cx-msg:hover .cx-tools{opacity:1}
.cx-tools button{border:0;background:none;cursor:pointer;font-size:14px;color:#7a8ba1;padding:2px 5px;border-radius:6px}.cx-tools button:hover{background:#e9eff7;color:#12304f}
.cx-pick{position:absolute;bottom:26px;left:0;background:#fff;border:1px solid #dfe7f0;border-radius:999px;padding:3px 6px;box-shadow:0 6px 18px rgba(18,48,79,.14);display:flex;gap:2px;z-index:5}.cx-pick button{border:0;background:none;font-size:18px;cursor:pointer;padding:2px 4px;border-radius:6px}.cx-pick button:hover{background:#eef4fc}
.cx-compose{position:relative;border-top:1px solid #e3ebf4;padding:10px 14px 12px;background:#fff}
.cx-compose-row{display:flex;align-items:flex-end;gap:8px}
.cx-compose textarea{flex:1;resize:none;min-height:42px!important;max-height:140px;border:1px solid #d5e0ec!important;border-radius:12px!important;padding:10px 13px!important;font-size:14px;line-height:1.4}
.cx-compose-row>button,.cx-attach{flex:0 0 42px;width:42px;height:42px;border:1px solid #dfe7f0;background:#f7fafd;border-radius:11px;cursor:pointer;font-size:17px;color:#52667f;display:flex;align-items:center;justify-content:center}
.cx-compose-row>button:hover,.cx-attach:hover{background:#e8f1fd;color:#12509e}.cx-compose-row>.cx-send{background:#1f6fe5;border-color:#1f6fe5;color:#fff}.cx-compose-row>.cx-send:hover{background:#185fc9;color:#fff}
.cx-replybox{display:none;justify-content:space-between;gap:10px;font-size:12.5px;color:#52667f;background:#f1f7ff;border-left:3px solid #1f6fe5;border-radius:0 8px 8px 0;padding:5px 10px;margin-bottom:8px}.cx-replybox.show{display:flex}.cx-replybox button,.cx-attached button{border:0;background:none;cursor:pointer;font-size:16px;color:#52667f}
.cx-attached{font-size:12.5px;color:#52667f;margin-top:6px;display:flex;gap:8px;align-items:center}
.cx-pop{position:absolute;right:14px;bottom:66px;width:min(360px,90%);max-height:300px;overflow:auto;background:#fff;border:1px solid #dfe7f0;border-radius:12px;box-shadow:0 12px 32px rgba(18,48,79,.18);padding:10px;z-index:6}
.cx-emo{border:0;background:none;font-size:22px;cursor:pointer;padding:4px 6px;border-radius:8px}.cx-emo:hover{background:#eef4fc}
.cx-pop-title{font-size:12px;font-weight:700;text-transform:uppercase;color:#6b7f96;margin-bottom:6px}
.cx-pop-row{display:flex;align-items:center;gap:9px;width:100%;border:0;background:none;padding:5px 6px;border-radius:8px;cursor:pointer;font-size:13.5px;color:#12304f;text-align:left}.cx-pop-row:hover{background:#f4f8fd}.cx-pop-row .cx-av{flex-basis:28px;width:28px;height:28px;font-size:12px}.cx-pop-row .cx-av-emoji{font-size:15px}
.cx-pop-form{display:grid;grid-template-columns:1fr auto;gap:8px}.cx-pop-form input{min-height:34px!important;padding:6px 9px!important;font-size:13px}
.cx-card{background:#fff;border:1px solid #dfe7f0;border-radius:14px;padding:14px 16px}
.cx-card h4{margin:0 0 8px;font-size:14px;color:#12509e}.cx-card p{margin:0;font-size:13px;line-height:1.45;color:#52667f}
.cx-info-head{display:flex;align-items:center;gap:12px}.cx-info-head>div{flex:1;min-width:0}.cx-info-head b{display:block;font-size:16px;color:#12304f}.cx-info-head small{display:block;font-size:12.5px;color:#6b7f96}
.cx-fav{border:0;background:none;font-size:22px;cursor:pointer;color:#9db4d3}.cx-fav.on{color:#e0a31c}
.cx-member{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:9px;padding:4px 0}.cx-member .cx-av{flex-basis:30px;width:30px;height:30px;font-size:13px}.cx-member .cx-av-emoji{font-size:16px}.cx-member b{font-size:13.5px;color:#12304f;font-weight:600}.cx-member small{font-size:12px;color:#6b7f96}
.cx-more{width:100%;margin-top:8px;padding:7px;border:1px solid #d5e0ec;border-radius:9px;background:#fff;color:#12509e;font-size:13px;font-weight:600;cursor:pointer}.cx-more:hover{background:#f1f7ff}
.cx-side-file,.cx-side-link{display:flex;align-items:center;gap:10px;width:100%;padding:6px 0;border:0;background:none;text-align:left;text-decoration:none;color:#12304f;cursor:pointer}
.cx-side-link>span:first-child{flex:0 0 32px;width:32px;height:32px;border-radius:8px;background:#eef4fc;display:flex;align-items:center;justify-content:center}.cx-side-link b{display:block;font-size:13px}.cx-side-link small{font-size:12px;color:#6b7f96}
.cx-empty{padding:26px;text-align:center;color:#7a8ba1;font-size:13.5px}
.cx-avatars p{font-size:13.5px;color:#52667f;margin:0 0 12px}.cx-avatar-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;margin-bottom:14px}
.cx-avatar-grid button{aspect-ratio:1;border:2px solid transparent;border-radius:50%;font-size:26px;cursor:pointer}.cx-avatar-grid button:hover{border-color:#9cc0f3}.cx-avatar-grid button.active{border-color:#1f6fe5;box-shadow:0 0 0 3px rgba(31,111,229,.18)}
.cx-profile-av{display:flex;align-items:center;justify-content:center}.cx-profile-av span{font-size:46px;line-height:1}
#cxProfileAvatarBtn{margin-top:8px}
@media(max-width:1350px){.cx{grid-template-columns:290px minmax(0,1fr)}.cx .cx-info{display:none}}
@media(max-width:900px){.cx{grid-template-columns:1fr;height:auto}.cx-left{max-height:300px}.cx-main{height:70vh}}