@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --vf-bg: #f3f6fb;
  --vf-bg-gradient:
    radial-gradient(1400px 620px at 10% -10%, rgba(52, 111, 245, 0.18), transparent 58%),
    radial-gradient(1000px 520px at 100% 0%, rgba(17, 86, 211, 0.14), transparent 50%),
    linear-gradient(180deg, #f6f8fd 0%, #eef3fb 100%);
  --vf-surface: rgba(255, 255, 255, 0.88);
  --vf-surface-strong: #ffffff;
  --vf-surface-soft: #f7f9fe;
  --vf-border: rgba(15, 39, 84, 0.12);
  --vf-border-strong: rgba(15, 39, 84, 0.2);
  --vf-text: #0f1f3b;
  --vf-muted: #5f6f8c;
  --vf-primary: #2667df;
  --vf-primary-soft: rgba(38, 103, 223, 0.12);
  --vf-success: #1f9d6b;
  --vf-violet: #7c4dff;
  --vf-amber: #d38b00;
  --vf-rose: #d94873;
  --vf-slate: #55637d;
  --vf-shadow-sm: 0 6px 16px rgba(13, 43, 104, 0.08);
  --vf-shadow-md: 0 14px 30px rgba(13, 43, 104, 0.12);
  --vf-radius-lg: 1rem;
  --vf-radius-md: 0.8rem;
  --vf-radius-sm: 0.65rem;
  --vf-shell-gap: 1rem;
  --vf-topbar-h: 64px;
  --vf-sidebar-w: 298px;
  --vf-sidebar-collapsed-w: 86px;
}

[data-bs-theme="dark"] {
  --vf-bg: #0f1625;
  --vf-bg-gradient:
    radial-gradient(1300px 550px at 0% -10%, rgba(47, 108, 233, 0.22), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(45, 82, 154, 0.22), transparent 50%),
    linear-gradient(180deg, #0f1625 0%, #121b2d 100%);
  --vf-surface: rgba(17, 26, 42, 0.8);
  --vf-surface-strong: #111b2c;
  --vf-surface-soft: #16233a;
  --vf-border: rgba(142, 171, 224, 0.2);
  --vf-border-strong: rgba(142, 171, 224, 0.34);
  --vf-text: #d8e4ff;
  --vf-muted: #9fb1d6;
  --vf-primary: #4f8cff;
  --vf-primary-soft: rgba(79, 140, 255, 0.2);
  --vf-success: #27c07d;
  --vf-shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.28);
  --vf-shadow-md: 0 14px 30px rgba(0, 0, 0, 0.34);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--vf-bg-gradient);
  color: var(--vf-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.02em;
  color: var(--vf-text);
}

a {
  color: var(--vf-primary);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

[data-density="compact"] {
  --vf-shell-gap: 0.72rem;
}

.app-body {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}

.app-header {
  min-height: var(--vf-topbar-h);
  border-bottom: 1px solid var(--vf-border) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.app-header .container-fluid {
  gap: 0.75rem;
  padding-inline: 1.4rem;
}

.app-header-icon-btn,
.app-header-pill-btn {
  border-radius: 999px !important;
  border: 1px solid #dbe4f0 !important;
  background: #ffffff !important;
  color: #243247 !important;
  min-height: 2.35rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.app-header-icon-btn {
  min-width: 2.25rem;
}

.app-header-pill-btn:hover,
.app-header-icon-btn:hover {
  border-color: #c7d4e6 !important;
  background: #f8fbff !important;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #0f172a !important;
  font-weight: 800 !important;
}

.app-brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f8cff, #2555c6);
  box-shadow: 0 0 0 5px rgba(37, 85, 198, 0.18);
}

.app-header-actions {
  flex-wrap: wrap;
}

.app-brand-label {
  min-width: 0;
}

.app-header-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.app-header-user-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.app-header-user-role {
  font-size: 0.73rem;
  color: #7a879a;
  text-transform: lowercase;
}

.app-notification-menu {
  width: min(380px, calc(100vw - 1.5rem));
  padding: 0;
  overflow: hidden;
  border-radius: 1.15rem !important;
}

.app-notification-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1rem 0.9rem;
  border-bottom: 1px solid #e7edf5;
  background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
}

.app-notification-menu-head strong {
  display: block;
  color: #0f172a;
  font-size: 0.94rem;
  line-height: 1.2;
}

.app-notification-menu-head span {
  display: block;
  margin-top: 0.2rem;
  color: #7a879d;
  font-size: 0.75rem;
}

.app-notification-mark-all {
  flex-shrink: 0;
  color: #1d57ca !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.app-notification-menu-list {
  max-height: 24rem;
  overflow-y: auto;
  padding: 0.45rem;
}

.app-notification-item {
  display: flex !important;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 0.85rem !important;
  border-radius: 0.95rem !important;
  color: #0f172a !important;
  text-decoration: none !important;
  margin-bottom: 0.25rem;
  background: transparent;
  white-space: normal !important;
}

.app-notification-item:hover,
.app-notification-item:focus {
  background: #f7fbff !important;
}

.app-notification-item.is-unread {
  background: linear-gradient(180deg, rgba(47, 121, 234, 0.08) 0%, rgba(47, 121, 234, 0.03) 100%);
}

.app-notification-item-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #d7dee9;
  margin-top: 0.38rem;
  flex-shrink: 0;
}

.app-notification-item.is-unread .app-notification-item-dot {
  background: #2f79ea;
  box-shadow: 0 0 0 4px rgba(47, 121, 234, 0.12);
}

.app-notification-item-body {
  min-width: 0;
  flex: 1;
}

.app-notification-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #122033;
  line-height: 1.3;
}

.app-notification-item-message {
  margin-top: 0.2rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #5f6b85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-notification-menu-state {
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.app-notification-menu-state-empty {
  flex-direction: column;
  gap: 0.45rem;
  color: #7a879d;
  font-size: 0.82rem;
}

.app-notification-menu-state-empty i {
  font-size: 1.15rem;
  color: #9aa7bb;
}

.app-sidebar {
  width: var(--vf-sidebar-w);
  max-width: var(--vf-sidebar-w);
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: linear-gradient(180deg, #0c1629 0%, #0f1b30 52%, #111d33 100%) !important;
  color: rgba(255, 255, 255, 0.84);
  box-shadow: 14px 0 30px rgba(2, 6, 23, 0.24);
  position: sticky;
  top: var(--vf-topbar-h);
  align-self: flex-start;
  height: calc(100vh - var(--vf-topbar-h));
  overflow: hidden;
}

.app-sidebar.is-collapsed {
  width: var(--vf-sidebar-collapsed-w);
  max-width: var(--vf-sidebar-collapsed-w);
}

.app-sidebar-backdrop {
  display: none;
}

.app-sidebar-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-sidebar-brand {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.app-sidebar-brand-collapsed {
  justify-content: center;
  padding-inline: 0.4rem;
}

.app-sidebar-brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.app-sidebar-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-sidebar-brand-title {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.app-sidebar-brand-subtitle {
  color: #d6b26c;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.24em;
}

.app-sidebar-search {
  padding: 0.8rem 0.9rem 0.55rem;
  flex-shrink: 0;
}

.app-sidebar-search-shell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.3rem;
  padding: 0 0.8rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.app-sidebar-search-shell i {
  color: rgba(255, 255, 255, 0.34);
}

.app-sidebar-search .form-control {
  border: none !important;
  background: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
  padding-inline: 0 !important;
  font-size: 0.82rem;
}

.app-sidebar-search .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.app-sidebar-scroll {
  overflow-y: auto;
  min-height: 0;
  padding: 0.35rem 0.5rem 0.75rem;
}

.app-sidebar-scroll::-webkit-scrollbar {
  width: 6px;
}

.app-sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.app-sidebar-group {
  margin-bottom: 0.6rem;
}

.app-sidebar-group-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.38);
}

.app-sidebar-group-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vf-slate);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--vf-slate) 18%, transparent);
}

