/**
 * Kanban de leads — Soft SaaS / Pastel Admin.
 * Namespaced em body.admin. Carregar depois de bora-admin.css.
 */

body.admin .kan-ban-tab,
body.admin .leads-kan-ban,
body.admin #kan-ban,
body.admin .kan-ban-content-wrapper {
  scrollbar-width: thin;
  scrollbar-color: rgba(132, 126, 190, 0.35) transparent;
}

body.admin .kan-ban-tab::-webkit-scrollbar,
body.admin .leads-kan-ban::-webkit-scrollbar,
body.admin #kan-ban::-webkit-scrollbar {
  height: 8px;
}

body.admin .kan-ban-content-wrapper::-webkit-scrollbar {
  width: 8px;
}

body.admin .kan-ban-tab::-webkit-scrollbar-thumb,
body.admin .leads-kan-ban::-webkit-scrollbar-thumb,
body.admin #kan-ban::-webkit-scrollbar-thumb,
body.admin .kan-ban-content-wrapper::-webkit-scrollbar-thumb {
  background: rgba(132, 126, 190, 0.35);
  border-radius: 999px;
}

body.admin .kan-ban-tab::-webkit-scrollbar-track,
body.admin .leads-kan-ban::-webkit-scrollbar-track,
body.admin #kan-ban::-webkit-scrollbar-track,
body.admin .kan-ban-content-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

body.admin.kan-ban-body .tab-content,
body.admin .kan-ban-tab,
body.admin .leads-kan-ban,
body.admin .leads-kan-ban .row,
body.admin .leads-kan-ban .container-fluid,
body.admin .leads-kan-ban #kan-ban {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body.admin .kanban-leads-sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 14px;
  color: var(--bora-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

body.admin .kanban-leads-sort .bold {
  color: var(--bora-text-soft);
  font-weight: 700;
}

body.admin .kanban-leads-sort a {
  color: var(--bora-violet-deep) !important;
  font-weight: 600;
  text-decoration: none;
}

body.admin .kanban-leads-sort a:hover,
body.admin .kanban-leads-sort a:focus {
  color: var(--bora-text) !important;
  text-decoration: none;
}

body.admin .kanban-leads-sort .kanban-sort-icon {
  color: var(--bora-violet-deep);
}

body.admin .lead-temperature-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  flex-wrap: nowrap;
}

body.admin .lead-classificacao-filter .lead-staff-filter-menu {
  width: 280px;
  max-width: min(280px, calc(100% - 8px));
}

body.admin .lead-classificacao-filter .lead-staff-filter-list {
  max-height: 250px;
}

body.admin .lead-classificacao-filter .lead-staff-filter-item {
  width: 100%;
  border: 0;
  background: transparent;
  justify-content: space-between;
}

body.admin .lead-classificacao-filter .lead-classificacao-filter-item .fa-check {
  opacity: 0;
  font-size: 10px;
}

body.admin .lead-classificacao-filter .lead-classificacao-filter-item.is-selected .fa-check {
  opacity: 1;
}

body.admin .lead-classificacao-filter .lead-classificacao-filter-item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

