:root {
  --livewire-progress-bar-color: #9A0058;
}

#nprogress .spinner {
  display: none;
}

html.expanded #miniSidebar .nav-link[data-current],
html.collapsed #miniSidebar .nav-link[data-current],
.offcanvasNav .nav-link[data-current] {
  color: var(--ds-primary-text-emphasis);
  background-color: var(--ds-primary-bg-subtle);
}

html[data-bs-theme="dark"].expanded #miniSidebar .nav-link[data-current],
html[data-bs-theme="dark"].collapsed #miniSidebar .nav-link[data-current],
[data-bs-theme="dark"] .offcanvasNav .nav-link[data-current] {
  color: #f4c2dc;
  background-color: rgba(154, 0, 88, 0.35);
}

.ajax-modal-loader {
  padding: 40px;
  text-align: center;
}

.ajax-modal-loader .spinner-border {
  width: 3rem;
  height: 3rem;
}

.app-toast-stack {
  position: fixed;
  top: 90px;
  right: 24px;
  left: auto;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

html.collapsed .app-toast-stack {
  right: 24px;
  left: auto;
}

.auth-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.auth-bg {
  position: fixed;
  inset: -20px;
  z-index: 0;
  pointer-events: none;
  background-color: #fff8fb;
  background-image: var(--auth-bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(6px);
}

.auth-page main {
  position: relative;
  z-index: 1;
}

.auth-page .card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(154, 0, 88, 0.12);
}

.auth-page .app-toast-stack {
  right: 16px;
  left: auto;
  top: 16px;
}

[data-bs-theme="dark"] .auth-bg {
  filter: blur(6px) brightness(0.42);
  background-color: #1c252e;
}

[data-bs-theme="dark"] .auth-page .card {
  background: rgba(28, 37, 46, 0.88);
}

@media (max-width: 990px) {
  .app-toast-stack {
    right: 16px;
    left: auto;
    top: 16px;
  }
}

.app-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.45;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 12px 14px 12px 16px;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.app-toast-body {
  flex: 1;
}

.app-toast-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.8;
  cursor: pointer;
  padding: 0 2px;
}

.app-toast-success,
.app-toast-primary {
  background: #16a34a;
}

.app-toast-danger,
.app-toast-error {
  background: #dc3545;
}

.app-toast-warning {
  background: #f59e0b;
  color: #1c252e;
}

.app-toast-info {
  background: #0ea5e9;
  color: #fff;
}

.user-avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #9A0058;
  color: #fff;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  font-family: "Public Sans", sans-serif;
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.user-avatar-md {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.user-avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 20px;
}

.dashboard-stat-icon {
  color: #fff;
}

.dashboard-stat-icon-leads {
  background: #c2185b;
}

.dashboard-stat-icon-users {
  background: #9a0058;
}

.dashboard-stat-icon-calls {
  background: #6e003f;
}

.dashboard-stat-icon-sources {
  background: #83004b;
}

.dashboard-stat-icon-converted {
  background: #198754;
}

.dashboard-stat-card {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.dashboard-stat-card:hover {
  box-shadow: 0 10px 24px rgba(154, 0, 88, 0.12);
}

.dashboard-chart-wrap {
  position: relative;
  height: 320px;
}

.dashboard-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

.dashboard-status-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.dashboard-status-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #6c757d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-status-ring i {
  font-size: 0.9rem;
  line-height: 1;
}

.dashboard-status-name {
  font-weight: 700;
  color: var(--ds-gray-800, #212b36);
  line-height: 1.25;
}

.dashboard-status-count {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--ds-gray-500, #919eab);
}

@media (max-width: 1199.98px) {
  .dashboard-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .dashboard-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .dashboard-status-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-activity {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bs-border-color);
}

.dashboard-activity:last-child {
  border-bottom: 0;
}

.dashboard-activity-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #c2185b;
}

.dashboard-activity-clickable {
  cursor: pointer;
}

.dashboard-activity-clickable:hover {
  background: var(--bs-tertiary-bg);
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 8px;
}

[data-bs-theme="dark"] {
  --ds-navbar-bg: #1c252e;
  --ds-primary-bg-subtle: rgba(154, 0, 88, 0.35);
  --ds-primary-border-subtle: #c44a88;
  --ds-primary-text-emphasis: #f4c2dc;
  --ds-primary-lighter: #c2185b;
  --ds-primary-light: #e070a8;
  --ds-link-color: #f4c2dc;
  --ds-link-hover-color: #f7d6e7;
}

[data-bs-theme="dark"] .dashboard-hero {
  background: linear-gradient(94.82deg, #c2185b 0%, #6e003f 100%);
  color: #fff;
}

[data-bs-theme="dark"] .page-footer {
  background-color: #1c252e;
  border-top-color: #454f5b;
}

[data-bs-theme="dark"] .page-footer p {
  color: #c4cdd5;
}

[data-bs-theme="dark"] .text-success {
  color: #7adc9e !important;
}

[data-bs-theme="dark"] .text-warning {
  color: #ffcd66 !important;
}

[data-bs-theme="dark"] .text-info {
  color: #66d4e8 !important;
}

html[data-bs-theme="dark"].expanded #miniSidebar .nav-link.active,
html[data-bs-theme="dark"].collapsed #miniSidebar .nav-link.active {
  color: #f4c2dc;
  background-color: rgba(154, 0, 88, 0.35);
}

