/* Client name cell runtime overrides.
   Loaded after active bundles so UI fixes do not depend on rebuilding CSS bundles. */

#posts-table tbody .client-legal-entity-line,
#posts-table tbody .client-relations-line,
#tasks-table tbody .client-legal-entity-line,
#tasks-table tbody .client-relations-line {
  margin-top: 8px !important;
}

#posts-table tbody .tp-legal-entity-badge,
#tasks-table tbody .tp-legal-entity-badge {
  gap: 8px !important;
  padding: 6px 12px !important;
  border-radius: 16px !important;
  line-height: 1.2 !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07) !important;
  backdrop-filter: blur(8px);
}

#posts-table tbody .tp-legal-entity-badge--editable,
#tasks-table tbody .tp-legal-entity-badge--editable {
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease !important;
}

#posts-table tbody .tp-legal-entity-badge--editable:hover,
#posts-table tbody .tp-legal-entity-badge--editable:focus-visible,
#tasks-table tbody .tp-legal-entity-badge--editable:hover,
#tasks-table tbody .tp-legal-entity-badge--editable:focus-visible {
  transform: translateY(-1px) scale(1.01) !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12) !important;
}

#posts-table tbody .tp-legal-entity-badge__edit,
#tasks-table tbody .tp-legal-entity-badge__edit {
  width: 22px !important;
  height: 22px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.8) !important;
  font-size: 10px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45) !important;
}

#posts-table tbody .tp-legal-entity-badge--individual,
#tasks-table tbody .tp-legal-entity-badge--individual {
  color: #166534 !important;
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(220, 252, 231, 0.92)) !important;
  border-color: rgba(34, 197, 94, 0.2) !important;
}

#posts-table tbody .tp-legal-entity-badge--company,
#tasks-table tbody .tp-legal-entity-badge--company {
  color: #9f1239 !important;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.98), rgba(255, 228, 230, 0.92)) !important;
  border-color: rgba(244, 63, 94, 0.18) !important;
}

#posts-table tbody .tp-legal-entity-badge--neutral,
#tasks-table tbody .tp-legal-entity-badge--neutral {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94)) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

#posts-table tbody .tp-client-relations-trigger,
#tasks-table tbody .tp-client-relations-trigger {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100% !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(186, 230, 253, 0.72) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06) !important;
}

#posts-table tbody .tp-client-relations-trigger:hover,
#tasks-table tbody .tp-client-relations-trigger:hover {
  border-color: rgba(56, 189, 248, 0.58) !important;
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.11) !important;
}

#posts-table tbody .tp-client-relations-trigger__icon,
#posts-table tbody .tp-client-relations-trigger__edit,
#tasks-table tbody .tp-client-relations-trigger__icon,
#tasks-table tbody .tp-client-relations-trigger__edit {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.98), rgba(186, 230, 253, 0.88)) !important;
  color: #075985 !important;
  font-size: 11px !important;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.42) !important;
}

#posts-table tbody .tp-client-relations-trigger__content,
#tasks-table tbody .tp-client-relations-trigger__content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

#posts-table tbody .tp-client-relations-trigger__text,
#tasks-table tbody .tp-client-relations-trigger__text {
  font-size: 11px !important;
}

#posts-table tbody .tp-client-relations-group,
#tasks-table tbody .tp-client-relations-group {
  align-items: flex-start !important;
  gap: 6px !important;
}

#posts-table tbody .tp-client-relations-group__label,
#tasks-table tbody .tp-client-relations-group__label {
  color: #0f766e !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: rgba(236, 253, 245, 0.95) !important;
  border: 1px solid rgba(16, 185, 129, 0.14) !important;
}

#posts-table tbody .tp-client-relations-group__chips,
#tasks-table tbody .tp-client-relations-group__chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

#posts-table tbody .tp-client-relations-chip,
#tasks-table tbody .tp-client-relations-chip {
  gap: 6px !important;
  min-height: 26px !important;
  padding: 4px 10px !important;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(224, 242, 254, 0.9)) !important;
  border: 1px solid rgba(125, 211, 252, 0.3) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
}

