/* Lead list + Edit Lead modal layout fixes */
.lead-list-controls {
  background: var(--phoenix-gray-50, #f8f9fb);
}
.lead-list-controls .form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--phoenix-gray-700, #4d5969);
  margin-bottom: 0.25rem;
}
/* Outer wrappers must not scroll — nested overflow caused double scrollbars */
.lead-list-panel.table-responsive,
.lead-list-panel {
  overflow: visible !important;
}
.lead-list-table-wrap {
  overflow: visible;
  max-width: 100%;
}
/* Single horizontal scroll around the table only (pagination stays outside) */
.lead-list-panel .dataTables_wrapper > .lead-dt-scroll,
.lead-list-panel .dataTables_wrapper > .table-responsive,
.lead-dt-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.lead-list-panel {
  background: #fff;
  border: 1px solid var(--phoenix-border-color, #e3e6ed);
  border-radius: 0.625rem;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
/* Hide theme customizer tab on right edge */
.setting-toggle {
  display: none !important;
}
.lead-list-table-wrap .table {
  width: 100%;
  min-width: 1100px;
  table-layout: auto;
  white-space: normal;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.lead-list-table-wrap .table tbody tr {
  transition: background-color 0.12s ease;
}
.lead-list-table-wrap .table tbody tr:nth-child(even) {
  background-color: rgba(248, 249, 251, 0.65);
}
.lead-sr-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.35rem;
  border-radius: 0.375rem;
  background: var(--phoenix-gray-100, #eff2f6);
  color: var(--phoenix-gray-700, #525b75);
  font-size: 0.75rem;
  font-weight: 700;
}
/* Pinned left columns — checkbox, Sr., Lead name stay visible while scrolling */
.lead-list-table-wrap .lead-col-select {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  min-width: 40px;
  max-width: 40px;
  box-shadow: 2px 0 8px -4px rgba(15, 23, 42, 0.12);
}
.lead-list-table-wrap .lead-col-sr {
  position: sticky;
  left: 40px;
  z-index: 3;
  background: #fff;
  min-width: 52px;
  box-shadow: 2px 0 8px -4px rgba(15, 23, 42, 0.1);
}
.lead-list-table-wrap .lead-col-name {
  position: sticky;
  left: 92px;
  z-index: 3;
  background: #fff;
  min-width: 160px;
  max-width: 220px;
  box-shadow: 4px 0 10px -6px rgba(15, 23, 42, 0.12);
}
.lead-list-table-wrap thead .lead-col-select,
.lead-list-table-wrap thead .lead-col-sr,
.lead-list-table-wrap thead .lead-col-name {
  background: linear-gradient(180deg, #f8f9fb 0%, #f0f2f6 100%);
  z-index: 5;
}
.lead-list-table-wrap tbody tr:nth-child(even) .lead-col-select,
.lead-list-table-wrap tbody tr:nth-child(even) .lead-col-sr,
.lead-list-table-wrap tbody tr:nth-child(even) .lead-col-name {
  background: #f8f9fb;
}
.lead-list-table-wrap tbody tr:hover .lead-col-select,
.lead-list-table-wrap tbody tr:hover .lead-col-sr,
.lead-list-table-wrap tbody tr:hover .lead-col-name {
  background: var(--phoenix-gray-50, #f8f9fb);
}
.lead-list-table-wrap .table td,
.lead-list-table-wrap .table th {
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  font-size: 0.8125rem;
  padding: 0.5rem 0.55rem;
  border-color: var(--phoenix-border-color, #e3e6ed);
  max-width: 180px;
}
.lead-list-table-wrap .lead-col-select,
.lead-list-table-wrap .lead-col-sr,
.lead-list-table-wrap .lead-col-actions {
  max-width: none;
  overflow: visible;
}
.lead-list-table-wrap .lead-col-name {
  max-width: 150px;
}
.lead-list-table-wrap .lead-col-assigned {
  max-width: 155px;
}
.lead-list-table-wrap .lead-col-disposition {
  max-width: 130px;
}
.lead-name-cell,
.lead-assignee-name,
.lead-source-inline {
  max-width: 100%;
  vertical-align: middle;
}
.lead-list-table-wrap .table td p {
  margin-bottom: 0.2rem;
  line-height: 1.35;
}
.lead-list-table-wrap .table thead th {
  white-space: nowrap;
  background: linear-gradient(180deg, #f8f9fb 0%, #f0f2f6 100%);
  position: sticky;
  top: 0;
  z-index: 2;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--phoenix-gray-700, #525b75);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--phoenix-border-color, #e3e6ed);
}
.lead-list-table-wrap .table tbody tr:hover {
  background-color: var(--phoenix-gray-50, #f8f9fb);
}
.lead-cell-meta {
  font-size: 0.75rem;
  color: var(--phoenix-gray-600, #6e7891);
  line-height: 1.35;
}
.lead-cell-meta b {
  font-weight: 600;
  color: var(--phoenix-gray-700, #4d5969);
}
.lead-remark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 0.375rem;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lead-remark-btn:hover {
  background: rgba(231, 76, 60, 0.18);
}
.lead-remark-btn.d-none {
  display: none !important;
}
.lead-list-table-wrap .lead-col-actions,
.lead-list-table-wrap td.lead-col-actions {
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 4;
  box-shadow: -8px 0 12px -8px rgba(15, 23, 42, 0.14);
  min-width: 72px;
  overflow: visible;
}
.lead-list-table-wrap .lead-col-actions .dropdown.show {
  z-index: 1085;
}
.lead-attempts-count {
  min-width: 28px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
}
.lead-list-table-wrap thead .lead-col-actions {
  background: linear-gradient(180deg, #f8f9fb 0%, #f0f2f6 100%);
  z-index: 5;
}
.lead-list-table-wrap tbody tr:hover .lead-col-actions {
  background: var(--phoenix-gray-50, #f8f9fb);
}
.lead-list-table-wrap tbody tr:nth-child(even) .lead-col-actions {
  background: #f8f9fb;
}
.phoenix-toolbar .search-box .form-control {
  min-width: 200px;
}
.phoenix-toolbar .search-box .search-box-icon {
  pointer-events: none;
}
.lead-status-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}
.lead-status-tab {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  width: 100%;
  cursor: pointer;
  border: 1px solid var(--phoenix-border-color, #e3e6ed);
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  min-height: 64px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.lead-status-tab:hover {
  border-color: rgba(56, 116, 255, 0.35);
  transform: translateY(-1px);
}
.lead-status-tab.is-active {
  box-shadow: 0 0 0 1px currentColor inset, 0 8px 18px rgba(49, 55, 74, 0.06);
}
.lead-status-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.lead-status-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lead-status-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--phoenix-gray-600, #6e7891);
  letter-spacing: 0.01em;
}
.lead-status-count {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--phoenix-gray-900, #141824);
}
.lead-status-all { color: #3874ff; }
.lead-status-all .lead-status-icon { background: rgba(56, 116, 255, 0.12); color: #3874ff; }
.lead-status-pending { color: #d97706; }
.lead-status-pending .lead-status-icon { background: #fef3c7; color: #d97706; }
.lead-status-booked { color: #0f9f6e; }
.lead-status-booked .lead-status-icon { background: #d1fae5; color: #059669; }
.lead-status-lost { color: #e63757; }
.lead-status-lost .lead-status-icon { background: #fee2e2; color: #e63757; }
@media (max-width: 991.98px) {
  .lead-status-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Do not set overflow-x:hidden here — it forces overflow-y:auto and creates a 2nd scrollbar */
.content.AssetsPageChangecss {
  max-width: 100%;
  overflow: visible;
}

/* Lead history centered modal */
#newRemarkModalList.lead-history-modal .modal-dialog {
  max-width: min(920px, 94vw);
}
#newRemarkModalList.lead-history-modal .modal-content.lead-history-panel {
  border: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(20, 24, 36, 0.14);
}
.lead-history-panel .lead-history-header {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--phoenix-border-color, #e3e6ed);
}
.lead-history-panel .modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--phoenix-gray-900, #141824);
}
.lead-history-panel .lead-history-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(70vh, 640px);
}
.lead-history-panel .lead-history-tabs {
  display: flex;
  gap: 0.45rem;
  padding: 0.85rem 1.15rem 0.75rem;
  border-bottom: 1px solid var(--phoenix-border-color, #e3e6ed);
  flex-shrink: 0;
}
.lead-history-panel .lead-history-tabs .nav-link {
  border: 0;
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #31374a;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d8dee8;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.lead-history-panel .lead-history-tabs .nav-link:hover {
  color: #31374a;
  background: #f5f7fa;
}
.lead-history-panel .lead-history-tabs .nav-link.active {
  color: #fff;
  background: #31374a;
  box-shadow: none;
}
.lead-history-panel .lead-history-tab-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.85rem 1.15rem 1.15rem;
}
.lead-history-panel .lead-detail-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--phoenix-border-color, #e3e6ed);
  border-radius: 0.55rem;
}
.lead-history-panel .tables,
.lead-history-panel .lead-detail-table {
  width: 100%;
  margin-bottom: 0;
  font-size: 0.78rem;
  border-color: var(--phoenix-border-color, #e3e6ed);
}
.lead-history-panel .tables thead th,
.lead-history-panel .lead-detail-table thead th {
  background: #f5f7fa;
  color: var(--phoenix-gray-800, #31374a);
  font-weight: 700;
  font-size: 0.72rem;
  white-space: nowrap;
  vertical-align: middle;
  padding: 0.58rem 0.65rem;
  border-color: var(--phoenix-border-color, #e3e6ed);
}
.lead-history-panel .tables tbody td,
.lead-history-panel .lead-detail-table tbody td {
  vertical-align: middle;
  padding: 0.55rem 0.65rem;
  white-space: normal;
  word-break: break-word;
  border-color: var(--phoenix-border-color, #e3e6ed);
  font-size: 0.76rem;
}
.lead-history-panel .lead-detail-pagination {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.65rem;
}
.lead-history-panel .lead-detail-pagination .pagination {
  justify-content: flex-end;
  margin-bottom: 0;
  gap: 0.2rem;
}
.lead-history-panel .lead-detail-pagination .page-link {
  color: #31374a;
  border: 1px solid #dee2e6;
  padding: 0.3rem 0.58rem;
  border-radius: 0.35rem;
  font-size: 0.78rem;
}
.lead-history-panel .lead-detail-pagination .page-item.active .page-link {
  background-color: #31374a;
  border-color: #31374a;
  color: #fff;
  font-weight: 700;
}
.lead-history-panel .lead-detail-pagination .page-link:hover {
  background-color: #31374a;
  border-color: #31374a;
  color: #fff;
}
.lead-history-panel .lead-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}
.lead-history-panel .lead-status-pill.is-success {
  background: #dcfce7;
  color: #15803d;
}
.lead-history-panel .lead-status-pill.is-warning {
  background: #fef3c7;
  color: #b45309;
}
.lead-history-panel .lead-status-pill.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}
.lead-history-panel .lead-status-pill.is-muted {
  background: #e2e8f0;
  color: #475569;
}

/* Lead list action dropdown */
.lead-action-dropdown {
  position: relative;
  display: inline-flex;
}
.lead-action-toggle {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 0.45rem;
  border: 1px solid var(--phoenix-border-color, #e3e6ed);
  background: #fff;
  color: var(--phoenix-gray-700, #4d5969);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.lead-action-toggle:hover,
.lead-action-toggle:focus,
.lead-action-toggle.show {
  border-color: #7252d3;
  color: #7252d3;
  background: #f8f6ff;
}
.lead-action-menu {
  min-width: 176px;
  padding: 0.4rem;
  border: 1px solid var(--phoenix-border-color, #e3e6ed);
  border-radius: 0.55rem;
  z-index: 1090 !important;
  margin-right: 0.35rem !important;
}
.lead-action-menu .lead-action-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--phoenix-gray-800, #31374a);
  white-space: nowrap;
}
.lead-action-menu .lead-action-item i {
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.lead-action-menu .lead-action-item:hover,
.lead-action-menu .lead-action-item:focus {
  background: #f5f7fa;
  color: var(--phoenix-gray-900, #141824);
}

/* Lead list toolbar + column picker */
.lead-list-toolbar-note {
  display: none !important;
}
.lead-table-toolbar {
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
.lead-table-toolbar-right .search-box .form-control {
  min-width: 210px;
}
.lead-bulk-actions .form-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--phoenix-gray-600, #6e7891);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lead-bulk-field {
  min-width: 150px;
}
.lead-bulk-field .form-select {
  min-width: 150px;
}
.lead-bulk-apply {
  padding-bottom: 1px;
}
.lead-dt-footer {
  width: 100%;
  padding: 0.75rem 0.35rem 0.35rem !important;
  border-top: 1px solid var(--phoenix-border-color, #e3e6ed);
  margin-top: 0.35rem !important;
}
.lead-dt-footer-left {
  flex: 1 1 auto;
  min-width: 0;
}
.lead-dt-footer-left .dataTables_info {
  margin: 0;
  padding: 0;
  white-space: nowrap;
  font-size: 0.8125rem;
  color: var(--phoenix-gray-700, #525b75);
  line-height: 1.5;
}
.lead-dt-footer-right {
  flex: 0 0 auto;
  margin-left: auto;
}
.lead-dt-footer-right .pagination {
  margin-bottom: 0;
  align-items: center;
}
.lead-dt-footer-right .page-link {
  min-width: 2rem;
  text-align: center;
  padding: 0.35rem 0.55rem;
  font-size: 0.8125rem;
}
.lead-per-page-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.lead-per-page-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--phoenix-gray-600, #6e7891);
  white-space: nowrap;
}
.lead-per-page-inline .form-select {
  width: auto;
  min-width: 72px;
}
.lead-name-text {
  color: var(--phoenix-gray-900, #31374a);
  font-size: 0.8125rem;
}
.lead-source-inline {
  color: var(--phoenix-gray-800, #31374a);
  font-size: 0.8125rem;
}
.lead-column-menu {
  width: min(260px, 88vw);
  padding: 0.85rem !important;
  border-radius: 0.65rem;
}
.lead-column-menu-head {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--phoenix-gray-600, #6e7891);
  margin-bottom: 0.55rem;
}
.lead-column-search {
  margin-bottom: 0.55rem;
}
.lead-column-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.lead-column-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.25rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--phoenix-gray-800, #31374a);
  cursor: pointer;
  border-radius: 0.35rem;
}
.lead-column-item:hover {
  background: #f5f7fa;
}
.lead-column-item .form-check-input {
  margin: 0;
  flex-shrink: 0;
}
.lead-column-menu-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--phoenix-border-color, #e3e6ed);
}
.lead-column-empty {
  font-size: 0.78rem;
  padding: 0.35rem 0.15rem;
}
.lead-sr-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--phoenix-gray-700, #4d5969);
}
.lead-name-link {
  color: var(--phoenix-primary, #3874ff);
  text-decoration: none;
  font-weight: 700;
}
.lead-name-link:hover {
  text-decoration: underline;
}
.lead-phone-link {
  color: var(--phoenix-gray-800, #31374a);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
}
.lead-phone-link:hover {
  color: var(--phoenix-primary, #3874ff);
}
.lead-disposition-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 120px;
}
.lead-disposition-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lead-disposition-pill.tone-success {
  background: #dcfce7;
  color: #15803d;
}
.lead-disposition-pill.tone-danger {
  background: #fee2e2;
  color: #b91c1c;
}
.lead-disposition-pill.tone-warning {
  background: #fef3c7;
  color: #b45309;
}
.lead-disposition-pill.tone-info {
  background: #dbeafe;
  color: #1d4ed8;
}
.lead-disposition-pill.tone-secondary {
  background: #e2e8f0;
  color: #475569;
}
.lead-disposition-sub {
  font-size: 0.72rem;
  color: var(--phoenix-gray-600, #6e7891);
  line-height: 1.3;
}
.lead-disposition-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #15803d;
  background: #ecfdf5;
  border-radius: 0.25rem;
  padding: 0.1rem 0.35rem;
}
.lead-source-cell {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 110px;
}
.lead-source-main {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--phoenix-gray-900, #141824);
}
.lead-source-sub {
  font-size: 0.72rem;
  color: var(--phoenix-gray-600, #6e7891);
}
.lead-type-chip {
  display: inline-flex;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  background: #f5f7fa;
  font-size: 0.75rem;
  font-weight: 600;
}

#editLeadModallg .modal-dialog {
  max-width: min(920px, 94vw);
  margin: 0.75rem auto;
}
#editLeadModallg .modal-content.lead-edit-modal {
  border: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(20, 24, 36, 0.14);
  max-height: calc(100vh - 1.5rem);
}
#editLeadModallg .lead-edit-layout {
  display: grid;
  grid-template-columns: minmax(230px, 250px) minmax(0, 1fr);
  align-items: stretch;
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
}
#editLeadModallg .lead-edit-sidebar {
  background: linear-gradient(180deg, #f8f9fc 0%, #eef2f7 100%);
  border-right: 1px solid var(--phoenix-border-color, #e3e6ed);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  align-self: stretch;
}
#editLeadModallg .lead-edit-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
#editLeadModallg .lead-edit-profile-copy {
  min-width: 0;
}
#editLeadModallg .lead-edit-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7252d3 0%, #9b7fe8 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(114, 82, 211, 0.28);
}
#editLeadModallg .lead-edit-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--phoenix-gray-900, #141824);
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}
#editLeadModallg .lead-edit-status {
  display: inline-flex;
  align-items: center;
  margin-top: 0.25rem;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: #dcfce7;
  color: #15803d;
  max-width: 100%;
  word-break: break-word;
}
#editLeadModallg .lead-edit-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(227, 230, 237, 0.9);
  border-bottom: 1px solid rgba(227, 230, 237, 0.9);
}
#editLeadModallg .lead-edit-meta-row {
  display: grid;
  grid-template-columns: minmax(72px, 42%) minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
}
#editLeadModallg .lead-edit-meta dt {
  margin: 0;
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--phoenix-gray-600, #6e7891);
  line-height: 1.35;
}
#editLeadModallg .lead-edit-meta dd {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--phoenix-gray-900, #141824);
  line-height: 1.35;
  word-break: break-word;
  text-align: right;
}
#editLeadModallg .lead-edit-contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
#editLeadModallg .lead-edit-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 36px;
  border-radius: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
#editLeadModallg .lead-edit-action-btn:hover {
  transform: translateY(-1px);
}
#editLeadModallg .lead-edit-action-call {
  border: 1px solid rgba(56, 116, 255, 0.3);
  background: #fff;
  color: #3874ff;
}
#editLeadModallg .lead-edit-action-call:hover {
  background: rgba(56, 116, 255, 0.08);
  color: #2563eb;
}
#editLeadModallg .lead-edit-action-wa {
  border: 1px solid rgba(22, 163, 74, 0.3);
  background: #fff;
  color: #16a34a;
}
#editLeadModallg .lead-edit-action-wa:hover {
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
}
#editLeadModallg .lead-edit-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fff;
  overflow: hidden;
}
#editLeadModallg .lead-edit-main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1.15rem;
  border-bottom: 1px solid var(--phoenix-border-color, #e3e6ed);
  flex-shrink: 0;
  background: #fff;
}
#editLeadModallg .lead-edit-tabs {
  border-bottom: 0;
  flex: 1;
  min-width: 0;
  gap: 0.1rem;
}
#editLeadModallg .lead-edit-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--phoenix-gray-600, #6e7891);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.9rem 0.8rem 0.72rem;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
#editLeadModallg .lead-edit-tabs .nav-link:hover {
  color: #7252d3;
  border-color: transparent;
}
#editLeadModallg .lead-edit-tabs .nav-link.active {
  color: #7252d3;
  background: transparent;
  border-bottom-color: #7252d3;
}
#editLeadModallg .lead-edit-close {
  margin-top: 0.8rem;
  flex-shrink: 0;
  opacity: 0.5;
}
#editLeadModallg .lead-edit-close:hover {
  opacity: 0.85;
}
#editLeadModallg .lead-edit-tab-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.1rem 1.15rem 0.75rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #c5cad3 transparent;
}
#editLeadModallg .lead-edit-tab-content::-webkit-scrollbar {
  width: 6px;
}
#editLeadModallg .lead-edit-tab-content::-webkit-scrollbar-thumb {
  background: #c5cad3;
  border-radius: 999px;
}
#editLeadModallg .lead-edit-tab-content::-webkit-scrollbar-thumb:hover {
  background: #9aa3b5;
}
#editLeadModallg .lead-edit-form-grid > [class*="col-"] {
  min-width: 0;
}
#editLeadModallg .lead-edit-section-head {
  margin-bottom: 0.85rem;
}
#editLeadModallg .lead-edit-section-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--phoenix-gray-900, #141824);
}
#editLeadModallg .lead-edit-section-sub {
  margin: 0.12rem 0 0;
  font-size: 0.76rem;
  color: var(--phoenix-gray-600, #6e7891);
}
#editLeadModallg .lead-edit-section-divider {
  height: 1px;
  background: var(--phoenix-border-color, #e3e6ed);
  margin: 1.15rem 0;
}
#editLeadModallg .lead-edit-site-panel {
  margin-top: 1.15rem;
  padding: 1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(114, 82, 211, 0.18);
  background: linear-gradient(180deg, #faf8ff 0%, #f5f2ff 100%);
}
#editLeadModallg .lead-edit-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.15rem 1rem;
  border-top: 1px solid var(--phoenix-border-color, #e3e6ed);
  background: #fff;
  flex-shrink: 0;
}
#editLeadModallg .lead-edit-footer .btn {
  min-width: 108px;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.48rem 1rem;
  font-size: 0.8125rem;
}
#editLeadModallg .lead-edit-footer .btn-primary {
  background: #31374a;
  border-color: #31374a;
}
#editLeadModallg .lead-edit-footer .btn-primary:hover {
  background: #252a3a;
  border-color: #252a3a;
}
#editLeadModallg .form-label {
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 0.32rem;
  color: var(--phoenix-gray-700, #4d5969);
}
#editLeadModallg .form-control,
#editLeadModallg .form-select {
  font-size: 0.8125rem;
  border-radius: 0.5rem;
  border-color: var(--phoenix-border-color, #e3e6ed);
  background-color: #fafbfc;
  min-height: 38px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
#editLeadModallg textarea.form-control {
  min-height: auto;
  resize: vertical;
}
#editLeadModallg .form-control::placeholder {
  color: #9aa3b5;
  font-weight: 500;
}
#editLeadModallg .form-control:focus,
#editLeadModallg .form-select:focus {
  border-color: #7252d3;
  box-shadow: 0 0 0 0.15rem rgba(114, 82, 211, 0.1);
  background-color: #fff;
}
#editLeadModallg .form-control[readonly],
#editLeadModallg .form-select:disabled {
  background-color: #eef1f6;
  color: #5c6578;
}
#editLeadModallg .lead-modal-section {
  background: var(--phoenix-gray-100, #f5f7fa);
  border: 1px solid var(--phoenix-border-color, #e3e6ed);
  border-radius: 0.65rem;
  padding: 1rem;
  margin-bottom: 0;
}
#editLeadModallg .lead-modal-section.lead-modal-section-flat {
  background: transparent;
  border: 0;
  padding: 0;
}
#editLeadModallg .lead-edit-table-wrap {
  border: 1px solid var(--phoenix-border-color, #e3e6ed);
  border-radius: 0.65rem;
  overflow: hidden;
}
#editLeadModallg .lead-edit-table {
  font-size: 0.8125rem;
  border-color: var(--phoenix-border-color, #e3e6ed);
  margin-bottom: 0;
}
#editLeadModallg .lead-edit-table thead th {
  background: var(--phoenix-gray-100, #f5f7fa);
  color: var(--phoenix-gray-800, #31374a);
  font-weight: 700;
  font-size: 0.74rem;
  white-space: nowrap;
  vertical-align: middle;
  padding: 0.62rem 0.75rem;
  border-color: var(--phoenix-border-color, #e3e6ed);
}
#editLeadModallg .lead-edit-table tbody td {
  vertical-align: middle;
  padding: 0.58rem 0.75rem;
  border-color: var(--phoenix-border-color, #e3e6ed);
  font-size: 0.78rem;
}
@media (max-width: 991.98px) {
  #editLeadModallg .lead-edit-layout {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 1rem);
  }
  #editLeadModallg .lead-edit-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--phoenix-border-color, #e3e6ed);
    min-height: auto;
  }
  #editLeadModallg .lead-edit-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 0.75rem;
    padding: 0.55rem 0;
  }
  #editLeadModallg .lead-edit-tab-content {
    max-height: min(380px, calc(100vh - 280px));
  }
}
@media (max-width: 575.98px) {
  #editLeadModallg .lead-edit-meta {
    grid-template-columns: 1fr;
  }
  #editLeadModallg .lead-edit-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  #editLeadModallg .lead-edit-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  #editLeadModallg .lead-edit-footer .btn {
    width: 100%;
  }
}

