/* Лента сделки. Цвета наследуются от темы Twenty; акценты полупрозрачные, чтобы работать в светлой и тёмной теме. */
.crm-feed{display:flex;flex-direction:column;gap:8px;width:100%;min-height:420px;height:calc(100vh - 230px);font-size:13px;line-height:1.45}
.crm-feed-list{flex:1 1 auto;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:4px 4px 8px 0}
.crm-feed-month{align-self:center;margin:6px 0 2px;padding:1px 12px;border:1px solid #8886;border-radius:999px;font-size:12px;opacity:.85}
.crm-feed-card{display:flex;gap:10px;padding:10px 12px;border:1px solid #8885;border-radius:8px}
.crm-feed-icon{flex:0 0 28px;height:28px;border:1px solid #8886;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px}
.crm-feed-ok{color:#2fa36b;border-color:#2fa36b88}
.crm-feed-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px}
.crm-feed-head{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;opacity:.75;font-size:12px}
.crm-feed-time{white-space:nowrap;opacity:.8;font-size:12px}
.crm-feed-source{margin-left:auto;color:inherit;text-decoration:underline;opacity:.9}
.crm-feed-body{white-space:pre-wrap;word-break:break-word}
.crm-feed-subject{font-weight:600;word-break:break-word}
.crm-feed-done{text-decoration:line-through;opacity:.8}
.crm-feed-event{padding:0 12px;opacity:.75;font-size:12px}
.crm-feed-group-list{padding-left:12px}
.crm-feed-tools{display:flex;gap:10px;margin-top:2px}
.crm-feed-link{background:none;border:0;padding:0;color:#4a7dff;cursor:pointer;font:inherit;text-decoration:underline}
.crm-feed-btn{align-self:flex-end;padding:5px 12px;border:1px solid #4a7dff;border-radius:6px;background:#4a7dff;color:#fff;cursor:pointer;font:inherit}
.crm-feed-btn:disabled{opacity:.5;cursor:default}
.crm-feed-edit{width:100%;min-height:70px;box-sizing:border-box;font:inherit;color:inherit;background:transparent;border:1px solid #8886;border-radius:6px;padding:6px}
.crm-feed-status{min-height:0;font-size:12px;opacity:.8}
.crm-feed-status:empty{display:none}
.crm-feed-empty{align-self:center;opacity:.6;padding:24px}
.crm-feed-tasks{flex:0 0 auto;display:flex;flex-direction:column;gap:6px}
.crm-feed-tasklist{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.crm-feed-addtask{font-size:12px}
.crm-feed-taskform{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:6px 8px;border:1px solid #8886;border-radius:8px}
.crm-feed-taskform[hidden]{display:none}
.crm-feed-taskinput{flex:1 1 240px;min-width:160px;font:inherit;color:inherit;background:transparent;border:1px solid #8886;border-radius:6px;padding:4px 8px}
.crm-feed-taskdue{font:inherit;color:inherit;background:transparent;border:1px solid #8886;border-radius:6px;padding:3px 6px;color-scheme:light dark}
.crm-feed-composer,.crm-feed-status{flex:0 0 auto}
a.crm-feed-done{color:inherit}
.crm-feed-opentask-wrap{display:inline-flex;gap:4px;align-items:stretch}
.crm-feed-check{width:26px;border:1px solid #8886;border-radius:6px;background:transparent;color:inherit;cursor:pointer;font:inherit}
.crm-feed-check:hover{border-color:#2fa36b;color:#2fa36b}
.crm-feed-doneform{flex-direction:column;align-items:stretch}
.crm-feed-doneTitle{font-weight:600}
.crm-feed-nextrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.crm-feed-notask{align-self:flex-start;padding:4px 10px;border:1px solid #d9a40066;border-radius:6px;background:#d9a40018;font-size:12px}
.crm-feed-opentask{display:flex;gap:8px;padding:4px 10px;border:1px solid #8885;border-radius:6px;color:inherit;text-decoration:none;font-size:12px}
.crm-feed-due{white-space:nowrap;opacity:.8}
.crm-feed-overdue{color:#d9534f;opacity:1}
.crm-feed-composer{display:flex;gap:8px;align-items:flex-start;padding:8px;border:1px solid #8887;border-radius:8px}
.crm-feed-mode{color:#4a7dff;padding-top:5px;white-space:nowrap}
.crm-feed-input{flex:1 1 auto;min-height:38px;max-height:200px;resize:vertical;font:inherit;color:inherit;background:transparent;border:0;outline:none}

.crm-feed [hidden]{display:none!important}
