/* Conversations › Internal chat, @mentions and the bell (public/conversations-internal.js). */

/* rail badges */
.conv-rail-btn { position: relative; }
.ic-rail-badge {
  position: absolute; top: -3px; right: -4px; min-width: 15px;
  background: var(--red, #e5484d); color: #fff; border-radius: 8px;
  font-size: 9.5px; font-weight: 700; line-height: 15px; padding: 0 4px; text-align: center;
}
.conv-sub { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 6px; }

/* start a new conversation */
.ic-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.ic-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 14px; cursor: pointer; font: inherit;
}
.ic-card:hover { border-color: var(--brand); background: var(--brand-soft); }
.ic-card-ico { display: flex; color: var(--brand); }
.ic-card-title { font-weight: 650; font-size: 13.5px; }
.ic-card-sub { font-size: 12px; color: var(--muted); }

/* participant picker */
.ic-picker { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ic-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 8px 0; }
.ic-chips:empty { display: none; }
.ic-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px;
  background: var(--brand-soft); color: var(--brand); border-radius: 14px; padding: 2px 4px 2px 3px;
}
.ic-chip-x { display: inline-flex; align-items: center; border: 0; background: none; color: inherit; cursor: pointer; line-height: 1; padding: 0 3px; }
.dlg .ic-search, .ic-search { border: 0 !important; border-bottom: 1px solid var(--line-soft) !important; border-radius: 0 !important; }
.ic-options { max-height: 230px; overflow-y: auto; }
.ic-option { display: flex; align-items: center; gap: 9px; padding: 7px 10px; cursor: pointer; }
.ic-option:hover { background: var(--hover); }
.ic-option.on { background: var(--brand-soft); }
.ic-option input { width: auto !important; }
.ic-option-who { min-width: 0; }
.ic-option-name { font-size: 13px; font-weight: 550; }
.ic-option-mail { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ic-empty { padding: 12px; font-size: 12.5px; color: var(--muted); text-align: center; }
.ic-av {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 650;
}
.ic-av.xs { width: 18px; height: 18px; font-size: 8.5px; }
.ic-radios { display: flex; flex-direction: column; gap: 8px; }
.ic-radio { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.ic-radio input { width: auto !important; }

/* internal chat list + thread */
.ic-list-find { padding: 0 12px 8px; }
.ic-list-search {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 12.5px;
}
.ic-group-av { background: #e7f3ec; color: #1f7a4d; }
.ic-thread-titles { flex: 1; min-width: 0; }
.ic-thread-sub { font-size: 11.5px; color: var(--muted); }
.ic-sender { font-size: 11px; color: var(--muted); margin: 0 0 2px 2px; }
.ic-people { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.ic-person { display: flex; align-items: center; gap: 9px; }
.ic-at { color: var(--brand); font-weight: 600; background: var(--brand-soft); border-radius: 4px; padding: 0 2px; }

/* internal comments in a contact thread: GHL's #FEFBE8 */
.ic-note .ic-note-bubble, .msg.out.ic-note .msg-bubble { background: #fefbe8; border-color: #f1e7b0; }
.ic-note-head { display: flex; gap: 8px; align-items: center; font-size: 11px; color: #8a6d1a; margin-bottom: 3px; }
.ic-note-tag { font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 10px; }
.conv-comp-area.ic-internal { background: #fefbe8; border-color: #f1e7b0; }

/* the @ list */
.ic-area-holder, .ic-mention-host { position: relative; }
.ic-mention-list {
  position: absolute; left: 8px; bottom: calc(100% - 4px); z-index: 50; width: 280px; max-height: 240px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.ic-mention { display: flex; align-items: center; gap: 8px; padding: 7px 10px; cursor: pointer; font-size: 12.5px; }
.ic-mention.on, .ic-mention:hover { background: var(--brand-soft); }
.ic-mention-name { font-weight: 600; }
.ic-mention-mail { color: var(--muted); font-size: 11px; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }

/* the bell */
.ic-bell-badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px;
  background: var(--red, #e5484d); color: #fff; border: 2px solid var(--surface, #fff); border-radius: 9px;
  font-size: 9.5px; font-weight: 700; line-height: 12px; padding: 0 3px; text-align: center;
}
.ic-bell-panel {
  position: fixed; z-index: 1000; width: 360px; max-height: 480px; display: flex; flex-direction: column;
  background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.16);
}
.ic-bell-head { display: flex; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.ic-bell-title { flex: 1; font-weight: 650; font-size: 14px; }
.ic-bell-list { overflow-y: auto; }
.ic-bell-row {
  display: flex; gap: 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-soft);
  background: none; padding: 10px 14px; cursor: pointer; font: inherit;
}
.ic-bell-row:hover { background: var(--hover); }
.ic-bell-row.unread { background: var(--brand-soft); }
.ic-bell-ico { width: 24px; flex: none; display: flex; justify-content: center; padding-top: 1px; color: var(--brand); }
.ic-bell-text { min-width: 0; }
.ic-bell-row-title { font-size: 12.5px; font-weight: 600; }
.ic-bell-row-body { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.ic-bell-row-when { font-size: 11px; color: var(--dim); margin-top: 2px; }

/* .field label is a block caption; these labels are rows. */
.field label.ic-option, .field label.ic-radio {
  display: flex; margin: 0; font-size: 13px; color: var(--text); font-weight: 400;
}
.dlg-foot .btn:disabled { opacity: .45; cursor: not-allowed; }