.quickview-wrapper {
  position: fixed;
  top: 0;
  right: -360px;
  width: 360px;
  max-width: 92vw;
  height: 100vh;
  background: #fff;
  z-index: 1050;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  transition: right 0.25s ease;
  overflow-y: auto;
}
.quickview-wrapper.open {
  right: 0;
}
.quickview-wrapper .quickview-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  text-decoration: none;
  color: #e74c3c;
  font-size: 1.1rem;
}

/* User Reports dashboard */
.user-reports-page .user-reports-filter-bar {
  background: #fff;
}
.user-reports-page .user-report-select {
  min-width: 150px;
  max-width: 180px;
}
.user-report-card {
  height: 100%;
  border: 1px solid var(--phoenix-border-color, #e3e6ed);
  border-radius: 0.5rem;
  overflow: hidden;
}
.user-report-card .card-header {
  background: #fff;
  border-bottom: 1px solid var(--phoenix-border-color, #e3e6ed);
  padding: 0.875rem 1.25rem;
}
.user-report-card .card-body {
  padding: 1rem 1.25rem 1.25rem;
}
.report-chart-wrap {
  position: relative;
  height: 300px;
  width: 100%;
  min-height: 260px;
}
.report-chart-wrap canvas {
  display: block;
  max-width: 100% !important;
}
.user-report-followup-card .user-report-followup {
  padding: 1rem 1.25rem 1.25rem;
}
.followup-total-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--phoenix-secondary-color, #6e7891);
  margin-bottom: 0.25rem;
}
.followup-total-value {
  font-size: 2rem;
  font-weight: 800;
  color: #7252d3;
  line-height: 1.1;
}
.followup-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.followup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  border-radius: 0.375rem;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.15s ease;
}
.followup-item:hover {
  opacity: 0.92;
  color: #fff;
}
.followup-item-label {
  font-size: 0.8rem;
  font-weight: 600;
}
.followup-item-value {
  font-size: 1rem;
  font-weight: 800;
}
.followup-today {
  background: #179f70;
}
.followup-missed {
  background: #b13333;
}
.followup-upcoming {
  background: #7252d3;
}
.pipeline-card {
  min-height: 0;
}
.pipeline-scroll {
  max-height: 420px;
  overflow-y: auto;
}
.pipeline-grid .btn {
  font-size: 0.7rem;
  padding: 0.45rem 0.5rem;
  white-space: normal;
  line-height: 1.3;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
@media (max-width: 1199.98px) {
  .pipeline-scroll {
    max-height: none;
    overflow: visible;
  }
  .report-chart-wrap {
    height: 280px;
  }
}

/* Phoenix login page */
.auth-card .auth-title-box {
  max-width: 100%;
}
@media (min-width: 768px) {
  .border-end-md {
    border-right: 1px solid var(--phoenix-border-color, #e3e6ed) !important;
  }
}
.login-page .form-control:focus {
  border-color: var(--phoenix-primary, #3874ff);
  box-shadow: 0 0 0 0.2rem rgba(56, 116, 255, 0.15);
}

/* Activity Log */
.activity-log-table td {
  vertical-align: middle;
}
.activity-detail-text {
  word-break: break-word;
}
.activity-detail-pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.8125rem;
  background: var(--phoenix-gray-100, #f5f7fa);
  border: 1px solid var(--phoenix-border-color, #e3e6ed);
  border-radius: 0.5rem;
  padding: 1rem;
  max-height: 60vh;
  overflow: auto;
  margin: 0;
}

/* Lead Details page */
.lead-detail-page {
  --ld-primary: var(--phoenix-primary, #3874ff);
  --ld-text: var(--phoenix-gray-900, #141824);
  --ld-muted: var(--phoenix-gray-600, #6e7891);
  --ld-border: var(--phoenix-border-color, #e3e6ed);
  --ld-card: var(--phoenix-body-highlight-bg, #fff);
  --ld-soft: var(--phoenix-gray-100, #f5f7fa);
  --ld-line: #e8ecf2;
}
.lead-detail-page .ld-shell {
  padding: 1.25rem 1.5rem 2rem;
}
.lead-detail-page .ld-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  font-size: 0.8125rem;
}
.lead-detail-page .ld-breadcrumb .breadcrumb-item a {
  color: var(--ld-primary);
  text-decoration: none;
  font-weight: 600;
}
.lead-detail-page .ld-breadcrumb .breadcrumb-item.active {
  color: var(--ld-muted);
}
.lead-detail-page .ld-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 1.25rem;
}
.lead-detail-page .ld-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ld-text);
  letter-spacing: -0.02em;
}
.lead-detail-page .ld-star {
  border: 0;
  background: transparent;
  color: #c5cad3;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.2rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.lead-detail-page .ld-star:hover {
  color: #f5b301;
  transform: scale(1.08);
}
.lead-detail-page .ld-star.is-on {
  color: #f5b301;
}
.lead-detail-page .ld-page-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.lead-detail-page .ld-btn-more,
.lead-detail-page .ld-btn-edit {
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
}
.lead-detail-page .ld-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.lead-detail-page .ld-card {
  background: var(--ld-card);
  border: 1px solid var(--ld-border);
  border-radius: 0.85rem;
  box-shadow: 0 1px 2px rgba(20, 24, 36, 0.04);
}
.lead-detail-page .ld-profile-card {
  padding: 1.25rem 1.15rem 1.35rem;
  position: sticky;
  top: 5.25rem;
}
.lead-detail-page .ld-profile-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}
.lead-detail-page .ld-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ld-soft);
  border: 1px solid var(--ld-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.lead-detail-page .ld-avatar img {
  width: 78%;
  height: auto;
}
.lead-detail-page .ld-profile-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  color: var(--ld-text);
  line-height: 1.25;
}
.lead-detail-page .ld-profile-phone,
.lead-detail-page .ld-profile-email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ld-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}
.lead-detail-page .ld-profile-phone:hover,
.lead-detail-page .ld-profile-email:hover {
  color: var(--ld-primary);
}
.lead-detail-page .ld-profile-phone i {
  font-size: 0.75rem;
}
.lead-detail-page .ld-profile-email {
  display: block;
  margin-top: 0.15rem;
  font-weight: 500;
}
.lead-detail-page .ld-profile-added {
  margin: 0.35rem 0 0;
  color: var(--ld-muted);
  font-size: 0.75rem;
}
.lead-detail-page .ld-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.lead-detail-page .ld-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.lead-detail-page .ld-chip-active {
  background: #dcfce7;
  color: #15803d;
}
.lead-detail-page .ld-chip-converted {
  background: #dbeafe;
  color: #1d4ed8;
}
.lead-detail-page .ld-chip-lost {
  background: #fee2e2;
  color: #b91c1c;
}
.lead-detail-page .ld-chip-source {
  background: #dbeafe;
  color: #1d4ed8;
}
.lead-detail-page .ld-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.lead-detail-page .ld-info-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.7rem;
  align-items: flex-start;
}
.lead-detail-page .ld-info-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ld-soft);
  color: var(--ld-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}
.lead-detail-page .ld-info-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ld-muted);
  margin-bottom: 0.1rem;
}
.lead-detail-page .ld-info-value {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ld-text);
  line-height: 1.4;
  word-break: break-word;
}
.lead-detail-page .ld-info-value.is-empty {
  color: #9aa3b5;
  font-weight: 500;
}
.lead-detail-page .ld-activity-card {
  min-width: 0;
  padding: 0.35rem 0 1.15rem;
}
.lead-detail-page .ld-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem 1.25rem 0;
  border-bottom: 1px solid var(--ld-border);
  margin: 0;
}
.lead-detail-page .ld-tabs .nav-link {
  border: 0;
  background: transparent;
  color: var(--ld-muted);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 0.7rem 0.7rem;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.lead-detail-page .ld-tabs .nav-link:hover {
  color: var(--ld-primary);
}
.lead-detail-page .ld-tabs .nav-link.active {
  color: var(--ld-primary);
  border-bottom-color: var(--ld-primary);
}
.lead-detail-page .ld-activity-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.25rem 0.35rem;
}
.lead-detail-page .ld-filter-select {
  min-width: 160px;
  width: auto;
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
}
.lead-detail-page .ld-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 0.5rem;
  border: 1px solid var(--ld-border);
  background: var(--ld-card);
  color: var(--ld-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lead-detail-page .ld-icon-btn:hover {
  color: var(--ld-primary);
  border-color: var(--ld-primary);
}
.lead-detail-page .ld-add-btn {
  font-weight: 700;
  border-radius: 0.5rem;
}
.lead-detail-page .ld-tab-content {
  padding: 0.75rem 1.25rem 0.25rem;
}
.lead-detail-page .ld-timeline {
  display: flex;
  flex-direction: column;
}
.lead-detail-page .ld-timeline-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.9rem;
  padding-bottom: 1.25rem;
  animation: ldFadeUp 0.35s ease both;
}
.lead-detail-page .ld-timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.lead-detail-page .ld-timeline-rail::after {
  content: "";
  position: absolute;
  top: 42px;
  bottom: -1.25rem;
  width: 2px;
  background: var(--ld-line);
}
.lead-detail-page .ld-timeline-item.ld-is-last .ld-timeline-rail::after,
.lead-detail-page .ld-timeline-item:last-child .ld-timeline-rail::after {
  display: none;
}
.lead-detail-page .ld-timeline-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
  z-index: 1;
}
.lead-detail-page .ld-timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.lead-detail-page .ld-timeline-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
  color: var(--ld-text);
}
.lead-detail-page .ld-timeline-meta {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--ld-muted);
}
.lead-detail-page .ld-timeline-desc {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  color: #5c6578;
  line-height: 1.5;
}
.lead-detail-page .ld-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.lead-detail-page .ld-tone-enquiry {
  background: #3b82f6;
}
.lead-detail-page .ld-status-badge.ld-tone-enquiry {
  background: #dbeafe;
  color: #1d4ed8;
}
.lead-detail-page .ld-tone-remark {
  background: #7c3aed;
}
.lead-detail-page .ld-status-badge.ld-tone-remark {
  background: #ede9fe;
  color: #6d28d9;
}
.lead-detail-page .ld-tone-completed {
  background: #10b981;
}
.lead-detail-page .ld-status-badge.ld-tone-completed {
  background: #d1fae5;
  color: #047857;
}
.lead-detail-page .ld-tone-scheduled {
  background: #f59e0b;
}
.lead-detail-page .ld-status-badge.ld-tone-scheduled {
  background: #ffedd5;
  color: #c2410c;
}
.lead-detail-page .ld-tone-pending {
  background: #eab308;
}
.lead-detail-page .ld-status-badge.ld-tone-pending {
  background: #fef9c3;
  color: #a16207;
}
.lead-detail-page .ld-tone-missed {
  background: #ef4444;
}
.lead-detail-page .ld-status-badge.ld-tone-missed {
  background: #fee2e2;
  color: #b91c1c;
}
.lead-detail-page .ld-tone-cancelled {
  background: #94a3b8;
}
.lead-detail-page .ld-status-badge.ld-tone-cancelled {
  background: #e2e8f0;
  color: #475569;
}
.lead-detail-page .ld-load-more {
  display: block;
  margin: 0.25rem auto 0.4rem;
  border: 1px solid var(--ld-border);
  background: var(--ld-card);
  color: var(--ld-primary);
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
  padding: 0.45rem 1.15rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lead-detail-page .ld-load-more:hover {
  background: #eff4ff;
  border-color: var(--ld-primary);
}
.lead-detail-page .ld-empty {
  text-align: center;
  color: var(--ld-muted);
  padding: 2.5rem 1rem;
}
.lead-detail-page .ld-empty i {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  display: block;
}
.lead-detail-page .ld-empty p {
  margin: 0;
  font-weight: 600;
}
@keyframes ldFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 991.98px) {
  .lead-detail-page .ld-layout {
    grid-template-columns: 1fr;
  }
  .lead-detail-page .ld-profile-card {
    position: static;
  }
  .lead-detail-page .ld-shell {
    padding: 1rem 0.85rem 1.5rem;
  }
}
@media (max-width: 575.98px) {
  .lead-detail-page .ld-page-title {
    font-size: 1.4rem;
  }
  .lead-detail-page .ld-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .lead-detail-page .ld-tabs .nav-link {
    white-space: nowrap;
  }
  .lead-detail-page .ld-timeline-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