.app-sidebar-group.tone-violet .app-sidebar-group-title::before {
  background: var(--vf-violet);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--vf-violet) 18%, transparent);
}

.app-sidebar-group.tone-emerald .app-sidebar-group-title::before {
  background: var(--vf-success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--vf-success) 18%, transparent);
}

.app-sidebar-group.tone-amber .app-sidebar-group-title::before {
  background: var(--vf-amber);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--vf-amber) 18%, transparent);
}

.app-sidebar-group.tone-rose .app-sidebar-group-title::before {
  background: var(--vf-rose);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--vf-rose) 18%, transparent);
}

.app-sidebar-group-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  border-radius: 0.65rem;
  padding: 0.45rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-sidebar-group-toggle:hover {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
}

.app-sidebar-group-toggle .bi {
  transition: transform 180ms ease;
}

.app-sidebar-group-toggle .bi.is-open {
  transform: rotate(180deg);
}

.app-nav-link {
  min-height: 2.35rem;
  border-radius: 0.72rem !important;
  color: rgba(255, 255, 255, 0.62) !important;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  padding-inline: 0.8rem !important;
  font-size: 0.86rem;
  font-weight: 500;
}

.app-nav-link:hover {
  border-color: rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92) !important;
}

.app-nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  border-color: transparent;
  box-shadow: inset 3px 0 0 #d6b26c;
}

.app-sidebar .nav-link i {
  width: 18px;
  text-align: center;
}

.app-sidebar.is-collapsed .app-nav-link {
  justify-content: center;
  padding-inline: 0.4rem !important;
}

.app-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.app-sidebar-user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
}

.app-sidebar-user-copy {
  min-width: 0;
}

.app-sidebar-user-name {
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar-user-role {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
}

.app-main {
  flex: 1;
  min-width: 0;
  padding: 1rem var(--vf-shell-gap) var(--vf-shell-gap);
  overflow-x: hidden;
}

.app-main-container {
  width: 100%;
  max-width: none;
  padding-inline: 0.2rem;
}

.app-page,
.app-page-narrow {
  width: 100%;
  max-width: none;
}

.app-page-header {
  margin-bottom: 1rem !important;
}

.app-eyebrow {
  color: var(--vf-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.app-route-loader {
  min-height: 34vh;
  display: grid;
  place-items: center;
  border: 1px dashed var(--vf-border);
  border-radius: var(--vf-radius-md);
  background: var(--vf-surface-soft);
  color: var(--vf-muted);
  font-weight: 700;
}

.app-route-loader-root {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: var(--vf-bg-gradient);
}

.app-page-headline {
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-md);
  background:
    radial-gradient(140% 120% at 100% 0%, color-mix(in srgb, var(--vf-primary) 8%, transparent) 0%, transparent 65%),
    var(--vf-surface);
  box-shadow: var(--vf-shadow-sm);
  padding: 0.85rem 1rem;
}

.app-hero-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
}

.app-hero-copy {
  min-width: 0;
}

.app-hero-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.app-page-headline h1,
.app-page-headline h2,
.app-page-headline h3,
.app-page-headline h4 {
  margin-bottom: 0.2rem;
}

.app-footer {
  border-top: 1px solid var(--vf-border) !important;
  background: var(--vf-surface) !important;
  backdrop-filter: blur(10px);
}

.card,
.table,
.dropdown-menu,
.modal-content,
.offcanvas {
  border: 1px solid var(--vf-border) !important;
  background: var(--vf-surface) !important;
  box-shadow: var(--vf-shadow-sm);
  backdrop-filter: blur(8px);
}

.app-page-headline,
.app-section-card,
.app-chat-panel,
.pipeline-stage,
.app-sidebar-group {
  animation: vfReveal 260ms ease-out both;
}

@keyframes vfReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-card {
  border-radius: var(--vf-radius-lg);
}

.app-section-card {
  border-radius: var(--vf-radius-lg) !important;
}

.app-surface {
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-lg);
  background: var(--vf-surface);
  box-shadow: var(--vf-shadow-sm);
  backdrop-filter: blur(8px);
}

.app-surface-padded {
  padding: 1.15rem 1.15rem 1.05rem;
}

.app-surface-subtle {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--vf-surface) 88%, #ffffff) 0%, var(--vf-surface) 100%) !important;
}

.app-surface-centered {
  min-height: 140px;
  display: grid;
  place-items: center;
}

.app-surface-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.app-action-cluster {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.app-inline-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 180px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-md);
  background: color-mix(in srgb, var(--vf-surface) 84%, var(--vf-primary-soft));
}

.app-inline-stat-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vf-muted);
}

.app-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.app-kpi-tile {
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-lg);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--vf-primary-soft) 50%, var(--vf-surface)) 0%, var(--vf-surface) 100%);
  box-shadow: var(--vf-shadow-sm);
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.app-kpi-value {
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  font-weight: 800;
  line-height: 1;
  color: var(--vf-text);
}

.app-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.app-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-md);
  background: color-mix(in srgb, var(--vf-surface) 92%, var(--vf-primary-soft));
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.app-feature-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--vf-primary) 28%, var(--vf-border));
  box-shadow: var(--vf-shadow-md);
}

.app-feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--vf-primary) 12%, var(--vf-surface));
  color: var(--vf-primary);
  font-size: 1.1rem;
  flex: 0 0 auto;
}

.app-feature-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 800;
}

