.conversation-context-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 14px;
  border-bottom: 1px solid #dce4ea;
  background: #fff;
}

.conversation-context-tabs button {
  height: 39px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6b788b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.conversation-context-tabs button.active {
  border-bottom-color: #079ca1;
  color: #087f87;
}

.conversation-crm-panel {
  min-height: 300px;
  background: #fff;
}

.conversation-crm-actions {
  display: grid;
  gap: 9px;
  padding: 13px 14px;
  border-bottom: 1px solid #dce4ea;
}

.conversation-crm-actions > strong,
.conversation-crm-activity > strong {
  font-size: 12px;
}

.conversation-crm-actions > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.conversation-crm-actions .btn {
  min-width: 0;
  justify-content: center;
  font-size: 11px;
}

.conversation-crm-empty {
  min-height: 235px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 24px;
  text-align: center;
}

.conversation-crm-empty > span:last-child {
  max-width: 230px;
  color: #6d7c90;
  font-size: 12px;
  line-height: 1.45;
}

.conversation-crm-empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4f3f4;
  color: #078b93;
}

.conversation-crm-empty-icon svg {
  width: 27px;
  height: 27px;
}

.conversation-crm-summary {
  display: grid;
  gap: 11px;
  padding: 13px 14px;
  border-bottom: 1px solid #dce4ea;
}

.conversation-crm-summary-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.conversation-crm-summary-head > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.conversation-crm-summary-head strong,
.conversation-crm-summary-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-crm-summary-head small {
  color: #6d7c90;
  font-size: 11px;
}

.conversation-crm-summary dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.conversation-crm-summary dl > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 9px;
}

.conversation-crm-summary dt {
  color: #718095;
  font-size: 11px;
}

.conversation-crm-summary dd {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.conversation-crm-summary > p {
  margin: 0;
  padding: 8px;
  border-left: 3px solid #d79a21;
  background: #fff7e7;
  color: #4c5665;
  font-size: 11px;
  line-height: 1.45;
}

.conversation-crm-note {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border-bottom: 1px solid #dce4ea;
}

.conversation-crm-note .textarea {
  width: 100%;
  resize: vertical;
  font-size: 12px;
}

.conversation-crm-note .btn {
  justify-self: end;
}

.conversation-crm-activity {
  display: grid;
  gap: 0;
  padding: 13px 14px;
}

.conversation-crm-activity > strong {
  margin-bottom: 10px;
}

.conversation-crm-activity article {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 6px;
  padding-bottom: 11px;
}

.conversation-crm-activity article i {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: #079ca1;
}

.conversation-crm-activity article i::after {
  content: "";
  display: block;
  width: 1px;
  height: calc(100% + 10px);
  margin: 7px 0 0 3px;
  background: #dce4ea;
}

.conversation-crm-activity article:last-of-type i::after {
  display: none;
}

.conversation-crm-activity article > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.conversation-crm-activity b {
  font-size: 11px;
}

.conversation-crm-activity small {
  overflow: hidden;
  color: #65748a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-crm-activity time {
  color: #8794a5;
  font-size: 10px;
}

.conversation-crm-loading {
  padding: 24px;
  color: #69788c;
  font-size: 12px;
  text-align: center;
}

.conversation-crm-loading.error {
  color: #aa3942;
}

.crm-table td[colspan] {
  max-width: none;
}

.crm-table td[colspan] .crm-empty {
  width: min(760px, calc(100vw - 40px));
  max-width: none;
  margin: 0 auto;
}

.crm-table tbody tr.crm-empty-row {
  cursor: default;
}

.crm-table tbody tr.crm-empty-row:hover {
  background: #FFFFFF;
}

.crm-table td[colspan] .crm-empty {
  justify-items: center;
  gap: 8px;
  padding: 28px;
  cursor: default;
}

.crm-table td[colspan] .crm-empty > strong {
  max-width: none;
  overflow: visible;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
}

.crm-table td[colspan] .crm-empty > span:not(.crm-empty-icon) {
  max-width: 560px;
  color: #718095;
  line-height: 1.45;
}

.crm-empty-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #E5F4F3;
  color: #07877E;
}

.crm-empty-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.crm-table td[colspan] .crm-empty .btn {
  min-height: 34px;
  margin-top: 4px;
}
