/* Light tooltips */
.tooltip-light .tooltip-inner {
  background-color: #f8f9fa;
  color: #212529;
  border: 1px solid #dee2e6;
}
.tooltip-light.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.tooltip-light.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #f8f9fa;
}
.tooltip-light.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,
.tooltip-light.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #f8f9fa;
}
.tooltip-light.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,
.tooltip-light.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: #f8f9fa;
}
.tooltip-light.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,
.tooltip-light.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #f8f9fa;
}

/* Admins list header toolbar */
.filters-toolbar .form-select,
.filters-toolbar .btn,
.filters-toolbar .form-control { height: 32px; padding-top: 4px; padding-bottom: 4px; }
.filters-toolbar { gap: 8px; }

/* Admins filters */
#adminsTable {}
.admin-line { display:flex; align-items:center; gap:12px; }
.admin-bots { white-space: nowrap; overflow-x:auto; }
.admin-bot-badge { display:inline-flex; align-items:center; line-height:1; }
.admin-bot-badge .btn { line-height:1; }

/* Chat modal */
#dialogViewModal #dialogMessages { background: #f6f7f9; }
.modal#dialogViewModal .modal-dialog { max-width: 96vw; }
.chat-msg { display:flex; margin-bottom:10px; }
.chat-msg .bubble { padding:10px 12px; border-radius:12px; max-width:76%; position:relative; box-shadow:0 1px 1px rgba(0,0,0,.04); }
.chat-msg.mine { justify-content:flex-end; }
.chat-msg.mine .bubble { background:#e7f1ff; color:#0c3c78; border-top-right-radius:6px; }
.chat-msg.their .bubble { background:#ffffff; color:#212529; border:1px solid #e9ecef; border-top-left-radius:6px; }
.chat-meta { font-size:12px; color:#6c757d; margin-top:6px; text-align:right; }
.chat-from { font-size:12px; color:#495057; }
.chat-text { white-space:pre-wrap; }

/* Dialogs counters as clickable chips */
.counter-chip { cursor: pointer; user-select: none; transition: background-color .15s ease, border-color .15s ease; }
.counter-chip:hover { background-color: #f8f9fa; }
.counter-chip.active { border-color: var(--bs-primary)!important; background-color: #eef5ff; }