[data-bs-theme="dark"] .progress-bar {
  background-color: #9a0058;
}

#miniSidebar .navbar-nav,
.offcanvasNav .navbar-nav {
  min-height: calc(100vh - 4.5rem);
}

[x-persist="overlays"],
.app-overlays {
  position: relative;
  z-index: 2000;
}

.modal {
  z-index: 2000;
}

.modal-dialog {
  margin: 1.75rem auto;
}

.modal-content {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.modal-backdrop {
  display: none !important;
}

.page-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 15.875rem;
  z-index: 10;
  padding: 0.75rem 1.5rem;
  text-align: center;
  background-color: var(--ds-body-bg);
  border-top: 1px dashed var(--ds-gray-300);
}

body.modal-open .page-footer {
  z-index: 0;
}

.page-footer p {
  font-size: 0.8125rem;
  color: var(--ds-gray-600);
  white-space: nowrap;
}

html.collapsed .page-footer {
  left: 3.75rem;
}

@media (max-width: 990px) {
  .page-footer {
    left: 0;
  }
}

#content {
  padding-bottom: 4.5rem !important;
}

.brand-logo-full {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.brand-logo-icon {
  display: none;
  height: 32px;
  width: 32px;
  object-fit: contain;
}

html.collapsed #miniSidebar .brand-logo-full {
  display: none;
}

html.collapsed #miniSidebar .brand-logo-icon {
  display: block;
}

html.expanded #miniSidebar .brand-logo-full {
  display: block;
}

html.expanded #miniSidebar .brand-logo-icon {
  display: none;
}

.password-field .passwordToggler {
  cursor: pointer;
}

.card-lg .dataTables_wrapper {
  padding: 0 1.5rem 1.5rem;
}

div.dataTables_wrapper .dataTables_length,
div.dataTables_wrapper .dataTables_filter {
  margin-bottom: 1rem;
}

div.dataTables_wrapper .dataTables_info,
div.dataTables_wrapper .dataTables_paginate {
  margin-top: 1rem;
}

div.dataTables_wrapper .dataTables_filter input {
  margin-left: 0.5rem;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .form-control-plaintext,
[data-bs-theme="dark"] .dataTables_filter input,
[data-bs-theme="dark"] .dataTables_length select {
  color: var(--ds-gray-800);
  background-color: var(--ds-gray-200);
  -webkit-text-fill-color: var(--ds-gray-800);
  caret-color: var(--ds-gray-800);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] .dataTables_filter input:focus,
[data-bs-theme="dark"] .dataTables_length select:focus {
  color: var(--ds-gray-800);
  background-color: var(--ds-gray-200);
  -webkit-text-fill-color: var(--ds-gray-800);
  caret-color: var(--ds-gray-800);
}

[data-bs-theme="dark"] .form-control::placeholder,
[data-bs-theme="dark"] .form-select::placeholder,
[data-bs-theme="dark"] .dataTables_filter input::placeholder {
  color: var(--ds-gray-500);
  -webkit-text-fill-color: var(--ds-gray-500);
  opacity: 1;
}

[data-bs-theme="dark"] .form-control:-webkit-autofill,
[data-bs-theme="dark"] .form-control:-webkit-autofill:hover,
[data-bs-theme="dark"] .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ds-gray-800);
  caret-color: var(--ds-gray-800);
  box-shadow: 0 0 0 1000px var(--ds-gray-200) inset;
  transition: background-color 9999s ease-out;
}

[data-bs-theme="dark"] .modal {
  --ds-modal-color: #f4f6f8;
  --ds-modal-bg: #1c252e;
}

[data-bs-theme="dark"] .modal-content {
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55);
  border-color: #454f5b;
}

[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-body,
[data-bs-theme="dark"] .modal-footer,
[data-bs-theme="dark"] .modal-title {
  color: var(--ds-gray-800);
}

.app-confirm-modal .modal-dialog {
  max-width: 380px;
}

.app-confirm-card {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  border: 1px solid var(--ds-border-color);
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.app-confirm-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
}

.app-confirm-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #9a0058;
  background: rgba(154, 0, 88, 0.12);
}

.app-confirm-modal.is-danger .app-confirm-icon {
  color: #ff5630;
  background: rgba(255, 86, 48, 0.12);
}