body.admin .lead-temp-filter-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0 !important;
  border-radius: 12px !important;
  border: 1px solid var(--bora-line-strong) !important;
  background: var(--bora-panel) !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none;
  color: var(--bora-text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.admin .lead-temp-filter-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

body.admin .lead-temp-filter-btn:hover,
body.admin .lead-temp-filter-btn:focus,
body.admin .lead-temp-filter-btn:focus-visible {
  background: var(--bora-panel) !important;
  border-color: rgba(128, 118, 255, 0.4) !important;
  box-shadow: var(--bora-focus) !important;
  outline: none !important;
  transform: translateY(-1px);
}

body.admin .lead-temp-filter-btn.active {
  background: #eee8ff !important;
  border-color: rgba(128, 118, 255, 0.45) !important;
  box-shadow: 0 6px 14px rgba(110, 103, 221, 0.1) !important;
  outline: none !important;
}

body.admin .lead-temp-clear-btn {
  color: var(--bora-text-muted);
}

body.admin .lead-temp-clear-btn i {
  font-size: 11px;
}

body.admin ._buttons,
body.admin ._buttons .tw-flex,
body.admin .leads-search,
body.admin .leads-kanban-top-controls {
  overflow: visible;
}

body.admin .leads-kanban-top-controls {
  position: relative;
}

body.admin .leads-kanban-top-controls .lead-search-input-wrap,
body.admin .leads-kanban-top-controls .lead-search-input-wrap .form-group {
  width: 188px;
  min-width: 188px;
  max-width: 188px;
  margin: 0;
}

body.admin .leads-kanban-top-controls .lead-search-input-wrap .form-control {
  width: 100%;
}

body.admin .lead-staff-filter {
  position: static;
  z-index: 40;
}

body.admin .lead-staff-filter-btn {
  width: auto;
  min-width: 36px;
  height: 36px;
  padding: 0 8px 0 7px !important;
  gap: 5px;
  border-radius: 12px !important;
  border: 1px solid var(--bora-line-strong) !important;
  background: var(--bora-panel) !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.admin .lead-staff-filter-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

body.admin .lead-staff-filter-caret {
  font-size: 11px;
  line-height: 1;
  color: var(--bora-text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

body.admin .lead-staff-filter-btn:hover,
body.admin .lead-staff-filter-btn:focus,
body.admin .lead-staff-filter-btn:focus-visible {
  background: var(--bora-panel) !important;
  border-color: rgba(128, 118, 255, 0.4) !important;
  box-shadow: var(--bora-focus) !important;
  outline: none !important;
  transform: translateY(-1px);
}

body.admin .lead-staff-filter.is-active .lead-staff-filter-btn,
body.admin .lead-staff-filter-btn[aria-expanded="true"],
body.admin .lead-staff-filter-btn.active {
  background: #eee8ff !important;
  border-color: rgba(128, 118, 255, 0.45) !important;
  box-shadow: 0 6px 14px rgba(110, 103, 221, 0.1) !important;
  outline: none !important;
  transform: none;
}

body.admin .lead-staff-filter-btn[aria-expanded="true"] .lead-staff-filter-caret {
  transform: rotate(180deg);
  color: var(--bora-violet-deep);
}

body.admin .lead-staff-filter-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bora-violet-deep);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

body.admin .lead-staff-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: 280px;
  max-width: min(280px, calc(100% - 8px));
  max-height: 360px;
  display: none;
  flex-direction: column;
  padding: 12px;
  border-radius: 18px;
  background: var(--bora-panel);
  border: 1px solid rgba(221, 216, 238, 0.8);
  box-shadow: 0 16px 36px rgba(79, 66, 211, 0.14);
  z-index: 80;
  white-space: normal;
}

body.admin .lead-staff-filter-menu[hidden] {
  display: none !important;
}

body.admin .lead-staff-filter-menu.is-open {
  display: flex;
}

body.admin .lead-staff-filter-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

body.admin .lead-staff-filter-menu-head strong {
  color: var(--bora-text);
  font-size: 0.78rem;
  font-weight: 700;
}

body.admin .lead-staff-filter-clear {
  border: 0;
  background: transparent;
  color: var(--bora-violet-deep);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

body.admin .lead-staff-filter-search {
  margin-bottom: 8px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 12px !important;
}

body.admin .lead-staff-filter-list {
  overflow-y: auto;
  max-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.admin .lead-staff-filter-empty {
  margin: 8px 0 0;
  color: var(--bora-text-muted);
  font-size: 0.72rem;
}

body.admin .lead-staff-filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 8px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bora-text);
  cursor: pointer;
}

body.admin .lead-staff-filter-item:hover,
body.admin .lead-staff-filter-item:has(input:checked) {
  background: #eee8ff;
}

body.admin .lead-staff-filter-item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin .lead-staff-filter-avatar,
body.admin img.lead-staff-filter-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 28px;
}

body.admin.leads-kanban #kan-ban-tab {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
}

body.admin.leads-kanban #kan-ban-tab > .row {
  display: block;
  width: max-content;
  min-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

body.admin .leads-kan-ban.container-fluid {
  width: max-content;
  min-width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 8px;
  float: none;
}

body.admin .leads-kan-ban #kan-ban {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  min-height: 520px;
  padding-bottom: 8px;
  overflow: visible;
}

body.admin .leads-kan-ban .kan-ban-col,
body.admin .leads-kan-ban ul.kan-ban-col {
  float: none !important;
  display: flex !important;
  flex-direction: column;
  flex: 0 0 340px;
  flex-shrink: 0;
  width: 340px !important;
  min-width: 340px !important;
  max-width: 340px !important;
  margin-right: 0;
  background: transparent !important;
  position: relative;
  z-index: 1;
}

