:root {
  --crm-bg: #f5f7fb;
  --crm-border: #dfe5ef;
  --crm-text: #1f2937;
  --crm-muted: #667085;
  --crm-primary: #2563eb;
}

body {
  background: var(--crm-bg);
  color: var(--crm-text);
}

.navbar {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.card,
.stat-card,
.login-panel {
  border: 1px solid var(--crm-border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.stat-card {
  background: #fff;
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--crm-muted);
  font-size: 0.875rem;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.15;
  margin-top: 6px;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 48px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bar-track {
  height: 10px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--crm-primary);
}

.text-bg-orange {
  color: #111827 !important;
  background-color: #fdba74 !important;
}

.dashboard-kpi {
  min-height: 130px;
  background: #fff;
  border: 1px solid var(--crm-border);
  border-top: 4px solid var(--crm-primary);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.dashboard-kpi span,
.dashboard-kpi small {
  display: block;
  color: var(--crm-muted);
}

.dashboard-kpi span {
  font-size: 0.875rem;
}

.dashboard-kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1.1;
}

.dashboard-kpi-success {
  border-top-color: #16a34a;
}

.dashboard-kpi-info {
  border-top-color: #0891b2;
}

.dashboard-kpi-warning {
  border-top-color: #f59e0b;
}

.dashboard-kpi-danger {
  border-top-color: #dc2626;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--crm-border);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.dashboard-card {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.dashboard-list .list-group-item {
  padding: 16px 18px;
}

.dashboard-empty {
  background: #f8fafc;
  border: 1px dashed var(--crm-border);
  border-radius: 8px;
  margin: 18px;
  padding: 22px;
  text-align: center;
}

.dashboard-outcome-select {
  width: 160px;
}

.dashboard-progress-row + .dashboard-progress-row {
  margin-top: 16px;
}

.dashboard-progress-row .progress {
  height: 9px;
  margin-top: 8px;
}

.dashboard-mini-card {
  height: 100%;
  background: #f8fafc;
  border: 1px solid var(--crm-border);
  border-radius: 8px;
  padding: 16px;
}

.dashboard-activity {
  max-height: 520px;
  overflow: auto;
  padding: 18px;
}

.dashboard-activity-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  padding-bottom: 18px;
}

.dashboard-activity-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--crm-primary);
}

.dashboard-health-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f4;
}

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

.whitespace-pre-wrap {
  white-space: pre-wrap;
}

.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 45%, #ecfeff 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(100%, 430px);
  background: #fff;
  padding: 28px;
}

.login-panel h1 {
  font-size: 1.75rem;
  margin-bottom: 6px;
}

.signup-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.signup-panel {
  width: min(100%, 760px);
  background: #fff;
  border: 1px solid var(--crm-border);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.signup-panel h1 {
  font-size: 1.75rem;
  margin-bottom: 6px;
}

.public-form-logo {
  max-width: 180px;
  max-height: 80px;
  object-fit: contain;
}

.tenant-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--crm-border);
  border-radius: 6px;
  background: #f8fafc;
  font-weight: 600;
}

.table th a {
  color: inherit;
  text-decoration: none;
}

.table th a:hover {
  color: var(--crm-primary);
}

.nav-theme-select {
  width: auto;
  min-width: 92px;
}

.contact-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.contact-link {
  overflow-wrap: anywhere;
}

.contact-icon-btn,
.contact-copy-btn {
  min-width: 34px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.contact-copy-btn {
  position: relative;
}

.contact-copy-btn.is-copied::after {
  content: "Copied!";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 6px;
  padding: 4px 8px;
  color: #fff;
  background: #111827;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  font-size: 0.75rem;
}

.profile-avatar {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 800;
}

.theme-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.theme-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--crm-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.theme-choice strong,
.theme-choice small {
  display: block;
}

.theme-choice small {
  margin-top: 4px;
  color: var(--crm-muted);
}

@media (max-width: 768px) {
  .bar-row {
    grid-template-columns: 90px 1fr 36px;
  }
}

.landing-page {
  background: #fff;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--crm-border);
  background: rgba(255, 255, 255, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
}

.landing-brand {
  color: var(--crm-text);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.landing-nav-actions {
  display: flex;
  gap: 10px;
}

.landing-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 40px;
  align-items: center;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.10), rgba(20, 184, 166, 0.10)),
    #f8fafc;
}