.app-confirm-title {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.app-confirm-text {
  margin-bottom: 1.5rem;
  color: var(--ds-gray-600);
}

.app-confirm-actions {
  display: flex;
  gap: 0.75rem;
}

.app-confirm-actions .btn {
  flex: 1;
}

[data-bs-theme="dark"] .app-confirm-card {
  background: #1c252e;
  border-color: #454f5b;
}

[data-bs-theme="dark"] .app-confirm-title,
[data-bs-theme="dark"] .app-confirm-text {
  color: #f4f6f8;
}

[data-bs-theme="dark"] .app-confirm-text {
  color: #c4cdd5;
}

[data-bs-theme="dark"] .app-confirm-icon {
  color: #e070a8;
  background: rgba(224, 112, 168, 0.16);
}

[data-bs-theme="dark"] .app-confirm-modal.is-danger .app-confirm-icon {
  color: #ff8a70;
  background: rgba(255, 86, 48, 0.16);
}

.swal2-container {
  z-index: 20000;
}

.app-swal.swal2-popup {
  background: var(--ds-modal-bg, #fff);
  color: var(--ds-gray-800);
  border: 1px solid var(--ds-border-color);
  border-radius: 1rem !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  padding: 2rem 1.5rem 1.5rem;
}

.app-swal .swal2-title,
.app-swal-title {
  color: var(--ds-gray-800);
  font-weight: 700;
}

.app-swal .swal2-html-container,
.app-swal-text {
  color: var(--ds-gray-600) !important;
}

.app-swal-actions {
  margin-top: 1.25rem !important;
  gap: 0.75rem;
}

.app-swal-actions .btn {
  min-width: 5.5rem;
}

[data-bs-theme="dark"] .swal2-container.swal2-backdrop-show,
[data-bs-theme="dark"] .swal2-container.swal2-noanimation {
  background: rgba(8, 12, 18, 0.72);
}

[data-bs-theme="dark"] .app-swal.swal2-popup {
  background: #1c252e;
  color: #f4f6f8;
  border-color: #454f5b;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55);
}

[data-bs-theme="dark"] .app-swal .swal2-title,
[data-bs-theme="dark"] .app-swal-title {
  color: #f4f6f8;
}

[data-bs-theme="dark"] .app-swal .swal2-html-container,
[data-bs-theme="dark"] .app-swal-text {
  color: #c4cdd5 !important;
}

[data-bs-theme="dark"] .app-swal .swal2-icon.swal2-success {
  border-color: rgba(74, 222, 128, 0.35);
  color: #4ade80;
}

[data-bs-theme="dark"] .app-swal .swal2-icon.swal2-success [class^=swal2-success-line] {
  background-color: #4ade80;
}

[data-bs-theme="dark"] .app-swal .swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(74, 222, 128, 0.35);
}

[data-bs-theme="dark"] .app-swal .swal2-icon.swal2-error {
  border-color: rgba(255, 86, 48, 0.4);
  color: #ff8a70;
}

[data-bs-theme="dark"] .app-swal .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
  background-color: #ff8a70;
}

[data-bs-theme="dark"] .app-swal .swal2-icon.swal2-warning {
  border-color: rgba(255, 171, 0, 0.45);
  color: #ffc14d;
}

[data-bs-theme="dark"] .app-swal .swal2-icon.swal2-info {
  border-color: rgba(0, 184, 217, 0.4);
  color: #5ee1f5;
}

.lead-assign-all-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ds-border-color);
  border-radius: 0.75rem;
  background: var(--ds-gray-100);
}

.lead-assign-all-check .form-check-input {
  float: none;
  margin: 0.3rem 0 0;
  flex-shrink: 0;
}

.lead-assign-all-check .form-check-label {
  cursor: pointer;
}

.telecaller-picker {
  border: 1px solid var(--ds-input-border-color, var(--ds-border-color));
  border-radius: 0.5rem;
  background: var(--ds-body-bg);
  max-height: 220px;
  overflow-y: auto;
}

.telecaller-picker-empty {
  padding: 1.15rem 1rem;
  color: var(--ds-gray-600);
  font-size: 0.875rem;
}

.telecaller-picker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--ds-border-color);
  cursor: pointer;
  font-weight: 500;
}

.telecaller-picker-item:last-child {
  border-bottom: 0;
}

.telecaller-picker-item:hover,
.telecaller-picker-item.is-selected {
  background: var(--ds-gray-200);
}

.telecaller-picker-item .form-check-input {
  float: none;
  margin: 0;
  flex-shrink: 0;
}

.lead-upload-guide {
  border: 1px solid var(--ds-border-color);
  border-radius: 0.75rem;
  background: var(--ds-gray-100);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  color: var(--ds-gray-800);
}

.lead-upload-guide-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lead-upload-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.25rem;
  margin-bottom: 0.85rem;
}

.lead-upload-col {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
}

.lead-upload-col-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 0.35rem;
  background: rgba(154, 0, 88, 0.12);
  color: var(--ds-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.lead-upload-guide-note {
  font-size: 0.8125rem;
  color: var(--ds-gray-600);
}

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

[data-bs-theme="dark"] .lead-assign-all-check,
[data-bs-theme="dark"] .lead-upload-guide,
[data-bs-theme="dark"] .telecaller-picker {
  background: #161c24;
  border-color: #454f5b;
}

[data-bs-theme="dark"] .lead-upload-guide,
[data-bs-theme="dark"] .telecaller-picker-item {
  color: #f4f6f8;
}

[data-bs-theme="dark"] .telecaller-picker-item {
  border-bottom-color: #454f5b;
}

[data-bs-theme="dark"] .telecaller-picker-item:hover,
[data-bs-theme="dark"] .telecaller-picker-item.is-selected {
  background: rgba(154, 0, 88, 0.18);
}

[data-bs-theme="dark"] .lead-upload-col-key {
  background: rgba(154, 0, 88, 0.28);
  color: #f4c2dc;
}

[data-bs-theme="dark"] .lead-upload-guide-note,
[data-bs-theme="dark"] .telecaller-picker-empty {
  color: #c4cdd5;
}

.lead-row-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.25rem;
  white-space: nowrap;
}