#posts-table tbody .tp-client-relations-chip__number,
#tasks-table tbody .tp-client-relations-chip__number {
  padding: 2px 6px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 1px 2px rgba(14, 165, 233, 0.08) !important;
}

#posts-table tbody .tp-client-relations-chip--summary,
#tasks-table tbody .tp-client-relations-chip--summary {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.98), rgba(186, 230, 253, 0.88)) !important;
}

#posts-table tbody .tp-client-relations-chip--link:hover,
#tasks-table tbody .tp-client-relations-chip--link:hover {
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12) !important;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.98), rgba(191, 219, 254, 0.92)) !important;
}

#posts-table tbody .tp-client-relations-edit-btn:hover .tp-client-relations-trigger__edit,
#tasks-table tbody .tp-client-relations-edit-btn:hover .tp-client-relations-trigger__edit {
  background: linear-gradient(135deg, rgba(186, 230, 253, 0.98), rgba(125, 211, 252, 0.92)) !important;
}

#posts-table tbody .last-update-card__footer,
#tasks-table tbody .last-update-card__footer {
  justify-content: flex-start !important;
}

#posts-table tbody .last-update-card__trust,
#tasks-table tbody .last-update-card__trust {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px 10px !important;
  border-radius: 14px !important;
  background: var(--trust-bg, rgba(59, 130, 246, 0.12)) !important;
  color: var(--trust-color, #2563eb) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

#posts-table tbody .last-update-card__trust-copy,
#tasks-table tbody .last-update-card__trust-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  line-height: 1.15 !important;
}

#posts-table tbody .last-update-card__trust-caption,
#tasks-table tbody .last-update-card__trust-caption {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #64748b !important;
}

#posts-table tbody .last-update-card__trust-label,
#tasks-table tbody .last-update-card__trust-label {
  font-size: 11px !important;
  font-weight: 700 !important;
}

#posts-table tbody .last-update-card__trust-score,
#tasks-table tbody .last-update-card__trust-score {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 48px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

#posts-table_wrapper,
#tasks-table_wrapper,
.bitrix-main-content #posts-table_wrapper,
.bitrix-main-content #tasks-table_wrapper,
.bitrix-main-content .files-layout .dataTables_wrapper {
  width: 100% !important;
  max-width: 100% !important;
}

#posts-table,
#tasks-table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

#posts-table thead th,
#posts-table tbody td,
#tasks-table thead th,
#tasks-table tbody td {
  box-sizing: border-box !important;
}

#posts-table tbody td,
#tasks-table tbody td {
  min-width: 0 !important;
  overflow: visible !important;
  vertical-align: top !important;
}

#posts-table tbody td.client-name-cell,
#tasks-table tbody td.client-name-cell {
  width: 39% !important;
}

#posts-table tbody td.file-number-cell-col,
#tasks-table tbody td.file-number-cell-col {
  width: 12% !important;
}

#posts-table tbody td.activity-cell,
#tasks-table tbody td.activity-cell {
  width: 24% !important;
}

#posts-table tbody td.tax-office-cell,
#tasks-table tbody td.tax-office-cell {
  width: 11% !important;
}

#posts-table tbody td.edit-cell,
#tasks-table tbody td.edit-cell {
  width: 14% !important;
}

#posts-table tbody td.client-name-cell,
#tasks-table tbody td.client-name-cell,
#posts-table tbody td.file-number-cell-col,
#tasks-table tbody td.file-number-cell-col,
#posts-table tbody td.edit-cell,
#tasks-table tbody td.edit-cell {
  overflow: visible !important;
}

#posts-table tbody td.file-number-cell-col,
#tasks-table tbody td.file-number-cell-col {
  padding-inline: 8px !important;
  text-align: center !important;
}

#posts-table thead th:nth-child(1),
#tasks-table thead th:nth-child(1) {
  width: 12% !important;
}

#posts-table thead th:nth-child(2),
#tasks-table thead th:nth-child(2) {
  width: 39% !important;
}