.app-feature-card p {
  margin: 0 0 0.45rem;
  color: var(--vf-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.app-feature-card span {
  color: var(--vf-primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.valfora-login-headline {
  margin-bottom: 1.1rem;
}

.valfora-login-eyebrow {
  color: #7b89a3;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.app-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.app-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid color-mix(in srgb, var(--vf-border) 72%, transparent);
}

.app-detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.app-detail-row span {
  color: var(--vf-muted);
}

.app-filterbar {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.app-filter-field {
  min-width: 180px;
}

.app-filter-field > span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--vf-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.app-table-shell {
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-md);
  overflow: hidden;
  background: var(--vf-surface);
}

.app-surface-subtile-border {
  border: 1px solid color-mix(in srgb, var(--vf-border) 82%, transparent);
  background: color-mix(in srgb, var(--vf-surface) 88%, var(--vf-primary-soft));
}

.app-table-clean {
  margin-bottom: 0;
}

.app-table-clean thead th {
  border-bottom: 1px solid color-mix(in srgb, var(--vf-border) 80%, transparent);
}

.app-badge-soft,
.app-badge-soft-warning {
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.app-badge-soft {
  color: #425372;
  background: rgba(66, 83, 114, 0.12);
  border-color: rgba(66, 83, 114, 0.22);
}

.app-badge-soft-warning {
  color: #7b4c00;
  background: rgba(255, 183, 0, 0.18);
  border-color: rgba(255, 183, 0, 0.28);
}

.app-note-block {
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-md);
  padding: 0.85rem 0.95rem;
  background: color-mix(in srgb, var(--vf-surface) 84%, var(--vf-primary-soft));
}

.app-empty-state-mini {
  border: 1px dashed var(--vf-border);
  background: var(--vf-surface-soft);
  border-radius: var(--vf-radius-sm);
  color: var(--vf-muted);
  text-align: center;
  padding: 1rem 0.85rem;
}

.app-empty-state-mini i {
  font-size: 1.15rem;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.app-kpi-card .card-body {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

.app-kpi-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--vf-muted);
}

.card,
.table,
.modal-content {
  border-radius: var(--vf-radius-lg) !important;
}

.table {
  overflow: hidden;
}

.app-section-card .table {
  border-radius: 0.85rem;
  overflow: hidden;
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  border-color: rgba(95, 121, 166, 0.22);
  vertical-align: middle;
}

.table thead th {
  font-weight: 700;
  color: var(--vf-text);
  background: linear-gradient(180deg, #f5f8ff 0%, #edf3ff 100%);
}

[data-bs-theme="dark"] .table thead th {
  background: linear-gradient(180deg, #1a2a45 0%, #15233a 100%);
}

.table tbody tr {
  transition: transform 140ms ease, background-color 140ms ease;
}

.table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--vf-surface-soft) 62%, transparent);
}

.table tbody tr:hover td {
  background: color-mix(in srgb, var(--vf-primary-soft) 62%, var(--vf-surface-strong));
}

.table tbody tr:hover {
  transform: translateY(-1px);
}

[data-density="compact"] .table > :not(caption) > * > * {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

[data-density="compact"] .form-control,
[data-density="compact"] .form-select,
[data-density="compact"] .btn {
  min-height: 34px;
  font-size: 0.84rem;
}

[data-density="compact"] .app-nav-link {
  min-height: 1.9rem;
}

.btn {
  border-radius: var(--vf-radius-sm);
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(100deg, #2f79ea 0%, #1d57ca 65%, #2e6be3 100%);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(29, 87, 202, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(100deg, #266ddd 0%, #1a4cae 100%);
}

.btn-outline-secondary,
.btn-light {
  border-color: var(--vf-border);
}

.btn-outline-secondary:hover,
.btn-light:hover {
  border-color: var(--vf-border-strong);
}

.form-control,
.form-select,
.input-group-text {
  border-radius: var(--vf-radius-sm);
  border-color: var(--vf-border);
  background: var(--vf-surface-strong);
  color: var(--vf-text);
}

.form-control::placeholder {
  color: #7f90ad;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(38, 103, 223, 0.52);
  box-shadow: 0 0 0 0.18rem rgba(38, 103, 223, 0.16);
}

.alert {
  border-radius: var(--vf-radius-md);
}

.badge {
  border-radius: 999px;
}

[data-bs-theme="dark"] .app-feature-card,
[data-bs-theme="dark"] .app-kpi-tile,
[data-bs-theme="dark"] .app-inline-stat,
[data-bs-theme="dark"] .app-note-block {
  background: color-mix(in srgb, #16233b 86%, var(--vf-surface));
}

[data-bs-theme="dark"] .app-feature-icon {
  background: rgba(61, 123, 255, 0.16);
}

@media (max-width: 1199.98px) {
  .app-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .app-hero-headline {
    flex-direction: column;
  }

  .app-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .app-kpi-grid {
    grid-template-columns: 1fr;
  }

  .app-surface-padded {
    padding: 1rem;
  }

  .app-inline-stat,
  .app-filter-field {
    min-width: 100%;
  }
}

.log-chip,
.stage-chip,
.role-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border: 1px solid transparent;
  line-height: 1;
}

.log-chip-neutral {
  color: #41506d;
  background: rgba(65, 80, 109, 0.12);
  border-color: rgba(65, 80, 109, 0.24);
}

.log-chip-create,
.stage-chip-new {
  color: #0f6f55;
  background: rgba(15, 111, 85, 0.16);
  border-color: rgba(15, 111, 85, 0.34);
}

.log-chip-update,
.stage-chip-contacted {
  color: #225ea8;
  background: rgba(34, 94, 168, 0.16);
  border-color: rgba(34, 94, 168, 0.34);
}

.log-chip-delete,
.stage-chip-lost {
  color: #b1272d;
  background: rgba(177, 39, 45, 0.16);
  border-color: rgba(177, 39, 45, 0.34);
}

.log-chip-login,
.stage-chip-qualified {
  color: #6b3bc1;
  background: rgba(107, 59, 193, 0.15);
  border-color: rgba(107, 59, 193, 0.34);
}

.log-chip-logout,
.stage-chip-negotiation {
  color: #b66a00;
  background: rgba(182, 106, 0, 0.16);
  border-color: rgba(182, 106, 0, 0.35);
}

.stage-chip-proposal {
  color: #8a5300;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.42);
}

.stage-chip-won {
  color: #0e7d4a;
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.4);
}

.stage-chip-neutral {
  color: #4f5d78;
  background: rgba(79, 93, 120, 0.14);
  border-color: rgba(79, 93, 120, 0.28);
}

.role-chip-super {
  color: #7b3fe0;
  background: rgba(123, 63, 224, 0.14);
  border-color: rgba(123, 63, 224, 0.32);
}

.role-chip-admin {
  color: #0f6f55;
  background: rgba(15, 111, 85, 0.14);
  border-color: rgba(15, 111, 85, 0.32);
}

.role-chip-collab {
  color: #285a9f;
  background: rgba(40, 90, 159, 0.14);
  border-color: rgba(40, 90, 159, 0.32);
}

.dropdown-menu {
  border-radius: var(--vf-radius-md);
}

.crm-pipeline-page {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 0.25rem 0 1.25rem;
}

.crm-pipeline-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: #6b7280;
}

.crm-pipeline-breadcrumb-link {
  color: #5f6b85;
  text-decoration: none;
}

.crm-pipeline-breadcrumb-link:hover {
  color: #0f172a;
}

.crm-pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid #dbe4f0;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(184, 203, 255, 0.35), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.crm-pipeline-header-copy {
  max-width: 760px;
}

.crm-pipeline-header-copy h1 {
  margin: 0 0 0.35rem;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.04em;
}

.crm-pipeline-header-copy p {
  margin: 0;
  font-size: 0.97rem;
  color: #5f6b85;
}

.crm-pipeline-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.crm-view-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid #d7e0ec;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.crm-view-switch button {
  border: none;
  background: transparent;
  color: #64748b;
  height: 2.3rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.crm-view-switch button.is-active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.crm-header-btn {
  border: 1px solid #d1dae8;
  background: #ffffff;
  color: #1e293b;
  border-radius: 0.95rem;
  min-height: 2.6rem;
  padding: 0 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.crm-header-btn:hover {
  background: #f8fafc;
}

.crm-header-btn-primary {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.crm-header-btn-primary:hover {
  background: #1e293b;
}

.crm-pipeline-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid #dbe4f0;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.crm-toolbar-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 1rem;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #f8fbff;
}

.crm-toolbar-search i {
  color: #94a3b8;
}

.crm-toolbar-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #0f172a;
  font-size: 0.92rem;
}

.crm-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.crm-toolbar-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.45rem 0.35rem 0.9rem;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #ffffff;
}

.crm-toolbar-filter span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.crm-toolbar-filter .form-select {
  border: none;
  box-shadow: none;
  background-color: transparent;
  min-width: 140px;
  padding-right: 1.8rem;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 600;
}

.crm-toolbar-summary {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.4rem 0.2rem 0.4rem 1rem;
}

.crm-toolbar-summary-block {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.crm-toolbar-summary-block strong {
  font-size: 1rem;
  color: #0f172a;
}

.crm-toolbar-summary-block span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.crm-toolbar-summary-divider {
  width: 1px;
  height: 2rem;
  background: #e2e8f0;
}

.crm-pipeline-board-shell,
.crm-pipeline-table-shell {
  border: 1px solid #dbe4f0;
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.92), #ffffff 18%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.crm-pipeline-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  align-items: stretch;
  padding: 1.25rem;
  width: 100%;
}

.crm-stage-column {
  width: 290px;
  min-width: 290px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.crm-stage-column-accent {
  height: 4px;
  background: var(--stage-accent);
  flex-shrink: 0;
}

.crm-stage-column.is-over {
  border-color: var(--stage-accent);
  box-shadow: 0 16px 28px var(--stage-tint);
}

.crm-stage-column-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid #edf2f7;
}

.crm-stage-column-heading {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.crm-stage-column-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.crm-stage-column-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
}

.crm-stage-column-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  padding: 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.crm-stage-column-total {
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.crm-stage-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: var(--stage-tint);
  color: var(--stage-accent);
}

.crm-stage-column-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem;
  min-height: 220px;
  max-height: calc(100vh - 320px);
  overflow-y: auto;
}

.crm-stage-empty {
  border: 1px dashed #d7e0ec;
  border-radius: 1rem;
  background: #f8fbff;
  color: #94a3b8;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  text-align: center;
}

.crm-deal-card {
  border: 1px solid #dbe4f0 !important;
  border-radius: 1.05rem !important;
  background: #ffffff !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06) !important;
}