.lead-row-actions .btn-icon {
  width: 2rem;
  height: 2rem;
}

.lead-row-actions-divider {
  margin: 0.4rem 0 0.1rem;
  opacity: 0.35;
}

.lead-registration-field {
  min-width: 160px;
  text-align: left;
}

.lead-registration-field-title {
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.lead-registration-field hr {
  margin: 0.4rem 0 0;
  opacity: 0.35;
  border-color: var(--ds-border-color);
}

.lead-btn-open {
  color: #f59e0b !important;
  border-color: #f59e0b !important;
}

.lead-btn-copy {
  color: #22d3ee !important;
  border-color: #22d3ee !important;
}

.lead-registration-field .lead-row-actions {
  align-items: center;
  gap: 0.4rem;
}

.lead-reg-status {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.28rem 0.5rem;
}

.lead-reg-status-pending {
  color: #92400e;
  background: #fef3c7;
}

.lead-reg-status-approved {
  color: #166534;
  background: #dcfce7;
}

.lead-reg-status-rejected {
  color: #991b1b;
  background: #fee2e2;
}

.lead-btn-details {
  width: auto !important;
  height: 2rem;
  padding: 0 0.7rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff !important;
  background: #9A0058 !important;
  border-color: #9A0058 !important;
}

.lead-btn-details-pending {
  background: #d97706 !important;
  border-color: #d97706 !important;
}

.lead-btn-details-approved {
  background: #15803d !important;
  border-color: #15803d !important;
}

.lead-btn-details-rejected {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

[data-bs-theme="dark"] .lead-btn-open {
  color: #fbbf24 !important;
  border-color: #f59e0b !important;
}

[data-bs-theme="dark"] .lead-btn-copy {
  color: #67e8f9 !important;
  border-color: #22d3ee !important;
}

.lead-btn-convert {
  color: #d97706 !important;
  border-color: #d97706 !important;
}

.lead-btn-convert-pill {
  width: auto !important;
  height: 2rem;
  padding: 0 0.7rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff !important;
  background: #d97706 !important;
  border-color: #d97706 !important;
  border-radius: 0.375rem;
}

.lead-btn-convert-pill:hover,
.lead-btn-convert-pill:focus {
  background: #b45309 !important;
  border-color: #b45309 !important;
  color: #fff !important;
}

[data-bs-theme="dark"] .lead-btn-convert {
  color: #fbbf24 !important;
  border-color: #f59e0b !important;
}

[data-bs-theme="dark"] .lead-btn-convert-pill {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #1e293b !important;
}

[data-bs-theme="dark"] .lead-btn-convert-pill:hover,
[data-bs-theme="dark"] .lead-btn-convert-pill:focus {
  background: #fbbf24 !important;
  border-color: #fbbf24 !important;
  color: #0f172a !important;
}

[data-bs-theme="dark"] .lead-reg-status-pending {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.22);
}

[data-bs-theme="dark"] .lead-reg-status-approved {
  color: #86efac;
  background: rgba(22, 163, 74, 0.22);
}

[data-bs-theme="dark"] .lead-reg-status-rejected {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.22);
}

.registration-details .card {
  border-radius: 0.75rem;
}

.reg-details-page {
  width: 100%;
  max-width: none;
}

.reg-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: 1.1rem;
  background:
    linear-gradient(135deg, rgba(154, 0, 88, 0.18), rgba(154, 0, 88, 0.04) 55%, transparent),
    var(--ds-modal-bg, var(--bs-body-bg));
  border: 1px solid rgba(154, 0, 88, 0.18);
}

.reg-toolbar-copy h1 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0.35rem 0 0.15rem;
}

.reg-toolbar-copy p {
  margin: 0;
  color: var(--ds-gray-600, #637381);
}

.reg-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
}

.reg-back:hover {
  opacity: 1;
  color: #9A0058;
}

.reg-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.reg-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.reg-status-pending {
  color: #92400e;
  background: #fef3c7;
}

.reg-status-approved {
  color: #166534;
  background: #dcfce7;
}

.reg-status-rejected {
  color: #991b1b;
  background: #fee2e2;
}

[data-bs-theme="dark"] .reg-status-pending {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.22);
}

[data-bs-theme="dark"] .reg-status-approved {
  color: #86efac;
  background: rgba(22, 163, 74, 0.22);
}

[data-bs-theme="dark"] .reg-status-rejected {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.22);
}

.reg-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.reg-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: var(--ds-modal-bg, var(--bs-tertiary-bg));
  border: 1px solid var(--ds-border-color, rgba(145, 158, 171, 0.18));
  min-height: 88px;
}

.reg-stat-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(154, 0, 88, 0.12);
  color: #9A0058;
  flex-shrink: 0;
}