#posts-table thead .file-number-header,
#tasks-table thead .file-number-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

#posts-table thead .file-number-header__label,
#tasks-table thead .file-number-header__label {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

#posts-table thead .file-number-header__compare,
#tasks-table thead .file-number-header__compare {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}

#posts-table thead .file-number-header__compare input,
#tasks-table thead .file-number-header__compare input {
  margin: 0 !important;
}

#posts-table tbody td.file-number-cell-col > *,
#tasks-table tbody td.file-number-cell-col > * {
  max-width: 100% !important;
}

#posts-table tbody .file-number-cell,
#tasks-table tbody .file-number-cell {
  display: inline-flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  max-width: 100% !important;
  width: 100% !important;
}

#posts-table tbody .compare-checkbox-wrap,
#tasks-table tbody .compare-checkbox-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

#posts-table tbody .compare-checkbox,
#posts-table tbody .client-select-checkbox,
#tasks-table tbody .compare-checkbox,
#tasks-table tbody .client-select-checkbox {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
}

#posts-table tbody .file-number-text,
#tasks-table tbody .file-number-text {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: rgba(241, 245, 249, 0.95) !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

#posts-table tbody .file-status-badge,
#tasks-table tbody .file-status-badge {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 30px !important;
  gap: 6px !important;
  padding: 5px 9px 5px 8px !important;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1) !important;
  justify-content: center !important;
}

#posts-table tbody .file-status-badge__text,
#tasks-table tbody .file-status-badge__text {
  min-width: 0 !important;
  max-width: 100% !important;
  align-items: center !important;
  text-align: center !important;
}

#posts-table tbody .file-status-badge__label,
#tasks-table tbody .file-status-badge__label {
  font-size: 11px !important;
}

#posts-table tbody .file-status-badge__subtext,
#tasks-table tbody .file-status-badge__subtext {
  font-size: 9px !important;
}

#posts-table tbody td.client-name-cell .client-name-wrapper-v2,
#tasks-table tbody td.client-name-cell .client-name-wrapper-v2,
#posts-table tbody td.client-name-cell .client-info-container,
#tasks-table tbody td.client-name-cell .client-info-container,
#posts-table tbody td.client-name-cell .client-name-line,
#tasks-table tbody td.client-name-cell .client-name-line,
#posts-table tbody td.client-name-cell .client-name-main,
#tasks-table tbody td.client-name-cell .client-name-main {
  min-width: 0 !important;
  max-width: 100% !important;
}

#posts-table tbody td.client-name-cell .client-name-line,
#tasks-table tbody td.client-name-cell .client-name-line,
#posts-table tbody td.client-name-cell .client-name-main,
#tasks-table tbody td.client-name-cell .client-name-main {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

#posts-table tbody td.client-name-cell .client-name-link,
#posts-table tbody td.client-name-cell .client-name-text,
#tasks-table tbody td.client-name-cell .client-name-link,
#tasks-table tbody td.client-name-cell .client-name-text {
  display: inline-block !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  line-height: 1.55 !important;
}

#posts-table tbody td.client-name-cell .client-name-main,
#tasks-table tbody td.client-name-cell .client-name-main {
  font-size: 14px !important;
  flex: 1 1 220px !important;
  min-width: 180px !important;
}

#posts-table tbody td.client-name-cell .tp-legal-entity-badge,
#tasks-table tbody td.client-name-cell .tp-legal-entity-badge {
  flex: 0 0 auto !important;
}

#posts-table tbody td.activity-cell > *,
#posts-table tbody td.tax-office-cell > *,
#posts-table tbody td.edit-cell > *,
#tasks-table tbody td.activity-cell > *,
#tasks-table tbody td.tax-office-cell > *,
#tasks-table tbody td.edit-cell > * {
  max-width: 100% !important;
}

#posts-table tbody td.activity-cell,
#tasks-table tbody td.activity-cell {
  color: #1f2937 !important;
}

#posts-table tbody .activity-shell,
#tasks-table tbody .activity-shell,
#posts-table tbody .activity-heading,
#tasks-table tbody .activity-heading {
  min-width: 0 !important;
  max-width: 100% !important;
}