.crm-deal-card.is-dragging {
  border-color: var(--deal-stage-accent) !important;
}

.crm-deal-card-body {
  padding: 0.8rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.crm-deal-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.crm-deal-card-number {
  font-size: 0.72rem;
  line-height: 1;
  color: #7a879d;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  white-space: nowrap;
}

.crm-deal-card-company-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0 0.72rem;
  border-radius: 999px;
  background: #12284c;
  color: #ffffff;
  border: 1px solid #0d1d36;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.crm-deal-card-company-badge.is-empty {
  background: #edf2f7;
  border-color: #d8e1ec;
  color: #5b677d;
}

.pipeline-drag-handle {
  cursor: grab;
  border: none;
  background: transparent;
}

.pipeline-drag-handle:active {
  cursor: grabbing;
}

.crm-deal-drag-handle {
  color: #94a3b8;
  padding: 0;
  line-height: 1;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
}

.crm-deal-drag-handle:hover {
  background: #eef4fb;
  color: #4f6484;
}

.crm-deal-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.crm-deal-card-title {
  font-size: 1.02rem;
  line-height: 1.22;
  font-weight: 700;
  color: #0f172a;
}

.crm-deal-card-title-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.crm-deal-card-value {
  font-size: 1.18rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
}

.crm-deal-card-value span {
  font-size: 0.72rem;
  font-family: inherit;
  color: #7a879d;
  font-weight: 500;
  letter-spacing: 0;
}

.crm-deal-card-contact {
  font-size: 0.8rem;
  color: #64748b;
}

.crm-deal-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e9eef5;
}

.crm-deal-card-assignee {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.crm-deal-card-assignee-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #1f8b4c;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  flex-shrink: 0;
}

.crm-deal-card-assignee-name {
  font-size: 0.74rem;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-deal-card-actions {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
}

.crm-deal-card-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: transparent;
  color: #7a879d;
  border-radius: 0.5rem;
  text-decoration: none;
  padding: 0;
}

.crm-deal-card-icon-action:hover {
  background: #eef4fb;
  color: #1b4fa8;
}

.crm-pipeline-drag-card {
  width: 300px;
  border: 1px solid #dbe4f0 !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
}

.crm-pipeline-drag-card .card-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.crm-pipeline-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.crm-pipeline-drag-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.crm-pipeline-drag-meta,
.crm-pipeline-drag-contact {
  font-size: 0.85rem;
  color: #64748b;
}

.crm-pipeline-table-wrap {
  padding: 1rem 1.2rem;
}

.crm-pipeline-table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(15, 23, 42, 0.03);
  vertical-align: middle;
}

.crm-pipeline-table thead th {
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 0.75rem;
  background: #f8fbff;
}

.crm-pipeline-table tbody td {
  border-bottom: 1px solid #eef2f7;
  padding: 0.95rem 0.75rem;
  color: #0f172a;
}

.crm-pipeline-table tbody tr:last-child td {
  border-bottom: none;
}

.crm-table-pill,
.crm-table-stage {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.crm-table-pill {
  background: #eff6ff;
  color: #1d4ed8;
}

.crm-table-stage {
  background: #f1f5f9;
  color: #334155;
}

.crm-table-title {
  font-weight: 700;
  color: #0f172a;
}

.crm-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.crm-pipeline-skeleton {
  border-radius: 1.25rem;
  background: linear-gradient(90deg, #eef2f7 25%, #f8fbff 38%, #eef2f7 55%);
  background-size: 200% 100%;
  animation: crm-pipeline-skeleton 1.2s ease infinite;
}

.crm-pipeline-skeleton-header {
  height: 116px;
}

.crm-pipeline-skeleton-toolbar {
  height: 76px;
}

.crm-pipeline-skeleton-column {
  min-width: 290px;
  height: 420px;
}

@keyframes crm-pipeline-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 1199px) {
  .crm-pipeline-toolbar {
    grid-template-columns: 1fr;
  }

  .crm-toolbar-summary {
    margin-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 991px) {
  .crm-pipeline-header {
    padding: 1.2rem;
  }

  .crm-pipeline-header,
  .crm-pipeline-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .crm-view-switch,
  .crm-header-btn {
    width: 100%;
    justify-content: center;
  }

  .crm-toolbar-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .crm-toolbar-filter {
    width: 100%;
  }

  .crm-toolbar-filter .form-select {
    min-width: 0;
    width: 100%;
  }
}

.wiki-document-content {
  line-height: 1.58;
}

.wiki-document-content h1,
.wiki-document-content h2,
.wiki-document-content h3,
.wiki-document-content h4,
.wiki-document-content h5,
.wiki-document-content h6 {
  margin-top: 1.05rem;
  margin-bottom: 0.55rem;
}

.wiki-document-content p,
.wiki-document-content ul,
.wiki-document-content ol,
.wiki-document-content blockquote,
.wiki-document-content pre {
  margin-bottom: 0.8rem;
}

.wiki-document-content img,
.wiki-document-content table {
  max-width: 100%;
}

.app-chat-page {
  width: 100%;
  max-width: none;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.app-chat-headline {
  margin-bottom: 0.9rem !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: var(--vf-shadow-md);
}

.app-chat-headline-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-chat-breadcrumb {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--vf-muted);
  margin-bottom: 0.25rem;
}

.app-chat-mobile-tabs {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.app-chat-layout {
  display: grid;
  grid-template-columns: minmax(400px, 440px) minmax(0, 1fr);
  gap: 1.1rem;
  min-height: calc(100vh - 240px);
  height: calc(100vh - 240px);
  max-height: calc(100vh - 240px);
  flex: 1;
  align-items: stretch;
}

.app-chat-layout.app-chat-layout-sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.app-chat-panel,
.app-chat-sidebar {
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-lg);
  background: var(--vf-surface) !important;
  box-shadow: 0 14px 40px rgba(15, 34, 80, 0.08);
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-chat-sidebar {
  min-width: 0;
  padding: 0.55rem;
}

.app-chat-center {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.8rem;
  padding: 1rem;
}

.app-chat-center-head,
.app-chat-topbar {
  border: 1px solid var(--vf-border);
  border-radius: 18px;
  background: #fff;
  padding: 0.85rem 1rem;
  box-shadow: 0 6px 24px rgba(15, 34, 80, 0.05);
}

.app-chat-context-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.app-chat-context-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.app-chat-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.app-chat-topbar-main {
  min-width: 0;
  flex: 1;
}

.app-chat-topbar-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}

.app-chat-topbar-name {
  font-size: 1rem;
  color: var(--vf-text);
}

.app-chat-topbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--vf-border);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.app-chat-topbar-chip.is-channel {
  background: #f3f5f8;
  color: #4c5b73;
}

.app-chat-topbar-chip.is-online {
  background: rgba(25, 135, 84, 0.08);
  color: #157347;
  border-color: rgba(25, 135, 84, 0.2);
}

.app-chat-topbar-chip.is-warn {
  background: rgba(255, 193, 7, 0.12);
  color: #9a6700;
  border-color: rgba(255, 193, 7, 0.26);
}

.app-chat-topbar-chip.is-offline {
  background: rgba(108, 117, 125, 0.12);
  color: #56606a;
  border-color: rgba(108, 117, 125, 0.22);
}

.app-chat-topbar-subrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-chat-topbar-subdeal {
  font-size: 0.78rem;
  color: var(--vf-text-soft);
}

.app-chat-topbar-link {
  font-size: 0.78rem;
  color: var(--vf-primary);
  font-weight: 600;
  text-decoration: none;
}

.app-chat-topbar-link:hover {
  color: var(--vf-primary);
  text-decoration: underline;
}

.app-chat-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.app-chat-kpi-card {
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-sm);
  background: var(--vf-surface);
  padding: 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

.app-chat-info-modal .modal-dialog {
  max-width: min(1120px, calc(100vw - 2rem));
}

.app-chat-info-modal .modal-body {
  padding: 1.35rem;
}

.app-chat-info-modal .app-chat-kpi-row {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  align-items: stretch;
  margin-bottom: 1rem;
}

.app-chat-info-modal .app-chat-kpi-card {
  min-height: 170px;
  padding: 1rem;
  gap: 0.4rem;
}

.app-chat-info-modal .app-chat-kpi-card strong {
  font-size: 1.05rem;
}

.app-chat-info-modal .app-chat-kpi-card .small {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--vf-text-soft);
}