.reg-stat small,
.reg-review-grid small,
.reg-edit-hint {
  display: block;
  color: var(--ds-gray-600, #637381);
  font-size: 0.75rem;
  font-weight: 600;
}

.reg-stat strong,
.reg-review-grid strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  word-break: break-word;
}

.reg-edit-hint {
  margin: 0 0 1.1rem;
  font-weight: 500;
}

.reg-panel {
  background: var(--ds-modal-bg, var(--bs-body-bg));
  border: 1px solid var(--ds-border-color, rgba(145, 158, 171, 0.18));
  border-radius: 1.15rem;
  padding: 1.15rem 1.2rem 1.25rem;
}

.reg-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.reg-section-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #b3126a, #9A0058);
  color: #fff;
  flex-shrink: 0;
}

.reg-section-head h5 {
  margin: 0;
  font-weight: 800;
}

.reg-section-head p {
  margin: 0;
  color: var(--ds-gray-600, #637381);
  font-size: 0.8rem;
}

.reg-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.reg-inline-field[data-field="street"] {
  grid-column: 1 / -1;
}

.reg-inline-field {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--ds-border-color, rgba(145, 158, 171, 0.16));
  border-radius: 0.85rem;
  background: rgba(145, 158, 171, 0.06);
}

.reg-inline-field.is-editable:hover {
  border-color: rgba(154, 0, 88, 0.35);
  background: rgba(154, 0, 88, 0.06);
}

.reg-inline-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ds-gray-600, #637381);
  margin-bottom: 0.25rem;
}

.reg-inline-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.75rem;
}

.reg-inline-value {
  flex: 1;
  word-break: break-word;
  font-weight: 600;
}

.reg-inline-icon {
  border: 0;
  background: rgba(154, 0, 88, 0.1);
  color: #9A0058;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reg-inline-icon:hover,
.reg-inline-icon:focus {
  background: #9A0058;
  color: #fff;
}

.reg-inline-editor {
  display: none;
  align-items: flex-start;
  gap: 0.5rem;
}

.reg-inline-field.is-editing .reg-inline-display {
  display: none;
}

.reg-inline-field.is-editing .reg-inline-editor {
  display: flex;
}

.reg-inline-editor .form-control,
.reg-inline-editor .form-select {
  flex: 1;
}

.reg-inline-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.reg-inline-phone {
  display: flex;
  gap: 0.5rem;
  flex: 1;
}

.reg-inline-phone .form-select {
  max-width: 5.5rem;
  flex: 0 0 5.5rem;
}

.reg-inline-field.is-saving {
  opacity: 0.65;
  pointer-events: none;
}

.reg-doc-card {
  border: 1px solid var(--ds-border-color, rgba(145, 158, 171, 0.18));
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(145, 158, 171, 0.05);
}

.reg-doc-preview-link {
  display: block;
}

.reg-doc-preview {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0.75rem;
}

.reg-doc-file,
.reg-doc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 180px;
  border-radius: 0.75rem;
  background: rgba(154, 0, 88, 0.08);
  color: var(--ds-gray-600, #637381);
}

.reg-doc-file i {
  font-size: 2rem;
  color: #9A0058;
}

.reg-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.reg-review-grid > div {
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  background: rgba(145, 158, 171, 0.06);
}

@media (max-width: 1199px) {
  .reg-field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .reg-stats,
  .reg-field-grid,
  .reg-review-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .reg-stats,
  .reg-field-grid,
  .reg-review-grid {
    grid-template-columns: 1fr;
  }

  .reg-inline-editor,
  .reg-inline-phone {
    flex-wrap: wrap;
  }

  .reg-inline-phone .form-select {
    max-width: none;
    flex: 1 1 100%;
  }

  .reg-inline-actions {
    width: 100%;
  }
}

.lead-view {
  padding: 0.25rem 0.15rem 0.5rem;
}

.lead-view-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1.1rem;
  background:
    linear-gradient(135deg, rgba(154, 0, 88, 0.18), rgba(154, 0, 88, 0.04) 55%, transparent),
    var(--ds-modal-bg, var(--bs-body-bg));
  border: 1px solid rgba(154, 0, 88, 0.18);
}

.lead-view-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ds-gray-600, #637381);
}

.lead-view-name {
  margin: 0.2rem 0 0.45rem;
  font-weight: 800;
}

.lead-view-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  color: var(--ds-gray-600, #637381);
  font-size: 0.9rem;
}

.lead-view-contacts a {
  color: #1d7a46;
  text-decoration: none;
  font-weight: 600;
}

.lead-view-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.lead-view-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.lead-view-panel {
  background: var(--ds-modal-bg, var(--bs-body-bg));
  border: 1px solid var(--ds-border-color, rgba(145, 158, 171, 0.18));
  border-radius: 1.1rem;
  padding: 1.05rem 1.15rem 1.15rem;
  margin-bottom: 1rem;
}

.lead-view-section-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.95rem;
}

.lead-view-section-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #b3126a, #9A0058);
  color: #fff;
  flex-shrink: 0;
}

.lead-view-section-head h6 {
  margin: 0;
  font-weight: 800;
}