#posts-table tbody .activity-primary,
#posts-table tbody .activity-primary--edit,
#tasks-table tbody .activity-primary,
#tasks-table tbody .activity-primary--edit {
  display: inline-flex !important;
  max-width: 100% !important;
  min-width: 0 !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 11px !important;
  border-radius: 18px !important;
  border-width: 1px !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
}

#posts-table tbody .activity-main,
#posts-table tbody .activity-text--edit,
#tasks-table tbody .activity-main,
#tasks-table tbody .activity-text--edit {
  display: inline !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  line-height: 1.6 !important;
}

#posts-table tbody .activity-code,
#posts-table tbody .activity-code-inline,
#posts-table tbody .activity-code-chip,
#tasks-table tbody .activity-code,
#tasks-table tbody .activity-code-inline,
#tasks-table tbody .activity-code-chip {
  flex: 0 0 auto !important;
  max-width: 100% !important;
  min-height: 24px !important;
  padding-inline: 9px !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12) !important;
}

#posts-table tbody .activity-registration-bar,
#tasks-table tbody .activity-registration-bar {
  gap: 5px !important;
}

#posts-table tbody .activity-registration-badge,
#tasks-table tbody .activity-registration-badge {
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 5px 10px 5px 8px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08) !important;
}

#posts-table tbody .activity-registration-badge__label,
#tasks-table tbody .activity-registration-badge__label {
  min-width: 0 !important;
  max-width: 100% !important;
}

#posts-table tbody .tax-office-map-chip,
#tasks-table tbody .tax-office-map-chip {
  display: inline-flex !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 9px 11px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.06) !important;
}

#posts-table tbody .tax-office-text,
#tasks-table tbody .tax-office-text {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  line-height: 1.55 !important;
}

#posts-table tbody .client-actions-group,
#tasks-table tbody .client-actions-group {
  grid-template-columns: repeat(5, 30px) !important;
  gap: 5px 6px !important;
  padding: 2px 0 !important;
}

#posts-table tbody tr.actions-bar-row td.actions-bar-cell,
#tasks-table tbody tr.actions-bar-row td.actions-bar-cell {
  padding: 8px 0 14px !important;
}

#posts-table tbody .row-actions-bar,
#tasks-table tbody .row-actions-bar {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border-radius: 18px !important;
}

#posts-table tbody .row-actions-bar .client-actions-group,
#tasks-table tbody .row-actions-bar .client-actions-group {
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)) !important;
  width: 100% !important;
  gap: 6px !important;
}

#posts-table tbody .row-actions-bar .client-actions-group .action-btn,
#tasks-table tbody .row-actions-bar .client-actions-group .action-btn {
  min-height: 52px !important;
  height: 52px !important;
}

#posts-table tbody .action-btn,
#tasks-table tbody .action-btn {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.92)) !important;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.07) !important;
}

#posts-table tbody .action-btn:hover,
#tasks-table tbody .action-btn:hover {
  transform: translateY(-1px) scale(1.04) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(239, 246, 255, 0.96)) !important;
}

#posts-table tbody .last-update-card,
#tasks-table tbody .last-update-card {
  gap: 10px !important;
  padding: 12px 13px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.92)) !important;
  border-color: rgba(191, 219, 254, 0.8) !important;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08) !important;
}

#posts-table tbody .last-update-card__body,
#posts-table tbody .last-update-card__meta,
#posts-table tbody .last-update-card__contributors,
#posts-table tbody .last-update-card__contributors-inline,
#tasks-table tbody .last-update-card__body,
#tasks-table tbody .last-update-card__meta,
#tasks-table tbody .last-update-card__contributors,
#tasks-table tbody .last-update-card__contributors-inline {
  min-width: 0 !important;
  max-width: 100% !important;
}

#posts-table tbody .last-update-card__meta,
#tasks-table tbody .last-update-card__meta {
  gap: 8px !important;
  flex-wrap: wrap !important;
}