.app-chat-info-modal .form-label,
.app-chat-deal-modal .form-label {
  font-weight: 600;
}

.app-chat-kpi-label {
  font-size: 0.72rem;
  color: var(--vf-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.app-chat-kpi-card-sla--ok {
  border-color: rgba(25, 135, 84, 0.35);
  background: rgba(25, 135, 84, 0.08);
}

.app-chat-kpi-card-sla--warn {
  border-color: rgba(255, 193, 7, 0.55);
  background: rgba(255, 193, 7, 0.12);
}

.app-chat-kpi-card-sla--critical {
  border-color: rgba(220, 53, 69, 0.5);
  background: rgba(220, 53, 69, 0.1);
}

.app-chat-center-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.app-chat-thread-wrap {
  position: relative;
  min-height: 0;
  display: flex;
  flex: 1;
  overflow: hidden;
}

.app-chat-log {
  border: 1px solid var(--vf-border) !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #f6f8fc 0%, #eef3fb 100%) !important;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 1.25rem !important;
}

.app-chat-bubble {
  display: inline-block;
  max-width: min(780px, 96%);
  border-radius: 8px 18px 18px 18px;
  border: 1px solid #dfe6f0;
  padding: 0.68rem 0.82rem;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 34, 80, 0.08);
}

.app-chat-bubble.is-agent {
  background: #dfe9fa;
  border-color: #c3d4f3;
  border-radius: 18px 8px 18px 18px;
}

.app-chat-bubble.is-ai {
  background: #fff6df;
  border-color: #eed99b;
  border-radius: 18px 8px 18px 18px;
}

.app-chat-bubble.is-contact {
  background: #fff;
}

.app-chat-bubble-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-msg-meta {
  margin-top: 0.18rem;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.app-chat-msg-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
}

.app-chat-msg-author-chip.is-contact {
  color: var(--vf-muted);
  background: transparent;
  padding-left: 0;
}

.app-chat-msg-author-chip.is-agent {
  background: #dbe7ff;
  color: #234984;
}

.app-chat-msg-author-chip.is-ai {
  background: #f2d98d;
  color: #7d5a00;
}

.app-chat-msg-time {
  font-family: var(--font-mono, ui-monospace, monospace);
}

.app-msg-status {
  font-size: 0.69rem;
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  border: 1px solid transparent;
  font-weight: 700;
}

.app-msg-status--sending {
  color: #956101;
  background: rgba(255, 184, 0, 0.2);
  border-color: rgba(255, 184, 0, 0.48);
}

.app-msg-status--failed {
  color: #be2f34;
  background: rgba(220, 53, 69, 0.17);
  border-color: rgba(220, 53, 69, 0.42);
}

.app-msg-status--sent {
  color: #197a57;
  background: rgba(25, 135, 84, 0.17);
  border-color: rgba(25, 135, 84, 0.42);
}

.app-chat-composer {
  border-top: 1px solid var(--vf-border);
  padding-top: 0.9rem;
  background: var(--vf-surface);
  flex: 0 0 auto;
}

.app-chat-composer .btn,
.app-chat-composer .form-control {
  min-height: 48px;
  border-radius: 16px;
}

.app-chat-composer-textarea {
  min-height: 48px !important;
  max-height: 220px;
  resize: none;
  overflow-y: auto;
  line-height: 1.45;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.app-chat-composer-file-note {
  line-height: 1.35;
}

.app-chat-meta {
  padding: 0.95rem;
  overflow-y: auto;
}

.app-chat-meta-block {
  border-top: 1px solid var(--vf-border);
  margin-top: 0.7rem;
  padding-top: 0.7rem;
}

.app-chat-backlink {
  border-top: 1px dashed var(--vf-border);
  margin-top: 0.65rem;
  padding-top: 0.65rem;
}

.app-chat-sidebar-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #d8e1f0;
  border-radius: 18px;
  padding: 0.95rem 1rem;
  min-height: 88px;
  background: #fff;
  color: var(--vf-text);
  appearance: none;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 34, 80, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.app-chat-sidebar-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 34, 80, 0.08);
}

.app-chat-sidebar-item:focus-visible {
  outline: 0;
  border-color: #7ea7f4;
  box-shadow: 0 0 0 3px rgba(38, 103, 223, 0.14);
}

.app-chat-sidebar-item.is-active {
  background: #eef4ff;
  border-color: #9dbdf6;
  box-shadow: 0 12px 28px rgba(38, 103, 223, 0.12);
}

.app-chat-sidebar-item-shell {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
}

.app-chat-sidebar-item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app-chat-sidebar-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--vf-surface);
  border-bottom: 1px solid var(--vf-border);
  margin-bottom: 0.7rem;
  padding: 0.15rem 0.2rem 0.8rem;
  flex: 0 0 auto;
}

.app-chat-sidebar-list {
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  max-height: 100%;
  padding: 0 0.2rem 0.9rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.app-chat-filters-menu {
  min-width: 320px;
}

.app-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e7eefc 0%, #d6e2fb 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #284f8f;
  box-shadow: inset 0 0 0 1px rgba(38, 103, 223, 0.08);
}

.app-chat-sidebar-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--vf-text);
}

.app-chat-sidebar-subtitle {
  font-size: 0.74rem;
  color: var(--vf-muted);
}

.app-chat-sidebar-item-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.7rem;
  margin-bottom: 0;
}

.app-chat-sidebar-item-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--vf-text);
  line-height: 1.25;
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.app-chat-sidebar-item-time {
  font-size: 0.74rem;
  color: var(--vf-muted);
  font-family: var(--font-mono, ui-monospace, monospace);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
  line-height: 1.2;
  padding-top: 0.1rem;
}

.app-chat-sidebar-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-chat-sidebar-sla {
  border: 1px solid rgba(25, 135, 84, 0.18) !important;
  background: rgba(25, 135, 84, 0.08) !important;
  color: #18724d !important;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  box-shadow: none !important;
}

.app-chat-sidebar-flag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.app-chat-sidebar-flag-unread {
  background: rgba(38, 103, 223, 0.1) !important;
  color: #205fc0 !important;
  border-color: rgba(38, 103, 223, 0.2) !important;
}

.app-chat-sidebar-flag-reply {
  background: rgba(255, 193, 7, 0.12) !important;
  color: #8d6100 !important;
  border-color: rgba(255, 193, 7, 0.26) !important;
}

.app-chat-sidebar-flag-reply-late {
  background: rgba(220, 53, 69, 0.1) !important;
  color: #b02a37 !important;
  border-color: rgba(220, 53, 69, 0.22) !important;
}

.app-chat-sidebar-line-label {
  font-size: 0.72rem;
  color: var(--vf-text-soft);
  font-weight: 600;
}

.app-chat-sidebar-line-switches .btn {
  border-radius: 999px;
}

.app-chat-action-btn {
  min-width: fit-content;
}

.app-chat-new-msg-badge {
  position: absolute;
  right: 12px;
  bottom: 18px;
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(37, 85, 198, 0.3);
}

.app-chat-deal-drawer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1060;
}

.app-chat-deal-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 54, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.app-chat-deal-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(460px, 95vw);
  height: 100%;
  background: var(--vf-surface);
  border-left: 1px solid var(--vf-border);
  box-shadow: -16px 0 30px rgba(9, 24, 46, 0.22);
  padding: 1rem;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

.app-chat-deal-drawer.is-open {
  pointer-events: auto;
}

.app-chat-deal-drawer.is-open .app-chat-deal-drawer-backdrop {
  opacity: 1;
}

.app-chat-deal-drawer.is-open .app-chat-deal-drawer-panel {
  transform: translateX(0);
}