.lead-view-section-head p {
  margin: 0;
  color: var(--ds-gray-600, #637381);
  font-size: 0.78rem;
}

.lead-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.lead-view-grid > div,
.lead-view-notes {
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  background: rgba(145, 158, 171, 0.08);
}

.lead-view-span,
.lead-view-notes {
  grid-column: 1 / -1;
}

.lead-view-grid small,
.lead-view-notes small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ds-gray-600, #637381);
}

.lead-view-grid strong,
.lead-view-notes p {
  display: block;
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  word-break: break-word;
}

.lead-view-notes {
  margin-top: 0.7rem;
}

.lead-view-history {
  max-height: 72vh;
  overflow: auto;
}

.lead-view-timeline {
  position: relative;
  padding-left: 1.15rem;
}

.lead-view-timeline::before {
  content: '';
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.28rem;
  width: 2px;
  background: rgba(154, 0, 88, 0.28);
}

.lead-view-activity {
  position: relative;
  margin-bottom: 0.85rem;
}

.lead-view-dot {
  position: absolute;
  left: -1.02rem;
  top: 0.85rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #9A0058;
  border: 2px solid var(--ds-modal-bg, var(--bs-body-bg));
  box-shadow: 0 0 0 2px rgba(154, 0, 88, 0.25);
}

.lead-view-activity-card {
  padding: 0.8rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(145, 158, 171, 0.08);
}

.lead-view-activity-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.lead-view-activity-top small,
.lead-view-activity-by {
  color: var(--ds-gray-600, #637381);
}

.lead-view-activity-desc {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
}

.lead-view-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.lead-view-chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(154, 0, 88, 0.12);
  color: inherit;
}

.lead-view-activity-note {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--ds-gray-600, #637381);
}

.lead-view-activity-by {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.75rem;
}

