:root {
  --conversation-shell-viewport-height: 100dvh;
  --conversation-shell-navbar-height: 0px;
  --conversation-chat-content-max-width: 65rem;
  --conversation-composer-control-min-height: 4rem;
}

html {
  min-height: 100%;
}

body.conversation-shell-body {
  min-height: var(--conversation-shell-viewport-height);
  height: var(--conversation-shell-viewport-height);
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  display: inline-block;
  margin-right: 0.5rem;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2);
}

body.conversation-shell-body,
.conversation-shell-page,
.conversation-shell-wrapper {
  overflow: hidden;
}

.conversation-shell-page {
  min-height: var(--conversation-shell-viewport-height);
  height: var(--conversation-shell-viewport-height);
}

.conversation-shell-wrapper,
.conversation-shell-container,
.conversation-shell-card,
.conversation-shell-card > .card-body,
.conversation-page,
.conversation-app,
.conversation-app-shell,
.conversation-pane,
.conversation-sidebar-card,
.conversation-main-pane,
.conversation-sidebar,
.conversation-chat-card,
.conversation-chat-body {
  min-height: 0;
}

.conversation-shell-wrapper,
.conversation-shell-container,
.conversation-shell-card,
.conversation-shell-card > .card-body,
.conversation-page,
.conversation-app {
  flex: 1 1 auto;
}

.conversation-shell-wrapper {
  height: calc(var(--conversation-shell-viewport-height) - var(--conversation-shell-navbar-height));
  max-height: calc(var(--conversation-shell-viewport-height) - var(--conversation-shell-navbar-height));
}

.conversation-shell-container,
.conversation-shell-card,
.conversation-shell-card > .card-body,
.conversation-page,
.conversation-app,
.conversation-app-shell,
.conversation-pane,
.conversation-sidebar-card,
.conversation-sidebar,
.conversation-main-pane,
.conversation-chat-card {
  height: 100%;
}

.conversation-pane {
  overflow: hidden;
}

.conversation-sidebar-card,
.conversation-main-pane {
  background: var(--tblr-bg-surface);
  box-shadow: none;
}

.conversation-sidebar {
  background: var(--tblr-bg-surface-secondary);
}

.conversation-sidebar-header {
  background: var(--tblr-bg-surface);
  border-bottom: 1px solid var(--tblr-border-color);
}

.conversation-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.conversation-strip-item {
  color: inherit;
  text-decoration: none;
}