.valfora-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 10% 12%, rgba(56, 116, 245, 0.2), transparent 40%),
    radial-gradient(circle at 90% 84%, rgba(16, 72, 169, 0.12), transparent 40%),
    linear-gradient(130deg, #eef3ff 0%, #e8eefc 50%, #dce6fb 100%);
}

.ai-runtime-panel,
.ai-knowledge-panel,
.ai-sandbox-panel,
.ai-agents-panel,
.ai-agent-editor {
  border-color: var(--vf-border) !important;
  background: var(--vf-surface) !important;
  box-shadow: var(--vf-shadow-sm);
}

.ai-agents-list {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.ai-agent-item {
  border-radius: var(--vf-radius-sm);
}

.ai-agent-item.btn-light {
  background: var(--vf-surface-soft);
}

.ai-agent-item .small {
  line-height: 1.28;
}

.ai-prompt-preview-block pre {
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-sm);
  background: var(--vf-surface-strong);
  padding: 0.55rem;
}

.ai-documents-list {
  max-height: 46vh;
  overflow-y: auto;
}

.ai-document-item {
  background: var(--vf-surface-strong);
}

.wiki-editor-card {
  position: sticky;
  top: calc(var(--vf-topbar-h) + 14px);
}

.valfora-login-form-panel {
  width: min(100%, 560px);
}

.valfora-login-form-wrap {
  width: 100%;
}

.valfora-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.valfora-login-brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.72;
}

.valfora-login-brand-name {
  font-size: 0.86rem;
  color: #4c628d;
  font-weight: 600;
}

.valfora-login-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(26, 88, 198, 0.24);
  background: rgba(38, 103, 223, 0.12);
  color: #1f63c8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.valfora-login-title {
  margin: 0;
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  color: #0d2656;
}

.valfora-login-subtitle {
  margin: 0.35rem 0 1rem;
  color: #62779f;
}

.valfora-login-form-card {
  border: 1px solid rgba(34, 84, 176, 0.18);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 42px rgba(20, 52, 115, 0.16);
  backdrop-filter: blur(10px);
  padding: 1.2rem;
}

.valfora-input-group {
  position: relative;
}

.valfora-input-icon {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  transform: translateY(-50%);
  color: #3b74cd;
  z-index: 2;
}

.valfora-input {
  min-height: 52px;
  border-radius: 0.82rem;
  border: 1px solid #c4d5f2;
  background: #f8faff;
  padding-left: 2.6rem;
}

.valfora-input:focus {
  background: #fff;
  border-color: #4a87e8;
  box-shadow: 0 0 0 0.2rem rgba(74, 135, 232, 0.18);
}

.valfora-password-toggle {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #3b74cd;
}

.valfora-link-btn {
  border: 0;
  background: transparent;
  color: #14417c;
  font-weight: 700;
}

.valfora-link-btn:hover {
  color: #1e69d6;
}

.valfora-login-submit {
  min-height: 50px;
  border-radius: 0.82rem;
}

@media (max-width: 1199.98px) {
  :root {
    --vf-sidebar-w: 274px;
  }
}