body.admin .leads-kan-ban .kan-ban-col:hover,
body.admin .leads-kan-ban .kan-ban-col:focus-within {
  z-index: 30;
}

body.admin .leads-kan-ban .kan-ban-col-wrapper {
  width: 100%;
}

body.admin .leads-kan-ban .kan-ban-col .panel_s {
  margin-bottom: 0;
  overflow: visible;
  border: 1px solid rgba(221, 216, 238, 0.55) !important;
  border-radius: 16px !important;
  background: var(--bora-panel-soft) !important;
  box-shadow: none !important;
}

body.admin .leads-kan-ban .deals-stage-header,
body.admin .leads-kan-ban .kan-ban-col .panel-heading.deals-stage-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px !important;
  margin: 0;
  border: 0 !important;
  border-radius: 16px 16px 0 0 !important;
  color: #fff !important;
  background-color: var(--deals-stage-bg, var(--bora-violet-deep)) !important;
  background-image: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.05) 46%,
    rgba(18, 12, 40, 0.22) 100%
  ) !important;
  box-shadow: none !important;
}

body.admin .leads-kan-ban .deals-stage-header::before {
  display: none;
}

body.admin .leads-kan-ban .deals-stage-header-top {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 110px;
  margin: 0;
}

body.admin .leads-kan-ban .deals-stage-name,
body.admin .leads-kan-ban .deals-stage-header .heading,
body.admin .leads-kan-ban .deals-stage-header.tw-text-white {
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 1px 1px rgba(20, 16, 48, 0.18);
}

body.admin .leads-kan-ban .deals-stage-header-metrics {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

body.admin .leads-kan-ban .deals-stage-metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}

body.admin .leads-kan-ban .deals-stage-metric i {
  font-size: 9px;
  color: #fff;
  opacity: 0.95;
}

body.admin .leads-kan-ban .deals-stage-metric-label {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

body.admin .leads-kan-ban .deals-stage-metric strong {
  color: #fff;
  font-weight: 700;
}

body.admin .leads-kan-ban .kanban-color-picker,
body.admin .leads-kan-ban .kanban-color-picker.color-white {
  color: #fff !important;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

body.admin .leads-kan-ban .kanban-color-picker:hover,
body.admin .leads-kan-ban .kanban-color-picker:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.24);
}

body.admin .leads-kan-ban .kan-ban-content-wrapper {
  min-height: 360px;
  background: transparent !important;
  overflow-x: visible;
  border-radius: 0 0 16px 16px;
}

body.admin .popover:has(.new-lead-from-status),
body.admin .popover:has(.kan-ban-settings) {
  z-index: 1080 !important;
  width: 280px;
  max-width: 280px;
}

body.admin .leads-kan-ban .kan-ban-content {
  background: transparent !important;
  padding: 8px 7px 12px;
  min-height: 340px;
}

body.admin .leads-kan-ban .kanban-empty {
  opacity: 1 !important;
  padding: 28px 12px;
}