.landing-hero h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 20px;
}

.hero-copy {
  max-width: 760px;
  color: #475467;
  font-size: 1.2rem;
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--crm-primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.landing-hero-panel {
  background: #111827;
  color: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
}

.mini-toolbar {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.mini-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #94a3b8;
}

.pipeline-preview {
  display: grid;
  gap: 12px;
}

.pipeline-preview div {
  background: #1f2937;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 14px;
}

.pipeline-preview strong,
.pipeline-preview span {
  display: block;
}

.pipeline-preview span {
  color: #cbd5e1;
  margin-top: 4px;
}

.landing-section {
  padding: 72px clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.landing-cta h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.pricing-card {
  border: 1px solid var(--crm-border);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.feature-card h3,
.pricing-card h3 {
  font-size: 1.1rem;
}

.feature-card p,
.pricing-card p,
.landing-cta p {
  color: #667085;
}

.muted-band {
  background: #f8fafc;
}

.pricing-card strong {
  display: block;
  font-size: 2rem;
  margin: 8px 0;
}

.pricing-card ul {
  margin: 0;
  padding-left: 18px;
  color: #475467;
}

.landing-cta {
  text-align: center;
  padding: 72px 18px 88px;
}

.landing-cta p {
  max-width: 680px;
  margin: 12px auto 24px;
}

@media (max-width: 900px) {
  .landing-hero,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
  }
}

.call-campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.call-campaign-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 180px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.call-campaign-search {
  min-width: 0;
}

.call-campaign-card {
  background: #fff;
  border: 1px solid var(--crm-border);
  border-radius: 6px;
  overflow: hidden;
}

.call-campaign-card.is-stale {
  border-color: #fecaca;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.08);
}

.call-campaign-card header,
.call-campaign-card footer {
  padding: 24px 30px;
  border-bottom: 1px solid #edf0f4;
}

.call-campaign-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.call-campaign-card header h2 {
  font-size: 1.15rem;
  margin: 0;
}

.campaign-row,
.call-campaign-card dl {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 16px 30px 0;
}

.campaign-row span,
.call-campaign-card dt {
  color: #8a94a6;
  font-weight: 400;
}

.campaign-avatars span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border-radius: 50%;
  background: #748cff;
  border: 3px solid #eef2ff;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.campaign-avatars span:first-child {
  margin-left: 0;
}

.campaign-avatars em {
  color: #8a94a6;
  font-style: normal;
}

.campaign-progress {
  height: 7px;
  background: #eef0f2;
  border-radius: 999px;
  overflow: hidden;
}

.campaign-progress div {
  height: 100%;
  background: #1687ff;
}

.campaign-remaining {
  padding: 14px 30px 22px;
  text-align: center;
}

.campaign-status-stack {
  display: flex;
  height: 9px;
  margin: 18px 30px 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef0f2;
}

.status-segment {
  height: 100%;
}

.campaign-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 30px;
}

.status-badge,
.campaign-stale-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 700;
}

.campaign-stale-badge {
  color: #991b1b;
  background: #fee2e2;
}

.campaign-stale-date {
  color: #dc2626 !important;
  font-weight: 700;
}

.status-new {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-contacted {
  background: #cffafe;
  color: #0e7490;
}

.status-qualified {
  background: #dcfce7;
  color: #15803d;
}

.status-proposal {
  background: #ede9fe;
  color: #6d28d9;
}

.status-negotiation {
  background: #fef3c7;
  color: #b45309;
}

.status-lost {
  background: #fee2e2;
  color: #b91c1c;
}

.status-converted {
  background: #bbf7d0;
  color: #166534;
}

.call-campaign-card dl {
  grid-template-columns: 140px 1fr;
  padding-bottom: 24px;
}

.call-campaign-card dd {
  margin: 0;
  color: #8a94a6;
}

.call-campaign-card footer {
  border-top: 1px solid #edf0f4;
  border-bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
}

.campaign-resume {
  color: #2fbf1a;
  text-decoration: none;
}

.campaign-stop {
  color: #ff3b30;
}

.call-workspace {
  display: grid;
  grid-template-columns: 25% 50% 25%;
  min-height: calc(100vh - 180px);
  background: #fff;
  border: 1px solid var(--crm-border);
  position: relative;
}

.call-left,
.call-history {
  padding: 28px;
  border-right: 1px solid var(--crm-border);
  min-height: 0;
  overflow-y: auto;
}

.call-history {
  border-right: 0;
  border-left: 1px solid var(--crm-border);
}

.call-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 2rem;
  margin-bottom: 24px;
}