@media (max-width: 991.98px) {
  :root {
    --vf-topbar-h: 96px;
  }

  .app-header .container-fluid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    padding-inline: 0.9rem;
    padding-block: 0.55rem;
  }

  .app-header .container-fluid > .d-flex:first-child {
    min-width: 0;
  }

  .app-brand {
    min-width: 0;
    gap: 0.5rem;
  }

  .app-brand-label {
    font-size: 1.04rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-header-actions {
    width: 100%;
    gap: 0.45rem !important;
  }

  .app-header-pill-btn,
  .app-header-icon-btn {
    min-height: 2rem;
    padding: 0.42rem 0.78rem;
    font-size: 0.82rem;
  }

  .app-header-pill-btn .badge {
    font-size: 0.67rem;
  }

  .app-main {
    padding: 0.8rem;
  }

  .app-body {
    display: block;
  }

  .app-sidebar {
    width: min(82vw, 320px);
    max-width: min(82vw, 320px);
    position: fixed;
    top: var(--vf-topbar-h);
    left: 0;
    height: calc(100dvh - var(--vf-topbar-h));
    min-height: calc(100dvh - var(--vf-topbar-h)) !important;
    z-index: 45;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    border-radius: 0 18px 18px 0;
  }

  .app-sidebar.is-collapsed {
    width: min(82vw, 320px);
    max-width: min(82vw, 320px);
  }

  .app-sidebar.is-mobile-open {
    transform: translateX(0);
  }

  .app-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: var(--vf-topbar-h) 0 0 0;
    background: rgba(9, 17, 32, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 40;
    border: 0;
    padding: 0;
    margin: 0;
  }

  .app-sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .app-main {
    width: 100%;
  }

  .app-chat-page {
    min-height: calc(100dvh - var(--vf-topbar-h) - 0.9rem);
    height: calc(100dvh - var(--vf-topbar-h) - 0.9rem);
    overflow: hidden;
  }

  .app-chat-layout {
    grid-template-columns: 1fr;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    gap: 0.75rem;
  }

  .app-chat-layout.app-chat-layout-sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .app-chat-sidebar {
    max-height: 100%;
  }

  .app-chat-sidebar-head {
    position: static;
  }

  .app-chat-sidebar-list {
    max-height: none;
  }

  .app-chat-panel {
    min-height: 0;
    height: 100%;
  }

  .app-chat-center {
    padding: 0.8rem;
    height: 100%;
  }

  .app-chat-thread-wrap {
    min-height: 0;
  }

  .app-chat-log {
    min-height: 0;
    padding: 0.9rem !important;
  }

  .app-chat-bubble {
    max-width: 100%;
  }

  .app-chat-headline-actions {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .app-chat-headline-actions::-webkit-scrollbar {
    display: none;
  }

  .app-chat-headline-actions .btn,
  .app-chat-headline-actions .form-check {
    flex: 0 0 auto;
  }

  .app-chat-headline-copy {
    min-width: 0;
  }

  .app-chat-mobile-tabs {
    position: relative;
    z-index: 3;
    display: flex;
    flex: 0 0 auto;
    overflow-x: auto;
    padding: 0.35rem;
    margin: 0 0 0.35rem;
    background: var(--vf-surface);
    border: 1px solid var(--vf-border);
    border-radius: 16px;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .app-chat-mobile-tabs::-webkit-scrollbar {
    display: none;
  }

  .app-chat-mobile-tabs .btn {
    flex: 0 0 auto;
    min-width: 132px;
  }

  .app-chat-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-chat-info-modal .modal-dialog {
    max-width: calc(100vw - 1rem);
    margin: 0.5rem auto;
  }

  .app-chat-info-modal .app-chat-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-chat-info-modal .app-chat-kpi-card {
    min-height: 0;
  }

  .wiki-editor-card {
    position: static;
    top: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --vf-topbar-h: 88px;
  }

  .app-main-container {
    padding-inline: 0;
  }

  .app-main {
    padding: 0.65rem;
  }

  .app-header .container-fluid {
    padding-inline: 0.75rem;
    padding-block: 0.45rem;
    gap: 0.4rem;
  }

  .app-header .container-fluid > .d-flex:first-child {
    gap: 0.55rem !important;
  }

  .app-header-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.1rem;
  }

  .app-header-actions::-webkit-scrollbar {
    display: none;
  }

  .app-header-pill-btn,
  .app-header-icon-btn {
    min-height: 1.95rem;
    padding: 0.4rem 0.68rem;
    font-size: 0.78rem;
  }

  .app-header-pill-label {
    display: none;
  }

  .app-header-pill-btn i {
    margin-right: 0 !important;
  }

  .app-brand {
    gap: 0.42rem;
  }

  .app-brand-dot {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 4px rgba(37, 85, 198, 0.15);
  }

  .app-brand-label {
    font-size: 0.95rem;
  }

  .app-chat-headline {
    padding: 0.8rem 0.9rem;
    gap: 0.55rem;
    margin-bottom: 0.6rem !important;
  }

  .app-chat-breadcrumb,
  .app-chat-headline-subtitle {
    display: none;
  }

  .app-chat-headline h1 {
    margin: 0;
    font-size: 1.45rem;
  }

  .app-chat-headline-actions {
    gap: 0.35rem;
    margin-top: 0.05rem;
  }

  .app-chat-headline-actions .btn,
  .app-chat-headline-actions .form-check {
    min-height: 2rem;
    font-size: 0.76rem;
  }

  .app-chat-headline-actions .btn {
    padding: 0.42rem 0.68rem;
  }

  .app-chat-action-label {
    display: none;
  }

  .app-chat-topbar {
    padding: 0.72rem 0.78rem;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .app-chat-topbar-main {
    min-width: 0;
  }

  .app-chat-topbar-name-row {
    gap: 0.3rem;
    margin-bottom: 0.22rem;
  }

  .app-chat-topbar-name {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .app-chat-topbar-chip {
    padding: 0.18rem 0.5rem;
    font-size: 0.66rem;
  }

  .app-chat-topbar-subrow {
    gap: 0.3rem;
  }

  .app-chat-topbar-subdeal {
    font-size: 0.7rem;
    min-width: 0;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .app-chat-topbar-link {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .app-chat-topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .app-chat-topbar-actions .btn {
    min-height: 38px;
    padding: 0.38rem 0.72rem;
    font-size: 0.82rem;
  }

  .app-chat-sidebar {
    border-radius: 18px;
  }

  .app-chat-mobile-tabs {
    padding: 0.26rem;
    margin-bottom: 0.35rem;
    border-radius: 14px;
  }

  .app-chat-mobile-tabs .btn {
    min-width: 0;
    flex: 1 1 0;
    min-height: 40px;
  }

  .app-chat-sidebar-list {
    padding-inline: 0.15rem;
  }

  .app-chat-sidebar-item {
    padding: 0.9rem !important;
    border-radius: 14px;
    min-height: 78px;
  }

  .app-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.74rem;
  }

  .app-chat-sidebar-item-shell {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .app-chat-sidebar-item-name {
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
  }

  .app-chat-sidebar-item-time {
    font-size: 0.68rem;
  }

  .app-chat-sidebar-item-top {
    gap: 0.5rem;
  }

  .app-chat-sidebar-item-meta {
    gap: 0.4rem;
  }

  .app-chat-sidebar-sla,
  .app-chat-sidebar-line-label {
    font-size: 0.64rem;
  }

  .app-chat-panel {
    border-radius: 18px;
  }

  .app-chat-center {
    padding: 0.7rem;
    gap: 0.65rem;
  }

  .app-chat-topbar,
  .app-chat-center-head {
    padding: 0.8rem;
    border-radius: 16px;
  }

  .app-chat-log {
    min-height: 0;
    padding: 0.75rem !important;
    border-radius: 18px !important;
  }

  .app-chat-bubble {
    padding: 0.62rem 0.72rem;
  }

  .app-chat-composer .app-chat-composer-row {
    display: grid !important;
    grid-template-columns: 42px 42px minmax(0, 1fr) auto;
    align-items: center;
  }

  .app-chat-composer .form-control {
    min-width: 0;
  }

  .app-chat-composer {
    padding-top: 0.65rem;
  }

  .app-chat-composer-file-note {
    display: none;
  }

  .valfora-login-shell {
    padding: 0.8rem;
  }

  .valfora-login-form-card {
    padding: 1rem;
  }

  .app-chat-kpi-row {
    grid-template-columns: 1fr;
  }

  .app-chat-info-modal .app-chat-kpi-row {
    grid-template-columns: 1fr;
  }
}

.crm-page-shell,
.crm-dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.25rem 0 1.25rem;
}

.crm-page-header,
.crm-hero-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.6rem 1.75rem;
  border: 1px solid #dbe4f0;
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at top right, rgba(184, 203, 255, 0.32), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.crm-page-header h1,
.crm-hero-card h1 {
  margin: 0.2rem 0 0.35rem;
  font-size: 2rem;
  line-height: 1.04;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.04em;
}

.crm-page-header p,
.crm-hero-card p {
  margin: 0;
  color: #5f6b85;
  font-size: 0.96rem;
}

.crm-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #73819c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.crm-page-actions,
.crm-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.crm-toolbar-field {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.crm-toolbar-field span {
  font-size: 0.85rem;
  color: #5f6b85;
  font-weight: 600;
}

.crm-toolbar-field .form-select {
  min-width: 180px;
}

.crm-secondary-button,
.crm-dark-button,
.crm-icon-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.crm-icon-button {
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
}

.crm-kpi-grid,
.crm-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.crm-kpi-card,
.crm-stat-card {
  border: 1px solid #dbe4f0;
  border-radius: 1.3rem;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.crm-kpi-card {
  padding: 1.25rem 1.35rem;
}

.crm-kpi-card-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #142849 0%, #0f1c34 100%);
  border-color: rgba(15, 28, 52, 0.9);
}

.crm-kpi-card-primary::after {
  content: "";
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.crm-kpi-head {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 800;
  color: #7c8aa6;
}

.crm-kpi-card-primary .crm-kpi-head {
  color: rgba(255, 255, 255, 0.46);
}

.crm-kpi-icon,
.crm-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.8rem;
}

.crm-kpi-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #d8b15d;
}

.crm-kpi-icon-navy,
.crm-stat-icon-navy {
  background: rgba(47, 121, 234, 0.1);
  color: #1c4ca8;
}

.crm-kpi-icon-success,
.crm-stat-icon-success {
  background: rgba(34, 197, 94, 0.12);
  color: #0f7d46;
}

.crm-kpi-icon-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.crm-stat-icon-gold {
  background: rgba(196, 145, 45, 0.12);
  color: #8b5d00;
}

.crm-kpi-card strong,
.crm-stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.crm-kpi-card-primary strong {
  color: #ffffff;
}

.crm-kpi-card small,
.crm-stat-card small {
  display: block;
  margin-top: 0.35rem;
  color: #73819c;
  font-size: 0.78rem;
}

.crm-kpi-card-primary small {
  color: rgba(255, 255, 255, 0.52);
}

.crm-kpi-meta,
.crm-kpi-footer,
.crm-progress-meta {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e6ecf3;
}

.crm-kpi-card-primary .crm-kpi-meta {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.crm-kpi-meta span:first-child {
  display: block;
  color: #d8b15d;
  font-weight: 700;
  font-size: 0.96rem;
}

.crm-kpi-meta span:last-child,
.crm-kpi-footer span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
}

.crm-kpi-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #0f7d46;
  font-size: 0.78rem;
  font-weight: 700;
}

.crm-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.74rem;
  color: #66758f;
  font-weight: 700;
}

.crm-progress-bar {
  height: 0.32rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  overflow: hidden;
}

.crm-progress-bar span {
  display: block;
  height: 100%;
  background: #16a34a;
  border-radius: inherit;
}

.crm-progress-bar-danger {
  background: rgba(239, 68, 68, 0.12);
}

.crm-progress-bar-danger span {
  background: #ef4444;
}

.crm-panel,
.crm-table-panel {
  border: 1px solid #dbe4f0;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.crm-panel {
  padding: 1.35rem 1.45rem;
}

.crm-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.crm-panel-head h2 {
  margin: 0 0 0.18rem;
  font-size: 1rem;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.crm-panel-head p {
  margin: 0;
  color: #73819c;
  font-size: 0.8rem;
}

.crm-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #245cc5;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.crm-stage-rail {
  display: flex;
  gap: 0.15rem;
  height: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  overflow: hidden;
}

.crm-stage-rail-segment {
  min-width: 1.25rem;
}

.crm-stage-rail-new,
.crm-stage-dot-new,
.crm-stage-card-bar-fill-new {
  background: #2f79ea;
}

.crm-stage-rail-contacted,
.crm-stage-dot-contacted,
.crm-stage-card-bar-fill-contacted {
  background: #0ea5e9;
}

.crm-stage-rail-qualified,
.crm-stage-dot-qualified,
.crm-stage-card-bar-fill-qualified {
  background: #8b5cf6;
}

.crm-stage-rail-proposal,
.crm-stage-dot-proposal,
.crm-stage-card-bar-fill-proposal {
  background: #c78a1d;
}

.crm-stage-rail-negotiation,
.crm-stage-dot-negotiation,
.crm-stage-card-bar-fill-negotiation {
  background: #f97316;
}

.crm-stage-rail-won,
.crm-stage-dot-won,
.crm-stage-card-bar-fill-won {
  background: #16a34a;
}

.crm-stage-rail-lost,
.crm-stage-dot-lost,
.crm-stage-card-bar-fill-lost {
  background: #ef4444;
}

.crm-stage-rail-neutral,
.crm-stage-dot-neutral,
.crm-stage-card-bar-fill-neutral {
  background: #94a3b8;
}

.crm-stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.95rem;
}

.crm-stage-card {
  border: 1px solid #dbe4f0;
  border-radius: 1.15rem;
  padding: 1rem;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.crm-stage-card:hover {
  border-color: #c8d6ea;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.crm-stage-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.crm-stage-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #66758f;
  font-weight: 800;
}

.crm-stage-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.crm-stage-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.3rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.crm-stage-count-new {
  background: rgba(47, 121, 234, 0.16);
  color: #1f5fca;
}

.crm-stage-count-contacted {
  background: rgba(14, 165, 233, 0.16);
  color: #0b7da9;
}

.crm-stage-count-qualified {
  background: rgba(139, 92, 246, 0.16);
  color: #6d3adb;
}

.crm-stage-count-proposal {
  background: rgba(199, 138, 29, 0.16);
  color: #9a6700;
}

.crm-stage-count-negotiation {
  background: rgba(249, 115, 22, 0.16);
  color: #b45309;
}

.crm-stage-count-won {
  background: rgba(34, 197, 94, 0.16);
  color: #15803d;
}

.crm-stage-count-lost {
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
}

.crm-stage-count-neutral {
  background: rgba(148, 163, 184, 0.2);
  color: #4b5563;
}

.crm-stage-card strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.1;
}

.crm-stage-card small {
  color: #73819c;
  font-size: 0.76rem;
}

.crm-stage-card-bar {
  height: 0.25rem;
  background: #edf2f8;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.7rem;
}

.crm-stage-card-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.crm-filter-bar {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) repeat(2, minmax(160px, 1fr)) auto auto;
  gap: 0.75rem;
  align-items: center;
}

