html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
}

/* Global: Pointer cursor for all select dropdowns and filter dropdowns */
select,
select.form-select,
select.form-control,
.form-select,
#filterStage,
#filterStatus,
#filterBuilder,
#filterAssignedTo,
#dateRangeFilter,
#filterFromDate,
#filterToDate {
    cursor: pointer !important;
}

/* Remove grey background from all select dropdowns */
select.form-select,
select.form-control,
.form-select {
    background-color: #fff !important;
    opacity: 1 !important;
}

/* Dark mode select dropdowns */
.dark-mode select.form-select,
.dark-mode select.form-control,
.dark-mode .form-select {
    background-color: #2c3049 !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

.lead-activity {
    --la-ink: #172338;
    --la-muted: #6a7890;
    --la-line: #e4e9f1;
    color: var(--la-ink);
}
.la-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.la-heading h1 { margin: 0 0 .35rem; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 750; }
.la-subtitle { color: var(--la-muted); margin: 0; }
.la-card { overflow: hidden; margin-bottom: 1rem; border: 1px solid var(--la-line); border-radius: 14px; background: #fff; }
.la-card-pad { padding: 1rem; }
.la-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 1rem .75rem; border-bottom: 1px solid var(--la-line); }
.la-card-head h2, .la-card-pad h2 { margin: 0; font-size: 1rem; font-weight: 750; }
.la-card-head p { color: var(--la-muted); font-size: .82rem; margin: .25rem 0 0; }
.la-tag { display: inline-block; padding: .25rem .55rem; border: 1px solid var(--la-line); border-radius: 999px; color: #65728a; font-size: .75rem; white-space: nowrap; }
.lead-activity .la-snapshot { display: grid; grid-template-columns: 1fr; gap: .3rem; margin-top: .85rem; }
.la-snapshot-row { display: flex; justify-content: space-between; gap: .75rem; border-bottom: 1px solid #f0f2f6; padding: .4rem 0; font-size: .84rem; }
.la-snapshot-row span { color: var(--la-muted); }
.la-snapshot-row strong { text-align: right; overflow-wrap: anywhere; }
.lead-activity .la-filter { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: end; gap: .75rem; padding: 1rem; }
.la-filter label { display: grid; gap: .35rem; margin: 0; min-width: 0; }
.la-filter label span { color: #637188; font-size: .78rem; font-weight: 650; }
.la-filter .la-search { grid-column: span 2; }
.la-filter-actions { display: flex; justify-content: flex-start; }
.la-filter-actions .btn { display: inline-flex; align-items: center; gap: .35rem; }
.la-content { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.la-timeline-panel { grid-column: span 3; min-width: 0; }
.la-support-panel { display: grid; grid-column: span 9; gap: .75rem; min-width: 0; align-content: start; }
.la-content .la-card { margin-bottom: 0; }
.la-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.la-kpi { min-width: 0; padding: .85rem; border: 1px solid var(--la-line); border-radius: 13px; background: #fff; }
.la-kpi-label { color: var(--la-muted); font-size: .78rem; font-weight: 650; }
.la-kpi-value { margin: .25rem 0; font-size: 1.25rem; font-weight: 800; overflow-wrap: anywhere; }
.la-kpi-note { color: var(--la-muted); font-size: .72rem; }
.la-timeline { padding: 1rem 1.25rem .25rem; }
.la-event { position: relative; margin-left: .4rem; padding: 0 0 1rem 1.1rem; border-left: 2px solid #dfe7fb; }
.la-event:last-child { border-left-color: transparent; }
.la-event::before { position: absolute; top: .2rem; left: -.38rem; width: .6rem; height: .6rem; border: 2px solid #fff; border-radius: 50%; background: #4169e1; box-shadow: 0 0 0 1px #b9c9f8; content: ""; }
.la-event-top { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.la-event-title { font-size: .9rem; font-weight: 750; }
.la-event-time { color: var(--la-muted); font-size: .75rem; white-space: nowrap; }
.la-event-meta, .la-event-detail { color: var(--la-muted); font-size: .78rem; margin-top: .2rem; overflow-wrap: anywhere; }
.la-event-category { display: inline-block; margin-left: .35rem; padding: .12rem .45rem; border-radius: 999px; color: #3657ae; background: #edf2ff; font-size: .68rem; font-weight: 700; vertical-align: middle; }
.la-table-wrap { overflow-x: auto; }
.la-table { width: 100%; min-width: 560px; margin: 0; }
.la-table th { color: #6b7890; background: #fbfcfe; font-size: .7rem; text-transform: uppercase; white-space: nowrap; }
.la-table td { font-size: .8rem; vertical-align: top; }
.la-empty { padding: 1.25rem !important; color: var(--la-muted); text-align: center; }
.la-callout { padding: .85rem 1rem; border: 1px solid #dce8fb; border-radius: 12px; color: #4d5e7d; background: #f0f5ff; font-size: .8rem; }
.la-callout strong { color: #2f50a9; }
.lead-activity .report-banner-top { flex-wrap: wrap; }
.lead-activity .report-banner-top > div:nth-child(2) { flex: 1 1 200px; }

html.dark-mode .lead-activity .la-card, html.dark-mode .lead-activity .la-kpi { color: #d8deea; background: #151f32; border-color: #243249; }
html.dark-mode .lead-activity .la-card-head, html.dark-mode .lead-activity .la-snapshot-row { border-color: #243249; }
html.dark-mode .lead-activity .la-snapshot-row span, html.dark-mode .lead-activity .la-card-head p,
html.dark-mode .lead-activity .la-kpi-label, html.dark-mode .lead-activity .la-kpi-note,
html.dark-mode .lead-activity .la-event-meta, html.dark-mode .lead-activity .la-event-time { color: #a7afc2; }
html.dark-mode .lead-activity .la-event-title, html.dark-mode .lead-activity .la-snapshot-row strong,
html.dark-mode .lead-activity .la-card-head h2, html.dark-mode .lead-activity .la-card-pad h2 { color: #f1f5f9; }
html.dark-mode .lead-activity .la-table th { color: #e2e8f0; background: #0f172a; }
html.dark-mode .lead-activity .la-table td { color: #e2e8f0; border-color: #243249; }
html.dark-mode .lead-activity .la-callout { color: #cbd5e1; background: #15233a; border-color: #2b466e; }

@media (max-width: 1100px) {
    .la-content { grid-template-columns: 1fr; }
    .la-timeline-panel, .la-support-panel { grid-column: 1 / -1; }
    .lead-activity .la-filter { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .la-filter .la-search { grid-column: span 2; }
}
@media (max-width: 767px) {
    .la-heading { display: block; }
    .la-heading .btn { margin-top: .75rem; }
    .lead-activity .la-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .la-filter .la-event-type { grid-column: 1 / -1; }
    .la-filter .la-search { grid-column: span 1; }
    .la-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
    .la-kpi { padding: .7rem; }
    .la-kpi-value { font-size: 1.05rem; }
    .la-event-top { display: block; }
    .la-event-time { display: block; margin-top: .2rem; }
}