body.admin .leads-kan-ban .kanban-empty h4 {
  margin: 0;
  color: var(--bora-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

body.admin .leads-kan-ban .kanban-empty .fa-circle-notch {
  color: var(--bora-violet-soft);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

body.admin .leads-kan-ban .kanban-load-more {
  opacity: 1 !important;
  padding: 4px 0 2px !important;
}

body.admin .leads-kan-ban .kanban-load-more .btn {
  min-height: 36px;
  border-radius: 999px !important;
  border-color: var(--bora-line-strong) !important;
  background: var(--bora-panel) !important;
  color: var(--bora-text-soft) !important;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: none !important;
}

body.admin .leads-kan-ban .kanban-load-more .btn:hover:not(.disabled),
body.admin .leads-kan-ban .kanban-load-more .btn:focus:not(.disabled) {
  color: var(--bora-text) !important;
  border-color: rgba(128, 118, 255, 0.4) !important;
  transform: translateY(-1px);
}

body.admin .leads-kan-ban .ui-state-highlight-card,
body.admin .leads-kan-ban .ui-state-highlight-kan-ban-kb {
  border: 2px dashed rgba(128, 118, 255, 0.35);
  background: rgba(238, 232, 255, 0.55);
  border-radius: 16px;
}

body.admin .lead-kan-ban .lead-body {
  position: relative;
  border-radius: 12px !important;
  border: 1px solid var(--bora-line) !important;
  background: var(--bora-panel) !important;
  box-shadow: 0 6px 14px rgba(73, 61, 121, 0.06) !important;
  padding: 10px 12px !important;
  margin: 0 0 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.admin .lead-kan-ban .lead-body:hover {
  border-color: rgba(122, 113, 255, 0.28) !important;
  box-shadow: 0 10px 20px rgba(74, 62, 123, 0.08) !important;
  transform: translateY(-1px);
}

body.admin li.lead-kan-ban.current-user-lead .lead-body {
  background: #f7f5ff !important;
  border-color: rgba(128, 118, 255, 0.28) !important;
}

body.admin .deal-card-v2 {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.admin .deal-card-v2-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

body.admin .deal-card-v2-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

body.admin .lead-kan-ban .kanban-idea-icon,
body.admin .deal-card-v2-temp {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 1px;
}

body.admin .lead-kan-ban .kanban-idea-icon img,
body.admin .lead-kan-ban .lead-temp-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

body.admin .deal-card-v2-avatar {
  flex-shrink: 0;
  display: inline-flex;
}

body.admin .deal-card-v2-avatar img,
body.admin .deal-card-v2-avatar .staff-profile-image-xs {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  object-fit: cover;
}

body.admin .deal-card-v2-title-link {
  color: #3f4470 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.admin .deal-card-v2-title-link:hover,
body.admin .deal-card-v2-title-link:focus {
  color: var(--bora-violet-deep) !important;
  text-decoration: none;
}

body.admin .deal-card-v2-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

body.admin .deal-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--bora-line);
  background: var(--bora-panel-soft);
  color: var(--bora-text-soft);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.6;
}

body.admin .deal-card-chip i {
  color: var(--bora-text-muted);
  font-size: 8px;
}

body.admin .deal-card-v2-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.admin .deal-card-v2-classificacao {
  flex: 0 0 auto;
}

body.admin .lead-classificacao-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  isolation: isolate;
}

body.admin .lead-classificacao-chip.dropdown.open {
  z-index: 2147483000;
}

body.admin .lead-classificacao-chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--bora-line-strong);
  background: var(--bora-panel-soft);
  color: var(--bora-text-soft) !important;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.05;
  min-height: 20px;
  text-decoration: none !important;
}

body.admin .lead-classificacao-chip.is-empty .lead-classificacao-chip-toggle {
  color: var(--bora-text-muted) !important;
}

body.admin .lead-classificacao-chip.is-qualificado .lead-classificacao-chip-toggle {
  background: rgba(184, 239, 19, 0.2);
  border-color: rgba(184, 239, 19, 0.62);
  color: #3b4a0f !important;
}

body.admin .lead-classificacao-chip.is-desqualificado .lead-classificacao-chip-toggle,
body.admin .lead-classificacao-chip.is-numero_inexistente .lead-classificacao-chip-toggle,
body.admin .lead-classificacao-chip.is-sem_resposta .lead-classificacao-chip-toggle {
  background: #f4f2ff;
  border-color: rgba(128, 118, 255, 0.34);
}

body.admin .lead-classificacao-chip .dropdown-menu {
  left: 0;
  right: auto;
  min-width: 124px !important;
  padding: 2px 0 !important;
  border-radius: 12px;
  background: var(--bora-panel) !important;
  opacity: 1 !important;
  border-color: var(--bora-line-strong);
  box-shadow: 0 14px 30px rgba(79, 66, 211, 0.16);
  z-index: 2147483640 !important;
}

body.admin .lead-classificacao-chip .dropdown-menu > li > a {
  font-size: 0.64rem !important;
  font-weight: 600;
  padding: 4px 8px !important;
  line-height: 1.1 !important;
  color: var(--bora-text);
}

body.admin .lead-classificacao-chip .dropdown-menu > li.active > a {
  background: #eee8ff;
  color: var(--bora-violet-deep);
}

body.admin .lead-classificacao-chip .dropdown-menu > li > a:hover {
  background: #f6f3ff;
}

body.admin .lead-kan-ban .lead-body,
body.admin .deal-card-v2,
body.admin .deal-card-v2-value-row {
  overflow: visible !important;
}

body.admin .lead-classificacao-modal-badge {
  margin-left: 6px;
  background: #f4f2ff;
  border: 1px solid rgba(128, 118, 255, 0.34);
  color: var(--bora-violet-deep);
}

body.admin .deal-card-v2-value-label {
  display: block;
  color: var(--bora-text-muted);
  font-size: 9px;
  font-weight: 500;
  margin-bottom: 1px;
}

body.admin .deal-card-v2-value-amount {
  display: block;
  color: var(--bora-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

body.admin .deal-card-v2-value-tags {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  max-width: 58%;
  overflow: hidden;
  white-space: nowrap;
}

body.admin .deal-card-v2-value-tags .label-tag {
  display: inline-flex;
  align-items: center;
  max-width: 120px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--bora-line);
  background: #eee8ff;
  color: var(--bora-violet-deep) !important;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none !important;
}

body.admin .deal-card-v2-value-tags .label-tag::before {
  content: "\f02b";
  font-family: "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900;
  font-size: 8px;
  margin-right: 3px;
  opacity: 0.7;
}

body.admin .deal-card-v2-value-tags .tag {
  display: inline;
  border: none;
  background: transparent;
  padding: 0;
}

body.admin .deal-card-v2-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--bora-line);
  color: var(--bora-text-muted);
  font-size: 11px;
  font-weight: 500;
}