#posts-table tbody .last-update-card__progress,
#tasks-table tbody .last-update-card__progress {
  gap: 8px !important;
}

#posts-table tbody .last-update-card__contributors,
#tasks-table tbody .last-update-card__contributors {
  gap: 8px !important;
  padding: 7px 8px !important;
  border-radius: 14px !important;
}

#posts-table tbody .last-update-card__contributor,
#tasks-table tbody .last-update-card__contributor {
  max-width: 100% !important;
}

#posts-table tbody .last-update-card__contributor-name span:last-child,
#tasks-table tbody .last-update-card__contributor-name span:last-child {
  max-width: 88px !important;
}

#posts-table tbody .last-update-card__status,
#posts-table tbody .last-update-card__fields,
#posts-table tbody .last-update-card__trust,
#tasks-table tbody .last-update-card__status,
#tasks-table tbody .last-update-card__fields,
#tasks-table tbody .last-update-card__trust {
  min-height: 30px !important;
}

@media (max-width: 900px) {
  #posts-table tbody .last-update-card__trust,
  #tasks-table tbody .last-update-card__trust {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .bitrix-main-content #posts-table th.client-name-cell,
  .bitrix-main-content #posts-table td.client-name-cell,
  #posts-table tbody td.client-name-cell,
  #tasks-table tbody td.client-name-cell {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #posts-table tbody td.client-name-cell .client-name-wrapper-v2,
  #tasks-table tbody td.client-name-cell .client-name-wrapper-v2,
  #posts-table tbody td.client-name-cell .client-info-container,
  #tasks-table tbody td.client-name-cell .client-info-container,
  #posts-table tbody td.client-name-cell .client-name-line,
  #tasks-table tbody td.client-name-cell .client-name-line,
  #posts-table tbody td.client-name-cell .client-name-main,
  #tasks-table tbody td.client-name-cell .client-name-main,
  #posts-table tbody td.client-name-cell .client-legal-entity-line,
  #tasks-table tbody td.client-name-cell .client-legal-entity-line,
  #posts-table tbody td.client-name-cell .client-relations-line,
  #tasks-table tbody td.client-name-cell .client-relations-line {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #posts-table tbody td.client-name-cell .client-name-line,
  #tasks-table tbody td.client-name-cell .client-name-line,
  #posts-table tbody td.client-name-cell .client-name-main,
  #tasks-table tbody td.client-name-cell .client-name-main {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  #posts-table tbody td.client-name-cell .client-name-link,
  #posts-table tbody td.client-name-cell .client-name-text,
  #tasks-table tbody td.client-name-cell .client-name-link,
  #tasks-table tbody td.client-name-cell .client-name-text {
    display: inline !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  #posts-table tbody .tp-legal-entity-badge,
  #tasks-table tbody .tp-legal-entity-badge {
    max-width: 100% !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
  }

  #posts-table tbody .tp-client-relations-trigger,
  #tasks-table tbody .tp-client-relations-trigger {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #posts-table tbody .tp-client-relations-trigger__content,
  #tasks-table tbody .tp-client-relations-trigger__content,
  #posts-table tbody .tp-client-relations-group,
  #tasks-table tbody .tp-client-relations-group,
  #posts-table tbody .tp-client-relations-group__chips,
  #tasks-table tbody .tp-client-relations-group__chips,
  #posts-table tbody .tp-client-relations-chip,
  #tasks-table tbody .tp-client-relations-chip,
  #posts-table tbody .tp-client-relations-chip__name,
  #tasks-table tbody .tp-client-relations-chip__name {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #posts-table tbody .tp-client-relations-group,
  #tasks-table tbody .tp-client-relations-group {
    width: 100% !important;
  }

  #posts-table tbody .tp-client-relations-group__label,
  #tasks-table tbody .tp-client-relations-group__label,
  #posts-table tbody .tp-client-relations-chip__name,
  #tasks-table tbody .tp-client-relations-chip__name {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  #posts-table tbody .tp-client-relations-chip,
  #tasks-table tbody .tp-client-relations-chip {
    flex-wrap: wrap !important;
  }
}