.call-timer strong {
  font-weight: 500;
}

.call-left section {
  border-top: 1px solid var(--crm-border);
  padding-top: 24px;
  margin-top: 24px;
}

.call-left h2,
.call-history h2 {
  font-size: 1.1rem;
  margin-bottom: 22px;
}

.call-left dt {
  font-weight: 500;
  margin-top: 14px;
}

.call-left dd {
  margin: 4px 0 0;
}

.call-center-card {
  padding: 42px 30px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scroll-padding-bottom: 130px;
}

.call-workspace-page {
  overflow: hidden;
}

.call-workspace-main {
  height: calc(100vh - 57px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.call-workspace-main > .d-flex {
  flex: 0 0 auto;
}

.call-workspace-page .call-workspace {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.call-workspace-page .sticky-top {
  position: static;
}

.call-focus-toggle {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1090;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--crm-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.call-focus-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

body.call-focus-mode .navbar {
  display: none;
}

.call-workspace-page.call-focus-mode .call-workspace-main {
  height: 100vh;
}

.call-workspace-page .lead-sticky-header {
  top: 0;
}

.call-productivity-bar {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(220px, 1fr);
  gap: 12px;
  align-items: start;
  margin: -42px -30px 18px;
  padding: 12px 30px;
  border-bottom: 1px solid var(--crm-border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

.call-compact-timer {
  display: grid;
  gap: 2px;
  min-width: 104px;
}

.call-compact-timer span,
.call-outcome-control .form-label {
  color: var(--crm-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.call-compact-timer strong {
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.15;
}

.call-desktop-timer {
  margin-bottom: 24px;
}

.call-mobile-timer {
  display: none;
}

.call-header-mobile-timer {
  display: none;
}

.call-mobile-workspace-details {
  display: none;
}

.call-outcome-control .form-label {
  margin-bottom: 4px;
}

.call-productivity-actions,
.call-productivity-contact {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.call-productivity-contact-stack {
  display: grid;
  gap: 8px;
  justify-items: end;
  justify-self: end;
}

.call-productivity-contact {
  justify-content: flex-end;
}

.call-lead-form {
  padding-bottom: 108px;
}

.call-mobile-drawer-actions {
  display: none;
  gap: 8px;
  margin-bottom: 12px;
}

.call-panel-close,
.call-panel-backdrop {
  display: none;
}

.lead-sticky-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--crm-border);
  margin: -42px -30px 24px;
  padding: 18px 30px;
}

.lead-sticky-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.lead-sticky-header p {
  margin: 2px 0 0;
  color: #667085;
}

.lead-contact-strip {
  justify-content: flex-end;
  min-height: 52px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.lead-contact-strip .lead-contact-actions {
  width: 100%;
  justify-content: flex-end;
}

.lead-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.call-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 24px -30px 0;
  padding: 14px 30px;
  border-top: 1px solid var(--crm-border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.08);
}

.call-workspace-page .contact-actions,
.lead-phone-row {
  flex-wrap: nowrap;
}

.call-workspace-page .contact-link {
  white-space: nowrap;
  overflow-wrap: normal;
}

.lead-phone-row .form-control {
  min-width: 0;
}

.lead-phone-row .btn,
.lead-phone-row .contact-copy-btn {
  flex: 0 0 auto;
}

.call-script {
  color: #475467;
  line-height: 1.55;
}

.call-center-card .nav-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  color: #111827;
  padding: 12px 28px;
}

.call-center-card .nav-tabs .nav-link.active {
  border-bottom-color: #1687ff;
  color: #1687ff;
}

.call-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 680px;
}

.call-filter-bar .form-control {
  max-width: 180px;
}

.call-filter-bar span {
  color: #98a2b3;
}

.call-manager-table thead th {
  background: #fbfbfc;
  border-bottom: 1px solid #edf0f4;
  color: #111827;
  font-weight: 500;
  padding: 16px 20px;
}

.call-manager-table tbody td {
  padding: 20px;
  vertical-align: middle;
  border-bottom: 1px solid #edf0f4;
}

.note-list-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.note-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #dbe5ff;
  color: #5973ff;
  font-size: 0.8rem;
  font-weight: 700;
}

.note-actions {
  width: 180px;
  white-space: nowrap;
}

.note-actions .btn {
  min-width: 64px;
}

.history-item {
  position: relative;
  border-left: 2px solid #e5e7eb;
  padding: 0 0 24px 18px;
  margin-left: 8px;
}

.history-item strong {
  font-weight: 500;
}

.history-item p {
  margin: 6px 0;
}

.history-item span {
  color: #8a94a6;
  font-size: 0.85rem;
}

.timeline-header {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-filters button,
.note-template-row button {
  border: 1px solid var(--crm-border);
  border-radius: 999px;
  background: #fff;
  color: #475467;
  padding: 5px 10px;
  font-size: 0.8rem;
}

.timeline-filters button.active,
.note-template-row button:hover {
  border-color: var(--crm-primary);
  color: var(--crm-primary);
  background: #eff6ff;
}

.timeline-icon {
  display: inline-flex;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem !important;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-call {
  background: #dbeafe;
  color: #1d4ed8 !important;
}

.timeline-note {
  background: #fef3c7;
  color: #b45309 !important;
}

.timeline-status {
  background: #dcfce7;
  color: #15803d !important;
}

.timeline-activity {
  background: #f1f5f9;
  color: #475467 !important;
}

.note-template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.call-outcome-feedback {
  margin-top: -10px;
  margin-bottom: 12px;
}

.needs-attention {
  animation: field-shake 0.28s linear 0s 2;
}

@keyframes field-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.leadpro-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.leadpro-stat {
  background: #fff;
  border: 1px solid var(--crm-border);
  border-radius: 6px;
  padding: 22px 26px;
}

.leadpro-stat span {
  color: #8a94a6;
  font-size: 0.9rem;
}

.leadpro-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 500;
}

.leadpro-stat small {
  display: block;
  margin-top: 6px;
  color: #8a94a6;
}

.leadpro-panel {
  background: #fff;
  border: 1px solid var(--crm-border);
  border-radius: 6px;
  padding: 24px 30px;
}

.leadpro-panel-title,
.leadpro-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #edf0f4;
}

.leadpro-panel-title h2,
.leadpro-table-toolbar h2 {
  font-size: 1.15rem;
  margin: 0;
}

.leadpro-panel-title span,
.leadpro-table-toolbar span {
  color: #8a94a6;
  font-size: 0.9rem;
}

.leadpro-table {
  --bs-table-hover-bg: #f8fbff;
}

.leadpro-table thead th {
  background: #fbfbfc;
  border-bottom: 1px solid #edf0f4;
  color: #111827;
  font-weight: 500;
  padding: 16px 20px;
}

.leadpro-table tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f4;
}

.leadpro-table a {
  text-decoration: none;
}

.followup-reminder-shell {
  position: fixed;
  right: 22px;
  bottom: 32px;
  z-index: 1080;
  width: min(480px, calc(100vw - 32px));
}

body.has-followup-reminder-space main:not(.call-workspace-main) {
  padding-bottom: 150px !important;
}

body.has-followup-reminder-space.call-workspace-page .call-center-card {
  padding-bottom: 150px;
}

body.has-followup-reminder-space.call-workspace-page .call-left,
body.has-followup-reminder-space.call-workspace-page .call-history {
  padding-bottom: 180px;
}

body.has-followup-reminder-space.call-workspace-page .followup-reminder-shell {
  bottom: 96px;
}

.followup-reminder-shell.is-minimized {
  width: min(320px, calc(100vw - 32px));
}

.followup-reminder-panel {
  background: #fff;
  border: 1px solid #f59e0b;
  border-top: 5px solid #f59e0b;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  padding: 18px;
}

.followup-reminder-shell.is-minimized .followup-reminder-panel {
  display: none;
}

.followup-reminder-widget {
  display: none;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #111827;
  text-align: left;
  background: #fff;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.18);
}

.followup-reminder-shell.is-minimized .followup-reminder-widget {
  display: flex;
}

.followup-reminder-widget:hover,
.followup-reminder-widget:focus {
  border-color: #d97706;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.24);
}

.followup-reminder-widget-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: #f59e0b;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.followup-reminder-widget strong,
.followup-reminder-widget small {
  display: block;
}

.followup-reminder-widget strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.followup-reminder-widget small {
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.25;
}

.followup-reminder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.followup-reminder-kicker {
  display: block;
  color: #b45309;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.followup-reminder-head h2 {
  margin: 2px 0 0;
  font-size: 1.15rem;
}

.followup-reminder-body {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.followup-reminder-body strong,
.followup-reminder-body span {
  display: block;
}

.followup-reminder-body span,
.followup-reminder-body p,
.followup-reminder-status {
  color: #667085;
  font-size: 0.9rem;
}

.followup-reminder-body p {
  max-height: 72px;
  margin: 4px 0 0;
  overflow: auto;
}

.followup-reminder-reschedule {
  margin-bottom: 12px;
}

.followup-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.followup-reminder-actions .btn {
  flex: 1 1 auto;
}

.followup-reminder-status {
  min-height: 20px;
  margin-top: 10px;
}

.command-palette-modal .modal-dialog {
  max-width: 640px;
}

.command-palette-input {
  min-height: 48px;
  font-size: 1rem;
}

.command-palette-results {
  max-height: 430px;
  margin-top: 12px;
  overflow: auto;
}

.command-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f4;
}

.command-result strong,
.command-result small {
  display: block;
}

.command-result small {
  color: #667085;
  font-size: 0.82rem;
}

.command-result-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

[data-call-tab-content] {
  position: relative;
  min-height: 260px;
}

[data-call-tab-content].is-loading {
  opacity: 0.58;
  pointer-events: none;
}

[data-call-tab-content].is-loading::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 20px;
  height: 20px;
  border: 2px solid #dbe4f0;
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: ui-spin 0.7s linear infinite;
}

.rich-note-editor {
  min-height: 170px;
  background: #fff;
}

.rich-note-content p {
  margin-bottom: 0.45rem;
}

.rich-note-content ul,
.rich-note-content ol {
  margin-bottom: 0.45rem;
  padding-left: 1.25rem;
}

.dashboard-chart-wrap {
  height: 260px;
}

@keyframes ui-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .call-campaign-grid,
  .call-workspace,
  .leadpro-stat-grid {
    grid-template-columns: 1fr;
  }

  .call-campaign-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .leadpro-panel-title,
  .leadpro-table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .lead-sticky-header {
    position: static;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 700px) {
  .call-focus-toggle {
    top: 56px;
    right: 12px;
    left: auto;
    transform: none;
  }

  body.call-focus-mode .call-focus-toggle {
    top: 10px;
  }

  .call-campaign-toolbar,
  .lead-sticky-header {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .lead-contact-actions {
    justify-content: flex-start;
  }

  .lead-contact-strip {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .lead-contact-strip .lead-contact-actions {
    justify-content: flex-start;
  }

  .followup-reminder-shell {
    right: 12px;
    bottom: 24px;
    width: calc(100vw - 24px);
  }

  body.has-followup-reminder-space main:not(.call-workspace-main) {
    padding-bottom: 170px !important;
  }

  body.has-followup-reminder-space.call-workspace-page .followup-reminder-shell {
    bottom: 116px;
  }

  .followup-reminder-shell.is-minimized {
    width: calc(100vw - 24px);
  }

  .call-workspace-page #followupModal .modal-dialog,
  .call-workspace-page #bookingModal .modal-dialog {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .theme-choice-grid {
    grid-template-columns: 1fr;
  }

  .responsive-card-table {
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .responsive-card-table thead {
    display: none;
  }

  .responsive-card-table,
  .responsive-card-table tbody,
  .responsive-card-table tr,
  .responsive-card-table td {
    display: block;
    width: 100%;
  }

  .responsive-card-table tr {
    padding: 14px;
    border: 1px solid var(--crm-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  }

  .responsive-card-table tbody td {
    display: grid;
    grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #edf0f4;
  }

  .responsive-card-table tbody td:last-child {
    border-bottom: 0;
  }

  .responsive-card-table tbody td::before {
    content: attr(data-label);
    color: var(--crm-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .responsive-card-table tbody td[data-label=""],
  .responsive-card-table tbody td.text-end {
    display: flex;
    justify-content: flex-start !important;
    gap: 8px;
  }

  .responsive-card-table tbody td[data-label=""]::before,
  .responsive-card-table tbody td.text-end::before {
    content: none;
  }
}

@media (max-width: 1100px) {
  .call-workspace-page {
    overflow: auto;
  }

  .call-workspace-main {
    height: auto;
    min-height: calc(100vh - 57px);
    overflow: visible;
  }

  .call-workspace-page .call-workspace {
    overflow: visible;
  }

  .call-left,
  .call-history,
  .call-center-card {
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 1100px) {
  .call-mobile-drawer-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .call-mobile-drawer-actions .btn {
    min-height: 38px;
    white-space: normal;
  }

  .call-workspace-main > .d-flex > div:first-child {
    display: none;
  }

  .call-workspace-page {
    overflow: hidden;
  }

  .call-workspace-main {
    height: calc(100vh - 57px);
    min-height: 0;
    overflow: hidden;
  }

  .call-workspace-page.call-focus-mode .call-workspace-main {
    height: 100vh;
  }

  .call-workspace-page .call-workspace {
    display: block;
    overflow: hidden;
  }

  .call-center-card {
    height: 100%;
    padding: 24px 16px;
    overflow-y: auto;
  }

  body.has-followup-reminder-space.call-workspace-page .call-center-card {
    padding-bottom: 150px;
  }

  .call-productivity-bar {
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    margin: -24px -16px 16px;
    padding: 10px 16px;
  }

  .call-desktop-timer {
    display: none;
  }

  .call-mobile-timer {
    display: none;
  }

  .call-workspace-main > .d-flex > .d-flex:has(.call-header-mobile-timer) {
    width: 100%;
    padding-right: 10px;
  }

  .call-header-mobile-timer {
    display: grid;
    align-self: center;
    order: -1;
    justify-items: start;
    margin-right: auto;
    min-width: 92px;
    padding: 0 4px;
    text-align: left;
  }

  .call-mobile-workspace-details {
    display: block;
  }

  .call-outcome-control,
  .call-productivity-contact-stack,
  .call-productivity-contact {
    grid-column: 1 / -1;
  }

  .call-productivity-contact-stack {
    justify-items: start;
    justify-self: stretch;
  }

  .call-productivity-actions {
    display: none;
  }

  .call-productivity-contact {
    justify-content: flex-start;
  }

  .call-lead-form {
    padding-bottom: 132px;
  }

  .call-action-bar {
    flex-direction: column;
    align-items: stretch;
    margin: 18px -16px 0;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  }

  .call-action-bar .d-flex {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 8px !important;
  }

  .call-action-bar .btn {
    min-height: 42px;
    white-space: normal;
  }

  .call-action-bar > .text-secondary {
    display: none;
  }

  .call-left,
  .call-history {
    position: fixed;
    top: 57px;
    bottom: 0;
    z-index: 1060;
    width: min(86vw, 360px);
    padding: 22px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.24);
    transition: transform 0.22s ease;
    overflow-y: auto;
  }

  .call-workspace-page.call-focus-mode .call-left,
  .call-workspace-page.call-focus-mode .call-history {
    top: 0;
  }

  body.has-followup-reminder-space.call-workspace-page .call-left,
  body.has-followup-reminder-space.call-workspace-page .call-history {
    padding-bottom: 180px;
  }

  .call-left {
    left: 0;
    transform: translateX(-105%);
  }

  .call-history {
    right: 0;
    border-left: 1px solid var(--crm-border);
    transform: translateX(105%);
  }

  .call-workspace.is-left-open .call-left,
  .call-workspace.is-history-open .call-history {
    transform: translateX(0);
  }

  .call-panel-close {
    display: inline-flex;
    float: right;
    margin-bottom: 12px;
  }

  .call-panel-backdrop {
    display: block;
    position: fixed;
    inset: 57px 0 0;
    z-index: 1055;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
  }

  .call-workspace-page.call-focus-mode .call-panel-backdrop {
    inset: 0;
  }
}
