/* =============================================================================
   NexTaksha Leads Manager — Frontend CSS v4
   Full CSS isolation via .ntlm-wrapper — no theme styles bleed in.
   All font sizes in px (not rem) to prevent theme root font-size interference.
   ============================================================================= */

/* ── Variables (scoped inside wrapper) ──────────────────────────────────────── */
.ntlm-wrapper {
	--nfe-primary:   #1a73e8;
	--nfe-primary-d: #1558b0;
	--nfe-danger:    #d93025;
	--nfe-success:   #1e8c3a;
	--nfe-warning:   #f29900;
	--nfe-border:    #dadce0;
	--nfe-radius:    8px;
	--nfe-font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ── UNIVERSAL FONT ISOLATION ───────────────────────────────────────────────── */
.ntlm-wrapper,
.ntlm-wrapper * {
	box-sizing: border-box;
	font-family: var(--nfe-font) !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
}

/* ── Wrapper base ────────────────────────────────────────────────────────────── */
.ntlm-wrapper { color: #202124; max-width: 100%; }

/* ── Login ───────────────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-login-msg { padding: 20px; background: #f8f9fa; border-radius: var(--nfe-radius); text-align: center; color: #666; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-btn {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 8px 16px; border-radius: 6px; border: 1px solid transparent;
	cursor: pointer; font-size: 13px !important; font-weight: 500 !important;
	line-height: 1 !important; text-decoration: none; background: none; transition: .15s;
}
.ntlm-wrapper .nrlm-fe-btn-sm      { padding: 4px 10px; font-size: 12px !important; }
.ntlm-wrapper .nrlm-fe-btn-primary  { background: var(--nfe-primary); color: #fff; border-color: var(--nfe-primary); }
.ntlm-wrapper .nrlm-fe-btn-primary:hover { background: var(--nfe-primary-d); color: #fff; }
.ntlm-wrapper .nrlm-fe-btn-ghost    { background: transparent; color: #555; border-color: var(--nfe-border); }
.ntlm-wrapper .nrlm-fe-btn-ghost:hover { background: #f1f3f4; }
.ntlm-wrapper .nrlm-fe-btn-wa       { background: #25D366 !important; color: #fff !important; border-color: #128c49; }
.ntlm-wrapper .nrlm-fe-btn-wa:hover { background: #128c49 !important; }
.ntlm-wrapper .nrlm-fe-action-btn {
	background: none; border: 1px solid #ddd; border-radius: 4px;
	padding: 3px 7px; cursor: pointer; font-size: 13px !important; line-height: 1.2 !important; transition: .15s;
}
.ntlm-wrapper .nrlm-fe-action-btn:hover    { background: #f5f5f5; }
.ntlm-wrapper .nrlm-fe-action-danger:hover { background: #fce8e6; border-color: #f5c6c4; }

/* ── Reminder bar ────────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-reminder-bar {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	padding: 12px 16px; border-radius: var(--nfe-radius); margin-bottom: 14px;
	background: linear-gradient(135deg, #ff6d00, #ffab40); color: #fff;
	font-size: 13px !important; font-weight: 500 !important; box-shadow: 0 2px 8px rgba(255,109,0,.3);
}
.ntlm-wrapper .nrlm-fe-reminder-bar strong  { font-size: 15px !important; }
.ntlm-wrapper .nrlm-fe-reminder-filter,
.ntlm-wrapper .nrlm-fe-reminder-sv          { background: rgba(255,255,255,.25); color: #fff; border-color: rgba(255,255,255,.5); }
.ntlm-wrapper .nrlm-fe-reminder-close       { background: none; border: none; color: rgba(255,255,255,.8); cursor: pointer; font-size: 18px !important; line-height: 1 !important; margin-left: auto; padding: 0 4px; }

/* ── Header ──────────────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-header {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	padding: 14px 18px; margin-bottom: 14px;
	background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%); border-radius: var(--nfe-radius); color: #fff;
}
.ntlm-wrapper .nrlm-fe-title { margin: 0; font-size: 15px !important; font-weight: 700 !important; color: #fff; }
.ntlm-wrapper .nrlm-fe-header-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Dashboard Cards ─────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-cards {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 10px; margin-bottom: 16px;
}
.ntlm-wrapper .nrlm-fe-card {
	padding: 16px 12px; border-radius: var(--nfe-radius); border: 2px solid transparent;
	background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08);
	cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s;
	display: flex; flex-direction: column; align-items: center; gap: 4px; user-select: none;
}
.ntlm-wrapper .nrlm-fe-card:hover                { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.ntlm-wrapper .nrlm-fe-card.nrlm-fe-card-active  { border-color: var(--nfe-primary); box-shadow: 0 0 0 3px rgba(26,115,232,.2); }
.ntlm-wrapper .nrlm-fe-card-num   { font-size: 28px !important; font-weight: 800 !important; line-height: 1 !important; color: var(--nfe-primary); }
.ntlm-wrapper .nrlm-fe-card-label { font-size: 11px !important; font-weight: 600 !important; color: #666; text-align: center; }
.ntlm-wrapper .nrlm-fe-card-total    { border-top: 3px solid #1a73e8; }
.ntlm-wrapper .nrlm-fe-card-hot      { border-top: 3px solid #d93025; } .ntlm-wrapper .nrlm-fe-card-hot .nrlm-fe-card-num { color:#d93025; }
.ntlm-wrapper .nrlm-fe-card-followup { border-top: 3px solid #f29900; } .ntlm-wrapper .nrlm-fe-card-followup .nrlm-fe-card-num { color:#b06000; }
.ntlm-wrapper .nrlm-fe-card-sitevisit{ border-top: 3px solid #9c27b0; } .ntlm-wrapper .nrlm-fe-card-sitevisit .nrlm-fe-card-num { color:#7b1fa2; }
.ntlm-wrapper .nrlm-fe-card-new      { border-top: 3px solid #1e8c3a; } .ntlm-wrapper .nrlm-fe-card-new .nrlm-fe-card-num { color:#1e8c3a; }

/* ── Filters ─────────────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-filters {
	background: #f8f9fa; border: 1px solid var(--nfe-border);
	border-radius: var(--nfe-radius); padding: 14px; margin-bottom: 12px;
}
.ntlm-wrapper .nrlm-fe-filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.ntlm-wrapper .nrlm-fe-filter-field { flex: 1 1 170px; display: flex; flex-direction: column; gap: 4px; }
.ntlm-wrapper .nrlm-fe-filter-field label { font-size: 11px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .04em; color: #666; }
.ntlm-wrapper .nrlm-fe-filter-search { flex: 2 1 240px; }
.ntlm-wrapper .nrlm-fe-search-wrap  { position: relative; display: flex; align-items: center; }
.ntlm-wrapper .nrlm-fe-search-icon  { position: absolute; left: 9px; pointer-events: none; }
.ntlm-wrapper .nrlm-fe-search-wrap input { padding-left: 30px !important; padding-right: 26px !important; width: 100%; }
.ntlm-wrapper .nrlm-fe-search-clear { position: absolute; right: 8px; cursor: pointer; color: #999; font-size: 16px !important; user-select: none; }
.ntlm-wrapper .nrlm-fe-filter-meta  { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.ntlm-wrapper .nrlm-fe-count-badge  { background: var(--nfe-primary); color: #fff; font-size: 12px !important; font-weight: 700 !important; padding: 3px 12px; border-radius: 20px; }

/* ── Inputs ──────────────────────────────────────────────────────────────────── */
.ntlm-wrapper input, .ntlm-wrapper select, .ntlm-wrapper textarea, .ntlm-wrapper button {
	font-family: var(--nfe-font) !important; font-size: 13px !important; line-height: 1.4 !important;
}
.ntlm-wrapper .nrlm-fe-input {
	width: 100%; padding: 7px 10px; border: 1px solid var(--nfe-border);
	border-radius: 6px; color: #202124; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.ntlm-wrapper .nrlm-fe-input:focus { border-color: var(--nfe-primary); box-shadow: 0 0 0 2px rgba(26,115,232,.15); }
.ntlm-wrapper textarea.nrlm-fe-input { resize: vertical; }
.ntlm-wrapper .nrlm-fe-sel {
	width: 100%; padding: 7px 28px 7px 10px; border: 1px solid var(--nfe-border);
	border-radius: 6px; color: #202124; background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 10px center;
	-webkit-appearance: none; appearance: none; cursor: pointer; outline: none; transition: .15s;
}
.ntlm-wrapper .nrlm-fe-sel:focus { border-color: var(--nfe-primary); box-shadow: 0 0 0 2px rgba(26,115,232,.15); }
.ntlm-wrapper .nrlm-fe-budget-wrap  { display: flex; flex-direction: column; gap: 3px; }
.ntlm-wrapper .nrlm-fe-budget-label { font-size: 11px !important; color: var(--nfe-primary); font-weight: 600 !important; min-height: 16px; }

/* ── Table ───────────────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-table-wrap {
	position: relative; background: #fff; border: 1px solid var(--nfe-border);
	border-radius: var(--nfe-radius); overflow: hidden;
}
.ntlm-wrapper .nrlm-fe-table-scroll { overflow-x: auto; }
.ntlm-wrapper .nrlm-fe-table { width: 100%; border-collapse: collapse; }
.ntlm-wrapper .nrlm-fe-table thead tr { background: #f1f3f4; }
.ntlm-wrapper .nrlm-fe-table th {
	padding: 10px 12px; text-align: left; font-weight: 600 !important; font-size: 11px !important;
	text-transform: uppercase; letter-spacing: .03em; color: #555;
	white-space: nowrap; border-bottom: 2px solid var(--nfe-border);
}
.ntlm-wrapper .nrlm-fe-table td   { padding: 9px 12px; border-bottom: 1px solid #f1f3f4; vertical-align: middle; }
.ntlm-wrapper .nrlm-fe-table tbody tr:hover         { background: #f8f9fa; }
.ntlm-wrapper .nrlm-fe-table tbody tr:last-child td { border-bottom: none; }
.ntlm-wrapper .nrlm-fe-td-name   { min-width: 110px; word-break: break-word; }
.ntlm-wrapper .nrlm-fe-td-mobile { min-width: 120px; white-space: nowrap; }
.ntlm-wrapper .nrlm-fe-td-date   { white-space: nowrap; }
.ntlm-wrapper .nrlm-fe-td-actions{ white-space: nowrap; }
.ntlm-wrapper .nrlm-fe-no-results { text-align: center; padding: 2rem; color: #999; }
.ntlm-wrapper .nrlm-fe-uid        { font-weight: 700 !important; color: var(--nfe-primary); }
.ntlm-wrapper .nrlm-fe-quick-status {
	padding: 4px 6px; border: 1px solid var(--nfe-border); border-radius: 4px;
	min-width: 130px; background: #fff; cursor: pointer;
}

/* ── Mobile masking ──────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-mobile-wrap   { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.ntlm-wrapper .nrlm-fe-mobile-masked { color: #888; letter-spacing: 1px; font-family: monospace !important; border-bottom: 1px dashed #ccc; }
.ntlm-wrapper .nrlm-fe-mobile-full   { display: inline-flex; align-items: center; gap: 4px; }
.ntlm-wrapper .nrlm-fe-call-btn      { color: var(--nfe-primary); text-decoration: none; font-weight: 600 !important; }
.ntlm-wrapper .nrlm-fe-call-btn:hover{ text-decoration: underline; }

/* ── Next Action ─────────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-next-action    { font-size: 12px !important; white-space: nowrap; }
.ntlm-wrapper .nrlm-na-followup   { color: #b06000; }
.ntlm-wrapper .nrlm-na-sitevisit  { color: #7b1fa2; }

/* ── Badges ──────────────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-badge {
	display: inline-block; padding: 3px 10px; border-radius: 20px;
	font-size: 11px !important; font-weight: 600 !important; white-space: nowrap; line-height: 1.4 !important;
}
.ntlm-wrapper .nrlm-status-new                  { background: #e8f0fe; color: #174ea6; }
.ntlm-wrapper .nrlm-status-contacted             { background: #e6f4ea; color: #137333; }
.ntlm-wrapper .nrlm-status-not-answered          { background: #fce8e6; color: #a50e0e; }
.ntlm-wrapper .nrlm-status-follow-up-scheduled   { background: #fef9e0; color: #b06000; }
.ntlm-wrapper .nrlm-status-site-visit-scheduled  { background: #f3e8fd; color: #681da8; }
.ntlm-wrapper .nrlm-status-site-visited          { background: #e8eaf6; color: #283593; }
.ntlm-wrapper .nrlm-status-booked                { background: #e6f4ea; color: #0d652d; }
.ntlm-wrapper .nrlm-status-lost                  { background: #fce8e6; color: #b31412; }
.ntlm-wrapper .nrlm-status-on-hold               { background: #f5f5f5; color: #3c4043; border: 1px solid #e0e0e0; }
.ntlm-wrapper .nrlm-priority-hot  { background: #fce8e6; color: #c5221f; }
.ntlm-wrapper .nrlm-priority-warm { background: #fef9e0; color: #b06000; }
.ntlm-wrapper .nrlm-priority-cold { background: #e8f0fe; color: #1a73e8; }

/* ── Loader ──────────────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-loader {
	position: absolute; inset: 0; z-index: 10; background: rgba(255,255,255,.82);
	border-radius: var(--nfe-radius); display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 10px; color: #555;
}
.ntlm-wrapper .nrlm-fe-spinner { width: 32px; height: 32px; border: 3px solid #e0e0e0; border-top-color: var(--nfe-primary); border-radius: 50%; animation: ntlm-spin .7s linear infinite; }
@keyframes ntlm-spin { to { transform: rotate(360deg); } }

/* ── Pagination ──────────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-pagination {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 8px; padding: 12px 16px;
	background: #fafafa; border-top: 1px solid var(--nfe-border);
}
.ntlm-wrapper .nrlm-page-info  { color: #666; }
.ntlm-wrapper .nrlm-page-btns  { display: flex; gap: 4px; flex-wrap: wrap; }
.ntlm-wrapper .nrlm-fe-page-btn {
	min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--nfe-border);
	background: #fff; border-radius: 6px; cursor: pointer; transition: .15s;
}
.ntlm-wrapper .nrlm-fe-page-btn:hover:not(:disabled)  { background: var(--nfe-primary); color: #fff; border-color: var(--nfe-primary); }
.ntlm-wrapper .nrlm-fe-page-btn.nrlm-page-active       { background: var(--nfe-primary); color: #fff; border-color: var(--nfe-primary); font-weight: 700 !important; }
.ntlm-wrapper .nrlm-fe-page-btn:disabled                { opacity: .4; cursor: not-allowed; }
.ntlm-wrapper .nrlm-page-ellipsis { padding: 0 4px; color: #999; }

/* ── Messages ────────────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-dup-warn { color: var(--nfe-danger); display: block; margin-top: 3px; }
.ntlm-wrapper .nrlm-fe-msg { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; }
.ntlm-wrapper .nrlm-fe-msg.success { background: #e6f4ea; color: #137333; border: 1px solid #b7dfbb; }
.ntlm-wrapper .nrlm-fe-msg.error   { background: #fce8e6; color: #a50e0e; border: 1px solid #f5c6c4; }

/* ── Modal system ────────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-modal, .ntlm-wrapper .nrlm-fe-mini-modal {
	position: fixed; inset: 0; z-index: 400000;
	display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ntlm-wrapper .nrlm-fe-mini-modal { align-items: flex-start; padding-top: 80px; }
#nrlm-fe-modal-backdrop {
	position: fixed; inset: 0; z-index: 300000; background: rgba(0,0,0,.55);
}
/* Z-index strategy:
   - Filter Select2: stays at 99999. They are closed before any modal opens.
   - Backdrop: 300000 — covers everything when modal is visible.
   - Modal: 400000 — above backdrop.
   - Modal-context Select2 dropdowns (.nrlm-fe-s2-drop): 500000 — above modal.
   - Flatpickr calendar: 600000 — above everything. */
.select2-container             { z-index: 99999  !important; }
.nrlm-fe-s2-drop               { z-index: 500000 !important; }

/* Flatpickr calendar must render above all modals */
.flatpickr-calendar            { z-index: 600000 !important; }
.ntlm-wrapper .nrlm-fe-modal-inner {
	position: relative; z-index: 400001; background: #fff;
	border-radius: var(--nfe-radius); box-shadow: 0 24px 60px rgba(0,0,0,.3);
	width: 100%; max-width: 660px; max-height: 90vh; display: flex; flex-direction: column;
}
.ntlm-wrapper .nrlm-fe-modal-sm { max-width: 420px; }
.ntlm-wrapper .nrlm-fe-modal-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 20px; border-bottom: 1px solid var(--nfe-border);
	background: #f8f9fa; border-radius: var(--nfe-radius) var(--nfe-radius) 0 0;
}
.ntlm-wrapper .nrlm-fe-modal-header h3   { margin: 0; font-size: 15px !important; font-weight: 700 !important; }
.ntlm-wrapper .nrlm-fe-modal-close,
.ntlm-wrapper .nrlm-fe-modal-close-mini  { background: none; border: none; font-size: 20px !important; cursor: pointer; color: #555; padding: 0 4px; border-radius: 4px; transition: .15s; }
.ntlm-wrapper .nrlm-fe-modal-close:hover,
.ntlm-wrapper .nrlm-fe-modal-close-mini:hover { background: #e0e0e0; }
.ntlm-wrapper .nrlm-fe-modal-body   { padding: 20px; overflow-y: auto; flex: 1; }
.ntlm-wrapper .nrlm-fe-modal-footer {
	padding: 14px 20px; border-top: 1px solid var(--nfe-border);
	display: flex; gap: 8px; justify-content: flex-end;
	background: #fafafa; border-radius: 0 0 var(--nfe-radius) var(--nfe-radius);
}

/* ── Form grid ───────────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-form-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ntlm-wrapper .nrlm-fe-fg         { display: flex; flex-direction: column; gap: 4px; }
.ntlm-wrapper .nrlm-fe-fg label   { font-size: 12px !important; font-weight: 600 !important; color: #444; }
.ntlm-wrapper .nrlm-fe-fg-full    { grid-column: 1 / -1; }

/* ── Timeline ────────────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-timeline  { display: flex; flex-direction: column; gap: 0; }
.ntlm-wrapper .nrlm-fe-tl-item  {
	display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f3f4;
}
.ntlm-wrapper .nrlm-fe-tl-item:last-child { border-bottom: none; }
.ntlm-wrapper .nrlm-fe-tl-dot   { width: 10px; height: 10px; border-radius: 50%; background: var(--nfe-primary); margin-top: 5px; flex-shrink: 0; }
.ntlm-wrapper .nrlm-fe-tl-content strong { font-size: 13px !important; font-weight: 600 !important; display: block; }
.ntlm-wrapper .nrlm-fe-tl-change{ font-size: 12px !important; color: #555; }
.ntlm-wrapper .nrlm-fe-tl-note  { font-size: 12px !important; color: #666; }
.ntlm-wrapper .nrlm-fe-tl-meta  { font-size: 11px !important; color: #999; }

/* ── Select2 dropdown isolation (rendered on <body>, scoped via dropdownCssClass) ── */
.ntlm-wrapper .select2-container { width: 100% !important; }
.ntlm-wrapper .select2-selection--single,
.ntlm-wrapper .select2-selection--multiple { border-color: var(--nfe-border) !important; border-radius: 6px !important; min-height: 34px !important; }
.nrlm-fe-s2-drop, .nrlm-fe-s2-drop * { font-family: var(--nfe-font) !important; font-size: 13px !important; }
.nrlm-fe-s2-drop { border: 1px solid var(--nfe-border) !important; border-radius: 6px !important; box-shadow: 0 4px 16px rgba(0,0,0,.12) !important; }
.nrlm-fe-s2-drop .select2-results__option { padding: 7px 10px !important; }
.nrlm-fe-s2-drop .select2-results__option--highlighted { background: var(--nfe-primary) !important; color: #fff !important; }
.nrlm-fe-s2-drop .select2-results__option[aria-selected=true] { background: #e8f0fe !important; color: var(--nfe-primary) !important; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
	.ntlm-wrapper .nrlm-fe-header { flex-direction: column; align-items: flex-start; }
	.ntlm-wrapper .nrlm-fe-cards  { grid-template-columns: repeat(3, 1fr); }
	.ntlm-wrapper .nrlm-fe-filter-field { flex: 1 1 100%; flex-direction: column; }
	.ntlm-wrapper .nrlm-fe-modal-inner { max-width: 100%; border-radius: 0; max-height: 100vh; }
	.ntlm-wrapper .nrlm-fe-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
	.ntlm-wrapper .nrlm-fe-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── Location tags (multi-location display) ──────────────────────────────────── */
.ntlm-wrapper .nrlm-loc-tag {
	display: inline-block;
	background: #e8f0fe;
	color: #174ea6;
	font-size: 11px !important;
	padding: 2px 7px;
	border-radius: 10px;
	margin: 1px 2px 1px 0;
	white-space: nowrap;
}

/* ── Scheduled column (follow-up / site-visit date) ─────────────────────────── */
.ntlm-wrapper .nrlm-schedule-cell  { font-size: 12px !important; white-space: nowrap; display: block; }
.ntlm-wrapper .nrlm-sched-followup  { color: #b06000; }
.ntlm-wrapper .nrlm-sched-sitevisit { color: #7b1fa2; }
.ntlm-wrapper .nrlm-sched-none      { color: #ccc; }

/* ── Native multi-select (location picker in modal) ─────────────────────────── */
.ntlm-wrapper .nrlm-fe-native-multi {
	width: 100%;
	min-height: 90px;
	padding: 4px 6px;
	border: 1px solid var(--nfe-border);
	border-radius: 6px;
	font-family: var(--nfe-font) !important;
	font-size: 13px !important;
	color: #202124;
	background: #fff;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.ntlm-wrapper .nrlm-fe-native-multi:focus {
	border-color: var(--nfe-primary);
	box-shadow: 0 0 0 2px rgba(26,115,232,.15);
}
.ntlm-wrapper .nrlm-fe-native-multi option {
	padding: 5px 8px;
	font-size: 13px !important;
	cursor: pointer;
}
.ntlm-wrapper .nrlm-fe-native-multi option:checked {
	background: #e8f0fe;
	color: #174ea6;
	font-weight: 600;
}
.ntlm-wrapper .nrlm-fe-fg .nrlm-fe-native-multi + small {
	display: block;
	font-size: 11px !important;
	color: #888;
	margin-top: 3px;
}

/* =============================================================================
   PHASE 1 FRONTEND — Smart Dashboard, Pipeline, Bulk Actions, Score, Outcome
   ============================================================================= */

/* ── Smart Follow-up Dashboard Cards ──────────────────────────────────────── */
.nrlm-fe-smart-dashboard {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 12px 0 10px;
}
.nrlm-fe-smart-card {
	flex: 1 1 110px;
	min-width: 100px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 8px;
	border-radius: 10px;
	cursor: pointer;
	border: 2px solid transparent;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.07);
	transition: transform .15s, box-shadow .15s, border-color .15s;
	user-select: none;
}
.nrlm-fe-smart-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.nrlm-fe-smart-active     { border-color: currentColor !important; box-shadow: 0 4px 14px rgba(0,0,0,.15) !important; }

.nrlm-fe-smart-overdue  { border-left: 4px solid #e53e3e; }
.nrlm-fe-smart-today    { border-left: 4px solid #e65100; }
.nrlm-fe-smart-upcoming { border-left: 4px solid #0073aa; }

.nrlm-fe-smart-overdue  .nrlm-fe-smart-num { color: #e53e3e; }
.nrlm-fe-smart-today    .nrlm-fe-smart-num { color: #e65100; }
.nrlm-fe-smart-upcoming .nrlm-fe-smart-num { color: #0073aa; }

.nrlm-fe-smart-icon  { font-size: 20px; margin-bottom: 4px; }
.nrlm-fe-smart-num   { font-size: 24px; font-weight: 800; line-height: 1; }
.nrlm-fe-smart-label { font-size: 11px; color: #555; margin-top: 4px; text-align: center; }

/* ── View Toggle ───────────────────────────────────────────────────────────── */
.nrlm-fe-view-toggle {
	display: flex;
	gap: 8px;
	margin: 10px 0 4px;
}
.nrlm-fe-view-btn {
	padding: 6px 14px;
	border-radius: 6px;
	border: 1px solid #ddd;
	background: #f5f5f5;
	font-size: 13px;
	cursor: pointer;
	transition: background .15s, border-color .15s;
	color: #444;
}
.nrlm-fe-view-btn:hover        { background: #e8e8e8; border-color: #bbb; }
.nrlm-fe-view-btn-active       { background: #0073aa; color: #fff; border-color: #005a87; }
.nrlm-fe-view-btn-active:hover { background: #005a87; }

/* ── Bulk Action Bar ───────────────────────────────────────────────────────── */
.nrlm-fe-bulk-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	background: #f0f4ff;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	padding: 8px 12px;
	margin: 8px 0 4px;
	font-size: 13px;
}
.nrlm-fe-bulk-bar #nrlm-fe-bulk-count {
	font-weight: 700;
	color: #0073aa;
	min-width: 100px;
}

/* ── Checkbox column ───────────────────────────────────────────────────────── */
.nrlm-fe-th-check,
.nrlm-fe-td-check { width: 36px; text-align: center; padding: 6px 4px !important; }

/* ── Pipeline / Kanban Board ───────────────────────────────────────────────── */
#nrlm-fe-pipeline-container {
	overflow-x: auto;
	padding: 10px 0 20px;
}
.nrlm-fe-kanban-board {
	display: flex;
	gap: 12px;
	min-width: 900px;
	align-items: flex-start;
	padding: 2px;
}
.nrlm-fe-kanban-col {
	flex: 0 0 180px;
	background: #f8f9fa;
	border-radius: 10px;
	border: 1px solid #e0e0e0;
	min-height: 160px;
	display: flex;
	flex-direction: column;
	transition: background .15s;
}
.nrlm-fe-kanban-over { background: #e8f0fe; border-color: #4285f4; }

.nrlm-fe-kanban-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 9px 10px 7px;
	border-bottom: 1px solid #e0e0e0;
}
.nrlm-fe-kanban-title { font-size: 11px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .4px; }
.nrlm-fe-kanban-count { background: #0073aa; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 20px; }

.nrlm-fe-kanban-cards {
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-height: 60px;
}
.nrlm-fe-kanban-card {
	background: #fff;
	border-radius: 7px;
	border: 1px solid #e0e0e0;
	padding: 9px 10px;
	cursor: grab;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
	transition: box-shadow .15s, opacity .15s;
	font-size: 13px;
}
.nrlm-fe-kanban-card:hover      { box-shadow: 0 3px 8px rgba(0,0,0,.10); }
.nrlm-fe-kanban-dragging        { opacity: .5; cursor: grabbing; }
.nrlm-fe-kanban-name            { font-weight: 700; margin-bottom: 4px; }
.nrlm-fe-kanban-meta            { margin-bottom: 3px; }
.nrlm-fe-kanban-budget,
.nrlm-fe-kanban-assigned        { font-size: 11px; color: #777; }

/* ── Score + Overdue badges (shared with admin CSS via nrlm-score-badge class) */
.nrlm-fe-wrap .nrlm-score-badge {
	display: inline-block;
	min-width: 28px;
	padding: 2px 6px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
}
.nrlm-fe-wrap .nrlm-score-high  { background: #e6f4ea; color: #137333; border: 1px solid #b7dfbe; }
.nrlm-fe-wrap .nrlm-score-mid   { background: #fff8e1; color: #e65100; border: 1px solid #ffe082; }
.nrlm-fe-wrap .nrlm-score-low   { background: #fce8e6; color: #a50e0e; border: 1px solid #f5b7b1; }

.nrlm-fe-wrap .nrlm-overdue-badge {
	display: inline-block;
	background: #e53e3e;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 20px;
	margin-left: 4px;
	animation: nrlmFePulse 1.8s ease-in-out infinite;
}
@keyframes nrlmFePulse { 0%,100%{opacity:1} 50%{opacity:.55} }

/* ── Complete Follow-up button ─────────────────────────────────────────────── */
.nrlm-fe-complete-followup-btn { font-size: 16px !important; line-height: 1 !important; }

/* ── Toast (frontend) ──────────────────────────────────────────────────────── */
.nrlm-fe-toast {
	position: fixed;
	bottom: 20px;
	right: 20px;
	padding: 11px 18px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	z-index: 99999;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .3s, transform .3s;
	pointer-events: none;
	max-width: 300px;
}
.nrlm-fe-toast-show    { opacity: 1; transform: translateY(0); }
.nrlm-fe-toast-success { background: #137333; }
.nrlm-fe-toast-error   { background: #a50e0e; }
.nrlm-fe-toast-info    { background: #0073aa; }

/* ── Outcome Modal fields ──────────────────────────────────────────────────── */
#nrlm-fe-outcome-select { width: 100%; padding: 8px 10px; border-radius: 5px; border: 1px solid #ccc; font-size: 14px; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
	.nrlm-fe-smart-dashboard { gap: 6px; }
	.nrlm-fe-smart-card      { min-width: 90px; padding: 9px 5px; }
	.nrlm-fe-smart-num       { font-size: 20px; }
	.nrlm-fe-bulk-bar        { gap: 5px; font-size: 12px; }
}

/* =============================================================================
   PHASE 1 — Frontend CRM Styles
   ============================================================================= */

/* ── Smart Follow-up Dashboard ─────────────────────────────────────────────── */
.nrlm-fe-smart-dashboard {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 12px 0 6px;
}
.nrlm-fe-smart-card {
	flex: 1 1 130px;
	min-width: 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 8px;
	border-radius: 10px;
	cursor: pointer;
	background: #fff;
	border: 2px solid transparent;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
	transition: transform .15s, box-shadow .15s, border-color .15s;
	user-select: none;
}
.nrlm-fe-smart-card:hover     { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.nrlm-fe-smart-card-active    { border-color: currentColor !important; }
.nrlm-fe-smart-overdue        { border-left: 4px solid #e53e3e; }
.nrlm-fe-smart-today          { border-left: 4px solid #dd6b20; }
.nrlm-fe-smart-upcoming       { border-left: 4px solid #0073aa; }
.nrlm-fe-smart-overdue  .nrlm-fe-smart-num { color: #e53e3e; }
.nrlm-fe-smart-today    .nrlm-fe-smart-num { color: #dd6b20; }
.nrlm-fe-smart-upcoming .nrlm-fe-smart-num { color: #0073aa; }
.nrlm-fe-smart-icon  { font-size: 20px; margin-bottom: 4px; }
.nrlm-fe-smart-num   { font-size: 26px; font-weight: 800; line-height: 1; }
.nrlm-fe-smart-label { font-size: 11px; color: #666; margin-top: 4px; text-align: center; }

/* ── View Toggle ───────────────────────────────────────────────────────────── */
.nrlm-fe-view-toggle {
	display: flex;
	gap: 8px;
	margin: 10px 0 4px;
}
.nrlm-fe-view-btn {
	padding: 6px 14px;
	border-radius: 6px;
	border: 1px solid #c3c4c7;
	background: #f6f7fb;
	font-size: 13px;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.nrlm-fe-view-btn:hover       { background: #e0e0e0; }
.nrlm-fe-view-btn-active      { background: #0073aa; color: #fff; border-color: #005a87; }
.nrlm-fe-view-btn-active:hover { background: #005a87; }

/* ── Bulk Action Bar ───────────────────────────────────────────────────────── */
.nrlm-fe-bulk-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	background: #f6f7fb;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	padding: 8px 12px;
	margin: 8px 0 4px;
	font-size: 13px;
}
.nrlm-fe-bulk-bar #nrlm-fe-bulk-count {
	font-weight: 700;
	color: #0073aa;
	min-width: 100px;
}

/* ── Checkbox column ───────────────────────────────────────────────────────── */
.nrlm-fe-th-check,
.nrlm-fe-td-check { width: 32px; text-align: center; }
.nrlm-fe-row-check { cursor: pointer; }

/* ── Pipeline / Kanban Board ───────────────────────────────────────────────── */
#nrlm-fe-pipeline-container {
	overflow-x: auto;
	padding: 8px 0 16px;
}
.nrlm-fe-kanban-board {
	display: flex;
	gap: 12px;
	min-width: 900px;
	align-items: flex-start;
}
.nrlm-fe-kanban-col {
	flex: 0 0 180px;
	background: #f6f7fb;
	border-radius: 10px;
	border: 1px solid #e0e0e0;
	min-height: 160px;
	display: flex;
	flex-direction: column;
	transition: background .15s;
}
.nrlm-fe-kanban-drag-over  { background: #e8f0fe; border-color: #1a73e8; }
.nrlm-fe-kanban-col-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 10px 6px;
	border-bottom: 1px solid #e0e0e0;
}
.nrlm-fe-kanban-col-title  { font-size: 11px; font-weight: 700; color: #444; text-transform: uppercase; letter-spacing: .4px; }
.nrlm-fe-kanban-col-count  { background: #0073aa; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 20px; }
.nrlm-fe-kanban-cards      { padding: 6px; display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.nrlm-fe-kanban-card {
	background: #fff;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
	padding: 8px 10px;
	cursor: grab;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
	transition: box-shadow .15s, opacity .15s;
	font-size: 13px;
}
.nrlm-fe-kanban-card:hover    { box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.nrlm-fe-kanban-dragging      { opacity: .5; cursor: grabbing; }
.nrlm-fe-kanban-name          { font-weight: 700; margin-bottom: 4px; color: #1a1a1a; }
.nrlm-fe-kanban-meta          { margin-bottom: 3px; }

/* ── Complete Follow-up button ─────────────────────────────────────────────── */
.nrlm-fe-complete-followup-btn { color: #137333 !important; }

/* ── Outcome modal overdue badge reuse ─────────────────────────────────────── */
.nrlm-fe-wrap .nrlm-overdue-badge { font-size: 9px; padding: 1px 5px; }
.nrlm-fe-wrap .nrlm-score-badge   { font-size: 11px; }

/* ── Toast notifications ───────────────────────────────────────────────────── */
.nrlm-fe-toast {
	position: fixed;
	bottom: 20px;
	right: 20px;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	z-index: 99999;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .3s, transform .3s;
	pointer-events: none;
	max-width: 280px;
}
.nrlm-fe-toast-show    { opacity: 1; transform: translateY(0); }
.nrlm-fe-toast-success { background: #137333; }
.nrlm-fe-toast-error   { background: #a50e0e; }
.nrlm-fe-toast-info    { background: #0073aa; }

/* ── Mobile responsive ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.nrlm-fe-smart-dashboard { gap: 6px; }
	.nrlm-fe-smart-card      { min-width: 90px; padding: 8px 4px; }
	.nrlm-fe-smart-num       { font-size: 20px; }
	.nrlm-fe-bulk-bar        { gap: 5px; }
	.nrlm-fe-view-toggle     { gap: 5px; }
}

/* =============================================================================
   HOUSING.COM FRONTEND SYNC SECTION
   ============================================================================= */
.nrlm-fe-housing-sync-section {
	margin: 20px 0 4px;
	background: #f8faff;
	border: 1px solid #d0daf5;
	border-left: 4px solid #1a73e8;
	border-radius: 8px;
	padding: 16px 18px;
	font-size: 13px;
}

.nrlm-fe-housing-sync-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.nrlm-fe-housing-icon   { font-size: 18px; }
.nrlm-fe-housing-last-sync {
	margin-left: auto;
	font-size: 12px;
	color: #666;
}
.nrlm-fe-housing-last-sync em { color: #137333; font-style: normal; font-weight: 600; }

.nrlm-fe-housing-prev-result {
	background: #e8f5e9;
	border: 1px solid #c8e6c9;
	color: #2e7d32;
	border-radius: 4px;
	padding: 7px 12px;
	font-size: 12px;
	margin-bottom: 12px;
}
.nrlm-fe-housing-prev-result.nrlm-fe-housing-error {
	background: #fce8e6;
	border-color: #f5b7b1;
	color: #a50e0e;
}

.nrlm-fe-housing-sync-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Housing sync button — scoped under .ntlm-wrapper to override base .nrlm-fe-btn rules */
.ntlm-wrapper .nrlm-fe-btn-housing,
.nrlm-fe-btn-housing {
	background: #1a73e8 !important;
	color: #fff !important;
	border: 1px solid #1557b0 !important;
	padding: 10px 20px !important;
	border-radius: 6px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: background .15s !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	visibility: visible !important;
	opacity: 1 !important;
	z-index: 2 !important;
	position: relative !important;
	text-decoration: none !important;
	line-height: 1.4 !important;
}
.ntlm-wrapper .nrlm-fe-btn-housing:hover,
.nrlm-fe-btn-housing:hover {
	background: #1557b0 !important;
	color: #fff !important;
}
.ntlm-wrapper .nrlm-fe-btn-housing:disabled,
.nrlm-fe-btn-housing:disabled {
	background: #90b8f8 !important;
	cursor: not-allowed !important;
	opacity: .7 !important;
}
.nrlm-fe-housing-spinner { font-size: 16px; }

/* Result box */
.nrlm-fe-housing-result {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.nrlm-fe-housing-ok  { background: #e6f4ea; border: 1px solid #b7dfbe; color: #137333; }
.nrlm-fe-housing-err { background: #fce8e6; border: 1px solid #f5b7b1; color: #a50e0e; }
.nrlm-fe-housing-result-icon  { font-size: 16px; }
.nrlm-fe-housing-result-msg   { font-weight: 600; }
.nrlm-fe-housing-err-list {
	margin: 4px 0 0 20px;
	padding: 0;
	font-size: 12px;
	color: #555;
	font-weight: normal;
}

@media (max-width: 600px) {
	.nrlm-fe-housing-sync-header { flex-direction: column; align-items: flex-start; }
	.nrlm-fe-housing-last-sync   { margin-left: 0; }
}

/* Project Name cell */
.nrlm-fe-wrap .nrlm-project-cell {
	display: inline-block;
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
	color: #1a73e8;
	font-size: 12px;
}

/* Smart residential filter label */
.nrlm-fe-smart-res-filter label { color: #0073aa; font-size: 11px; font-weight: 600; }

/* Source badge frontend */
.nrlm-fe-wrap .nrlm-source-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	background: #f1f3f4;
	color: #444;
	white-space: nowrap;
}

/* =============================================================================
   PHASE 2 FRONTEND — 8-Card Dashboard, Per-Page, Detail Popup, SV, Size
   ============================================================================= */

/* ── 8-Card Dashboard ─────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 16px;
}
.ntlm-wrapper .nrlm-fe-card {
	flex: 1 1 90px;
	min-width: 80px;
	background: #fff;
	border: 1px solid #e0e4ef;
	border-radius: 8px;
	padding: 12px 8px 10px;
	text-align: center;
	cursor: pointer;
	transition: box-shadow .15s, border-color .15s, transform .1s;
	user-select: none;
}
.ntlm-wrapper .nrlm-fe-card:hover       { box-shadow: 0 3px 10px rgba(26,115,232,.15); border-color: #1a73e8; transform: translateY(-1px); }
.ntlm-wrapper .nrlm-fe-card.nrlm-fe-card-active { background: #e8f0fe; border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,.25); }
.ntlm-wrapper .nrlm-fe-card-num   { display: block; font-size: 20px; font-weight: 700; line-height: 1.1; color: #1a73e8; }
.ntlm-wrapper .nrlm-fe-card-label { display: block; font-size: 10px; color: #666; margin-top: 4px; line-height: 1.3; }
/* Card accents */
.ntlm-wrapper .nrlm-fe-card-hot    .nrlm-fe-card-num { color: #c62828; }
.ntlm-wrapper .nrlm-fe-card-overdue .nrlm-fe-card-num { color: #e65100; }
.ntlm-wrapper .nrlm-fe-card-followup .nrlm-fe-card-num { color: #1565c0; }
.ntlm-wrapper .nrlm-fe-card-sitevisit .nrlm-fe-card-num { color: #2e7d32; }
.ntlm-wrapper .nrlm-fe-card-new    .nrlm-fe-card-num { color: #6a1b9a; }
.ntlm-wrapper .nrlm-fe-card-upcoming-fu .nrlm-fe-card-num { color: #00695c; }
.ntlm-wrapper .nrlm-fe-card-upcoming-sv .nrlm-fe-card-num { color: #0277bd; }

/* ── Per-Page Dropdown ────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-per-page-wrap {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.ntlm-wrapper .nrlm-fe-per-page-wrap label { font-size: 12px; color: #555; }
.ntlm-wrapper #nrlm-fe-per-page {
	font-size: 12px;
	padding: 3px 6px;
	border: 1px solid var(--nfe-border);
	border-radius: 4px;
}

/* ── Sortable column headers ──────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-sortable {
	cursor: pointer;
	white-space: nowrap;
	user-select: none;
}
.ntlm-wrapper .nrlm-fe-sortable:hover { color: #1a73e8; }
.ntlm-wrapper .nrlm-fe-sort-icon { font-size: 11px; opacity: .5; }

/* ── Size hint ────────────────────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-size-hint {
	display: block;
	font-size: 11px;
	color: #0077cc;
	margin-top: 3px;
}

/* ── Budget filter field: normal top-to-bottom order ──────────────────────── */
.ntlm-wrapper .nrlm-fe-filter-budget-field {
	flex-direction: column !important; /* label → input → hint — override column-reverse */
}
.ntlm-wrapper .nrlm-fe-filter-budget-field label {
	order: 0;
}
.ntlm-wrapper .nrlm-fe-filter-budget-field input {
	order: 1;
}
.ntlm-wrapper .nrlm-fe-budget-filter-hint {
	display: block;
	order: 2;
	font-size: 11px;
	color: #0077cc;
	font-weight: 600;
	margin-top: 3px;
	min-height: 14px; /* reserve space so layout doesn't jump */
}

/* ── Lead Detail Popup Modal ──────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-detail-modal-inner {
	max-width: 620px;
	width: 95vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
}
.ntlm-wrapper #nrlm-fe-detail-modal .nrlm-fe-modal-body { overflow-y: auto; flex: 1; padding: 0; }
.ntlm-wrapper .nrlm-fe-detail-sec {
	background: #e8f0fe;
	color: #1a73e8;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .6px;
	padding: 7px 14px;
}
.ntlm-wrapper .nrlm-fe-detail-row {
	display: flex;
	gap: 10px;
	padding: 7px 14px;
	border-bottom: 1px solid #f1f3f4;
	font-size: 13px;
}
.ntlm-wrapper .nrlm-fe-detail-label { width: 120px; flex-shrink: 0; color: #666; font-weight: 600; font-size: 12px; }
.ntlm-wrapper .nrlm-fe-detail-val   { flex: 1; word-break: break-word; }
.ntlm-wrapper .nrlm-fe-detail-notes { padding: 10px 14px; font-size: 13px; color: #444; background: #fafafa; }
.ntlm-wrapper .nrlm-fe-tl-wrap      { padding: 8px 14px; }
.ntlm-wrapper .nrlm-fe-tl-row {
	display: flex;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px solid #f5f5f5;
	font-size: 12px;
}
.ntlm-wrapper .nrlm-fe-tl-dot {
	width: 9px; height: 9px;
	border-radius: 50%;
	background: #1a73e8;
	margin-top: 4px;
	flex-shrink: 0;
}

/* ── Lead ID clickable style ─────────────────────────────────────────────── */
.ntlm-wrapper .nrlm-fe-uid {
	font-weight: 700;
	color: #1a73e8;
	text-decoration: none;
	font-family: monospace;
	font-size: 13px;
}
.ntlm-wrapper .nrlm-fe-uid:hover { text-decoration: underline; }

/* ── Responsive cards ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.ntlm-wrapper .nrlm-fe-card { min-width: calc(25% - 6px); flex: 0 0 calc(25% - 6px); }
	.ntlm-wrapper .nrlm-fe-card-num { font-size: 16px; }
	.ntlm-wrapper .nrlm-fe-card-label { font-size: 9px; }
}

/* ── Pagination bar — flex row with per-page right-aligned ───────────────── */
.ntlm-wrapper .nrlm-fe-pagination-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	padding: 8px 0;
}
.ntlm-wrapper .nrlm-fe-pagination-bar #nrlm-fe-pagination { flex: 1; }
.ntlm-wrapper .nrlm-fe-pagination-bar .nrlm-fe-per-page-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}
.ntlm-wrapper .nrlm-fe-per-page-wrap label { font-size: 12px; color: #555; white-space: nowrap; }
.ntlm-wrapper #nrlm-fe-per-page {
	font-size: 12px;
	padding: 4px 8px;
	border: 1px solid var(--nfe-border, #ddd);
	border-radius: 4px;
	width: auto;
	min-width: 60px;
}