body.admin .deal-card-v2-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--bora-text-muted);
}

body.admin .deal-card-quick-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.admin .deal-card-add-btn,
body.admin .deal-card-insight-btn,
body.admin .deal-card-whatsapp,
body.admin .whatsapp-visual-icon.deal-card-whatsapp {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  border-radius: 6px !important;
  border: 1px solid var(--bora-line-strong) !important;
  background: var(--bora-panel) !important;
  color: var(--bora-text-soft) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transform: none;
  font-size: 11px !important;
}

body.admin .deal-card-add-btn:hover,
body.admin .deal-card-add-btn:focus,
body.admin .deal-card-insight-btn:hover,
body.admin .deal-card-insight-btn:focus {
  background: var(--bora-panel-soft) !important;
  border-color: rgba(128, 118, 255, 0.4) !important;
  color: var(--bora-violet-deep) !important;
  transform: translateY(-1px);
}

body.admin .whatsapp-visual-icon.whatsapp-active.deal-card-whatsapp .fa-whatsapp {
  color: #25d366;
}

body.admin .whatsapp-visual-icon.whatsapp-active.deal-card-whatsapp:hover {
  background: var(--bora-panel) !important;
  border-color: rgba(37, 211, 102, 0.45) !important;
  transform: translateY(-1px);
}

body.admin .deal-card-whatsapp-disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

body.admin .leads-kanban-scroll-btn {
  position: fixed;
  top: 56%;
  z-index: 90;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--bora-cta, #2d0d4c);
  color: #fff;
  box-shadow:
    0 10px 24px rgba(67, 53, 112, 0.22),
    0 0 0 1px rgba(128, 118, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

body.admin .leads-kanban-scroll-next {
  right: 16px;
}

body.admin .leads-kanban-scroll-prev {
  left: 16px;
}

body.admin .leads-kanban-scroll-btn i {
  font-size: 16px;
  line-height: 1;
}

body.admin .leads-kanban-scroll-btn:hover,
body.admin .leads-kanban-scroll-btn:focus {
  background: #3b1463;
  color: #fff;
  transform: translateY(calc(-50% - 1px));
  box-shadow:
    0 14px 28px rgba(67, 53, 112, 0.28),
    0 0 0 1px rgba(128, 118, 255, 0.22);
}

body.admin .leads-kanban-scroll-btn:focus,
body.admin .leads-kanban-scroll-btn:focus-visible {
  outline: none;
  box-shadow: var(--bora-focus), 0 10px 24px rgba(67, 53, 112, 0.22);
}

body.admin .leads-kanban-scroll-btn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 768px) {
  body.admin .leads-kan-ban .kan-ban-col,
  body.admin .leads-kan-ban ul.kan-ban-col {
    flex: 0 0 280px;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
  }

  body.admin .leads-kanban-scroll-btn {
    width: 40px;
    height: 40px;
  }

  body.admin .lead-temp-filter-btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.admin .lead-kan-ban .lead-body:hover,
  body.admin .lead-temp-filter-btn:hover,
  body.admin .lead-staff-filter-btn:hover,
  body.admin .deal-card-add-btn:hover,
  body.admin .kanban-load-more .btn:hover:not(.disabled) {
    transform: none;
  }

  body.admin .leads-kanban-scroll-btn,
  body.admin .leads-kanban-scroll-btn:hover,
  body.admin .leads-kanban-scroll-btn:focus {
    transform: translateY(-50%);
    transition: none;
  }
}