.conversation-sidebar-item {
  padding: 0.9rem;
  background: transparent;
  border: 1px solid transparent;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.conversation-sidebar-item:hover {
  background: var(--tblr-bg-surface);
  border-color: var(--tblr-border-color);
  color: inherit;
  text-decoration: none;
}

.conversation-strip-item.is-active,
.conversation-sidebar-item.active {
  background: rgba(var(--tblr-primary-rgb), 0.15);
  border-color: rgba(var(--tblr-primary-rgb), 0.35);
  color: inherit;
}

.conversation-strip-item.is-new-message-flash {
  animation: conversationStripFlash 1.2s ease;
}

.conversation-strip-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.conversation-strip-title {
  display: block;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-strip-time {
  white-space: nowrap;
}

.conversation-strip-preview {
  display: block;
  margin-top: 0.2rem;
  color: var(--tblr-secondary);
  font-size: 0.8125rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-strip-meta {
  color: var(--tblr-secondary);
}

#debug-box {
  color: var(--tblr-body-color);
}

.conversation-search-empty {
  border: 1px dashed var(--tblr-border-color);
  border-radius: 1rem;
  margin: 0.35rem;
}

.conversation-chat-card {
  background: var(--tblr-bg-surface);
  overflow: hidden;
}

.conversation-main-pane {
  display: flex;
  flex-direction: column;
}

.conversation-chat-header {
  border-bottom: 1px solid var(--tblr-border-color);
  background: var(--tblr-bg-surface);
}

.conversation-chat-header-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0.65rem;
  min-width: 0;
}

.conversation-chat-header-main,
.conversation-active-chip {
  min-width: 0;
}

.conversation-chat-header-main {
  width: 100%;
}

.conversation-active-content,
.conversation-active-top,
.conversation-active-heading {
  min-width: 0;
}

.conversation-active-title {
  line-height: 1.2;
}

.conversation-active-actions .badge {
  white-space: nowrap;
}

.conversation-chat-warning-row {
  width: 100%;
}

.conversation-chat-warning-alert .ti {
  margin-top: 0.1rem;
}

.conversation-chat-warning-content,
.conversation-chat-warning-content p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.conversation-chat-body {
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.conversation-chat-body .chat {
  flex: 1 1 auto;
  min-height: 100%;
}

.conversation-chat-body .chat-bubbles {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.conversation-chat-body .chat-bubble {
  border: 1px solid var(--tblr-border-color);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  box-shadow: none;
}

.conversation-chat-body .chat-bubble-inbound {
  background: var(--tblr-bg-surface-secondary);
}

.conversation-chat-body .chat-bubble-outbound,
[data-realtime-conversation="1"] .chat-bubble-outbound {
  background: #144d37;
  border-color: #144d37;
  color: #fff;
}

.conversation-chat-body .chat-bubble-outbound .chat-bubble-date,
.conversation-chat-body .chat-bubble-outbound .text-secondary,
.conversation-chat-body .chat-bubble-outbound .message-attachment-meta,
[data-realtime-conversation="1"] .chat-bubble-outbound .chat-bubble-date,
[data-realtime-conversation="1"] .chat-bubble-outbound .text-secondary,
[data-realtime-conversation="1"] .chat-bubble-outbound .message-attachment-meta {
  color: rgba(255, 255, 255, 0.78) !important;
}

.conversation-chat-body .chat-bubble-outbound .message-attachment-item,
[data-realtime-conversation="1"] .chat-bubble-outbound .message-attachment-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.conversation-chat-body .chat-bubble-outbound .message-attachment-image,
[data-realtime-conversation="1"] .chat-bubble-outbound .message-attachment-image {
  border-color: rgba(255, 255, 255, 0.22);
}

.conversation-chat-body .chat-bubble-outbound .message-attachment-file-link,
[data-realtime-conversation="1"] .chat-bubble-outbound .message-attachment-file-link {
  color: #fff;
}

.conversation-chat-body .chat-bubble-author {
  text-transform: capitalize;
}

.conversation-chat-body .chat-bubble-date {
  color: var(--tblr-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: help;
  white-space: nowrap;
}

.conversation-chat-body .chat-bubble-meta {
  margin-top: 0.45rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.conversation-chat-card.is-new-message-flash {
  animation: conversationCardFlash 1.4s ease;
}

.conversation-chat-body .chat-message-status {
  display: inline-block;
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: -0.12em;
  font-weight: 600;
  cursor: help;
  user-select: none;
}

.conversation-chat-body .chat-message-status.is-single {
  letter-spacing: 0;
}

.conversation-chat-body .chat-message-status.is-gray {
  color: var(--tblr-secondary);
}

.conversation-chat-body .chat-message-status.is-green {
  color: #2fb344;
}

.message-attachments-list {
  display: grid;
  gap: 0.5rem;
}

.message-attachment-item {
  /* border: 1px solid var(--tblr-border-color); */
  border-radius: 0.5rem;
  padding: 0.5rem;
  background: var(--tblr-gray-950);
}

.message-attachment-image-link {
  display: block;
  text-decoration: none;
}

.message-attachment-image {
  display: block;
  width: min(100%, 18rem);
  max-height: 12rem;
  border-radius: 0.4rem;
  object-fit: cover;
  border: 1px solid var(--tblr-border-color);
}

.message-attachment-file-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.message-attachment-file-link:hover {
  text-decoration: underline;
}

.message-attachment-meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
}

.conversation-composer-sticky {
  background: var(--tblr-bg-surface);
  border-top: none !important;
}

.conversation-composer-textarea {
  min-height: var(--conversation-composer-control-min-height);
  max-height: 10rem;
  resize: none;
  height: 6rem !important;
}

.conversation-composer-row,
.conversation-composer-input-block {
  min-width: 0;
}

.conversation-composer-row {
  align-items: stretch;
}

.conversation-composer-buttons {
  display: grid;
  gap: 0.5rem;
  align-self: stretch;
  min-height: var(--conversation-composer-control-min-height);
}

.conversation-composer-buttons-double {
  grid-template-rows: 1fr 1fr;
  min-width: 12.5rem;
}

.conversation-composer-buttons-single {
  grid-template-rows: 1fr;
  min-width: 12.5rem;
}

.conversation-composer-send-button {
  width: 100%;
  height: 100%;
}

.conversation-composer-attachments {
  display: flex;
  align-items: stretch;
  align-self: stretch;
}

.conversation-composer-attachments-double {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
  min-width: 4.75rem;
}

.conversation-composer-attachments-double .conversation-composer-attachment-button,
.conversation-composer-fake-doc-button {
  width: 100%;
  min-height: calc((var(--conversation-composer-control-min-height) - 0.5rem) / 2);
}

.conversation-composer-attachment-button {
  height: 100%;
  min-height: var(--conversation-composer-control-min-height);
  min-width: 4.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  line-height: 1;
}

.conversation-composer-fake-doc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.1rem;
}

.conversation-tools-drawer {
  --tblr-offcanvas-width: min(34rem, 100vw);
}

.conversation-log-entry {
  border: 1px solid var(--tblr-border-color);
}

.conversation-log-record-id,
.conversation-log-record-id code {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.conversation-log-details {
  max-height: 24rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
  font-size: 0.8125rem;
  scrollbar-width: thin;
}

body.shell-page:not(.conversation-shell-body),
body.shell-page:not(.conversation-shell-body) .page {
  font-family: "Inter var", "Inter", var(--tblr-font-sans-serif);
}

body.shell-page {
  margin: 0;
  padding: 0;
}

body.shell-page > .page {
  margin: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.shell-page > .page > .shell-navbar,
body.shell-page > .page > .page-wrapper {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.shell-main-row {
  --tblr-gutter-x: 0;
  --tblr-gutter-y: 0;
}

.shell-main-section {
  width: 100%;
  max-width: 100%;
}

.shell-main-card-flat {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
}

.shell-main-card-body {
  padding: 0;
}

body.settings-shell-body .shell-main-card-body > .card.mb-3:first-of-type {
  margin-bottom: 0 !important;
}

.settings-field-label {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.settings-page-grid .form-label {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.settings-value-wrap {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.settings-copy-btn {
  min-width: 2.5rem;
}

.settings-copy-feedback {
  min-height: 1.25rem;
}

.settings-status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
}

.settings-status-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--tblr-bg-surface-secondary);
  max-width: 100%;
}

.settings-status-item strong {
  white-space: nowrap;
}

.settings-status-item span {
  overflow-wrap: anywhere;
}

.settings-page-grid {
  row-gap: 2.4rem;
}

.settings-section-block > .card {
  border: 1px solid var(--tblr-border-color);
}

.settings-section-block > .card > .card-header {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.settings-section-block > .card > .card-body {
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

.settings-section-block .row.g-3 {
  --tblr-gutter-y: 1.25rem;
}

.settings-section-block > .card > .card-body > .card {
  margin-bottom: 1.6rem;
}

.settings-section-block > .card > .card-body > .card:last-child {
  margin-bottom: 0;
}

.settings-section-toggle {
  min-width: 7.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.workdays-picker-option {
  position: relative;
  cursor: pointer;
}

.toast-container[data-floating-toast-container="1"] {
  z-index: 1080;
}

@keyframes conversationStripFlash {
  0% {
    background: rgba(44, 153, 255, 0.08);
  }
  35% {
    background: rgba(44, 153, 255, 0.2);
  }
  100% {
    background: transparent;
  }
}

@keyframes conversationCardFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(44, 153, 255, 0.24);
  }
  35% {
    box-shadow: 0 0 0 8px rgba(44, 153, 255, 0.16);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(44, 153, 255, 0);
  }
}

.workdays-picker-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.workdays-picker-option .avatar {
  width: 2.625rem;
  height: 2.625rem;
  min-width: 2.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(15, 49, 95, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.workday-avatar {
  background: var(--tblr-muted-lt);
  color: var(--tblr-muted);
}

.workdays-picker-checkbox:checked + .workday-avatar,
.workdays-picker-option.is-selected .avatar {
  background: var(--tblr-primary-lt);
  color: var(--tblr-primary);
  border-color: rgba(26, 79, 156, 0.35);
  box-shadow: 0 0 0 2px rgba(26, 79, 156, 0.12);
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .conversation-pane {
    display: none;
  }

  .conversation-app[data-mobile-pane="list"] .conversation-pane-list,
  .conversation-app[data-mobile-pane="detail"] .conversation-pane-detail {
    display: block;
  }

  .conversation-sidebar-heading {
    align-items: stretch !important;
  }

  .conversation-sidebar-heading .btn {
    width: 100%;
    justify-content: center;
  }

  .conversation-sidebar-header {
    padding-top: calc(1rem + env(safe-area-inset-top));
  }

  .conversation-chat-header {
    padding-top: calc(0.45rem + env(safe-area-inset-top));
    padding-bottom: 0.45rem;
  }

  .conversation-active-chip {
    gap: 0.55rem;
  }

  .conversation-active-chip .avatar {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
  }

  .conversation-active-top {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .conversation-active-title {
    font-size: 1rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  .conversation-active-subtitle,
  .conversation-active-meta {
    line-height: 1.35;
  }

  .conversation-active-subtitle {
    margin-top: 0.2rem !important;
  }

  .conversation-active-meta {
    margin-top: 0.35rem !important;
    gap: 0.45rem !important;
  }

  .conversation-active-actions,
  .conversation-active-meta {
    width: auto;
    justify-content: flex-start;
  }

  .conversation-active-actions {
    margin-left: auto;
    gap: 0.35rem !important;
  }

  .conversation-chat-warning-row {
    margin-top: 0 !important;
  }

  .conversation-active-meta span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .conversation-panel-trigger {
    width: auto;
    justify-content: center;
    padding: 0.32rem 0.6rem;
    min-height: auto;
  }

  .conversation-chat-body {
    padding: 1rem;
  }

  .conversation-composer-sticky {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }

  .conversation-composer-row {
    display: grid !important;
    grid-template-columns: 15% 85%;
    grid-template-areas:
      "input input"
      "attach buttons";
    align-items: stretch !important;
    gap: 0.75rem;
  }

  .conversation-composer-buttons {
    grid-area: buttons;
    min-width: 0;
    order: initial;
  }

  .conversation-composer-buttons-single,
  .conversation-composer-buttons-double {
    min-width: 0;
  }

  .conversation-composer-attachments {
    grid-area: attach;
    align-self: stretch;
    min-width: 0;
  }

  .conversation-composer-attachments-double {
    min-width: 0;
  }

  .conversation-composer-input-block {
    grid-area: input;
    min-width: 0;
  }

  .conversation-composer-attachment-button {
    width: 100%;
    min-width: 0;
    min-height: var(--conversation-composer-control-min-height);
  }

  .conversation-strip-preview {
    white-space: normal;
  }

  .conversation-log-details {
    max-height: 18rem;
  }

  .settings-subtabs-card .d-flex.flex-wrap.gap-2 {
    width: 100%;
  }

  .settings-subtabs-card .nav {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    padding-bottom: 0.15rem;
  }
}

@media (min-width: 992px) {
  .conversation-pane-list {
    border-right: 1px solid var(--tblr-border-color);
  }

  .conversation-pane {
    display: block !important;
  }

  .conversation-main-pane,
  .conversation-sidebar-card {
    height: 100%;
  }
}

@media (min-width: 1200px) {
  .conversation-chat-header-main,
  .conversation-chat-body .chat,
  .conversation-composer-shell {
    width: min(100%, var(--conversation-chat-content-max-width));
    margin-left: auto;
    margin-right: auto;
  }
}

[data-bs-toggle="collapse"][aria-expanded="true"] span.ms-2 {
    transform: rotate(180deg);
}
span {
    transition: transform 0.2s;
}

/* Updated: 2026-04-12 06:20:53 +03:00 */