.lead-view-empty {
  text-align: center;
  color: var(--ds-gray-600, #637381);
  padding: 2rem 0;
}

@media (max-width: 767px) {
  .lead-view-hero-side {
    align-items: flex-start;
  }

  .lead-view-badges {
    justify-content: flex-start;
  }

  .lead-view-grid {
    grid-template-columns: 1fr;
  }
}

/* Sticky Left Columns for Leads Table (#, Actions, Registration, Name) */
#leads-table th.col-index,
#leads-table td.col-index,
.leads-table th.col-index,
.leads-table td.col-index,
#leads-table thead th:nth-child(1),
#leads-table tbody td:nth-child(1),
.dataTables_scrollHead table#leads-table thead th:nth-child(1),
.dataTables_scrollBody table#leads-table tbody td:nth-child(1),
.dataTables_scrollHead table.leads-table thead th:nth-child(1),
.dataTables_scrollBody table.leads-table tbody td:nth-child(1) {
  position: sticky !important;
  left: 0 !important;
  z-index: 6;
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  text-align: center !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

#leads-table th.col-actions,
#leads-table td.col-actions,
.leads-table th.col-actions,
.leads-table td.col-actions,
#leads-table thead th:nth-child(2),
#leads-table tbody td:nth-child(2),
.dataTables_scrollHead table#leads-table thead th:nth-child(2),
.dataTables_scrollBody table#leads-table tbody td:nth-child(2),
.dataTables_scrollHead table.leads-table thead th:nth-child(2),
.dataTables_scrollBody table.leads-table tbody td:nth-child(2) {
  position: sticky !important;
  left: 64px !important;
  z-index: 5;
  width: 175px !important;
  min-width: 175px !important;
  max-width: 175px !important;
  text-align: center;
  box-sizing: border-box !important;
}

#leads-table th.col-registration,
#leads-table td.col-registration,
.leads-table th.col-registration,
.leads-table td.col-registration,
#leads-table thead th:nth-child(3),
#leads-table tbody td:nth-child(3),
.dataTables_scrollHead table#leads-table thead th:nth-child(3),
.dataTables_scrollBody table#leads-table tbody td:nth-child(3),
.dataTables_scrollHead table.leads-table thead th:nth-child(3),
.dataTables_scrollBody table.leads-table tbody td:nth-child(3) {
  position: sticky !important;
  left: 239px !important;
  z-index: 5;
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  box-sizing: border-box !important;
}

#leads-table th.col-name,
#leads-table td.col-name,
.leads-table th.col-name,
.leads-table td.col-name,
#leads-table thead th:nth-child(4),
#leads-table tbody td:nth-child(4),
.dataTables_scrollHead table#leads-table thead th:nth-child(4),
.dataTables_scrollBody table#leads-table tbody td:nth-child(4),
.dataTables_scrollHead table.leads-table thead th:nth-child(4),
.dataTables_scrollBody table.leads-table tbody td:nth-child(4) {
  position: sticky !important;
  left: 379px !important;
  z-index: 5;
  width: 175px !important;
  min-width: 175px !important;
  max-width: 175px !important;
  box-sizing: border-box !important;
  box-shadow: 4px 0 10px -2px rgba(0, 0, 0, 0.2) !important;
  border-right: 1px solid var(--ds-border-color, #dfe3e8) !important;
}

#leads-table thead th:nth-child(1),
#leads-table thead th:nth-child(2),
#leads-table thead th:nth-child(3),
#leads-table thead th:nth-child(4),
.leads-table thead th.col-index,
.leads-table thead th.col-actions,
.leads-table thead th.col-registration,
.leads-table thead th.col-name,
.dataTables_scrollHead table.leads-table thead th:nth-child(1),
.dataTables_scrollHead table.leads-table thead th:nth-child(2),
.dataTables_scrollHead table.leads-table thead th:nth-child(3),
.dataTables_scrollHead table.leads-table thead th:nth-child(4) {
  z-index: 8 !important;
  background-color: #f8fafc !important;
}

[data-bs-theme="dark"] #leads-table thead th:nth-child(1),
[data-bs-theme="dark"] #leads-table thead th:nth-child(2),
[data-bs-theme="dark"] #leads-table thead th:nth-child(3),
[data-bs-theme="dark"] #leads-table thead th:nth-child(4),
[data-bs-theme="dark"] .leads-table thead th.col-index,
[data-bs-theme="dark"] .leads-table thead th.col-actions,
[data-bs-theme="dark"] .leads-table thead th.col-registration,
[data-bs-theme="dark"] .leads-table thead th.col-name,
[data-bs-theme="dark"] .dataTables_scrollHead table.leads-table thead th:nth-child(1),
[data-bs-theme="dark"] .dataTables_scrollHead table.leads-table thead th:nth-child(2),
[data-bs-theme="dark"] .dataTables_scrollHead table.leads-table thead th:nth-child(3),
[data-bs-theme="dark"] .dataTables_scrollHead table.leads-table thead th:nth-child(4) {
  background-color: #1a2234 !important;
}

#leads-table tbody td:nth-child(1),
#leads-table tbody td:nth-child(2),
#leads-table tbody td:nth-child(3),
#leads-table tbody td:nth-child(4),
.leads-table tbody td.col-index,
.leads-table tbody td.col-actions,
.leads-table tbody td.col-registration,
.leads-table tbody td.col-name,
.dataTables_scrollBody table.leads-table tbody td:nth-child(1),
.dataTables_scrollBody table.leads-table tbody td:nth-child(2),
.dataTables_scrollBody table.leads-table tbody td:nth-child(3),
.dataTables_scrollBody table.leads-table tbody td:nth-child(4) {
  background-color: #ffffff !important;
}

[data-bs-theme="dark"] #leads-table tbody td:nth-child(1),
[data-bs-theme="dark"] #leads-table tbody td:nth-child(2),
[data-bs-theme="dark"] #leads-table tbody td:nth-child(3),
[data-bs-theme="dark"] #leads-table tbody td:nth-child(4),
[data-bs-theme="dark"] .leads-table tbody td.col-index,
[data-bs-theme="dark"] .leads-table tbody td.col-actions,
[data-bs-theme="dark"] .leads-table tbody td.col-registration,
[data-bs-theme="dark"] .leads-table tbody td.col-name,
[data-bs-theme="dark"] .dataTables_scrollBody table.leads-table tbody td:nth-child(1),
[data-bs-theme="dark"] .dataTables_scrollBody table.leads-table tbody td:nth-child(2),
[data-bs-theme="dark"] .dataTables_scrollBody table.leads-table tbody td:nth-child(3),
[data-bs-theme="dark"] .dataTables_scrollBody table.leads-table tbody td:nth-child(4) {
  background-color: #111827 !important;
}

#leads-table tbody tr:hover td:nth-child(1),
#leads-table tbody tr:hover td:nth-child(2),
#leads-table tbody tr:hover td:nth-child(3),
#leads-table tbody tr:hover td:nth-child(4),
.leads-table tbody tr:hover td.col-index,
.leads-table tbody tr:hover td.col-actions,
.leads-table tbody tr:hover td.col-registration,
.leads-table tbody tr:hover td.col-name,
.dataTables_scrollBody table.leads-table tbody tr:hover td:nth-child(1),
.dataTables_scrollBody table.leads-table tbody tr:hover td:nth-child(2),
.dataTables_scrollBody table.leads-table tbody tr:hover td:nth-child(3),
.dataTables_scrollBody table.leads-table tbody tr:hover td:nth-child(4) {
  background-color: #fcf1f6 !important;
}

[data-bs-theme="dark"] #leads-table tbody tr:hover td:nth-child(1),
[data-bs-theme="dark"] #leads-table tbody tr:hover td:nth-child(2),
[data-bs-theme="dark"] #leads-table tbody tr:hover td:nth-child(3),
[data-bs-theme="dark"] #leads-table tbody tr:hover td:nth-child(4),
[data-bs-theme="dark"] .leads-table tbody tr:hover td.col-index,
[data-bs-theme="dark"] .leads-table tbody tr:hover td.col-actions,
[data-bs-theme="dark"] .leads-table tbody tr:hover td.col-registration,
[data-bs-theme="dark"] .leads-table tbody tr:hover td.col-name,
[data-bs-theme="dark"] .dataTables_scrollBody table.leads-table tbody tr:hover td:nth-child(1),
[data-bs-theme="dark"] .dataTables_scrollBody table.leads-table tbody tr:hover td:nth-child(2),
[data-bs-theme="dark"] .dataTables_scrollBody table.leads-table tbody tr:hover td:nth-child(3),
[data-bs-theme="dark"] .dataTables_scrollBody table.leads-table tbody tr:hover td:nth-child(4) {
  background-color: #23182b !important;
}

.leads-table th.col-registration { min-width: 140px; }
.leads-table th.col-name { min-width: 175px; }
.leads-table th.col-datetime { min-width: 165px; }
.leads-table th.col-phone { min-width: 160px; }
.leads-table th.col-email { min-width: 195px; }
.leads-table th.col-status { min-width: 155px; }
.leads-table th.col-interest { min-width: 135px; }
.leads-table th.col-source { min-width: 145px; }
.leads-table th.col-course { min-width: 170px; }
.leads-table th.col-team { min-width: 140px; }
.leads-table th.col-telecaller { min-width: 160px; }
.leads-table th.col-place { min-width: 135px; }
.leads-table th.col-followup { min-width: 150px; }
.leads-table th.col-reason { min-width: 180px; }
.leads-table th.col-remarks { min-width: 210px; }
.leads-table th.col-date { min-width: 125px; }
.leads-table th.col-time { min-width: 115px; }

.leads-table-container {
  border-top: 1px solid var(--ds-border-color, #dfe3e8);
  overflow: visible;
  width: 100% !important;
}

.card:has(.leads-table-container),
.card-body:has(.leads-table-container) {
  overflow: visible !important;
}

.leads-table-container .dataTables_scroll {
  overflow: visible !important;
}

.leads-table-container .dataTables_scrollHead {
  position: sticky !important;
  top: 64px;
  z-index: 20;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

[data-bs-theme="dark"] .leads-table-container .dataTables_scrollHead {
  background: #171f2f !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.leads-table-container .dataTables_scrollBody {
  overflow-x: auto !important;
  overflow-y: visible !important;
  max-height: none !important;
  height: auto !important;
}

.leads-table-container table,
.leads-table-container .table-responsive table,
.dataTables_scrollHeadInner,
.dataTables_scrollHeadInner > table,
.dataTables_scrollBody > table {
  width: 100% !important;
  min-width: 100% !important;
  margin-bottom: 0 !important;
}

.leads-table thead th,
.leads-table-container table thead th,
.dataTables_scrollHead table.leads-table thead th {
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-gray-700, #334155) !important;
  background: rgba(148, 163, 184, 0.08) !important;
  border-bottom: 2px solid var(--ds-border-color, #dfe3e8) !important;
  padding: 0.9rem 1.85rem 0.9rem 1rem !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.leads-table-container table tbody td,
.dataTables_scrollBody table.leads-table tbody td {
  padding: 0.85rem 1rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid var(--ds-border-color, #dfe3e8);
  font-size: 0.835rem;
  color: var(--ds-body-color);
}

/* Keep SL No fully visible (narrow sticky column + reduced padding) */
.leads-table thead th.col-index,
.leads-table-container table thead th.col-index,
.leads-table-container table thead th:nth-child(1),
.dataTables_scrollHead table.leads-table thead th.col-index,
.dataTables_scrollHead table.leads-table thead th:nth-child(1),
.leads-table tbody td.col-index,
.leads-table-container table tbody td.col-index,
.leads-table-container table tbody td:nth-child(1),
.dataTables_scrollBody table.leads-table tbody td.col-index,
.dataTables_scrollBody table.leads-table tbody td:nth-child(1) {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  padding-left: 0.4rem !important;
  padding-right: 0.4rem !important;
  text-align: center !important;
  overflow: visible !important;
}

.leads-table-container table tbody tr:hover td,
.dataTables_scrollBody table.leads-table tbody tr:hover td {
  background-color: #fcf1f6 !important;
}

.dataTables_scrollBody::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.dataTables_scrollBody::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.08);
  border-radius: 4px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
  background: rgba(194, 24, 91, 0.25);
  border-radius: 4px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
  background: #c2185b;
}

[data-bs-theme="dark"] .leads-table thead th,
[data-bs-theme="dark"] .leads-table-container table thead th,
[data-bs-theme="dark"] .dataTables_scrollHead table.leads-table thead th {
  background: #171f2f !important;
  color: #f1f5f9 !important;
  border-bottom: 2px solid #2d384e !important;
}

[data-bs-theme="dark"] .leads-table-container table tbody td,
[data-bs-theme="dark"] .dataTables_scrollBody table.leads-table tbody td {
  border-bottom: 1px solid #202b3d;
  color: #cbd5e1;
}

[data-bs-theme="dark"] .leads-table-container table tbody tr:hover td,
[data-bs-theme="dark"] .dataTables_scrollBody table.leads-table tbody tr:hover td {
  background-color: rgba(194, 24, 91, 0.14) !important;
}

[data-bs-theme="dark"] .dataTables_scrollBody::-webkit-scrollbar-track {
  background: #121824;
}

[data-bs-theme="dark"] .dataTables_scrollBody::-webkit-scrollbar-thumb {
  background: rgba(194, 24, 91, 0.35);
}