.crm-filter-bar-contacts {
  grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(160px, 1fr)) auto auto;
}

.crm-filter-search {
  position: relative;
}

.crm-filter-search i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7f90ad;
}

.crm-filter-search .form-control {
  padding-left: 2.35rem;
}

.crm-filter-total {
  justify-self: end;
  font-size: 0.82rem;
  color: #73819c;
  white-space: nowrap;
}

.crm-filter-total span {
  color: #334155;
  font-weight: 800;
}

.crm-stat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
}

.crm-bulk-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid #dbe4f0;
  border-radius: 1.15rem;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
}

.crm-bulk-count,
.crm-bulk-group {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.crm-bulk-count span,
.crm-bulk-group span {
  font-size: 0.8rem;
  color: #5f6b85;
  font-weight: 600;
}

.crm-bulk-separator {
  width: 1px;
  height: 1.5rem;
  background: #e2e8f0;
}

.crm-bulk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: #eef4fb;
  color: #35506f;
  font-size: 0.82rem;
  font-weight: 700;
}

.crm-table-panel {
  overflow: hidden;
}

.crm-data-table-wrap {
  overflow: auto;
}

.crm-data-table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
}

.crm-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  border-bottom: 1px solid #dbe4f0;
  color: #73819c;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  padding: 0.9rem 1rem;
  vertical-align: middle;
}

.crm-data-table tbody td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #edf2f7;
  color: #334155;
}

.crm-data-table tbody tr:hover {
  background: #f8fbff;
}

.crm-table-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
  background: #f8fafc;
  border-top: 1px solid #dbe4f0;
  font-size: 0.82rem;
  color: #73819c;
}

.crm-company-cell,
.crm-contact-cell {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.crm-company-avatar,
.crm-contact-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #dfe9ff 0%, #edf4ff 100%);
  color: #2857b8;
  font-weight: 800;
  font-size: 0.82rem;
  border: 1px solid rgba(47, 121, 234, 0.18);
}

.crm-row-title {
  display: inline-block;
  color: #163c7a;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 0.1rem;
}

.crm-row-title:hover {
  color: #0f172a;
}

.crm-company-cell small,
.crm-contact-cell small,
.crm-subject-cell small,
.crm-value-stack small {
  display: block;
  color: #7a879d;
  font-size: 0.76rem;
}

.crm-industry-chip,
.crm-neutral-chip,
.crm-mini-chip,
.crm-urgency-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.65rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.crm-industry-chip {
  background: rgba(47, 121, 234, 0.1);
  color: #1d57ca;
  border-color: rgba(47, 121, 234, 0.2);
}

.crm-neutral-chip {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.16);
}

.crm-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.7rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(47, 121, 234, 0.1);
  color: #1d57ca;
  font-size: 0.78rem;
  font-weight: 800;
}

.crm-value-stack strong {
  display: block;
  color: #0f172a;
  font-size: 0.9rem;
}

.crm-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.crm-mini-chip-new {
  background: rgba(47, 121, 234, 0.1);
  color: #1d57ca;
  border-color: rgba(47, 121, 234, 0.18);
}

.crm-mini-chip-contacted {
  background: rgba(14, 165, 233, 0.1);
  color: #0b7da9;
  border-color: rgba(14, 165, 233, 0.18);
}

.crm-mini-chip-qualified {
  background: rgba(139, 92, 246, 0.1);
  color: #6d3adb;
  border-color: rgba(139, 92, 246, 0.18);
}

.crm-mini-chip-proposal {
  background: rgba(199, 138, 29, 0.12);
  color: #9a6700;
  border-color: rgba(199, 138, 29, 0.18);
}

.crm-mini-chip-negotiation {
  background: rgba(249, 115, 22, 0.12);
  color: #b45309;
  border-color: rgba(249, 115, 22, 0.18);
}

.crm-mini-chip-won {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.18);
}

.crm-mini-chip-lost {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.18);
}

.crm-mini-chip-neutral {
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
  border-color: rgba(148, 163, 184, 0.2);
}

.crm-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-end;
}

.crm-row-actions .crm-icon-button {
  width: 2.15rem;
  height: 2.15rem;
}

.crm-mono-link,
.crm-mono-text {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.82rem;
}

.crm-mono-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #245cc5;
  text-decoration: none;
}

.crm-subject-cell strong {
  display: block;
  color: #0f172a;
  font-size: 0.86rem;
}

.crm-selected-row {
  background: #eff6ff;
}

.crm-urgency-chip-neutral {
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
  border-color: rgba(148, 163, 184, 0.2);
}

.crm-urgency-chip-low {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.18);
}

.crm-urgency-chip-medium {
  background: rgba(245, 158, 11, 0.14);
  color: #a16207;
  border-color: rgba(245, 158, 11, 0.2);
}

.crm-urgency-chip-high {
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
  border-color: rgba(249, 115, 22, 0.22);
}

.crm-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  border: 1px dashed #dbe4f0;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.58);
}

@media (max-width: 1200px) {
  .crm-kpi-grid,
  .crm-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-filter-bar,
  .crm-filter-bar-contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-filter-total {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .crm-page-header,
  .crm-hero-card,
  .crm-panel-head {
    flex-direction: column;
  }

  .crm-kpi-grid,
  .crm-stat-strip,
  .crm-stage-grid,
  .crm-filter-bar,
  .crm-filter-bar-contacts {
    grid-template-columns: 1fr;
  }

  .crm-bulk-bar {
    align-items: stretch;
  }

  .crm-bulk-separator {
    display: none;
  }

  .crm-bulk-group {
    flex-wrap: wrap;
  }
}
