/* Global safety net for a recurring bug class: an element that sets its
   own `display` directly (needed so it isn't e.g. reset to `inline` by
   default) -- being an author-stylesheet rule -- outranks the browser's
   own low-specificity `[hidden]{display:none}` default, so toggling the
   `hidden` attribute (the convention this whole plugin uses for
   show/hide) silently does nothing on it. Already hit and individually
   patched several times before this rule existed (see
   .ahp-view-modal[hidden], .ahp-view-modal__header-actions [hidden],
   .ahp-bulk-bar__note[hidden], .ahp-row-assign-note[hidden] below, and
   .ahp-branch-card--bare[hidden]/.ahp-workspace__row-toggle[hidden]/
   .ahp-workspace__row-children[hidden] added in the same session as this
   rule) -- this covers every future element the same way instead of
   requiring a fresh scoped fix each time. Those existing scoped rules are
   redundant with this now but left in place as-is. */
.ahp-dashboard [hidden],
.ahp-view-modal [hidden] {
	display: none !important;
}

/* One profile area, not two: the dashboard's own nav already carries a
   profile menu (name/role/Settings/Log Out) equivalent to everything the
   native WP admin bar offers on this one page, so having both stacked was
   genuinely redundant/confusing -- hide the native bar here specifically
   (this does not touch wp-admin itself, an Admin can still reach it via
   the profile menu's Settings link or by URL). */
/* Real bug found 2026-10-06 (ChatGPT UX review): the standalone prospect/
   agent portal page (.ahp-onboarding-portal, see class-shortcode.php's
   render_prospect_portal()) never matched any of these :has() selectors --
   its wrapper is a different class from .ahp-dashboard, not a descendant
   of it -- so it got none of this page-chrome handling (admin bar/theme
   header-footer/chat-widget hiding, the real solid page background,
   scrollbar-gutter overflow handling). Visibly wrong only once something
   depended on it; same root cause already found and partly fixed for the
   --ahp-* custom properties above. Every selector below now covers both
   wrappers. */
body:has(.ahp-dashboard) #wpadminbar {
	display: none !important;
}
html:has(.ahp-dashboard) {
	margin-top: 0 !important;
	/* Real request (2026-09-10): "when i switch tabs this top nav moves
	   a bit." Root cause: .ahp-dashboard is deliberately full-bleed via
	   width:100vw (see its own rule below) so it always fills the real
	   viewport regardless of the host theme's content wrapper -- but
	   100vw does NOT account for the vertical scrollbar's own width.
	   Switching to a tab whose content is tall enough to need a
	   scrollbar (or short enough not to) changes the scrollbar's
	   presence, which changes the *actual* visible width without
	   changing 100vw's value -- the nav (and everything else at
	   width:100vw) shifts sideways by the scrollbar's width between
	   tabs. Reserving that space unconditionally makes 100vw consistent
	   whether or not a given tab's content actually needs to scroll. */
	scrollbar-gutter: stable;
}

/* Some themes (e.g. Flatsome) set a fallback background color on html/body
   that shows through below this page's content when it's shorter than the
   viewport, making the dashboard look like a small white box floating on a
   colored background instead of filling the page. Force white + full height
   wherever this shortcode renders, regardless of the host theme's own
   background settings. */
html:has(.ahp-dashboard),
body:has(.ahp-dashboard) {
	background: #f4f5f7 !important;
	height: 100vh;
	overflow: hidden;
}

/* Real bug (2026-10-02, mobile pass): the fixed-height/overflow:hidden
   above is a deliberate desktop choice (every panel manages its own
   internal scroll instead of the whole page scrolling) -- but on mobile
   the sidebar list and the lead detail stack vertically into one tall
   column with no internal scroll region of its own, so most of the
   detail card (Save, Add a note, Recent activity) was trapped below the
   fold and completely unreachable. Desktop behavior is untouched; only
   this breakpoint switches the page itself to scroll normally. */
@media (max-width: 760px) {
	html:has(.ahp-dashboard),
	body:has(.ahp-dashboard) {
		height: auto;
		min-height: 100vh;
		overflow-y: auto;
	}
}

/* This is a standalone internal app page, not a normal marketing page --
   the site's own public nav (MEDICARE/HEALTH INSURANCE/.../CONTACT US) and
   footer (QUICKLINKS/HOURS OF OPERATION) don't belong wrapped around it and
   are confusing/out of place here. Hide the theme's real header/footer
   specifically on whichever page has this shortcode -- doesn't touch any
   other page on the site. */
body:has(.ahp-dashboard) #header,
body:has(.ahp-dashboard) #footer {
	display: none !important;
}

/* Real request (2026-09-23): "have the chat thing not show up in the
   plugin." The LeadConnector plugin (its own site-wide chat widget,
   unrelated to this plugin) injects a real custom element,
   <chat-widget id="leadconnector-chat-widget-js"> (confirmed live via
   DOM inspection -- it renders into its own shadow root, so nothing
   inside it is reachable/stylable from here, but the host element
   itself is a normal element we can hide). Same scoped-hide pattern as
   the theme header/footer above: only removes it from pages that have
   this shortcode, leaves it untouched everywhere else on the site
   (Steve/marketing pages still get the real chat widget). */
body:has(.ahp-dashboard) chat-widget {
	display: none !important;
}

/* Universal box-sizing reset, scoped to this plugin's own root -- found
   live (2026-09-09) that .ahp-dashboard's own border-box rule below does
   NOT cascade to descendants (box-sizing isn't an inherited CSS property),
   so every individual input/select/textarea across the plugin needed its
   own explicit border-box or its padding silently added onto its own
   width:100%, overflowing its container by the padding+border amount.
   Concretely: the Name/Email header fields overflowed ~20px past their
   own grid cell and visibly bled into the next field over. Rather than
   keep finding and patching one more input at a time, this makes the
   whole plugin immune to the bug class at once. */
/* .ahp-view-modal (every modal this plugin has -- client PIN, agent/
   agency "View as", lead detail, agency/branch edit, create-login,
   account, manage-agents) is a DOM sibling of .ahp-dashboard, not a
   descendant of it, so the reset above never reaches it on its own.
   Same reset, same reasoning, covering that other root too. */
.ahp-dashboard *,
.ahp-dashboard *::before,
.ahp-dashboard *::after,
.ahp-view-modal *,
.ahp-view-modal *::before,
.ahp-view-modal *::after {
	box-sizing: border-box;
}

/* Real request (2026-09-23): "harden the plugins css so nothing interferes
   with it except us." A site-wide plugin (LeadConnector, confirmed active
   on production only -- local dev has no such plugin installed at all,
   which is why the two environments can visually diverge even when this
   file is byte-identical between them) can load its own global CSS on
   every page. Every real font-size/line-height/margin/padding elsewhere
   in this file is already scoped to a specific .ahp-* class, which wins
   on specificity against a generic external rule -- but that only holds
   if the BASE values those rem/em-based rules inherit from (html/body's
   own font-size) haven't been changed by something else first. Pinning
   an explicit px baseline + zeroing the browser's own default
   margin/padding here means every .ahp-* rule that follows calculates
   from a known, fixed starting point regardless of what any other
   plugin/theme does to html/body. */
.ahp-dashboard,
.ahp-view-modal {
	font-size: 16px;
	line-height: 1.5;
}

.ahp-dashboard,
.ahp-dashboard *,
.ahp-view-modal,
.ahp-view-modal * {
	margin: 0;
	padding: 0;
}

/* Real bug found 2026-10-06 testing the portal-page notification bell:
   .ahp-onboarding-portal (the prospect/agent self-service page's own
   top-level wrapper, see class-shortcode.php's render_prospect_portal())
   never shared this block's --ahp-* custom properties, since it's a
   SEPARATE wrapper class from .ahp-dashboard, not a descendant of it --
   any var(--ahp-gold)-reliant style on that page silently fell back to
   each property's CSS-spec initial value (black for `color`) instead of
   erroring, so this had no visible failure until something gold-reliant
   was actually added there. Added here rather than putting .ahp-dashboard
   on the portal's own markup, to avoid pulling in that class's other,
   unrelated structural rules onto a deliberately simpler page. */
.ahp-dashboard,
.ahp-onboarding-portal {
	/* 2026-09-08: Steve sent a real design reference (an HTML mockup,
	   "AHP Lead Manager + Contracting") whose actual CSS custom properties
	   were pulled and reused directly here, not eyeballed off a screenshot
	   -- :root{--navy:#012340;--gold:#d9a62b;--green:#168a55;--ink:#1c2b39;
	   --muted:#667887;--line:#d8e5ec} in that file. This SUPERSEDES the
	   2026-09-02 "no gold anywhere" call below -- Steve's own reference now
	   uses gold throughout, so this reverses that decision rather than
	   fighting it. Variable names kept as --ahp-gold/--ahp-gold-text (they
	   were already named that even while holding a blue value) so this is
	   a value-only change, not a rename across the file. */
	/* Design audit finding, 2026-09-13: gold was in use for five distinct
	   UI roles at once (primary button fill, outline borders, active-row
	   indicator bars, focus rings, text links), which read as "sprinkled
	   everywhere" rather than "this is THE action". Scoped first pass:
	   recolored the active-row bar and a few hover-state borders (state
	   indicators, not buttons) to navy -- see .ahp-workspace__row.is-active,
	   .ahp-roster-card--clickable:hover, .ahp-agent-card-simple:hover,
	   .ahp-onboarding-stage.is-completed. Gold still fills every actual
	   primary/.gold button and the form-focus ring untouched; a full
	   sweep of every remaining outline-border/text-link use is a larger,
	   separate pass, not done blind in this one. */
	--ahp-navy: #012340;
	--ahp-gold: #d9a62b;
	--ahp-gold-text: #8a6215;
	--ahp-bg-page: #eef3f7;
	--ahp-bg-subtle: #f4f5f7;
	--ahp-border: #d8e5ec;
	--ahp-text: var(--ahp-navy);
	--ahp-text-muted: #667887;
	--ahp-glass-bg: #fff;
	--ahp-glass-blur: none;

	/* Radius/shadow tokens for the Classic/Modern design-variant toggle
	   (see .ahp-theme-modern below, initDesignVariant() in
	   dashboard-widget.js, and the toggle control in the profile menu,
	   class-shortcode.php). Defaults here are the exact literal values
	   already in use throughout this file at the time these were
	   introduced -- every border-radius/box-shadow declaration below that
	   was converted to reference one of these tokens keeps its original
	   literal as the var() fallback too, so Classic (the default, no
	   class added) renders byte-for-byte identical to before this existed.
	   Named by their literal default value, not by size-tier name (sm/md/
	   lg), since the actual radii in this file don't cleanly bucket into
	   3-4 tiers -- this keeps the mapping unambiguous. Deliberately not
	   applied to border-radius:50% (avatar/icon circles) or one-off
	   single-use values (2px, 4px) -- those aren't part of the card/panel
	   visual language this toggle targets. */
	--ahp-radius-0: 0;
	--ahp-radius-5: 5px;
	--ahp-radius-6: 6px;
	--ahp-radius-7: 7px;
	--ahp-radius-8: 8px;
	--ahp-radius-9: 9px;
	--ahp-radius-10: 10px;
	--ahp-radius-12: 12px;
	--ahp-radius-14: 14px;
	--ahp-radius-18: 18px;
	--ahp-radius-pill: 999px;
	--ahp-shadow-card: 0 12px 30px rgba(1, 35, 64, 0.09);
	--ahp-shadow-card-subtle: 0 12px 30px rgba(1, 35, 64, 0.06);
	--ahp-shadow-elevated: 0 12px 28px rgba(1, 35, 64, 0.18);
	--ahp-shadow-hover: 0 4px 16px rgba(1, 35, 64, 0.15);
	--ahp-shadow-modal: 0 18px 45px rgba(1, 35, 64, 0.25);
	--ahp-shadow-drawer: -18px 0 45px rgba(1, 35, 64, 0.25);
	--ahp-shadow-drawer-edge: -6px 0 6px -6px rgba(1, 35, 64, 0.15);
	--ahp-shadow-popover: 0 10px 25px rgba(0, 0, 0, 0.1);

	/* Explicit font stack, not "inherit" -- this page renders inside AHP's
	   real theme (Flatsome, body font Lato) as well as bare local dev (no
	   theme font opinion at all), and "inherit" meant the dashboard silently
	   looked different depending which site it was on. Locking it to a
	   fixed stack (same one already used for the login page's branding in
	   class-auth.php) makes the dashboard look identical everywhere. */
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: var(--ahp-navy);
	/* Full-bleed regardless of the host page's own content wrapper/max-
	   width/padding (real request, 2026-09-09: "extend this to the edge
	   of the screen"). The 100vw + negative-margin pair breaks out of
	   whatever centered, padded container this shortcode's parent theme
	   places it in -- width:100% alone only fills that container, it
	   can't escape it. A small explicit padding keeps content off the
	   true viewport edge. */
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 0 14px;
	/* Real bug found live (2026-09-08): the real WordPress theme this
	   renders inside applies its own "global padding" to this element (a
	   direct child of the block-theme content area) -- with the browser
	   default content-box sizing, that inherited padding ADDS to the
	   100% width instead of being absorbed by it, pushing the page a few
	   pixels past the viewport and creating a page-level horizontal
	   scrollbar (never intended -- only inner tables should scroll
	   sideways). border-box makes width:100% include whatever padding
	   ends up applied, from any source. */
	box-sizing: border-box;
}

/* Flatsome (and most themes) apply their own global text-transform/
   letter-spacing reset to <button>/<input>/<select> elements -- without
   this, the theme's styling wins on the real site (e.g. nav tabs render
   bold/uppercase/spaced-out there but not in local dev, which has no such
   theme opinion). Locks every form control inside the dashboard to the
   same plain look regardless of which theme it's embedded in. */
.ahp-dashboard button,
.ahp-dashboard input,
.ahp-dashboard select,
.ahp-dashboard textarea {
	text-transform: none;
	letter-spacing: normal;
}

/* Dark theme -- opt-in via Settings > Appearance > Dashboard Theme, adds
   .ahp-theme-dark to the wrapper (see class-shortcode.php). Overrides only
   the shared custom properties + page chrome; every card/table/button rule
   elsewhere in this file already reads color/background through these
   variables (--ahp-text, --ahp-bg-subtle, --ahp-border, --ahp-glass-bg/
   --ahp-glass-blur), so this block is the whole theme, not a duplicate of
   every rule. The one exception is the First/Last Name "link" color below,
   which isn't variable-driven in the light theme (locked to a specific
   navy per an earlier explicit request) and needs its own dark override. */
.ahp-dashboard.ahp-theme-dark {
	/* Lighter gold for dark backgrounds -- #8a6215 (the light-theme value,
	   dark enough for contrast on white) would be unreadable on navy. */
	--ahp-gold-text: #f4c75b;
	--ahp-bg-page: #0c2138;
	--ahp-bg-subtle: rgba(255, 255, 255, 0.07);
	--ahp-border: rgba(255, 255, 255, 0.16);
	--ahp-text: #ffffff;
	--ahp-text-muted: rgba(255, 255, 255, 0.68);
	--ahp-glass-bg: rgba(255, 255, 255, 0.06);
	--ahp-glass-blur: blur(14px);

	color: var(--ahp-text);
	background: linear-gradient(160deg, #012340 0%, #0c2c4a 45%, #06182b 100%);
	border-radius: 14px;
	padding: 20px;
}

.ahp-dashboard.ahp-theme-dark [data-ahp-list="recentLeads"] [data-ahp-field="firstName"],
.ahp-dashboard.ahp-theme-dark [data-ahp-list="recentLeads"] [data-ahp-field="lastName"],
.ahp-dashboard.ahp-theme-dark [data-ahp-list="allLeads"] [data-ahp-field="firstName"],
.ahp-dashboard.ahp-theme-dark [data-ahp-list="allLeads"] [data-ahp-field="lastName"],
.ahp-dashboard.ahp-theme-dark [data-ahp-list="unassignedLeads"] [data-ahp-field="firstName"],
.ahp-dashboard.ahp-theme-dark [data-ahp-list="unassignedLeads"] [data-ahp-field="lastName"],
.ahp-dashboard.ahp-theme-dark [data-ahp-list="staleLeads"] [data-ahp-field="firstName"],
.ahp-dashboard.ahp-theme-dark [data-ahp-list="staleLeads"] [data-ahp-field="lastName"] {
	color: var(--ahp-gold-text);
}

/* Modern design variant -- opt-in via the "Dashboard Design" toggle in the
   profile menu (see initDesignVariant() in dashboard-widget.js and the
   toggle control in class-shortcode.php), stored per-browser in
   localStorage only (no server/DB involvement, so it's instantly
   reversible and safe to ship dormant). Surface-polish only: softer/
   larger corner radii, lighter elevation shadows, and a lighter hairline
   border -- deliberately does NOT touch color palette, layout, or
   component structure. Independent of .ahp-theme-dark above; both can be
   active at once (each only overrides its own set of variables). */
.ahp-dashboard.ahp-theme-modern {
	--ahp-radius-0: 4px;
	--ahp-radius-5: 8px;
	--ahp-radius-6: 10px;
	--ahp-radius-7: 10px;
	--ahp-radius-8: 12px;
	--ahp-radius-9: 12px;
	--ahp-radius-10: 14px;
	--ahp-radius-12: 16px;
	--ahp-radius-14: 18px;
	--ahp-radius-18: 22px;
	--ahp-shadow-card: 0 1px 2px rgba(1, 35, 64, 0.05), 0 1px 3px rgba(1, 35, 64, 0.04);
	--ahp-shadow-card-subtle: 0 1px 2px rgba(1, 35, 64, 0.03);
	--ahp-shadow-elevated: 0 4px 16px rgba(1, 35, 64, 0.08);
	--ahp-shadow-hover: 0 2px 8px rgba(1, 35, 64, 0.08);
	--ahp-shadow-modal: 0 8px 24px rgba(1, 35, 64, 0.12);
	--ahp-shadow-drawer: -8px 0 24px rgba(1, 35, 64, 0.1);
	--ahp-shadow-drawer-edge: -4px 0 8px -4px rgba(1, 35, 64, 0.08);
	--ahp-shadow-popover: 0 4px 16px rgba(1, 35, 64, 0.08);
	--ahp-border: rgba(1, 35, 64, 0.08);
}

/* Modern's own restrained-gold rule: the Stitch redesign reference used
   gold only for small badges/counts (e.g. the office "3 Agents" pill),
   never as a primary button fill -- primary actions (+ Add Lead, + Add
   Agent, etc.) were solid navy there. Scoped to .ahp-theme-modern only;
   Classic's gold buttons are untouched. Deliberately just a color swap
   on the existing .ahp-btn--gold class -- no new button variant, no
   markup change, so every page that already uses that class picks this
   up automatically. */
.ahp-dashboard.ahp-theme-modern .ahp-btn--gold {
	background: var(--ahp-navy);
	color: #fff;
}

/* Visual-only section nav, matches the mockup's tab bar -- only
   "Dashboard" is real content today, the rest are inert (see the dev
   skill's "visual chrome, not functional" note). */
.ahp-dashboard__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	background: var(--ahp-navy);
	border-radius: var(--ahp-radius-8, 8px);
	padding: 6px 6px 6px 12px;
	gap: 4px;
	margin-bottom: 24px;
	position: sticky;
	top: 0;
	z-index: 20;
}

/* Real request (2026-10-02, mobile pass): "work on the mobile view...
   start with the agent flow" -- at mobile widths the nav's 8 tabs don't
   fit and were getting clipped off-screen with no way to reach the
   later ones. Scoped to this breakpoint only; desktop's flex-wrap layout
   is untouched. Horizontal scroll (not wrap) keeps it one compact row
   instead of eating several lines of vertical space on a phone. */
@media (max-width: 760px) {
	.ahp-dashboard__nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.ahp-dashboard__nav::-webkit-scrollbar {
		display: none;
	}

	.ahp-dashboard__nav-item {
		flex-shrink: 0;
	}
}

/* Real AHP brand mark (assets/media/ahp-nav-icon-white.png, cropped from
   the same login-page logo file -- assets/media/ahp-logo.png -- just the
   icon, white-on-transparent so it reads on the solid navy nav
   background; the login logo's own navy/gold wordmark colors would be
   invisible here). Purely decorative brand chrome, not a nav-item/tab. */
.ahp-dashboard__nav-logo {
	height: 24px;
	width: auto;
	margin: 0 16px 0 2px;
	padding-right: 16px;
	border-right: 1px solid rgba(255, 255, 255, 0.16);
	flex-shrink: 0;
}

/* The native WP admin bar is hidden on this page entirely now (see the
   top of this file) -- it no longer needs an offset, and WP still adds
   the `admin-bar` class to <body> even though the bar itself is display:
   none'd, so this override neutralizes the stale 32px/46px offset that
   would otherwise leave a blank gap above the nav. */
body.admin-bar .ahp-dashboard__nav {
	top: 0;
}

.ahp-dashboard__nav-item {
	padding: 8px 16px;
	border-radius: var(--ahp-radius-6, 6px);
	font-size: 0.88rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.6);
	cursor: default;
	background: none;
	border: none;
	font-family: inherit;
}

/* Only tabs with a real panel (Dashboard/All Leads/Unassigned/Agencies/
   Agents) get pointer/hover -- Conversations stays inert. */
button.ahp-dashboard__nav-item {
	cursor: pointer;
}

button.ahp-dashboard__nav-item:hover {
	color: rgba(255, 255, 255, 0.85);
}

.ahp-dashboard__nav-item.is-active {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* Settings link -- manage_options users only (see class-shortcode.php).
   Pushed to the far right of the nav bar, real <a> so it's an actual link,
   not another fake tab. */
.ahp-dashboard__nav-item--settings {
	margin-left: auto;
	cursor: pointer;
	text-decoration: none;
}

/* Real request (2026-09-15): "My Page" simplified to one plain link
   straight to the real wp-admin edit screen -- a real <a>, same reasoning
   as the Settings link above (cursor/hover only work on button. by
   default, see the comment on that rule). */
a.ahp-dashboard__nav-item {
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

a.ahp-dashboard__nav-item:hover {
	color: rgba(255, 255, 255, 0.85);
}

.ahp-dashboard__nav-item--settings:hover {
	color: rgba(255, 255, 255, 0.85);
}

/* .ahp-dashboard__scope-banner/__scope-owner removed (2026-09-10 request:
   "the agency owner full access header can go... i dont like it") --
   the scope banner these styled no longer renders, see class-shortcode.php. */

/* Real per-lead disposition status-ladder (Steve's design reference:
   ".ahp-lead-status-bar"/".ahp-lead-status-btn", real values reused
   directly). Wired to REAL data -- see class-aggregator.php's
   build_lead_list() for how each lead's own real pipeline stage list is
   resolved; a lead with no stage data falls back to the plain
   .ahp-pill treatment instead (see renderStatusLadder() in
   dashboard-widget.js). Clickable buttons POST to
   /opportunities/{id}/stage to actually change the lead's stage. */
.ahp-lead-status-bar {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	align-items: center;
}

.ahp-lead-status-btn {
	border: 1px solid var(--ahp-border, #c8d6df);
	background: var(--ahp-glass-bg, #fff);
	color: var(--ahp-text-muted, #526875);
	border-radius: var(--ahp-radius-pill, 999px);
	padding: 5px 8px;
	font-size: 0.68rem;
	font-weight: 900;
	white-space: nowrap;
	cursor: pointer;
	font-family: inherit;
}

.ahp-lead-status-btn:hover:not(.active):not(:disabled) {
	border-color: var(--ahp-gold, #d9a62b);
}

.ahp-lead-status-btn:disabled {
	cursor: default;
}

.ahp-lead-status-btn.active {
	background: var(--ahp-navy, #012340);
	border-color: var(--ahp-navy, #012340);
	color: #fff;
}

/* Real request (2026-10-07): "the disposition steps can go away in the
   filtering view so we have more room... click a click to change thing"
   -- compact current-stage badge shown in table rows instead of the full
   6-button bar (see renderStatusLadder()'s table-context check); clicking
   it reveals the real bar to actually change the stage. */
.ahp-lead-status-compact {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 1px solid var(--ahp-navy, #012340);
	background: var(--ahp-navy, #012340);
	color: #fff;
	border-radius: var(--ahp-radius-pill, 999px);
	padding: 5px 10px;
	font-size: 0.68rem;
	font-weight: 900;
	white-space: nowrap;
	cursor: pointer;
	font-family: inherit;
}
.ahp-lead-status-compact::after {
	content: "\25be";
	font-size: 0.6rem;
	opacity: 0.8;
}
.ahp-lead-status-compact:hover {
	border-color: var(--ahp-gold, #d9a62b);
}

/* Real request (2026-10-07): "id like to have the drop down arrow ther
   also when its expanded to collapse it back" -- same caret styling as
   the compact badge's own ::after, pointed up to read as "collapse"
   rather than "expand". */
.ahp-lead-status-collapse {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ahp-border, #c8d6df);
	background: var(--ahp-glass-bg, #fff);
	color: var(--ahp-text-muted, #526875);
	border-radius: var(--ahp-radius-pill, 999px);
	width: 22px;
	height: 22px;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
}
.ahp-lead-status-collapse::after {
	content: "\25b4";
	font-size: 0.62rem;
}
.ahp-lead-status-collapse:hover {
	border-color: var(--ahp-gold, #d9a62b);
}

/* Real request (2026-09-14): "for each disposition there should be a
   confirmation there simply glows red flashes gently and then lets the
   user proceed if clicked" -- see handleDispositionConfirmClick() in
   dashboard-widget.js for the arm/confirm logic this class is toggled by.
   A gentle pulse, not a hard blink -- this is a "click again to confirm"
   affordance, not an error state. */
@keyframes ahp-disposition-confirm-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(214, 61, 61, 0.55); border-color: #d63d3d; }
	50% { box-shadow: 0 0 0 5px rgba(214, 61, 61, 0.18); border-color: #e77373; }
}

.ahp-lead-status-btn--confirm-armed:not(.active) {
	border-color: #d63d3d;
	color: #b42318;
	animation: ahp-disposition-confirm-pulse 1s ease-in-out infinite;
}

/* Real request (2026-09-14): "how long it took for the agent to move each
   disposition until sold" -- see renderStageHistory() in
   dashboard-widget.js. */
.ahp-stage-history {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ahp-stage-history__row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 0.82rem;
	flex-wrap: wrap;
}

.ahp-stage-history__stage {
	font-weight: 700;
	color: var(--ahp-navy, #012340);
	min-width: 110px;
}

.ahp-stage-history__time {
	color: var(--ahp-text-muted, #526875);
}

.ahp-stage-history__duration {
	color: var(--ahp-text-muted, #526875);
	font-size: 0.76rem;
	margin-left: auto;
}

.ahp-stage-history__summary {
	margin-top: 4px;
	padding-top: 6px;
	border-top: 1px solid var(--ahp-border, #dbe3ea);
	font-weight: 800;
	font-size: 0.82rem;
	color: var(--ahp-navy, #012340);
}

.ahp-dashboard__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.ahp-stat-card {
	background: var(--ahp-glass-bg); backdrop-filter: var(--ahp-glass-blur); -webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-12, 12px);
	padding: 18px 20px;
	/* Soft navy-tinted shadow, matching Steve's design reference's card
	   style (its own --shadow token: 0 12px 30px rgba(1,35,64,.09)). */
	box-shadow: var(--ahp-shadow-card, 0 12px 30px rgba(1, 35, 64, 0.09));
}

.ahp-stat-card__label {
	font-size: 0.85rem;
	color: var(--ahp-text-muted);
	font-weight: 500;
	margin-bottom: 6px;
}

.ahp-stat-card__value {
	font-size: 2rem;
	font-weight: 700;
	color: var(--ahp-text);
	line-height: 1.1;
}

/* Trends tab's lead-volume chart (2026-10-06, replacing the old flat
   This-Week/Last-Week/Change strip) -- same white-card token combo as
   .ahp-stat-card/.ahp-attention elsewhere, see renderTrendChart() in
   dashboard-widget.js for what fills .ahp-trend-chart. */
.ahp-trend-card {
	background: var(--ahp-glass-bg); backdrop-filter: var(--ahp-glass-blur); -webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-12, 12px);
	box-shadow: var(--ahp-shadow-card, 0 12px 30px rgba(1, 35, 64, 0.09));
	padding: 18px 20px;
	margin-bottom: 24px;
}

.ahp-trend-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
}

.ahp-trend-card__title {
	margin: 0 0 4px;
	font-size: 0.95rem;
	color: var(--ahp-text);
}

.ahp-trend-card__summary {
	margin: 0;
	font-size: 0.82rem;
	color: var(--ahp-text-muted);
}

.ahp-trend-chart {
	width: 100%;
}

.ahp-trend-chart__svg {
	display: block;
	width: 100%;
	height: 160px;
}

.ahp-trend-chart__bar {
	fill: var(--ahp-navy);
	transition: fill 120ms ease;
}

.ahp-trend-chart__bar:hover {
	fill: var(--ahp-gold);
}

/* Today / this-week-so-far -- real data, visually distinct as still in
   progress rather than a complete period (excluded from the period
   totals above it -- see build_lead_volume_trend()'s own comment). */
.ahp-trend-chart__bar--partial {
	fill: var(--ahp-border);
}

.ahp-trend-chart__bar--partial:hover {
	fill: var(--ahp-gold);
}

.ahp-trend-chart__labels {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	font-size: 0.7rem;
	color: var(--ahp-text-muted);
}

.ahp-dashboard__section-title {
	/* Real request: "make the viewing as header higher" (Agencies tab
	   annotated screenshot) -- the 24px top margin here, stacked with
	   .ahp-view-modal__subtabs's own 14px bottom margin below, pushed the
	   docked "Viewing as X" panel noticeably lower than the nav bar.
	   Tightened globally (this class is shared across every tab) rather
	   than special-cased to Agencies, consistent with how every other
	   shared-component change in this file applies everywhere at once. */
	margin: 8px 0 14px;
	color: var(--ahp-text);
	font-size: 1.2rem;
	font-weight: 700;
}

/* Agent Leaderboard (2026-09-29): title + period toggle share one row so
   the toggle doesn't eat into the row-list space below it -- same
   .ahp-dashboard__section-title used everywhere else, just wrapped so it
   no longer needs its own bottom margin here (the toggle sits right next
   to it instead of below it). */
.ahp-dashboard__leaderboard-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 8px 0 4px;
}

.ahp-dashboard__leaderboard-header .ahp-dashboard__section-title {
	margin: 0;
}

.ahp-sub-agency-card {
	background: var(--ahp-glass-bg); backdrop-filter: var(--ahp-glass-blur); -webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-12, 12px);
	padding: 18px 20px;
	box-shadow: var(--ahp-shadow-card, 0 12px 30px rgba(1, 35, 64, 0.09));
}

.ahp-branch-card {
	background: var(--ahp-glass-bg); backdrop-filter: var(--ahp-glass-blur); -webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-8, 8px);
	padding: 12px 16px;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.ahp-sub-agency-card__branches {
	font-size: 0.85rem;
	color: var(--ahp-text-muted);
	margin-bottom: 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.ahp-branch-chip {
	display: inline-block;
	background: var(--ahp-bg-subtle, #f5f5f5);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-pill, 999px);
	padding: 2px 10px;
	font-size: 0.8rem;
	cursor: pointer;
}

.ahp-branch-chip:hover {
	background: var(--ahp-border);
}

.ahp-sub-agency-card__eyebrow {
	font-size: 0.72rem;
	color: var(--ahp-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
	margin-bottom: 4px;
}

.ahp-sub-agency-card__name {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--ahp-text);
	margin-bottom: 4px;
}

.ahp-sub-agency-card__manager {
	color: var(--ahp-text-muted);
	font-size: 0.88rem;
	margin-bottom: 14px;
}

.ahp-sub-agency-card__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.ahp-sub-agency-card__stats > div {
	background: var(--ahp-bg-subtle);
	border-radius: var(--ahp-radius-6, 6px);
	padding: 10px 8px;
	text-align: center;
}

.ahp-sub-agency-card__stats strong {
	display: block;
	font-size: 1.15rem;
	color: var(--ahp-text);
	font-weight: 700;
}

.ahp-sub-agency-card__stats span {
	font-size: 0.72rem;
	color: var(--ahp-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* Visual only, matches the mockup -- not a real link (see dev skill's
   "visual chrome, not functional" note). */
.ahp-sub-agency-card__link {
	display: block;
	margin-top: 12px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ahp-gold-text);
	cursor: default;
}

/* Wraps "View as this Agency" alongside the scaffolded (disabled) Edit
   Agency / Manage Agents buttons -- override the link's own margin-top
   since it's a flex sibling here, not a standalone block anymore. */
.ahp-sub-agency-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-top: 12px;
}

.ahp-sub-agency-card__actions .ahp-sub-agency-card__link {
	margin-top: 0;
}

/* Agencies tab detail panel (see initAgencyWorkspace()): the docked shared
   .ahp-view-modal already shows name/stats/roster, so this reuses
   .ahp-sub-agency-card purely for its existing Edit Agency/+Add
   Sub-Agency delegated handlers -- strip the card's own visual chrome so
   it reads as a plain action bar sitting above the docked modal, not a
   second card competing with it. */
.ahp-sub-agency-card--bare {
	background: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border: none;
	box-shadow: none;
	border-radius: var(--ahp-radius-0, 0);
	padding: 0 0 14px;
	margin-bottom: 4px;
}

/* Same idea as .ahp-sub-agency-card--bare above, for a selected top-level
   ("AHP Agencies") branch instead -- just its existing Edit button,
   reusing .ahp-branch-card's own closest('.ahp-branch-card') delegated
   handler, stripped of its normal chip-like chrome. */
.ahp-branch-card--bare {
	background: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border: none;
	padding: 0 0 14px;
	margin-bottom: 4px;
}

/* Real bug found live (2026-09-10): .ahp-branch-card sets display:flex
   directly, which -- being an author-stylesheet class rule -- outranks
   the browser's own low-specificity `[hidden] { display: none }`
   default, so toggling the `hidden` attribute on this element (see
   initAgencyWorkspace()) had no visual effect at all; it stayed visible
   showing "Edit" even while a top-level branch wasn't the current
   selection. Scoped to --bare specifically since the normal
   .ahp-branch-card usage (branch chips) never uses `hidden` toggling. */
.ahp-branch-card--bare[hidden] {
	display: none;
}

/* Dashboard tab's "Recent Leads" table only -- a fixed-height scrollable
   panel so a long recent-leads list doesn't push the rest of the page (or
   the sticky nav's usefulness) down with it. Other tables (All Leads etc.)
   are left full-length, they're the "see everything" views. */
/* Real request (2026-09-10): "there is alot of white space at the bottom
   of the dashboard can we make the lead window come down a bit" -- was a
   fixed 420px regardless of the viewport, leaving real dead space below
   it on a typical screen (the Dashboard tab has nothing else below this
   box but a one-line note and a timestamp). calc(100vh - 420px) fills
   the actual remaining room under the nav/stat cards/title instead
   (measured live: this box's own top sits ~360px down, so subtracting
   420px leaves roughly the same footnote-sized gap at the bottom this
   box always had, just scaled to the real viewport). min-height is the
   floor for a short/laptop-height window, at which point it behaves like
   the old fixed value again instead of squeezing to something unusably
   short. */
.ahp-dashboard__scroll-table {
	max-height: calc(100vh - 420px);
	min-height: 240px;
	overflow-y: auto;
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-8, 8px);
	/* Real request (2026-09-13): "the list of leads needs to be
	   scrollable i just dont want the scroll handles showing" -- box
	   stays exactly the same size, scrolling still fully works (wheel,
	   trackpad, touch, keyboard), the scrollbar itself is just never
	   drawn. Firefox: scrollbar-width. Chrome/Safari/Edge: the
	   ::-webkit-scrollbar rule below (unsupported properties are ignored
	   per-engine, not a fallback that needs @supports). */
	scrollbar-width: none;
}

.ahp-dashboard__scroll-table::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.ahp-dashboard__scroll-table .ahp-dashboard__recent-leads {
	border: none;
	border-radius: var(--ahp-radius-0, 0);
}

/* [data-ahp-resizable-table] added to the selector purely to out-specify
   the generic sticky-header rule below (both would otherwise tie at the
   same specificity and the later one in the file would win by luck of
   source order) -- this table (Dashboard's own 420px-capped box) needs
   top:0 relative to ITS OWN scroll box, not the 48px page-nav offset the
   full-length tables need below. */
.ahp-dashboard__scroll-table .ahp-dashboard__recent-leads[data-ahp-resizable-table] thead th {
	position: sticky;
	top: 0;
	z-index: 5;
	/* Real request (2026-09-10): "the column names dont need to scroll
	   either." var(--ahp-bg-subtle) (this table's normal header
	   background) is a near-transparent tint in the dark theme (see the
	   .ahp-theme-dark block's own comment on that variable) -- fine for a
	   static header, but a STICKY one needs to fully occlude rows
	   scrolling underneath it, which a translucent background can't do.
	   --ahp-bg-page is solid in both themes and is the real page
	   background color, so it blends in seamlessly either way. */
	background: var(--ahp-bg-page);
}

.ahp-dashboard__recent-leads {
	width: 100%;
	border-collapse: collapse;
	background: var(--ahp-glass-bg); backdrop-filter: var(--ahp-glass-blur); -webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-12, 12px);
	box-shadow: var(--ahp-shadow-card-subtle, 0 12px 30px rgba(1, 35, 64, 0.06));
}

/* Real bug found live (2026-09-10) while wiring up sticky headers ("the
   column names dont need to scroll either"): this table's own overflow:
   hidden above (there only to clip its header/body backgrounds to the
   rounded corners) turns out to ALSO be a valid position:sticky
   containing block on its own, even though it never independently
   scrolls -- since nothing ever changes ITS scrollTop (the page scrolls
   instead), any sticky descendant just sits at its one-time flow
   position and never re-engages. Removing overflow:hidden fixes that;
   these two rules put the corner-rounding back a different way (round
   the header's own end cells, and the last body row's), scoped so a
   plain non-resizable table (Dashboard's own mini "Recent Leads" list
   before this table gets data, or any future reuse of this class) still
   looks identical to before. */
.ahp-dashboard__recent-leads thead tr:first-child th:first-child {
	border-top-left-radius: 12px;
}

.ahp-dashboard__recent-leads thead tr:first-child th:last-child {
	border-top-right-radius: 12px;
}

.ahp-dashboard__recent-leads tbody tr:last-child td:first-child {
	border-bottom-left-radius: 12px;
}

.ahp-dashboard__recent-leads tbody tr:last-child td:last-child {
	border-bottom-right-radius: 12px;
}

/* All Leads table only (data-ahp-resizable-table) -- real, per-user
   column widths (2026-09-10 request): First/Last/Coverage tightened by
   default so Disposition (a full 6-stage status ladder) has real room
   to breathe, every data column is user-resizable via a drag handle on
   its right edge, and the resulting widths persist automatically
   (localStorage, per-browser -- see initColumnResize() in
   dashboard-widget.js). table-layout:fixed is required for explicit
   <th> widths to actually hold -- scoped to just this table via the
   attribute selector so the other lead tables (Recent Leads/
   Unassigned/Stale), which don't have this markup, keep their existing
   auto layout untouched. */
/* Real bug found live (2026-09-10): the generic mobile rule further down
   this file (@media max-width:760px) turns EVERY .ahp-dashboard__recent-
   leads table's own display to block and forces each <tr> into its own
   independent mini-table (display:table on thead/tbody/tr) so a wide
   table scrolls instead of blowing out the whole page sideways. That
   completely bypasses table-layout:fixed and every explicit <th> width
   set below -- table-layout only means anything on a real display:table
   element, and a fresh per-row auto-layout ignores explicit widths
   entirely. The user saw this as "resizing does nothing, nothing looks
   different" specifically at a narrow browser width. Fix: keep this one
   table a real, normal table at every width -- .ahp-dashboard__resizable-
   scroll (wrapping it in the markup) is what gets overflow-x:auto
   instead, the standard "wrap the table, don't break the table" pattern.
   See the :not() exclusion on the generic mobile rule further down. */
/* Real bug found live (2026-09-10): overflow-x:auto alone forces
   overflow-y's computed value to auto too (CSS can't have one axis
   concretely non-visible and the other visible) -- this wrapper was
   ALSO, invisibly, a vertical scroll container all along, which breaks
   position:sticky the exact same way the table's own overflow:hidden
   did (see that rule's comment). It just never showed a vertical
   scrollbar because nothing ever bounded its height, so the bug was
   silent until sticky headers made it matter. Giving it a real, bounded
   height (same fix shape as .ahp-dashboard__scroll-table above) makes
   this an intentional, working vertical scroll box instead of an
   accidental broken one -- same sticky top:0 pattern applies uniformly
   now (see the [data-ahp-resizable-table] thead th rule further down). */
/* Real request (2026-09-16, supersedes the 2026-09-15 "overflow-x:
   hidden" attempt above): an Admin's saved column-width default (see
   save_default_column_widths()) is the site-wide source of truth and is
   NOT to be changed to make it fit -- "what I had it set to needs to be
   default for all, don't change it again." Those saved widths can
   legitimately sum wider than a given viewport (confirmed: allLeads and
   unassignedLeads both ~1860px), so overflow-x must be able to scroll
   again -- "hidden" was silently clipping whatever didn't fit, which is
   strictly worse than a scrollbar. Real request this reconciles with:
   "the date and time shouldn't move" / "it should be fixed and not
   scrollable horizontally" -- Date and Time are made sticky columns
   below (pinned to the right edge, always visible, never scroll out of
   view) precisely so horizontal scroll can be restored here for
   everything else without Date/Time ever disappearing again. */
.ahp-dashboard__resizable-scroll {
	overflow-x: auto;
	overflow-y: auto;
	max-height: calc(100vh - 260px);
	-webkit-overflow-scrolling: touch;
}

/* The "View as" drawer's own agent-leads table reuses this same wrapper
   class, but it already lives inside a bounded, independently-scrolling
   box (.ahp-view-modal__card, see further down) -- capping THIS wrapper
   too would nest two competing scrollers for no reason. Full-height/
   visible here defers entirely to the card's own scroll. */
.ahp-view-modal--drawer .ahp-view-modal__card .ahp-dashboard__resizable-scroll {
	max-height: none;
	overflow: visible;
}

/* Real bug found live (2026-09-10): "when i drag any of the column
   handles and i move it left or right every column shouldnt move
   until it gets really close to it... the thigns on the left are
   moving right and same for the right side... they move left" --
   root cause: the base .ahp-dashboard__recent-leads rule sets
   width:100%. With table-layout:fixed, a table pinned to width:100%
   whose column widths don't sum to exactly that width gets every OTHER
   column proportionally stretched or shrunk to fill it -- so resizing
   any one column visibly nudged every other column too, regardless of
   how far the drag was from them.

   First fix tried here was width:max-content (shrink the table to the
   real sum of its columns instead of forcing 100%) -- correct for the
   resize bug in isolation, but it broke a DIFFERENT real requirement:
   "the table on the dashboard should be the same on all leads and
   unassigned tabs aswell right now they are not extending across the
   screen like the dashboard" (2026-09-10) -- every one of these tables
   needs to still fill its container when its columns don't need the
   full width.

   Real fix: keep width:100% (the table still fills its container), but
   give exactly ONE column -- source -- no explicit width below. Per
   the table-layout:fixed spec, a column with no declared width absorbs
   100% of whatever space is left over; every OTHER column keeps its
   own declared width exactly, dragged or not. So the table still
   extends edge-to-edge, but resizing any column no longer ripples
   through every other one -- only source (the designated flexible
   column) silently grows/shrinks to absorb the change, while every
   fixed-width column on either side stays exactly where it was. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] {
	table-layout: fixed;
}

/* Real request (2026-09-30): "the layout I have set in local 8080 is the
   default standard" -- baked in from the real widths saved under
   ahp_dashboard_column_width_defaults (All Leads) at the time of that
   request, so a fresh browser with nothing in localStorage/the site
   default option still starts from exactly this layout. source is
   deliberately excluded (see its own comment below) -- it's the one
   column that must never get an explicit width. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="select"] { width: 40px; }
/* Real request (2026-09-17): fast one-click lead delete, admin-only (see
   class-shortcode.php's own admin gate on this column/cell -- this table
   can render either with or without it, so no width rule is set unless the
   column is actually present in the DOM). Fixed, small, never-resized width
   -- same reasoning as select/date/time above. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="delete"] { width: 38px; }
/* Real bug found live (2026-09-17, reported by user as "not showing all
   the way"): this cell inherited the table's generic 12px/16px td padding
   (32px horizontal alone) inside a 34px-wide column, and every td in this
   table has overflow:hidden for ellipsis truncation elsewhere -- so the
   24px button was clipped down to a sliver. Needs its own tight padding
   that actually fits a 24px button in a 34px column, on both the th and
   td so header/body columns stay the same width. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="delete"],
.ahp-dashboard__recent-leads[data-ahp-resizable-table] td.ahp-dashboard__row-delete {
	padding: 12px 5px;
	overflow: visible;
}
.ahp-dashboard__row-delete { text-align: center; }
.ahp-mini-btn-icon {
	/* Real bug found live (2026-09-17): the host site's own theme (Flatsome)
	   applies broad default button sizing (min-height, real padding) that an
	   explicit width/height alone doesn't defeat -- CSS min-height/min-width
	   still win over a smaller explicit height/width. Every other button
	   class in this file already zeroes these out explicitly (see
	   .ahp-lead-status-btn's own explicit padding) for the same reason;
	   this one needs the same discipline. */
	padding: 0;
	min-width: 0;
	min-height: 0;
	border: 1px solid var(--ahp-border, #d8e5ec);
	background: var(--ahp-glass-bg, #fff);
	color: var(--ahp-text-muted, #667887);
	border-radius: var(--ahp-radius-6, 6px);
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}
.ahp-mini-btn-icon--danger:hover:not(.ahp-lead-status-btn--confirm-armed) {
	border-color: #d63d3d;
	color: #b42318;
}
/* Re-uses the disposition ladder's own "click again to confirm" armed
   state/animation (see .ahp-lead-status-btn--confirm-armed above) -- that
   rule only requires this one class plus :not(.active), so it already
   applies here with zero new CSS needed for the pulse itself. */
/* Real request (2026-09-15): "don't want to scroll left and right...
   but still be able to scroll up and down" -- these five used to be
   fixed pixel widths that, added to Date/Time/Select's own fixed
   pixels, routinely summed to wider than the viewport, which is what
   made horizontal scroll (.ahp-dashboard__resizable-scroll's
   overflow-x) necessary in the first place. Switched to percentages so
   table-layout:fixed proportionally shrinks them to whatever width is
   actually available -- same relative proportions as the old pixel
   values, just responsive instead of fixed. Date/Time/Select stay
   pixel-width (unaffected, per their own "never moves" requirement);
   source stays unset/flexible as before. Once an Admin drags a column
   via initColumnResizeForTable() and saves it as the site default,
   that saved pixel width (from save_default_column_widths(), a real
   wp_options row) takes over for everyone -- this percentage baseline
   only matters before any admin customization exists. */
/* Real bug found live (2026-09-16): at laptop widths (~1280px) these
   percentages, plus Date/Time/Select's fixed pixels, still summed wider
   than the viewport -- but overflow-x is now hidden (see above), so
   instead of a scrollbar, Disposition's 6-pill row (needs ~360-420px in
   one line) got silently clipped, taking Assign Agent/Date/Time down
   with it. Real request: "i need time and date fixed to the table" --
   they must never be the columns that lose the space fight. Fix:
   shrink Disposition enough that its pill row (.ahp-lead-status-bar,
   flex-wrap:wrap in the block above) reliably wraps to 2 rows instead of
   needing one wide row -- a taller row beats an invisible column. First/
   Last/Coverage/AssignTo trimmed slightly too, freeing real margin
   instead of leaving this exactly on the edge of breaking again at the
   next slightly-narrower screen. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="firstName"] { width: 116px; }
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="lastName"] { width: 155px; }
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="coverage"] { width: 137px; }
/* Real request (2026-10-07): "the disposition steps can go away in the
   filtering view so we have more room" -- the full 6-button ladder is
   now a compact single-badge click-to-change control in table rows (see
   renderStatusLadder()'s table-context check in dashboard-widget.js), so
   this no longer needs room for 6 wrapped pills -- "Needs Follow-Up" is
   the longest canonical label, ~128px fits its badge + the dropdown
   caret with a little breathing room. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="disposition"] { width: 140px; }
/* contactPreference: previously had no declared width (fell back to
   table-layout:fixed's leftover-space behavior alongside source) --
   given an explicit default now too, matching the real width the user
   set locally, so it no longer behaves as a second, unintended flexible
   column. */
/* Real request (2026-09-30): "make the contact preference column like we
   did assign to as well" -- same tightening treatment, but this one has
   a harder floor: .ahp-contact-preference has its own min-width:210px
   (see that rule) to fit "Choose preference" plus the select's chevron,
   so it can't go nearly as narrow as assignTo's 180px without clipping
   the control itself. 215px is the closest to that floor that still
   leaves a little breathing room. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="contactPreference"] { width: 215px; }
/* source: deliberately no width rule -- see the comment above, this is
   the one column that absorbs leftover/short space so the table can
   fill 100% without every column shifting on every resize. */
/* Real bug found live (2026-09-10): a YYYY-MM-DD date (10 characters)
   plus this table's 16px/side cell padding needs ~102-112px at this
   font size -- 90px genuinely never fit it (border-box: 90px total -
   32px padding = 58px left for text), silently truncating to "2026-0…"
   on every table using this shared rule. Not something today's other
   width changes caused, just never caught at a zoomed-in level before. */
/* Real request (2026-09-14): "date and time do not move whatsoever it
   looks weird when they do and if i drag one thing it shouldnt affect
   another much" -- both get an explicit fixed width (same "declared width
   columns never shift" mechanism explained in the big comment above) AND
   are explicitly excluded from ever getting a resize handle at all in
   initColumnResizeForTable() (dashboard-widget.js), not just relying on
   "is it the last column" positional logic -- that broke the moment Time
   was added after Date. */
/* Real request: "get the full date and time in there" -- 100px/80px was
   tight enough that "Sep 29, 2026" and "11:59 PM" style values could wrap
   or truncate. Widened; the assignTo column's sticky right offset below
   (right: 220px) is hardcoded from these two values and MUST stay in sync
   with them -- see that rule's own comment. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="date"] { width: 130px; }
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="time"] { width: 90px; }

/* Real request (2026-09-16): "the date and time shouldn't move" / "it
   should be fixed and not scrollable horizontally" -- now that
   .ahp-dashboard__resizable-scroll scrolls horizontally again (see that
   rule's own comment), Date and Time are pinned to the right edge as
   sticky columns so they stay visible and stationary regardless of
   scroll position, exactly like a spreadsheet's frozen columns. Safe to
   hardcode `right` in px here (80px = Time's own declared width) because
   Date/Time are the two columns initColumnResizeForTable() explicitly
   never resizes or restores a saved width for (see that function's own
   comment) -- their width is always this CSS value, never anything else,
   so this offset can never drift out of sync with Time's real rendered
   width. Both th and td need the rule (a sticky td with no sticky th
   above it looks broken during scroll -- the header column would slide
   out from under its own data). Real bug caught live (2026-09-16): the
   first deploy of this fix used td[data-ahp-col=...], but the JS only
   ever puts data-ahp-col on <th> (header) elements -- the actual data
   <td> cells are tagged data-ahp-field, a different attribute entirely
   (see renderList()/populateLists() in dashboard-widget.js). The wrong
   selector matched zero real data cells, so only the empty header
   column was sticky and every row's actual date/time value kept
   scrolling away underneath it. Opaque backgrounds are required: sticky
   cells sit on top of whatever's scrolling underneath, and a transparent
   background would show that content bleeding through. z-index keeps
   them above ordinary cells but still below any real overlay (modal,
   dropdown) that might open on top of the table. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="date"],
.ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="date"] {
	position: sticky;
	/* Time's own width (now 90px, see that column's width rule above) --
	   kept in sync with it the same way assignTo's 220px offset is. */
	right: 90px;
	z-index: 2;
}
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="time"],
.ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="time"] {
	position: sticky;
	right: 0;
	z-index: 2;
}
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="date"],
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="time"] {
	background: var(--ahp-bg-subtle);
}
.ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="date"],
.ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="time"] {
	background: #fff;
}
/* Thin left border as a visual seam so it's clear these two columns are
   pinned/separate from whatever's scrolling underneath them, matching
   the common "frozen column" pattern rather than looking like a random
   gap. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="date"],
.ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="date"] {
	border-left: 1px solid var(--ahp-border);
}

/* Real request (2026-10-07): "assign to | date | time should from now on
   be fixed position... assign to can be a bit smaller so it has more
   room for the other column names" -- this had drifted wide again
   (293px, then 190px) via the same live-resize mechanism that kept
   re-saving it on every unrelated column's resize (see
   initColumnResizeForTable()'s saveCurrent() fix, dashboard-widget.js).
   assignTo is now excluded from that mechanism entirely, same as Date/
   Time below -- this plain CSS width is the ONLY thing that ever sets
   it, so it can't drift again.
   Real bug caught live the same day, twice: 150px clipped the longest
   real agent name ("Anita Walker-Starling", measured 123px of real text
   at this font); the first attempted fix (170px) STILL clipped it,
   because it only accounted for the select's own 8px+26px padding, not
   the surrounding <td>'s own separate 16px+16px padding on top of that
   (confirmed live: td content-box width = th width minus 32px). Real
   total: 123px text + 34px select padding + 32px td padding = 189px
   minimum. 200px, with a small buffer -- fits the longest real name in
   this roster plus the arrow, never clipping, measured and verified
   live this time (not just calculated). */
/* Real request (2026-10-07): "filter it by agents and or agencies/
   offices" -- new Agency/Office columns, resizable like Coverage/
   Disposition (NOT excluded like assignTo/date/time), sitting just
   before Assign To in DOM order so they don't affect its sticky-right
   offset math above (that's measured from the right edge inward, only
   date/time matter there). */
/* Real request (2026-10-07): "make the agency one just big enough to fit
   the agency text and the drop down arrow" -- sized to the HEADER label
   + filter caret, not the longest possible cell value (some real agency
   names run much longer, e.g. "Accurate Health Plans - Live Oak FL");
   like every other column here these are still user-resizable via drag,
   this is just the snug starting point. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="agencyName"] { width: 100px; }
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="officeName"] { width: 100px; }
/* Real bug found live in production (2026-10-07): "agency and office dont
   hve drop downsn on staging or production" -- 100px above was too
   narrow once these two columns also carry a filter-trigger button (the
   allLeads/unassignedLeads tables, not plain Recent Leads): the th's
   own overflow:hidden/text-overflow:ellipsis truncated "Agency ▾"/
   "Office ▾" before the button, making the trigger invisible/unclickable
   (confirmed via direct measurement on production: 100px actual vs ~140px
   needed). Scoped narrower than the base rule above via the
   [data-ahp-leadview-table] ancestor (only allLeads/unassignedLeads have
   it; the plain Dashboard-tab Recent Leads widget doesn't and keeps its
   100px, since it has no filter triggers to clip) so this wins on
   specificity without an !important. Still just a starting default --
   a real resize (or a future saved width) overrides it the same as any
   other column, same as before. */
[data-ahp-leadview-table] .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="agencyName"],
[data-ahp-leadview-table] .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="officeName"] {
	width: 140px;
}
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="assignTo"] { width: 200px; }
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="actions"] { width: 160px; }
/* Clients table only (2026-09-10) -- coverage/disposition above are
   shared with the lead tables on purpose (same visual language), these
   four are unique to this table. email: deliberately no width rule,
   same "one flexible column" reasoning as source above -- this table
   has no source column of its own to lean on. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="name"] { width: 170px; }
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="location"] { width: 190px; }
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="agent"] { width: 150px; }
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="phone"] { width: 130px; }

/* Real request (2026-09-10): "anchor the assign to, open and chat where
   they originally were" -- before this table could scroll horizontally,
   those three were always visible without scrolling since everything
   fit. Now that wide content (Disposition especially) can push the
   table wider than its container, sticky-positioning these trailing
   columns to the right edge of the scroll area keeps them just as
   reachable as before, regardless of horizontal scroll position -- the
   standard "frozen columns" pattern real data-grid UIs (GHL's own
   tables included) use for exactly this reason. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="actions"],
.ahp-dashboard__recent-leads[data-ahp-resizable-table] td.ahp-dashboard__row-actions {
	position: sticky;
	right: 0;
	background: var(--ahp-glass-bg);
	z-index: 2;
	box-shadow: var(--ahp-shadow-drawer-edge, -6px 0 6px -6px rgba(1, 35, 64, 0.15));
}

/* Real bug found live (2026-09-10): this was right:160px, anchored to
   sit just left of the actions/Open column -- but All Leads and
   Unassigned (the only two tables with an assignTo column) just had
   their actions/Open column removed entirely ("remove the open button
   on all leads also" / "and on unassigned"), so that 160px was an
   orphaned gap: a phantom dead zone with nothing anchoring it, pushing
   Date out from under it and making the whole right edge look
   misaligned ("the assined agetn shouldnt be adjusted in the column it
   should be anchored"). assignTo is now the last column in both tables
   it appears in, so it anchors to right:0 like actions/Open does on
   the one table (Trends' stale leads) that still has that column. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="assignTo"],
.ahp-dashboard__recent-leads[data-ahp-resizable-table] td.ahp-dashboard__row-assign {
	position: sticky;
	/* 220px = Date(130px) + Time(90px) -- assignTo is the last column before
	   the frozen Date/Time pair, not the last column overall, on any table
	   that has both an assignTo column AND the Date/Time sticky columns
	   (All Leads, Unassigned). Real bug caught live (2026-09-17): this was
	   still right:0 from before Date/Time became sticky (2026-09-16), which
	   put assignTo directly on top of the Time column instead of just to
	   its left -- both pinned to the same right edge. This offset is safe
	   to hardcode the same way Date/Time's own offsets are (see that rule's
	   comment): it depends only on Date/Time's fixed, never-resized widths,
	   never on assignTo's own (resizable) width. Kept in sync with the
	   date/time width values above -- update both together. */
	right: 220px;
	background: var(--ahp-glass-bg);
	z-index: 2;
	box-shadow: var(--ahp-shadow-drawer-edge, -6px 0 6px -6px rgba(1, 35, 64, 0.15));
}

/* Real request (2026-10-26): "the assign to date and time column names will scroll away when i scroll down". The
   pinned-column rules above give these header cells z-index 2 -- the same layer as the pinned body cells under them,
   so rows scrolling up painted over the headers (the other headers are at 5 and stayed). 6 keeps them above the
   pinned body cells and above the ordinary headers that slide under them when the table scrolls sideways. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] thead th[data-ahp-col="assignTo"],
.ahp-dashboard__recent-leads[data-ahp-resizable-table] thead th[data-ahp-col="date"],
.ahp-dashboard__recent-leads[data-ahp-resizable-table] thead th[data-ahp-col="time"],
.ahp-dashboard__recent-leads[data-ahp-resizable-table] thead th[data-ahp-col="actions"] {
	z-index: 6;
}

.ahp-dashboard__recent-leads[data-ahp-resizable-table] th {
	position: relative;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Real request (2026-09-10): "the column names dont need to scroll
   either on dashboard all leads unassigned and the agents page wher it
   shows leads." All Leads/Unassigned/Trends' stale leads share
   .ahp-dashboard__resizable-scroll, which is now (see that rule's own
   comment above) a real bounded vertical scroll box in its own right --
   so, same as Dashboard's own 420px box, this sticks relative to ITS OWN
   top:0, not the page/nav. `thead th` (not just `th`) is more specific
   than the plain `th` rule above, so this wins there without needing
   source-order luck. This selector also technically matches the "View
   as" modal's own Leads table (same base classes) -- that one gets an
   equally-specific override further down that also lands on top:0,
   since its own wrapper (.ahp-view-modal__card, see that rule) is now
   ALSO its own bounded box for the same reason. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] thead th {
	position: sticky;
	top: 0;
	z-index: 5;
	background: var(--ahp-bg-page);
}

.ahp-dashboard__recent-leads[data-ahp-resizable-table] td {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Disposition's own status ladder needs to actually scroll/wrap within
   its wider column rather than get clipped by the ellipsis rule above,
   which is right for plain text cells but wrong for this one. */
.ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="disposition"] {
	overflow: visible;
	white-space: normal;
}

.ahp-col-resize-handle {
	position: absolute;
	top: 0;
	/* Real bug found live (2026-09-10): this sat half OUTSIDE the header
	   cell's own box (right: -3px), but that cell also has overflow:
	   hidden for its text-ellipsis truncation -- which clips anything
	   of the cell's own children that falls outside its bounds. A
	   synthetic/programmatic mouse event still reaches a clipped,
	   invisible element fine (events don't need hit-testing), which is
	   why this looked like it worked in automated testing; a real mouse
	   click can't hit an element the browser won't paint or hit-test.
	   Keeping the handle fully INSIDE the cell (right: 0, not negative)
	   keeps it clickable regardless of the cell's own overflow. */
	right: 0;
	width: 8px;
	height: 100%;
	cursor: col-resize;
	z-index: 1;
	touch-action: none;
}

/* Real bug found live (2026-09-10): "there is no divider... can't drag
   anything" -- the handle had NO visible affordance at rest, only a
   hover color, so there was nothing to actually see or aim for on an
   8px-wide strip. A persistent, always-visible vertical line -- exactly
   the divider a spreadsheet/data-grid gives you to grab -- fixes that;
   it brightens further on hover/while dragging as secondary feedback,
   but the base line is what makes the handle discoverable at all. */
.ahp-col-resize-handle::after {
	content: '';
	position: absolute;
	top: 20%;
	bottom: 20%;
	left: 50%;
	width: 2px;
	background: var(--ahp-border);
}

.ahp-col-resize-handle:hover::after,
.ahp-col-resize-handle.is-resizing::after {
	background: var(--ahp-gold);
	top: 10%;
	bottom: 10%;
}

.ahp-col-resize-handle:hover,
.ahp-col-resize-handle.is-resizing {
	background: rgba(217, 166, 43, 0.15);
}

.ahp-dashboard__recent-leads th,
.ahp-dashboard__recent-leads td {
	text-align: left;
	padding: 12px 16px;
	border-bottom: 1px solid var(--ahp-border);
	font-size: 0.88rem;
}

.ahp-dashboard__recent-leads th {
	background: var(--ahp-bg-subtle);
	color: var(--ahp-text-muted);
	text-transform: uppercase;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	font-weight: 700;
}

.ahp-dashboard__recent-leads tbody tr:last-child td {
	border-bottom: none;
}

/* Whole-row click to open the lead modal (not just the "Open" button) --
   scoped to the 4 real lead tables only, not the stage-distribution table
   which reuses this same base class. */
[data-ahp-list="recentLeads"] tr,
[data-ahp-list="allLeads"] tr,
[data-ahp-list="unassignedLeads"] tr,
[data-ahp-list="staleLeads"] tr {
	cursor: pointer;
}

[data-ahp-list="recentLeads"] tr:hover,
[data-ahp-list="allLeads"] tr:hover,
[data-ahp-list="unassignedLeads"] tr:hover,
[data-ahp-list="staleLeads"] tr:hover {
	background: var(--ahp-bg-subtle);
}

/* First/Last Name styled to visually read as a hyperlink -- reinforces
   that the whole row (not just the "Open" button) is clickable. */
[data-ahp-list="recentLeads"] [data-ahp-field="firstName"],
[data-ahp-list="recentLeads"] [data-ahp-field="lastName"],
[data-ahp-list="allLeads"] [data-ahp-field="firstName"],
[data-ahp-list="allLeads"] [data-ahp-field="lastName"],
[data-ahp-list="unassignedLeads"] [data-ahp-field="firstName"],
[data-ahp-list="unassignedLeads"] [data-ahp-field="lastName"],
[data-ahp-list="staleLeads"] [data-ahp-field="firstName"],
[data-ahp-list="staleLeads"] [data-ahp-field="lastName"] {
	font-weight: 700;
	color: #012340;
}

[data-ahp-list="recentLeads"] tr:hover [data-ahp-field="firstName"],
[data-ahp-list="recentLeads"] tr:hover [data-ahp-field="lastName"],
[data-ahp-list="allLeads"] tr:hover [data-ahp-field="firstName"],
[data-ahp-list="allLeads"] tr:hover [data-ahp-field="lastName"],
[data-ahp-list="unassignedLeads"] tr:hover [data-ahp-field="firstName"],
[data-ahp-list="unassignedLeads"] tr:hover [data-ahp-field="lastName"],
[data-ahp-list="staleLeads"] tr:hover [data-ahp-field="firstName"],
[data-ahp-list="staleLeads"] tr:hover [data-ahp-field="lastName"] {
	text-decoration: underline;
}

[data-ahp-list="recentLeads"] tr input,
[data-ahp-list="allLeads"] tr input,
[data-ahp-list="unassignedLeads"] tr input,
[data-ahp-list="staleLeads"] tr input,
[data-ahp-list="recentLeads"] tr button,
[data-ahp-list="allLeads"] tr button,
[data-ahp-list="unassignedLeads"] tr button,
[data-ahp-list="staleLeads"] tr button {
	cursor: pointer;
}

/* Coverage tag -- base style + neutral fallback for any coverage type
   without its own color rule below (see setFieldValue() in
   dashboard-widget.js). */
.ahp-tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 4px;
	background: var(--ahp-bg-subtle);
	color: var(--ahp-text);
	font-size: 0.8rem;
	font-weight: 500;
}

/* Real request (2026-09-10): "color coded coverage tags." Coverage names
   come from live GHL pipeline names (humanize_pipeline_name()), not a
   fixed enum, so this covers every coverage type actually seen live in
   this build -- anything new/unrecognized still renders correctly via
   .ahp-tag's own neutral gray above until a matching rule is added here. */
.ahp-tag--medicare { background: #dbeafe; color: #1d4ed8; }
.ahp-tag--health { background: #dcfce7; color: #15803d; }
.ahp-tag--life { background: #ede9fe; color: #6d28d9; }
.ahp-tag--dental-vision { background: #cffafe; color: #0e7490; }
.ahp-tag--individual-family-health { background: #fbeed2; color: var(--ahp-gold-text); }
.ahp-tag--unsorted { background: var(--ahp-bg-subtle); color: var(--ahp-text-muted); }

/* Disposition pill -- color-coded by status */
.ahp-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: var(--ahp-radius-pill, 999px);
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: capitalize;
	background: var(--ahp-bg-subtle);
	color: var(--ahp-text);
}

.ahp-pill--new,
.ahp-pill--open { background: #fbeed2; color: var(--ahp-gold-text); }
.ahp-pill--contacted { background: #dbeafe; color: #1d4ed8; }
.ahp-pill--appointment-set,
.ahp-pill--won { background: #dcfce7; color: #15803d; }
.ahp-pill--working { background: #ede9fe; color: #6d28d9; }
.ahp-pill--lost,
.ahp-pill--abandon { background: #fee2e2; color: #b91c1c; }

/* Row action buttons -- visual parity with the reference design; NOT
   functional yet (disabled attribute + cursor: default), see the note
   printed under the table. */
.ahp-dashboard__row-actions {
	white-space: nowrap;
	text-align: right;
}

.ahp-btn {
	display: inline-block;
	padding: 5px 14px;
	border-radius: var(--ahp-radius-8, 8px);
	font-size: 0.8rem;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: default;
	opacity: 1;
}

.ahp-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Real feedback (2026-09-10): "i dont like the white outline on the
   buttons if anything it needs to be gold when i click and it can
   staay there if its gold" -- the browser's own default focus ring
   (blue/white depending on OS/browser) was showing on every button
   click since none of these had a focus style of their own. Plain
   :focus (not :focus-visible) on purpose -- unlike the nav bar's own
   click-vs-keyboard distinction elsewhere in this file, the request
   here is explicitly for the gold ring to persist after a mouse
   click too, not just real keyboard nav. Unscoped (not prefixed with
   .ahp-dashboard) so it also covers the "View as" modal's own buttons
   -- disposition ladder, Add/Remove, Agents/Leads sub-tabs -- which
   are a DOM sibling of .ahp-dashboard, not a descendant of it. */
.ahp-btn:focus,
.ahp-lead-status-btn:focus,
.ahp-lead-view-toggle__btn:focus,
.ahp-view-modal__subtab:focus {
	outline: 2px solid var(--ahp-gold);
	outline-offset: 1px;
}

.ahp-btn--outline {
	background: var(--ahp-glass-bg); backdrop-filter: var(--ahp-glass-blur); -webkit-backdrop-filter: var(--ahp-glass-blur);
	border-color: var(--ahp-border);
	color: var(--ahp-text);
}

.ahp-btn--gold {
	background: var(--ahp-gold);
	color: var(--ahp-navy);
	margin-left: 6px;
}

/* Soft pulsing red glow while a destructive click-to-confirm action
   (tracker delete, carrier bulk delete) is armed and waiting for the
   confirming second click -- makes the "this is now dangerous" state
   readable at a glance, not just a text swap. */
@keyframes ahp-confirm-pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(179, 38, 30, 0.55);
	}
	50% {
		box-shadow: 0 0 10px 4px rgba(179, 38, 30, 0.55);
	}
}

.ahp-btn.is-confirming {
	border-color: #b3261e;
	color: #b3261e;
	animation: ahp-confirm-pulse 1.1s ease-in-out infinite;
}

.ahp-dashboard__note {
	font-size: 0.78rem;
	color: var(--ahp-text-muted);
	font-style: italic;
	margin-top: 8px;
}

.ahp-dashboard__recent-leads th:first-child,
.ahp-dashboard__recent-leads td:first-child {
	width: 28px;
	padding-right: 0;
	text-align: center;
}

/* Real request (2026-11-05): Clients has no checkbox column, so its first column (the name) reads left like the leads name. */
[data-ahp-leadview-table="clients"] .ahp-dashboard__recent-leads th:first-child,
[data-ahp-leadview-table="clients"] .ahp-dashboard__recent-leads td:first-child {
	width: auto;
	padding-right: 16px;
	text-align: left;
}

.ahp-bulk-bar {
	align-items: center;
	gap: 10px;
	background: var(--ahp-bg-subtle);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-6, 6px);
	padding: 8px 12px;
	margin-bottom: 10px;
	font-size: 0.85rem;
}

.ahp-bulk-bar:not([hidden]) {
	display: flex;
}

.ahp-bulk-bar select {
	padding: 4px 8px;
	border-radius: var(--ahp-radius-5, 5px);
	border: 1px solid var(--ahp-border);
	font-size: 0.8rem;
	background: var(--ahp-glass-bg);
	color: var(--ahp-text);
}

/* Self-contained badge treatment (light background + dark text), not bare
   colored text on the page background -- same reasoning as the status
   pills above (.ahp-pill--won etc.): guarantees readable contrast
   regardless of light/dark theme without needing separate dark-mode
   overrides, since the badge carries its own background either way. */
.ahp-bulk-bar__note {
	display: inline-block;
	width: fit-content;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: var(--ahp-radius-pill, 999px);
	background: #dcfce7;
	color: #15803d;
	margin: -4px 0 10px;
}

.ahp-bulk-bar__note[hidden] {
	display: none;
}

.ahp-bulk-bar__note--error {
	background: #fee2e2;
	color: #b91c1c;
}

/* Inline per-row "Assign To"/"Assign Agent" cell (Admin/Manager scope,
   see class-shortcode.php + initRowAssign() in dashboard-widget.js). */
.ahp-dashboard__row-assign {
	white-space: nowrap;
}

/* Real request (2026-10-07): "i cant see the drop down arrow on the
   assign to on staging or on contact preference" -- the browser's own
   native arrow was there but effectively invisible at this size/weight
   (and for Assign To, the longest real agent name -- "Anita Walker-
   Starling" -- left it no room to render at all, see the width fix
   above). appearance:none + an explicit drawn chevron makes it reliably
   visible everywhere instead of depending on native rendering. */
.ahp-dashboard__row-assign select {
	width: 100%;
	min-width: 140px;
	padding: 5px 26px 5px 8px;
	border-radius: var(--ahp-radius-6, 6px);
	border: 1px solid var(--ahp-border, #d8e5ec);
	font-size: 0.82rem;
	font-family: inherit;
	background-color: var(--ahp-glass-bg, #fff); backdrop-filter: var(--ahp-glass-blur, none); -webkit-backdrop-filter: var(--ahp-glass-blur, none);
	color: var(--ahp-text, #012340);
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23526875' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	/* Real bug found live (2026-10-07): "the drop down arrow on the
	   assign to is way to large... it should match the one on contact
	   preference" -- Chrome applies a leftover native-UA background-size
	   default (measured: "auto 16px") to a <select> with appearance:none
	   when no explicit size is set, even though the background-image
	   itself is correctly this custom 10x6 chevron, not a native one.
	   Contact Preference's identical rule happened not to trigger this
	   (resolved to the correct "auto"), so only this rule needed the
	   explicit size -- set on both now for certainty/consistency. */
	background-size: 10px 6px;
}

.ahp-dashboard__row-assign select:focus {
	outline: none;
	border-color: var(--ahp-gold, #d9a62b);
	box-shadow: 0 0 0 2px rgba(217, 166, 43, 0.25);
}

/* Real request (2026-10-07): "id like a glowing feature for those so it
   highlights that it needs to be selected and when selected it stops
   glowing" -- same pulsing visual language as the notification bell's
   own glow (ahp-notif-glow-pulse, below in this file), adapted to
   box-shadow since this is a bordered form control rather than an icon.
   Toggled purely via JS adding/removing this class -- see
   populateRowAssignSelects()'s and the change-handler's own toggles in
   dashboard-widget.js for Assign To, and renderContactPreference() for
   Contact Preference (which glows whenever its select renders at all,
   since blank IS its normal default state -- confirmed, not a bug). */
.ahp-dashboard__row-assign select.ahp-needs-selection,
.ahp-contact-preference select.ahp-needs-selection {
	animation: ahp-select-glow-pulse 1.6s ease-in-out infinite;
}
@keyframes ahp-select-glow-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(217, 166, 43, 0); border-color: var(--ahp-border, #d8e5ec); }
	50% { box-shadow: 0 0 0 3px rgba(217, 166, 43, 0.5); border-color: var(--ahp-gold, #d9a62b); }
}
@media (prefers-reduced-motion: reduce) {
	.ahp-dashboard__row-assign select.ahp-needs-selection,
	.ahp-contact-preference select.ahp-needs-selection {
		animation: none;
		box-shadow: 0 0 0 2px rgba(217, 166, 43, 0.5);
	}
}

.ahp-dashboard__row-assign select:disabled {
	opacity: 0.6;
}

/* Same self-contained badge treatment as .ahp-bulk-bar__note -- readable
   in both themes without a separate dark-mode override. */
.ahp-row-assign-note {
	display: block;
	width: fit-content;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: var(--ahp-radius-pill, 999px);
	background: #dcfce7;
	color: #15803d;
	margin-top: 4px;
}

.ahp-row-assign-note[hidden] {
	display: none;
}

/* Same-name hint on Unassigned rows (2026-11-20) -- the assign-note
   badge in amber, as a button that opens the assigned lead. */
.ahp-same-name-note {
	border: 0;
	font-family: inherit;
	text-align: left;
	white-space: normal;
	max-width: 100%;
	line-height: 1.3;
	cursor: pointer;
	background: #fef3c7;
	color: #92400e;
}

.ahp-same-name-note:hover,
.ahp-same-name-note:focus-visible {
	text-decoration: underline;
}

.ahp-row-assign-note--error {
	background: #fee2e2;
	color: #b91c1c;
}

.ahp-row-assign-confirm {
	display: inline-flex;
	gap: 4px;
	margin-left: 6px;
	vertical-align: middle;
}

.ahp-row-assign-confirm[hidden] {
	display: none;
}

.ahp-row-assign-confirm__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: none;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.ahp-row-assign-confirm__btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.ahp-row-assign-confirm__btn--yes {
	background: #dcfce7;
	color: #15803d;
}

.ahp-row-assign-confirm__btn--no {
	background: #fee2e2;
	color: #b91c1c;
}

.ahp-lead-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

/* Fallback values added 2026-09-08: this class is shared by the main
   dashboard's own lead-search boxes (inside .ahp-dashboard, where
   --ahp-border/--ahp-glass-bg/--ahp-text resolve normally) AND the
   Agency Viewer drawer's agent-search box (.ahp-view-modal, a DOM
   sibling of .ahp-dashboard that never inherits those variables). An
   invalid/empty var() inside a border or background shorthand drops the
   WHOLE declaration, not just that value -- the agent-search box was
   rendering with no visible border, no background, and a clipped
   placeholder as a result. Fallbacks are inert wherever the real
   variable already resolves (the main dashboard's search boxes look
   identical to before), and only take effect where it doesn't. */
.ahp-lead-filters__search {
	flex: 1 1 160px;
	min-width: 130px;
	/* Real request (2026-10-01): "the search bars are huge in some
	   places" -- flex:1 with no cap let this stretch to fill whatever
	   width was left in a tab's toolbar, which on a sparser toolbar
	   (e.g. Unassigned) meant it spanned nearly the full page width.
	   Real bug found live (2026-10-02): this alone never actually took
	   effect -- the host theme's (Flatsome) own global form-control
	   reset targets input[type=search] directly (specificity 0,1,1),
	   which beats this single-class selector (0,1,1 vs this rule's
	   0,1,0) and sets its OWN max-width: 100% (plus width: 100%),
	   silently winning every time regardless of version/cache. Same
	   "host theme default bleeds through" issue as .ahp-mini-btn-icon's
	   and .ahp-lead-view-toggle__btn's own comments -- !important is
	   the only reliable way to beat a same-page theme reset like this. */
	/* Real request (2026-10-02): "the search box can be as wide as the
	   lead list card is below it" -- 300px to match .ahp-workspace's own
	   sidebar column width (see its definition), so the search bar lines
	   up with the list it's actually filtering in List view. */
	max-width: 300px !important;
	padding: 5px 9px;
	border-radius: var(--ahp-radius-6, 6px);
	border: 1px solid var(--ahp-border, #e2e5ea);
	font-size: 0.8rem;
	font-family: inherit;
	background: var(--ahp-glass-bg, #fff);
	backdrop-filter: var(--ahp-glass-blur, none);
	-webkit-backdrop-filter: var(--ahp-glass-blur, none);
	color: var(--ahp-text, #1c2b4a);
}

.ahp-lead-filters__search::placeholder {
	color: var(--ahp-text-muted, #7a8291);
}

.ahp-lead-filters select {
	flex: 0 1 180px;
	padding: 7px 10px;
	border-radius: var(--ahp-radius-6, 6px);
	border: 1px solid var(--ahp-border, #e2e5ea);
	font-size: 0.85rem;
	font-family: inherit;
	background: var(--ahp-glass-bg, #fff); backdrop-filter: var(--ahp-glass-blur, none); -webkit-backdrop-filter: var(--ahp-glass-blur, none);
	color: var(--ahp-text, #1c2b4a);
}

/* Real request (2026-10-02, screenshot with an arrow): Coverage/Agent
   moved back to sit immediately left of Table/List -- the auto-margin
   that used to live on .ahp-lead-view-toggle (pushing just the toggle +
   Add Lead to the right) now starts here instead, so Coverage, Agent,
   the toggle, and Add Lead all cluster on the right, leaving only
   Search on the far left at its own (now sidebar-matched) width. */
.ahp-lead-filters [data-ahp-filter-coverage] {
	margin-left: auto;
}

.ahp-lead-filters__search:focus,
.ahp-lead-filters select:focus {
	outline: none;
	border-color: var(--ahp-gold, #d9a62b);
	box-shadow: 0 0 0 2px rgba(242, 169, 58, 0.25);
}

.ahp-empty-state {
	color: var(--ahp-text-muted);
	font-style: italic;
	padding: 10px 0;
}

/* Conversations tab empty state (2026-10-06 UI redesign) -- icon +
   heading + helper text instead of the generic italic one-liner every
   other empty state uses, to match the "real app" feel of the rest of
   this redesign. Scoped to its own class rather than touching the
   shared .ahp-empty-state used elsewhere. */
.ahp-convo-empty {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 6px;
	padding: 40px 20px;
	color: var(--ahp-text-muted);
}

.ahp-convo-empty__icon {
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ahp-bg-subtle);
	color: var(--ahp-text-muted);
	margin-bottom: 6px;
}

.ahp-convo-empty__icon svg {
	width: 24px;
	height: 24px;
}

.ahp-convo-empty__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--ahp-text);
}

.ahp-convo-empty__text {
	margin: 0;
	font-size: 0.85rem;
	max-width: 260px;
	line-height: 1.4;
}

.ahp-dashboard__generated-at {
	margin-top: 14px;
	font-size: 0.78rem;
	color: var(--ahp-text-muted);
	/* Real request (2026-09-13): anchor to the far right of the panel. */
	text-align: right;
}

/* Real audit finding (2026-09-10, verified): loadSummary() had no
   visible failure state -- see showLoadError()/hideLoadError() in
   dashboard-widget.js. Matches the existing .ahp-card-error color
   pattern (login form's own error banner) for consistency. */
/* Real request (2026-09-17): loud, hard-to-miss reminder that the
   "Suppress Lead Notification Emails" test switch is active -- same
   color language as the load-error banner immediately below (this is a
   comparable severity: real leads are silently not notifying agents),
   but full-width and sticky so it can't scroll out of view and be
   forgotten mid-session. */
.ahp-dashboard__test-mode-banner {
	position: sticky;
	top: 0;
	z-index: 30;
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	border-radius: var(--ahp-radius-8, 8px);
	padding: 10px 14px;
	margin-bottom: 12px;
	font-weight: 700;
	text-align: center;
}

/* Real request (2026-10-06): "we need an exit button on that we can use
   so we are not stuck" -- same loud, server-rendered, sticky treatment
   as the test-mode banner above (never missed), own gold/navy brand
   coloring since this is a navigation aid, not an error/warning. */
.ahp-dashboard__switch-banner {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var(--ahp-navy, #012340);
	color: #fff;
	border-radius: var(--ahp-radius-8, 8px);
	padding: 10px 14px;
	margin-bottom: 12px;
	font-weight: 600;
	text-align: center;
}

.ahp-dashboard__switch-banner a {
	color: var(--ahp-gold, #d9a62b);
	font-weight: 700;
	text-decoration: underline;
}

.ahp-dashboard__load-error {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	border-radius: var(--ahp-radius-8, 8px);
	padding: 10px 14px;
	font-size: 0.85rem;
	margin-bottom: 16px;
}

/* Agent cards -- simplified per explicit request (2026-09-02): just name +
   photo in a small card, no stats/action buttons -- the fuller stats/Email/
   View/Create Login version (RenewalSquep AgentCard.jsx-derived) is still
   what the "Viewing as" drawer shows when you click a card. The whole card
   is now the click target (data-ahp-view-agent moved from a dedicated
   button onto the card itself, see class-shortcode.php) -- dashboard-widget.js
   already handles this via event delegation (closest('[data-ahp-view-agent]')),
   not a fixed tag type. */
.ahp-dashboard__agents-simple {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 10px;
}

.ahp-agent-card-simple {
	background: var(--ahp-glass-bg); backdrop-filter: var(--ahp-glass-blur); -webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-10, 10px);
	padding: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.ahp-agent-card-simple:hover {
	border-color: var(--ahp-navy, #012340);
}

/* Real headshot overrides these initials when one is matched server-side
   (see AHP_Dashboard_Agent_Photos) -- initials stay as the fallback.
   Real bug found live (2026-09-08): this class is also reused inside
   .ahp-view-modal (the Agency Viewer roster cards) via renderAgentsRoster(),
   but that modal is a DOM sibling of .ahp-dashboard, not a descendant --
   it never inherits --ahp-navy, and var() with no fallback resolves to
   nothing, not the browser default. Result: fully invisible white-on-
   transparent initials for any agent with no photo, inside the drawer
   only (Agents tab worked fine, since it's inside .ahp-dashboard). Same
   root cause as the "glassy/invisible modal" bug the --ahp-glass-blur
   fallback below already exists to prevent -- applying that established
   fallback-value pattern here too, rather than reinventing a fix. */
.ahp-agent-card-simple__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--ahp-navy, #1c2b4a);
	background-size: cover;
	background-position: center;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.74rem;
	font-weight: 700;
	flex-shrink: 0;
}

/* Real request (2026-09-17): "see who's online... green border around the
   agent photoframe thin not thick." box-shadow instead of a real border so
   it doesn't add to the circle's own box size (this element isn't
   border-box-exempt, but a shadow sits outside the box entirely either
   way, simplest to reason about). Only ever toggled on an agent who has a
   real self-service login and was active on the dashboard in the last 5
   minutes -- see AHP_Dashboard_Agent_Presence. */
.ahp-agent-card-simple__avatar.is-online {
	box-shadow: 0 0 0 2px #22c55e;
}

.ahp-agent-card-simple__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	overflow: hidden;
}

.ahp-agent-card-simple__name {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--ahp-text);
	overflow: hidden;
	min-width: 0;
}

.ahp-agent-card-simple__meta {
	font-size: 0.72rem;
	color: var(--ahp-text-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ahp-agent-card-simple__meta-label {
	font-weight: 600;
	margin-right: 3px;
}

/* Master-detail workspace -- Agents tab and the Onboarding tab (v1). A
   300px searchable/scrollable sidebar list on the left, a persistent
   detail panel on the right (no modal/overlay), matching the layout Steve's
   own onboarding mockup uses. */
.ahp-workspace {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 15px;
	align-items: start;
}

/* Real request (2026-09-14): "make the left agents list panel a little
   less wide just enough to fit the agents names nicely and the agent card
   can come over a bit to the left" -- scoped to the Agents tab specifically
   (not Agencies/Onboarding, which share .ahp-workspace's wider 300px for
   their own type eyebrows/nested tree), so only this one sidebar narrows
   and the detail column gains the freed-up space. */
[data-ahp-agents-workspace] {
	grid-template-columns: 240px 1fr;
}

/* Mobile Back button (All Leads/Unassigned list view) -- hidden by
   default everywhere (desktop never shows it); only appears inside the
   max-width:760px block below, and only once a lead's been tapped (see
   .ahp-workspace--mobile-detail, toggled in initLeadListViewSelect()). */
.ahp-mobile-back {
	display: none;
}

@media (max-width: 760px) {
	.ahp-workspace {
		grid-template-columns: 1fr;
	}

	/* Real request (2026-10-02): "work on the mobile view... start with
	   the agent flow" -- tapping a lead now shows ONLY the full-width
	   detail (list hidden) instead of stacking both, with a Back button
	   to return; matches the agent "find -> call -> record -> next"
	   mobile flow. Default (no .ahp-workspace--mobile-detail yet) shows
	   the list; the class is added on row-tap, removed on Back. */
	.ahp-workspace:not(.ahp-workspace--mobile-detail) [data-ahp-listview-detail] {
		display: none;
	}

	.ahp-workspace.ahp-workspace--mobile-detail [data-ahp-listview-sidebar] {
		display: none;
	}

	.ahp-workspace.ahp-workspace--mobile-detail .ahp-mobile-back {
		display: flex;
		align-items: center;
		gap: 6px;
		width: 100%;
		padding: 10px 4px;
		margin-bottom: 8px;
		border: none;
		background: none;
		color: var(--ahp-gold-text);
		font-size: 0.9rem;
		font-weight: 700;
		cursor: pointer;
	}
}

/* Real request (2026-09-10): "the agencies in the left panel to remain
   when i scroll... dont let the leads won win rate or search box scroll
   either just the agents." Pinning the sidebar to the top of the
   viewport (below the sticky nav) keeps it in place while the detail
   column's own content (stats, Leads table) scrolls past it, instead of
   scrolling away with the rest of the page. Applies to every tab using
   this shared workspace layout (Agents, Agencies, Onboarding) for the
   same reason everything else in this file stays consistent across
   tabs, not just the one it was reported on. */
.ahp-workspace__sidebar {
	background: var(--ahp-glass-bg); backdrop-filter: var(--ahp-glass-blur); -webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-12, 12px);
	overflow: hidden;
	position: sticky;
	/* Matches the real rendered height of .ahp-dashboard__nav (measured
	   live, ~48px) so the sidebar sticks flush against the nav's own
	   bottom edge instead of leaving a gap or overlapping it. */
	top: 48px;
}

.ahp-workspace__searchwrap {
	padding: 12px;
	border-bottom: 1px solid var(--ahp-border);
	display: flex;
	gap: 8px;
}

.ahp-workspace__search {
	/* Same bug as .ahp-lead-filters__search (2026-10-01): flex:1 with no
	   cap let this stretch to fill whatever width the panel gave it --
	   huge on Agencies/Agents/Conversations/Onboarding, same as before.
	   Real bug found live (2026-10-02): also needed !important -- same
	   Flatsome input[type=search] theme-reset conflict as
	   .ahp-lead-filters__search (see its own comment). */
	flex: 1 1 auto;
	max-width: 320px !important;
	min-width: 0;
	padding: 7px 10px;
	border-radius: var(--ahp-radius-6, 6px);
	border: 1px solid var(--ahp-border, #e2e5ea);
	font-size: 0.85rem;
	font-family: inherit;
	background: var(--ahp-glass-bg, #fff);
	color: var(--ahp-text, #1c2b4a);
}

.ahp-workspace__search::placeholder {
	color: var(--ahp-text-muted, #7a8291);
}

.ahp-workspace__search:focus {
	outline: none;
	border-color: var(--ahp-gold, #d9a62b);
	box-shadow: 0 0 0 2px rgba(242, 169, 58, 0.25);
}

.ahp-workspace__add {
	flex: 0 0 auto;
	padding: 7px 12px;
	font-size: 0.78rem;
}

.ahp-workspace__list {
	/* Fills down to just above the page bottom instead of stopping at a
	   fixed 70vh with a block of empty space under the sidebar card --
	   200px approximates the nav bar + section heading + page padding
	   above this list. */
	max-height: calc(100vh - 200px);
	overflow-y: auto;
	/* Scrolls the same either way -- just without the visible scrollbar
	   track/thumb chrome, for a cleaner sidebar. */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

/* Agencies tab sidebar (see initAgencyWorkspace()): two data sources
   ("AHP Agencies" / top-level branches, and Agencies / sub-agencies)
   consolidated into one sidebar list, each under its own small heading
   with an inline "+ New" -- same visual family as the rest of this list,
   not a separate section styled like the old card-grid layout. */
.ahp-workspace__group-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px 6px;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 700;
	color: var(--ahp-text-muted);
	background: var(--ahp-bg-subtle);
}

.ahp-workspace__group-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ahp-workspace__group-add {
	border: none;
	background: none;
	color: var(--ahp-gold-text);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	padding: 0;
}

.ahp-workspace__group-add:hover {
	text-decoration: underline;
}

.ahp-workspace__list::-webkit-scrollbar {
	display: none;
}

.ahp-workspace__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-bottom: 1px solid var(--ahp-border);
	cursor: pointer;
}

.ahp-workspace__row:last-child {
	border-bottom: none;
}

.ahp-workspace__row:hover {
	background: var(--ahp-bg-subtle);
}

.ahp-workspace__row.is-active {
	background: var(--ahp-bg-subtle);
	box-shadow: inset 3px 0 0 var(--ahp-navy, #012340);
}

/* Real request (2026-09-14): "make the border glow gold when the lead
   card is selected" -- scoped to the List view's lead sidebar rows
   specifically (not the shared .is-active rule above, which stays navy
   everywhere else per the 2026-09-13 accent-discipline pass -- Agents/
   Agencies/Onboarding selection still reads as navy, only a lead card
   glows gold). Inset, not an outward glow -- .ahp-workspace__sidebar
   (the rounded card wrapping this list) clips overflow for its own
   rounded corners, which silently clipped an outward box-shadow glow
   down to a sliver; inset draws inside the row's own box instead, so
   it can't be clipped by an ancestor. */
[data-ahp-listview-sidebar] .ahp-workspace__row.is-active,
/* Real request (2026-09-14): "the agent card that is currently clicked on
   needs to have the same gold border we did earlier on the leads" --
   extends the same inset gold glow (see comment above) to the Agents tab's
   sidebar specifically; Agencies/Onboarding selection deliberately stays
   navy (see .ahp-workspace__row.is-active's own rule), this is a scoped
   addition, not a reversal of that. */
[data-ahp-agents-workspace] .ahp-workspace__row.is-active {
	background: var(--ahp-bg-subtle);
	box-shadow: inset 0 0 0 2px var(--ahp-gold, #d9a62b), inset 0 0 10px 1px rgba(217, 166, 43, 0.45);
}

/* Real request (2026-10-06, Conversations UI redesign): "pale gold
   background with a narrow gold leading edge" for the selected thread
   row -- same gold-accent family as the overrides above, scoped to
   Conversations only so Agents/Agencies/Onboarding keep their own
   existing selected-state treatment untouched. Selection and unread are
   independent states (a selected thread can still show its unread
   badge -- see .ahp-convo-row__badge, not suppressed here). */
[data-ahp-conversations-workspace] .ahp-convo-row.is-active {
	background: rgba(217, 166, 43, 0.1);
	box-shadow: inset 3px 0 0 var(--ahp-gold, #d9a62b);
}

[data-ahp-conversations-workspace] .ahp-workspace__row:hover {
	background: var(--ahp-bg-subtle);
}

[data-ahp-conversations-workspace] .ahp-convo-row.is-active:hover {
	background: rgba(217, 166, 43, 0.15);
}

/* Bigger initials avatars for Conversations specifically -- the shared
   36px .ahp-workspace__row-avatar reads cramped once the row itself got
   taller/more polished; Agents/Agencies keep the existing 36px. */
[data-ahp-conversations-workspace] .ahp-workspace__row-avatar {
	width: 42px;
	height: 42px;
	font-size: 0.78rem;
}

/* Agencies sidebar's expandable tree (see renderAgencySidebarTree()).
   --expandable overrides the row to a block layout (own hover/active
   background lives on .ahp-workspace__row-main instead, see below) so a
   second block -- the expand/collapse children -- can sit underneath the
   normal row content without affecting any other .ahp-workspace__row
   consumer (Agents tab, Onboarding, the Leads "List" view). */
.ahp-workspace__row--expandable {
	display: block;
	padding: 0;
	cursor: default;
}

.ahp-workspace__row--expandable:hover,
.ahp-workspace__row--expandable.is-active {
	background: none;
	box-shadow: none;
}

.ahp-workspace__row-main {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 9px 12px;
	cursor: pointer;
}

.ahp-workspace__row--expandable:hover .ahp-workspace__row-main {
	background: var(--ahp-bg-subtle);
}

.ahp-workspace__row--expandable.is-active .ahp-workspace__row-main {
	background: var(--ahp-bg-subtle);
	box-shadow: inset 3px 0 0 var(--ahp-navy, #012340);
}

.ahp-workspace__row-toggle {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: none;
	color: var(--ahp-text-muted);
	font-size: 0.65rem;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.ahp-workspace__row-toggle:hover {
	color: var(--ahp-gold-text);
}

.ahp-workspace__row-toggle.is-expanded {
	transform: rotate(90deg);
}

/* Same class of bug just fixed live for .ahp-branch-card--bare: this
   element sets display:flex directly, which -- being an author-
   stylesheet class rule -- outranks the browser's own low-specificity
   `[hidden]{display:none}` default. Without this, an agency with no
   branches would still show an empty, clickable toggle. */
.ahp-workspace__row-toggle[hidden] {
	display: none;
}

/* Room for the toggle when it's hidden (agencies with no branches yet)
   so every row's name/meta still lines up in the same column, expandable
   or not. */
.ahp-workspace__row-toggle[hidden] + .ahp-workspace__row-info {
	margin-left: 22px;
}

.ahp-workspace__row-children {
	padding: 2px 12px 8px 34px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.ahp-workspace__row-children[hidden] {
	display: none;
}

.ahp-workspace__row-child {
	width: fit-content;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: left;
}

.ahp-workspace__row-avatar {
	width: 36px;
	height: 36px;
	font-size: 0.68rem;
}

.ahp-workspace__row-info {
	min-width: 0;
	overflow: hidden;
}

/* Design audit (2026-09-13): "give the org tree a type system -- icon +
   OFFICE/AGENCY eyebrow per row instead of an inconsistent meta line"
   -- Office rows previously had no type indicator at all, and Agency
   rows only implied it via a "Manager: X" line that was often empty.
   Small colored square (CSS-only, no icon font/library) + uppercase
   label instead, distinct per type via .ahp-workspace__row-eyebrow--*. */
.ahp-workspace__row-eyebrow {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.66rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ahp-text-muted);
	margin-bottom: 2px;
}

.ahp-workspace__row-eyebrow::before {
	content: '';
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--ahp-navy, #012340);
	flex-shrink: 0;
}

.ahp-workspace__row-eyebrow--agency::before {
	background: var(--ahp-navy, #012340);
}

.ahp-workspace__row-eyebrow--office::before {
	background: var(--ahp-text-muted, #7a8291);
}

/* Agency Builder org-tree (2026-09-21). */
.ahp-orgtree__node {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 4px 0;
}

.ahp-orgtree__toggle {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ahp-border-subtle, #e6e9ee);
	border-radius: var(--ahp-radius-6, 6px);
	background: var(--ahp-surface, #fff);
	cursor: pointer;
	font-size: 0.95rem;
	line-height: 1;
}

.ahp-orgtree__pick {
	flex: 1;
	min-width: 0;
	text-align: left;
	border: 1px solid var(--ahp-border-subtle, #e6e9ee);
	border-radius: var(--ahp-radius-6, 6px);
	padding: 8px 10px;
	background: var(--ahp-surface, #fff);
	cursor: pointer;
}

.ahp-orgtree__pick.is-active {
	background: var(--ahp-navy, #012340);
	border-color: var(--ahp-navy, #012340);
}

.ahp-orgtree__pick.is-active .ahp-workspace__row-name,
.ahp-orgtree__pick.is-active .ahp-workspace__row-meta {
	color: #fff;
}

.ahp-orgtree__kebab-wrap {
	position: relative;
	flex-shrink: 0;
}

.ahp-orgtree__kebab {
	width: 26px;
	height: 26px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: var(--ahp-radius-6, 6px);
	background: transparent;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	color: var(--ahp-text-muted, #7a8291);
}

.ahp-orgtree__kebab:hover {
	background: var(--ahp-bg-subtle, #f2f5f9);
	border-color: var(--ahp-border-subtle, #e6e9ee);
}

.ahp-orgtree__kebab-menu {
	position: absolute;
	right: 0;
	top: 30px;
	z-index: 5;
	min-width: 160px;
	background: var(--ahp-surface, #fff);
	border: 1px solid var(--ahp-border-subtle, #e6e9ee);
	border-radius: var(--ahp-radius-8, 8px);
	box-shadow: var(--ahp-shadow-hover, 0 4px 16px rgba(1, 35, 64, 0.15));
	padding: 4px;
	display: flex;
	flex-direction: column;
}

.ahp-orgtree__kebab-item {
	text-align: left;
	padding: 8px 10px;
	border: none;
	border-radius: var(--ahp-radius-5, 5px);
	background: transparent;
	cursor: pointer;
	font-size: 0.85rem;
	color: inherit;
}

.ahp-orgtree__kebab-item:hover {
	background: var(--ahp-bg-subtle, #f2f5f9);
}

.ahp-orgtree__children {
	margin-left: 13px;
	padding-left: 16px;
	border-left: 1px solid var(--ahp-border-subtle, #e6e9ee);
}

.ahp-orgtree__group-label {
	margin: 10px 0 4px;
	color: var(--ahp-text-muted, #7a8291);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ahp-orgtree__breadcrumb {
	color: var(--ahp-text-muted, #7a8291);
	font-size: 0.82rem;
	margin: 0 0 10px;
	overflow-wrap: anywhere;
}

.ahp-orgtree__detail-card h4 {
	margin: 0 0 4px;
}

/* Conversations tab -- real chat-bubble thread (2026-09-22), styled after
   looking at GHL's own Conversations panel (direction-aligned bubbles,
   composer pinned to the bottom) but built with this plugin's own
   tokens/spacing rather than copying GHL's chrome. Full message history
   loads per-conversation from the real GET conversations/{id}/messages
   endpoint (see get_conversation_messages() in class-ghl-client.php) --
   confirmed live 2026-09-29 that full body content is actually returned. */
/* Team-inbox-style list row (2026-09-23): looked at GHL's own real
   Conversations inbox live -- avatar, name + relative time on one line,
   snippet + unread badge on the next -- and matched that shape with this
   plugin's own tokens. Unread rows get a bolder name, same idea as
   GHL's own bold-until-read treatment. */
.ahp-convo-row__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}

.ahp-convo-row__topline,
.ahp-convo-row__bottomline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.ahp-convo-row__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ahp-convo-row.is-unread .ahp-convo-row__name {
	font-weight: 700;
	color: var(--ahp-text);
}

.ahp-convo-row__time {
	flex: none;
	font-size: 0.7rem;
	color: var(--ahp-text-muted);
}

.ahp-convo-row.is-unread .ahp-convo-row__time {
	color: var(--ahp-navy, #012340);
	font-weight: 700;
}

.ahp-convo-row__snippet {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
}

.ahp-convo-row.is-unread .ahp-convo-row__snippet {
	color: var(--ahp-text);
}

/* Real request (2026-10-06): gold (not navy) unread badge to match
   ChatGPT's "small gold unread badge" spec and the existing
   .ahp-convo-filter__count gold-pill precedent two rules below --
   navy was reserved for the row's own selected-state accent, so a navy
   badge on a navy-tinted selected row was low-contrast anyway. */
.ahp-convo-row__badge {
	flex: none;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--ahp-radius-9, 9px);
	background: var(--ahp-gold, #d9a62b);
	color: var(--ahp-navy, #012340);
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

/* Real request (2026-10-05, Conversations UI redesign): Conversations/
   Contacts sidebar tabs -- sits above the existing Unread/All filter
   row, deliberately more prominent (underline style) so the two levels
   read as distinct: which SECTION (Conversations vs Contacts), then
   which FILTER within it. */
.ahp-convo-sidebar-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--ahp-border);
}

.ahp-convo-sidebar-tab {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 4px 10px;
	border: none;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--ahp-text-muted);
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	margin-bottom: -1px;
}

.ahp-convo-sidebar-tab.is-active {
	color: var(--ahp-navy);
	border-bottom-color: var(--ahp-gold);
}

.ahp-convo-row__start-btn {
	flex: none;
	align-self: center;
	font-size: 0.78rem;
	padding: 6px 10px;
}

/* Unread/All filter tabs above the conversation list -- previously
   completely unstyled (plain default button chrome), which let the
   unread-count badge sit flush against the button's own edge with no
   padding, visually clipping its corner. */
.ahp-convo-filters {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
}

.ahp-convo-filter {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--ahp-border, #d7dce3);
	border-radius: var(--ahp-radius-6, 6px);
	background: #fff;
	color: var(--ahp-text-muted);
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
}

.ahp-convo-filter.is-active {
	background: var(--ahp-navy, #012340);
	border-color: var(--ahp-navy, #012340);
	color: #fff;
}

.ahp-convo-filter__count {
	flex: none;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--ahp-radius-9, 9px);
	background: var(--ahp-gold, #d9a62b);
	color: var(--ahp-navy, #012340);
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.ahp-convo-filter.is-active .ahp-convo-filter__count {
	background: #fff;
	color: var(--ahp-navy, #012340);
}

.ahp-chat-panel {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Real request (2026-10-06): "polished thread header" -- pulled slightly
   out of the detail pane's own padding with a negative margin + matching
   own padding, and given a subtle tint, so it reads as its own distinct
   header bar (echoing the lead-detail card's header) rather than just
   the first line of content in the pane. */
.ahp-chat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: -22px -26px 14px;
	padding: 16px 26px;
	background: var(--ahp-bg-subtle);
	border-bottom: 1px solid var(--ahp-border);
}

.ahp-chat-header__avatar {
	box-shadow: 0 0 0 2px var(--ahp-glass-bg, #fff), 0 0 0 3px var(--ahp-border);
	border-radius: 50%;
}

.ahp-chat-header h4 {
	font-size: 0.98rem;
}

.ahp-chat-header__left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ahp-chat-header__avatar {
	flex: none;
}

.ahp-chat-header__text {
	min-width: 0;
}

.ahp-chat-header__text h4,
.ahp-chat-header__text p {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ahp-chat-header h4 {
	margin: 0;
}

.ahp-chat-header p {
	margin: 2px 0 0;
	font-size: 0.82rem;
	color: var(--ahp-text-muted);
}

.ahp-chat-thread {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 4px;
}

.ahp-chat-bubble {
	max-width: 78%;
	padding: 9px 13px;
	border-radius: var(--ahp-radius-14, 14px);
	font-size: 0.88rem;
	line-height: 1.4;
	white-space: pre-wrap;
	word-break: break-word;
	box-shadow: 0 1px 2px rgba(1, 35, 64, 0.05);
}

/* Real request (2026-10-06): tighter spacing between consecutive
   messages from the same side -- CSS-only (no JS/grouping-logic
   change), just pulling the shared .ahp-chat-thread gap in a little
   when two bubbles of the same direction are adjacent, so a back-to-
   back run of messages reads as one quieter group instead of each
   bubble floating at the same fixed distance regardless of sender. */
.ahp-chat-bubble--in + .ahp-chat-bubble--in,
.ahp-chat-bubble--out + .ahp-chat-bubble--out {
	margin-top: -4px;
}

.ahp-chat-bubble--in {
	align-self: flex-start;
	background: var(--ahp-bg-subtle-solid, #f2f5f9);
	color: var(--ahp-text);
	border-bottom-left-radius: 4px;
}

.ahp-chat-bubble--out {
	align-self: flex-end;
	background: var(--ahp-navy);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.ahp-chat-bubble__meta {
	display: block;
	margin-top: 4px;
	font-size: 0.7rem;
	opacity: 0.7;
}

/* Real request (2026-10-06): docked composer bar -- extended to the
   detail pane's full edges (negative margin, same technique as
   .ahp-chat-header above) with its own tinted background, so it reads
   as a fixed input dock at the bottom of the panel rather than a plain
   top-bordered row floating in the same padding as the thread above. */
.ahp-chat-composer {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	margin: 14px -26px -22px;
	padding: 14px 26px 18px;
	background: var(--ahp-bg-subtle);
	border-top: 1px solid var(--ahp-border);
}

.ahp-chat-composer textarea {
	flex: 1;
	resize: none;
	font: inherit;
	padding: 10px 14px;
	border-radius: var(--ahp-radius-18, 18px);
	border: 1px solid var(--ahp-border);
	background: var(--ahp-glass-bg);
	color: var(--ahp-text);
	max-height: 90px;
}

.ahp-chat-composer textarea:focus {
	outline: none;
	border-color: var(--ahp-gold, #d9a62b);
	box-shadow: 0 0 0 2px rgba(242, 169, 58, 0.25);
}

.ahp-chat-composer__send {
	border-radius: 50%;
	width: 40px;
	height: 40px;
	min-width: 40px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.05rem;
	line-height: 1;
	flex: none;
}
.ahp-orgtree__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0;
}

.ahp-orgtree__editor {
	margin-top: 16px;
	padding: 16px;
	border-radius: var(--ahp-radius-8, 8px);
	background: var(--ahp-bg-muted, #f2f5f9);
}

.ahp-orgtree__editor h4 {
	margin: 0 0 10px;
}

.ahp-orgtree__editor label {
	display: block;
	margin: 10px 0;
	font-size: 0.85rem;
}

.ahp-orgtree__editor input,
.ahp-orgtree__editor select {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 8px 10px;
	border: 1px solid var(--ahp-border-subtle, #e6e9ee);
	border-radius: var(--ahp-radius-6, 6px);
	font: inherit;
}

[data-ahp-orgtree-status].ahp-orgtree__status--error {
	color: var(--ahp-danger, #b3261e);
}

[data-ahp-orgtree-roles] {
	max-height: calc(100vh - 260px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.ahp-orgtree__role-card {
	border: 1px solid var(--ahp-border-subtle, #e6e9ee);
	border-radius: var(--ahp-radius-8, 8px);
	padding: 16px;
	margin: 12px 0;
}

.ahp-orgtree__role-card h4 {
	margin: 0 0 4px;
}

.ahp-orgtree__role-card ul {
	margin: 8px 0 0;
	padding-left: 18px;
}

.ahp-orgtree__role-card li {
	margin: 4px 0;
	font-size: 0.85rem;
}

.ahp-workspace__row-name {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--ahp-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ahp-workspace__row-meta {
	font-size: 0.72rem;
	color: var(--ahp-text-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Real request (2026-10-06): "make it look and work like a real
   conversations feature -- much better looking." Conversations tab
   only -- unify the sidebar + detail pane into one single elevated card
   with a vertical divider between them, instead of the sidebar having
   its own separate floating card (the shared .ahp-workspace__sidebar
   treatment Agents/Agencies/Onboarding use) sitting next to a
   chromeless detail pane. Scoped to [data-ahp-conversations-workspace]
   -- Agents/Agencies (LOCKED 2026-10-01) and Onboarding keep the
   original shared layout untouched. */
[data-ahp-conversations-workspace] {
	gap: 0;
	background: var(--ahp-glass-bg);
	backdrop-filter: var(--ahp-glass-blur);
	-webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-16, 16px);
	box-shadow: 0 2px 14px rgba(1, 35, 64, 0.07);
	overflow: hidden;
}

[data-ahp-conversations-workspace] .ahp-workspace__sidebar {
	background: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border: none;
	border-right: 1px solid var(--ahp-border);
	border-radius: 0;
	position: static;
	top: auto;
}

[data-ahp-conversations-workspace] .ahp-workspace__detail {
	padding: 22px 26px;
}

.ahp-workspace__detail {
	/* Real request (2026-09-10): "the agent cards should scroll" -- the
	   roster grid gets its own small, independently-scrolling box (see
	   .ahp-roster-scroll below); this panel itself just grows to fit its
	   content naturally instead of being a second, nested scroll region.
	   min-height (not max) keeps it visually matching the sidebar's own
	   height when content is short, without capping/clipping it when
	   content (a long Leads table, say) genuinely needs more room -- the
	   sidebar stays pinned via its own position:sticky regardless of
	   whether this column needs the page to scroll past it. */
	min-height: calc(100vh - 200px);
	/* A grid item's default min-width is auto (its content's own
	   min-content size), not 0 -- real bug found live (2026-09-10) docking
	   the Agencies tab's view-modal here: its wider content (the roster
	   grid/leads table) grew this whole 1fr column past the viewport
	   instead of being constrained to it, pushing the docked panel almost
	   entirely off-screen to the right with a page-wide horizontal
	   scrollbar as the only clue. min-width:0 makes the column actually
	   respect the grid track; overflow-x:auto lets any content that's
	   still too wide (e.g. a wide table) scroll internally instead of
	   repeating the same blowout. */
	min-width: 0;
	overflow-x: auto;
}

/* All Leads/Unassigned "List" view -- table-alternative master-detail
   layout (see initLeadViewToggle()/renderLeadListViewDetail() in
   dashboard-widget.js). Reuses .ahp-workspace/.ahp-onboarding-card as-is
   for the grid/card chrome already established by Agents/Onboarding --
   only the detail panel's own content sections are new here. */
.ahp-lead-view-toggle {
	display: inline-flex;
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-8, 8px);
	overflow: hidden;
}

.ahp-lead-view-toggle__btn {
	/* Real bug found live (2026-09-17): the host theme's (Flatsome) own
	   default button sizing (min-height, line-height) was bleeding through
	   -- same root cause as the fast-delete button fix earlier today (see
	   .ahp-mini-btn-icon's own comment) -- making this toggle render
	   visibly taller than the search input/selects right next to it in
	   the same filter row ("the bounding frame is extending too far down
	   than it is supposed to"). Explicit zeroing defeats it the same way. */
	min-height: 0;
	min-width: 0;
	line-height: 1.2;
	border: none;
	background: var(--ahp-glass-bg);
	color: var(--ahp-text-muted);
	font-size: 0.78rem;
	font-weight: 600;
	padding: 7px 14px;
	cursor: pointer;
}

.ahp-lead-view-toggle__btn + .ahp-lead-view-toggle__btn {
	border-left: 1px solid var(--ahp-border);
}

.ahp-lead-view-toggle__btn.is-active {
	background: var(--ahp-navy);
	color: #fff;
}

.ahp-lead-listview__detail {
	background: var(--ahp-glass-bg);
	backdrop-filter: var(--ahp-glass-blur);
	-webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border, #e1e5ea);
	border-radius: var(--ahp-radius-10, 10px);
	padding: 18px;
	overflow: hidden;
}

.ahp-lead-listview__detail-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.ahp-lead-listview__detail-header h4 {
	margin: 0;
	font-size: 1.1rem;
	color: var(--ahp-text);
}

.ahp-lead-listview__detail-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px 20px;
	margin: 0 0 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ahp-border);
}

.ahp-lead-listview__detail-meta dt {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--ahp-text-muted);
	margin: 0 0 2px;
}

.ahp-lead-listview__detail-meta dd {
	font-size: 0.9rem;
	color: var(--ahp-text);
	margin: 0;
}

.ahp-lead-listview__detail .ahp-lead-status-bar {
	margin-bottom: 18px;
}

/* Real request (2026-09-09): "move the assign, remove, open and add a
   chat option in a meaningful area" -- this is that area: a clearly
   spaced-out action row instead of the table's cramped per-row buttons.
   Chat stays the same disabled placeholder as the table (see
   dashboard-widget.js -- no chat backend built yet, deliberately). */
.ahp-lead-listview__detail-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ahp-lead-listview__detail-assign select {
	min-width: 180px;
}

/* Onboarding tab detail panel. */
.ahp-onboarding-detail__header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: var(--ahp-glass-bg); backdrop-filter: var(--ahp-glass-blur); -webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-12, 12px);
	padding: 14px;
	margin-bottom: 14px;
}

.ahp-onboarding-detail__fields {
	flex: 1 1 auto;
	display: grid;
	/* auto-fit/minmax, not a fixed 2-column split -- same fix as
	   .ahp-onboarding-profile-grid below, and for the same reason: a
	   fixed 1fr/1fr split can squeeze label+input together at widths the
	   760px mobile breakpoint doesn't cover, reported live as Name/Email
	   overlapping. This collapses to 1 column on its own once a column
	   would drop below 220px, no breakpoint needed. */
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px;
	min-width: 0;
}

.ahp-onboarding-detail__fields label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--ahp-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ahp-onboarding-detail__fields input {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 7px 9px;
	border-radius: var(--ahp-radius-6, 6px);
	border: 1px solid var(--ahp-border, #e2e5ea);
	font-size: 0.85rem;
	font-family: inherit;
	background: var(--ahp-glass-bg, #fff);
	color: var(--ahp-text, #1c2b4a);
}

.ahp-onboarding-detail__fields input:focus {
	outline: none;
	border-color: var(--ahp-gold, #d9a62b);
	box-shadow: 0 0 0 2px rgba(242, 169, 58, 0.25);
}

.ahp-onboarding-stage-stepper {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ahp-onboarding-stage {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: var(--ahp-radius-pill, 999px);
	border: 1px solid var(--ahp-border);
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--ahp-text-muted);
	cursor: pointer;
	background: var(--ahp-glass-bg);
}

.ahp-onboarding-stage.is-completed {
	border-color: var(--ahp-navy, #012340);
	color: var(--ahp-text);
}

.ahp-onboarding-stage.is-current {
	background: var(--ahp-navy);
	border-color: var(--ahp-navy);
	color: #fff;
}

.ahp-onboarding-history {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.78rem;
	color: var(--ahp-text-muted);
	display: flex;
	flex-direction: column;
	gap: 4px;
	/* Real bug (2026-09-10): an unbounded list here pushed "Manage Stage
	   List" further down the page on every stage change, since a tracker
	   with a long history could grow this card past a full screen. Capped
	   with its own internal scroll instead. */
	max-height: 220px;
	overflow-y: auto;
	padding-right: 4px;
}

.ahp-onboarding-detail [data-ahp-onboarding-manage-stages] summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--ahp-text);
}

.ahp-onboarding-detail [data-ahp-onboarding-manage-stages] textarea {
	display: block;
	width: 100%;
	margin: 8px 0;
	padding: 8px;
	border-radius: var(--ahp-radius-6, 6px);
	border: 1px solid var(--ahp-border, #e2e5ea);
	font-family: inherit;
	font-size: 0.82rem;
	background: var(--ahp-glass-bg, #fff);
	color: var(--ahp-text, #1c2b4a);
}

/* Onboarding detail sub-nav -- Onboarding / Profile / Readiness / Carrier
   Status, one tracker's worth of content organized the same way the real
   reference mockup splits it across separate pages. */
.ahp-onboarding-subnav {
	display: flex;
	gap: 6px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--ahp-border);
	flex-wrap: wrap;
}

.ahp-onboarding-subnav__tab {
	appearance: none;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 8px 4px;
	margin-bottom: -1px;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--ahp-text-muted);
	cursor: pointer;
}

.ahp-onboarding-subnav__tab:hover {
	color: var(--ahp-text);
}

.ahp-onboarding-subnav__tab.is-active {
	/* var(--ahp-text), not --ahp-navy -- --ahp-navy is a fixed brand color
	   that stays dark in both themes (deliberately), so using it directly
	   here made the active tab's own text invisible against the dark
	   theme's dark page background. --ahp-text is the token that actually
	   flips to a readable color per theme (same fix pattern already
	   documented elsewhere in this file for the same reason). */
	color: var(--ahp-text);
	border-bottom-color: var(--ahp-gold);
}

/* Real request (2026-09-10): "the agency leads need to be in a separate
   tab so we dont have to scroll i just want the agents there." Styled as
   a real segmented button group -- same pattern as the existing
   .ahp-lead-view-toggle (Table/List switch), not the thin underline-tab
   look used for .ahp-onboarding-subnav; feedback (2026-09-09) was that
   the underline version read as plain text links, not buttons. This
   lives inside .ahp-view-modal__card's always-light-mode panel, so no
   separate dark-theme handling is needed here either. */
/* Real request (2026-09-21): search relocated up next to the
   Agents/Leads toggle -- "so easy a child can figure it out." Wraps to
   its own full-width row on narrow screens rather than squeezing both
   into one cramped line. */
.ahp-view-modal__header-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
}

.ahp-view-modal__header-row .ahp-view-modal__subtabs {
	margin: 0;
}

.ahp-view-modal__header-row .ahp-roster-toolbar {
	flex: 1 1 220px;
	position: static;
	padding: 0;
	margin: 0;
}

/* Search results (the header search's "add someone" matches) -- sits
   directly under the search box that produced them, only visible while
   a query is active. Deliberately separate from .ahp-roster-scroll (the
   members list) so the two never visually blend into one list. */
.ahp-roster-search-results {
	margin: 0 0 14px;
	padding: 10px;
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-8, 8px);
	background: var(--ahp-glass-bg);
	max-height: 260px;
	overflow-y: auto;
}

.ahp-view-modal__subtabs {
	display: inline-flex;
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-8, 8px);
	overflow: hidden;
	margin: 0 0 14px;
}

.ahp-view-modal__subtab {
	appearance: none;
	border: none;
	background: var(--ahp-glass-bg);
	color: var(--ahp-text-muted);
	font-size: 0.78rem;
	font-weight: 600;
	padding: 7px 16px;
	cursor: pointer;
}

.ahp-view-modal__subtab + .ahp-view-modal__subtab {
	border-left: 1px solid var(--ahp-border);
}

.ahp-view-modal__subtab:hover {
	color: var(--ahp-text);
}

.ahp-view-modal__subtab.is-active {
	background: var(--ahp-navy);
	color: #fff;
}

/* Cards inside the Onboarding tab's own sub-panels -- deliberately a
   SEPARATE class from .ahp-view-modal__card (which stays hardcoded
   light on purpose -- that one lives inside the always-light "View as"
   modal). This is native page content, not a modal, so it needs to
   actually respect the current theme instead of forcing white. */
.ahp-onboarding-card {
	background: var(--ahp-glass-bg);
	backdrop-filter: var(--ahp-glass-blur);
	-webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border, #e1e5ea);
	border-radius: var(--ahp-radius-10, 10px);
	padding: 14px;
}

.ahp-onboarding-card h3 {
	margin: 0 0 10px;
	font-size: 0.95rem;
	color: var(--ahp-text);
}

.ahp-onboarding-card summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--ahp-text);
	font-size: 0.85rem;
}

/* Profile grid -- same field-row look as the header's Name/Email inputs. */
.ahp-onboarding-profile-grid {
	display: grid;
	/* auto-fit/minmax, not a fixed 2-column split -- collapses to a single
	   column on its own once a column would drop below 220px, instead of
	   a hard breakpoint that can leave a narrow-but-not-mobile squeeze
	   zone where a label + its input crowd each other. */
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px 16px;
	align-items: start;
}

.ahp-onboarding-profile-grid label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--ahp-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ahp-onboarding-profile-grid input {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 7px 9px;
	border-radius: var(--ahp-radius-6, 6px);
	border: 1px solid var(--ahp-border, #e2e5ea);
	font-size: 0.85rem;
	font-family: inherit;
	background: var(--ahp-glass-bg, #fff);
	color: var(--ahp-text, #1c2b4a);
}

.ahp-onboarding-profile-grid input:focus {
	outline: none;
	border-color: var(--ahp-gold, #d9a62b);
	box-shadow: 0 0 0 2px rgba(242, 169, 58, 0.25);
}

/* Readiness cards. */
.ahp-readiness-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}

.ahp-readiness-card {
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-10, 10px);
	padding: 12px;
	border-left: 4px solid var(--ahp-border);
}

.ahp-readiness-card.is-complete {
	border-left-color: #2f8f4e;
}

.ahp-readiness-card.is-progress {
	border-left-color: var(--ahp-gold);
}

.ahp-readiness-card h4 {
	margin: 0 0 4px;
	font-size: 0.85rem;
	color: var(--ahp-text);
}

.ahp-readiness-card__current {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--ahp-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 8px;
}

.ahp-readiness-card__options {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ahp-readiness-option {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.74rem;
	color: var(--ahp-text-muted);
	cursor: pointer;
	padding: 3px 8px;
	border-radius: var(--ahp-radius-pill, 999px);
	border: 1px solid var(--ahp-border);
}

.ahp-readiness-option input {
	margin: 0;
}

.ahp-readiness-option:has(input:checked) {
	border-color: var(--ahp-navy);
	color: var(--ahp-text);
	font-weight: 700;
}

.ahp-onboarding-readiness-add {
	display: flex;
	gap: 8px;
	margin: 10px 0;
	flex-wrap: wrap;
}

.ahp-onboarding-readiness-add input {
	flex: 1 1 260px;
	padding: 7px 9px;
	border-radius: var(--ahp-radius-6, 6px);
	border: 1px solid var(--ahp-border, #e2e5ea);
	font-size: 0.85rem;
	font-family: inherit;
	background: var(--ahp-glass-bg, #fff);
	color: var(--ahp-text, #1c2b4a);
}

.ahp-onboarding-readiness-manage-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.8rem;
}

.ahp-onboarding-readiness-manage-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px solid var(--ahp-border);
}

.ahp-onboarding-readiness-manage-list li:last-child {
	border-bottom: none;
}

.ahp-onboarding-readiness-manage-list button {
	background: none;
	border: none;
	color: #b3261e;
	font-size: 0.76rem;
	font-weight: 700;
	cursor: pointer;
}

.ahp-onboarding-readiness-manage-list button:disabled {
	color: var(--ahp-text-muted);
	cursor: default;
}

/* Carrier Status -- collapsible per-category sections, each carrier a row
   of milestone checkboxes. */
.ahp-carrier-category {
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-10, 10px);
	overflow: hidden;
	margin-bottom: 10px;
}

.ahp-carrier-category__head {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	background: var(--ahp-bg-subtle);
	border: none;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--ahp-text);
}

.ahp-carrier-row {
	display: grid;
	grid-template-columns: minmax(140px, 0.7fr) 1fr;
	gap: 10px;
	align-items: center;
	padding: 8px 14px;
	border-top: 1px solid var(--ahp-border);
}

@media (max-width: 760px) {
	.ahp-carrier-row {
		grid-template-columns: 1fr;
	}
}

.ahp-carrier-row.is-rts-complete .ahp-carrier-row__name {
	color: #2f8f4e;
}

.ahp-carrier-row__name {
	font-weight: 700;
	font-size: 0.8rem;
	color: var(--ahp-text);
}

.ahp-carrier-row__milestones {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ahp-carrier-milestone {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.74rem;
	color: var(--ahp-text-muted);
	cursor: pointer;
}

.ahp-carrier-milestone input {
	margin: 0;
}

.ahp-carrier-milestone:has(input:checked) {
	color: #2f8f4e;
	font-weight: 700;
}

.ahp-onboarding-carrier-add {
	margin-bottom: 14px;
}

.ahp-onboarding-carrier-add summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--ahp-text);
	font-size: 0.85rem;
}

.ahp-onboarding-carrier-add__row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 8px 0;
}

.ahp-onboarding-carrier-add__row select,
.ahp-onboarding-carrier-add__row input {
	padding: 7px 9px;
	border-radius: var(--ahp-radius-6, 6px);
	border: 1px solid var(--ahp-border, #e2e5ea);
	font-size: 0.85rem;
	font-family: inherit;
	background: var(--ahp-glass-bg, #fff);
	color: var(--ahp-text, #1c2b4a);
}

.ahp-onboarding-carrier-add__row input {
	flex: 1 1 200px;
}

.ahp-onboarding-carrier-manage-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 6px 10px;
	max-height: 260px;
	overflow-y: auto;
	margin: 10px 0;
	padding: 10px;
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-8, 8px);
}

.ahp-onboarding-carrier-manage-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	color: var(--ahp-text);
	cursor: pointer;
}

.ahp-onboarding-carrier-manage-item input {
	margin: 0;
}

/* Owner "View as" preview modal -- shared by agent + agency previews. */
.ahp-view-modal[hidden] {
	display: none;
}

.ahp-view-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.ahp-view-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 43, 74, 0.55);
}

.ahp-view-modal__panel {
	position: relative;
	transition: opacity 150ms ease;
	/* Deliberately a solid, non-variable background -- .ahp-view-modal__card
	   inside is white, and --ahp-bg-subtle is a near-transparent tint in
	   the dark theme (see .ahp-theme-dark above), which reproduced the
	   glassy/invisible modal bug from an earlier session. This modal is an
	   overlay, not page chrome, so it should not inherit theme background. */
	background: #eef1f5;
	/* Re-pin every --ahp-* token back to its light-mode value inside this
	   subtree. This panel's OWN background is always the light color above
	   regardless of theme (by the design intent in the comment above) --
	   but CSS custom properties still inherit normally, so anything using
	   var(--ahp-text) etc. inside it was picking up the DARK theme's white
	   text color whenever a dark-themed .ahp-dashboard was its ancestor.
	   That's always true now that this modal can be docked as a real
	   descendant of .ahp-dashboard (see .ahp-view-modal--docked in
	   dashboard-widget.js's initAgentsWorkspace()) -- white-on-light-gray
	   text (invisible) on fields like the Leads table's name/coverage/
	   source/date, found live in dark mode on the Agents tab. Kept as a
	   plain nested rule, not a duplicate light-mode :root block, so this
	   stays a one-line fix if the real :root light values ever change.
	   Was already latent even before docking existed, for any environment
	   where this modal could otherwise end up rendered as a dark-theme
	   descendant -- not new to this docking feature, just newly reachable
	   by it. */
	--ahp-navy: #012340;
	--ahp-gold: #d9a62b;
	--ahp-gold-text: #8a6215;
	--ahp-bg-page: #eef3f7;
	--ahp-bg-subtle: #f4f5f7;
	--ahp-border: #d8e5ec;
	--ahp-text: #012340;
	--ahp-text-muted: #667887;
	--ahp-glass-bg: #fff;
	--ahp-glass-blur: none;
	/* The pinned custom properties above only fix descendants that
	   explicitly use var(--ahp-text) -- `color` itself is inherited BY
	   COMPUTED VALUE, not re-evaluated from a lower custom property, so
	   .ahp-dashboard.ahp-theme-dark's own `color: var(--ahp-text)` (white,
	   set higher up the tree) was still the color every plain-inheriting
	   descendant here (e.g. the Leads table's firstName/lastName/source/
	   date cells, which have no color rule of their own) picked up. This
	   explicit declaration is what actually resets the inherited value at
	   this level. */
	color: var(--ahp-text);
	backdrop-filter: var(--ahp-glass-blur, none);
	-webkit-backdrop-filter: var(--ahp-glass-blur, none);
	border-radius: var(--ahp-radius-10, 10px);
	max-width: 720px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 0;
	box-shadow: var(--ahp-shadow-modal, 0 18px 45px rgba(1, 35, 64, 0.25));
}

/* Real request (2026-10-06): the Add Lead modal reuses the
   .ahp-lead-workspace card's own 3-column body (Contact info/note/
   activity) -- scoped widening, not a change to the base 720px every
   other simple-form modal (branch, account, create-login) still uses. */
.ahp-view-modal__panel--wide {
	max-width: 1040px;
}
/* Real request (2026-10-07): "make it the same size as the list views
   lead card" -- List view's own detail pane isn't in a modal at all, it
   just fills whatever width is left after the sidebar (measured ~1560px
   live at a 1568px-wide viewport), so this is a wider override specific
   to the Table-view overlay (see initTableLeadCardOverlay() in
   dashboard-widget.js), not a change to the --wide modifier other
   modals (Add Lead, ...) still use at 1040px. */
.ahp-table-card-overlay .ahp-view-modal__panel {
	max-width: 1560px;
	/* 2026-10-08 (Zack): a bit wider, edges no longer clipped, no scrollbar.
	   Padding keeps the header card's rounded corners/shadow inside the panel;
	   full-height + hidden scrollbar (wheel/touch still scroll a tall lead). */
	padding: 14px;
	max-height: calc(100vh - 48px);
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.ahp-table-card-overlay .ahp-view-modal__panel::-webkit-scrollbar {
	display: none;
}

/* 2026-10-08 (Zack): "i dont want to scroll the entire lead card from the table
   view ... the only scrolling would be the recent activity section". On screens
   tall enough, the panel is fixed to the screen height and the column row fills
   what the header leaves, so the Recent activity list (already overflow-y:auto)
   gets a bounded height and becomes the one scroll area. Short screens keep the
   old whole-panel scroll above so nothing is ever cut off. Table-view card only. */
@media (min-height: 720px) {
	.ahp-table-card-overlay .ahp-view-modal__panel {
		display: flex;
		flex-direction: column;
		height: calc(100vh - 48px);
		overflow: hidden;
	}
	.ahp-table-card-overlay .ahp-lead-workspace__header {
		flex: 0 0 auto;
	}
	.ahp-table-card-overlay .ahp-lead-workspace__body-columns {
		flex: 1 1 auto;
		min-height: 0;
		grid-template-rows: minmax(0, 1fr);
	}
	/* Safety only: if Contact/Details or an open note editor ever outgrow the row,
	   scroll inside that column (no visible bar) instead of spilling out. */
	.ahp-table-card-overlay .ahp-lead-workspace__details-stack,
	.ahp-table-card-overlay .ahp-lead-workspace__section--note {
		overflow-y: auto;
		scrollbar-width: none;
	}
}

/* Real request (2026-09-10): "i dont think we need the viewing as
   header either its too large" -- kept (avatar/name/Edit/Close all
   still live here), just shrunk: less padding, smaller avatar and
   title text below. */
.ahp-view-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 0;
	background: var(--ahp-navy, #1c2b4a);
	color: #fff;
	padding: 10px 16px;
	position: sticky;
	top: 0;
	z-index: 1;
}

.ahp-view-modal__body {
	padding: 16px 20px 20px;
}

.ahp-view-modal__header-actions {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}

/* .ahp-btn sets its own `display` (needed so it isn't reset to `inline` by
   default), which otherwise wins over the browser's native [hidden] rule --
   author CSS always beats a UA stylesheet default regardless of specificity,
   so a hidden .ahp-btn stayed visible without this. */
.ahp-view-modal__header-actions [hidden] {
	display: none !important;
}

.ahp-view-modal__header-actions .ahp-btn--outline {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.ahp-view-modal__header-actions .ahp-btn--outline[aria-disabled="true"] {
	opacity: 0.5;
	pointer-events: none;
}

/* Agent-view drawer -- opens from the right (GHL-style side panel) instead
   of the centered dialog every other .ahp-view-modal uses (e.g. the lead
   detail popup opened via [data-ahp-open-lead]). Scoped to this one
   modifier class deliberately, per an explicit request that only the
   agent-card "view leads" panel should slide in from the right; the lead
   detail modal stays a centered dialog. */
.ahp-view-modal--drawer {
	justify-content: flex-end;
	align-items: stretch;
	padding: 18px;
}

.ahp-view-modal--drawer .ahp-view-modal__panel {
	max-width: 100%;
	width: 100%;
	height: 100%;
	max-height: 100%;
	border-radius: var(--ahp-radius-12, 12px);
	box-shadow: var(--ahp-shadow-drawer, -18px 0 45px rgba(1, 35, 64, 0.25));
	animation: ahp-drawer-in 0.22s ease-out;
}

/* Design audit (2026-09-13): "a card inside a card" -- the drawer panel
   itself already reads as one bordered/shadowed box
   (.ahp-view-modal__panel); when the subtabs above are visible (an
   agency/branch view with a roster to switch between Agents/Leads), the
   subtabs already provide the section framing, so the card's OWN
   border/background/radius underneath just doubled it. Flattened only in
   that case -- a plain agent view (subtabs hidden) has no such doubling
   (nothing else frames the Leads card there), so its normal card chrome
   stays as-is. */
.ahp-view-modal--drawer [data-ahp-view-subtabs]:not([hidden]) ~ .ahp-view-modal__card {
	border: none;
	background: transparent;
	padding: 14px 0 0;
}

/* The Leads table has 7 columns (First/Last/Coverage/Disposition/Source/
   Date/Open) -- too many to fit a 480px drawer without cramming. Scroll
   horizontally instead of letting the table's default auto layout stretch
   row height trying to wrap every cell into a narrow column. */
.ahp-view-modal--drawer .ahp-view-modal__card {
	overflow-x: auto;
}

/* max-height/overflow-y (2026-09-10, alongside the sticky-header fix
   elsewhere in this file) -- scoped to the Leads card specifically, NOT
   every .ahp-view-modal__card in the drawer, so this doesn't touch the
   Agents roster card's own already-tuned .ahp-roster-scroll (360px)
   layout from earlier the same day. This makes the Leads card a real,
   bounded vertical scroll box in its own right -- both so its thead can
   stick to ITS OWN top:0 (see the [data-ahp-resizable-table] thead th
   override further down) instead of needing a hand-measured offset
   under the modal's own sticky header above it, and so a long leads
   list scrolls inside this card instead of stretching the whole drawer
   past the viewport. 85vh matches .ahp-view-modal__panel's own cap; the
   panel's chrome above this card (avatar/title/meta/stats) plus its own
   padding is roughly 200px, measured live. */
.ahp-view-modal--drawer [data-ahp-view-leads-card] {
	overflow-y: auto;
	max-height: calc(85vh - 200px);
}

.ahp-view-modal--drawer .ahp-view-modal__card table {
	min-width: 640px;
	font-size: 0.82rem;
}

.ahp-view-modal--drawer .ahp-view-modal__card th,
.ahp-view-modal--drawer .ahp-view-modal__card td {
	padding: 8px 10px;
	white-space: nowrap;
}

/* Real request (2026-09-10): "the agents page wher it shows leads" --
   [data-ahp-view-leads-card] (see above) is now its own bounded,
   independently-scrolling box, a sibling scroll context to the modal's
   own sticky header (.ahp-view-modal__header, sticky at top:0 in
   .ahp-view-modal__panel) rather than nested inside it -- so this
   table's own header sticks at top:0 relative to ITS box, same as every
   other table on this page, no hand-measured header-height offset
   needed. Background is solid here already: .ahp-view-modal__panel
   re-pins --ahp-bg-subtle to a solid light color for every descendant
   regardless of theme (see that rule's own comment), so no separate
   background override is needed the way the page-level tables above
   need one for dark mode. */
.ahp-view-modal--drawer .ahp-view-modal__card table[data-ahp-resizable-table] thead th {
	position: sticky;
	top: 0;
	z-index: 2;
}

/* Docked mode -- the SAME .ahp-view-modal element the Agencies tab's "View
   as this Agency" drawer uses, just relocated (via appendChild, see
   initAgentsWorkspace()'s dock()/undock() in dashboard-widget.js) into the
   Agents tab's .ahp-workspace__detail slot and re-skinned to read as a
   permanent panel instead of an overlay. Undocked back to
   [data-ahp-view-modal-anchor] (its original position, a sibling of
   .ahp-dashboard) on tab change, so the Agencies drawer keeps working
   exactly as before. MUST come after .ahp-view-modal/.ahp-view-modal--drawer
   above in the cascade -- same specificity (one class each), so source
   order decides and this needs to win when both classes are present. */
.ahp-view-modal--docked {
	position: relative;
	inset: auto;
	z-index: auto;
	display: block;
	align-items: initial;
	justify-content: initial;
	padding: 0;
	height: auto;
}

.ahp-view-modal--docked .ahp-view-modal__backdrop {
	display: none;
}

.ahp-view-modal--docked .ahp-view-modal__panel {
	max-width: 100%;
	width: 100%;
	max-height: none;
	/* Same explicit value as .ahp-workspace__detail/.ahp-workspace__list,
	   not a percentage -- a percentage height here needs its grid-item
	   parent to have a definite (stretched) height, which is fragile to
	   depend on. Matching the same calc() directly is simpler and robust
	   either way. */
	min-height: calc(100vh - 200px);
	border-radius: var(--ahp-radius-12, 12px);
	box-shadow: none;
	animation: none;
}

.ahp-view-modal--docked [data-ahp-view-close] {
	display: none;
}

/* Real request (2026-09-10): smooth out the "glitchy" snap when switching
   between the Agents/Agencies tabs (or clicking a different row) -- see
   the loading-class toggle around the view-as fetch in
   dashboard-widget.js. Dims the CURRENT (about-to-be-replaced) content
   during the round trip instead of leaving it frozen, then fades back to
   full opacity once openWithData() re-renders it -- transition is on the
   panel, not the modal itself, so the backdrop/positioning never moves. */
.ahp-view-modal--loading .ahp-view-modal__panel {
	opacity: 0.45;
}

@keyframes ahp-drawer-in {
	from {
		transform: translateX(24px);
		opacity: 0.4;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Agency drawer's agent roster -- was a plain HTML table (checkbox/name/
   assigned-to/login columns crammed into a narrow drawer), replaced with
   real cards (photo, name, assignment) matching the Agents tab's visual
   language, 2026-09-03. Same underlying data/controls, just presentable
   as something to actually look at rather than a spreadsheet row. */
/* Real request (2026-09-10): "we should simply be able to add agents to
   any agency or office with ease... i dont know how to do it." This
   roster can run 25+ rows deep -- pinning the search + bulk-Add bar to
   the top of its own independently-scrolling area keeps both always
   visible, instead of the bulk-Add button sitting below the entire
   list. See the markup comment in class-shortcode.php. */
.ahp-roster-toolbar {
	position: sticky;
	/* top:0 relative to .ahp-roster-scroll's own overflow (below), not
	   the page or the outer panel -- this box is its own, self-contained
	   scroll region, so the offset here is simply "top of that box." */
	top: 0;
	z-index: 2;
	display: flex;
	gap: 8px;
	align-items: center;
	background: var(--ahp-glass-bg);
	padding: 8px 0;
	margin-bottom: 4px;
}

.ahp-roster-toolbar .ahp-lead-filters__search {
	flex: 1 1 auto;
}

/* Real request (2026-09-10): "we should simply be able to add agents...
   the agent cards should scroll" -- this stays its own small,
   independently-scrolling box (not the outer panel) so the header,
   stat cards, and this roster's own search bar all stay visible above
   it without needing to scroll the whole panel -- only the rows inside
   this one box move. */
/* Real request (2026-09-10, screenshot): "can we expand the view pane
   to the red line at the bottom" -- 360px left real, visible empty
   space below the card on a normal-height screen. calc() instead of a
   second hardcoded px value so it actually fills the available room
   (same pattern as the other viewport-relative heights already used
   this session) rather than guessing a bigger fixed number that's
   still wrong on a different screen. */
.ahp-roster-scroll {
	max-height: calc(100vh - 420px);
	overflow-y: auto;
}

.ahp-roster-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 10px 0;
}

.ahp-roster-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-10, 10px);
	background: var(--ahp-glass-bg);
}

/* Real request (2026-09-10): "click on the agent and see the info... it
   should look like the agents tab view". The card itself is now clickable
   (see renderAgentsRoster() in dashboard-widget.js) -- this is just the
   hover affordance so that reads as an obvious, real affordance rather
   than an accidental click target. */
.ahp-roster-card--clickable {
	cursor: pointer;
}

.ahp-roster-card--clickable:hover {
	border-color: var(--ahp-navy, #012340);
}

.ahp-roster-card__info {
	flex: 1 1 140px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ahp-roster-card__name {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--ahp-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ahp-roster-card__meta {
	font-size: 0.72rem;
	color: var(--ahp-text-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ahp-roster-card__actions {
	flex-basis: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
	/* Design audit (2026-09-13): reserves roughly one control row so a
	   member card (role select + Share checkbox + Add/Remove button) and
	   a non-member card (just one button) don't visibly jump in height
	   next to each other in the same roster list. */
	min-height: 30px;
	align-items: center;
}

/* Design audit (2026-09-13): dedicated size for the Manager/Agency Admin
   role picker (see initAgentsWorkspace()'s roleSelect) -- was previously
   borrowing a search input's flex-grow class and stretching to ~900px
   wide. Sized like the other compact selects on this page instead. */
.ahp-roster-card__role-select {
	flex: 0 1 150px;
	min-width: 110px;
	padding: 5px 8px;
	border-radius: var(--ahp-radius-6, 6px);
	border: 1px solid var(--ahp-border, #d7dce3);
	font-size: 0.78rem;
	font-family: inherit;
	background: var(--ahp-glass-bg, #fff);
	color: var(--ahp-text, #1c2b4a);
}

.ahp-roster-card__actions select {
	min-width: 0;
}

.ahp-roster-card__share {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.72rem;
	color: var(--ahp-text-muted);
	white-space: nowrap;
	margin-right: auto;
}

.ahp-roster-card__share input {
	margin: 0;
}

.ahp-view-modal__identity {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}

.ahp-view-modal__avatar {
	width: 32px;
	height: 32px;
	font-size: 0.68rem;
	flex-shrink: 0;
}

/* Design audit (2026-09-13): the record name was one of several
   equally-weighted elements in this header (buttons visually heavier
   than the name) rather than the loudest thing on the page, the way a
   real CRM's record header works. Bumped from 0.95rem and given
   flex-grow so the action buttons stay a visually secondary group
   pinned to the right (see .ahp-view-modal__title-row below) instead
   of competing with it for size. */
.ahp-view-modal__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
	flex: 1 1 auto;
	min-width: 0;
}

/* Real request (2026-09-10, screenshot): name + its contextual action(s)
   on one line instead of stacked -- see the markup comment in
   class-shortcode.php. Wraps onto a second line only if the buttons
   (Edit/Edit Agency/+Add Office/Email/Create Login, depending on what's
   being viewed) don't fit next to the name. */
.ahp-view-modal__title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 14px;
}

/* Design audit (2026-09-13): pinned to the right as a secondary group,
   visually subordinate to the title above -- see .ahp-view-modal__title. */
.ahp-view-modal__title-row .ahp-view-modal__header-actions {
	margin-top: 0;
	margin-left: auto;
	flex: 0 0 auto;
}

/* The Agency/Branch "Edit" action bars (see the moved-here comment in
   class-shortcode.php) were designed to sit as their own bare block
   ABOVE the modal, not inline next to the title -- strip the vertical
   spacing/stacking that assumed that, and dim the branch-chip label
   text (its default color is a dark gray meant for a light background,
   invisible against this navy header). The chips themselves keep their
   own light pill background either way, so they stay readable as-is. */
.ahp-view-modal__header-actions .ahp-sub-agency-card__branches {
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 0;
}

.ahp-view-modal__header-actions .ahp-sub-agency-card__actions {
	margin-top: 0;
}

.ahp-view-modal__header-actions .ahp-sub-agency-card--bare,
.ahp-view-modal__header-actions .ahp-branch-card--bare {
	padding: 0;
	margin-bottom: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
}

/* Agent view's "Agency: X · Office: Y" line (see openWithData() and
   class-shortcode.php's own comment on data-ahp-view-agent-meta) --
   replaces the old .ahp-view-modal__branch, which only ever showed one
   of the two, and only when set. Same size/color values carried over. */
.ahp-view-modal__meta {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.75);
	margin-top: 4px;
}

.ahp-view-modal__meta strong {
	color: #fff;
	font-weight: 600;
}

.ahp-view-modal__meta-sep {
	margin: 0 6px;
	opacity: 0.5;
}

/* Design audit (2026-09-13): replaces the old "Leads: 3 · Won: 0 · Win
   Rate: —" plain-text sentence with the same .ahp-stat-card value/label
   pattern used on the Dashboard tab's own stat grid, at a compact size
   suited to a header line instead of that tab's full 2rem cards. */
.ahp-view-modal__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.ahp-stat-card--compact {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.18);
	box-shadow: none;
	padding: 8px 14px;
	min-width: 84px;
}

.ahp-stat-card--compact .ahp-stat-card__label {
	font-size: 0.68rem;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 2px;
}

.ahp-stat-card--compact .ahp-stat-card__value {
	font-size: 1.1rem;
	color: #fff;
	line-height: 1.2;
}

.ahp-view-modal__subtitle {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	color: #7a5b06;
	background: #fff5cf;
	border: 1px solid #ecd374;
	border-radius: var(--ahp-radius-8, 8px);
	padding: 6px 10px;
	margin-top: 8px;
	max-width: 460px;
}

.ahp-view-modal__header .ahp-btn--outline {
	background: transparent;
	border: 2px solid var(--ahp-gold, #d9a62b);
	color: #fff;
	font-weight: 800;
}

.ahp-view-modal__card {
	background: #fff;
	border: 1px solid var(--ahp-border, #e1e5ea);
	border-radius: var(--ahp-radius-10, 10px);
	padding: 14px;
}

/* Reusable pattern for a short utility modal form (New/Edit Agency,
   New/Edit Branch) -- real feedback: "this edit agency pop up is kinda
   ugly and idk what I'm looking at" -- these forms had NO layout CSS at
   all, just raw browser-default inline label/input/button. Deliberately
   general (not scoped to one modal's data attribute) so any future short
   modal form in this plugin can adopt the same class instead of shipping
   unstyled again. */
.ahp-modal-form {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ahp-modal-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--ahp-text);
}

.ahp-modal-form input[type="text"],
.ahp-modal-form input[type="email"],
.ahp-modal-form input[type="search"],
.ahp-modal-form input[type="date"],
.ahp-contact-preference > select,
.ahp-modal-form select {
	font-weight: 400;
	font-size: 0.95rem;
	padding: 9px 12px;
	border: 1px solid var(--ahp-border, #d7dce3);
	border-radius: var(--ahp-radius-6, 6px);
	background: #fff;
	color: var(--ahp-navy, #1c2b4a);
}

.ahp-modal-form input:focus {
	outline: none;
	border-color: var(--ahp-gold, #d9a62b);
	box-shadow: 0 0 0 2px rgba(242, 169, 58, 0.25);
}

.ahp-modal-form__hint {
	font-weight: 400;
	font-size: 0.76rem;
	color: var(--ahp-text-muted, #7a8291);
}

.ahp-modal-form__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 4px;
	border-top: 1px solid var(--ahp-border, #e1e5ea);
	margin-top: 2px;
}

/* These two are short single-purpose forms (a name, an optional linked
   branch) -- the generic .ahp-view-modal__panel's 720px default max-width
   left them looking like a mostly-empty oversized box. A compact utility
   size reads as intentional instead. */
[data-ahp-agency-modal] .ahp-view-modal__panel,
[data-ahp-branch-modal] .ahp-view-modal__panel {
	max-width: 440px;
}

/* Real request (2026-10-06): the Add Lead (walk-in/call-in) modal was
   rebuilt to reuse the real .ahp-lead-workspace lead-detail-card markup
   (see class-shortcode.php and .ahp-view-modal__panel--wide above) --
   superseded the earlier plain-form .ahp-walkin-form*/960px-override
   rules that used to live here (a plain stacked-<label> form with its
   own two-column row helper), now dead since nothing in the markup
   references those classes any more. */

/* Agent/Agency "view as" modal's own Leads table (see
   class-shortcode.php's own comment on this block) -- real table + full
   disposition ladder, same as the All Leads/Unassigned Table view, wrapped
   for horizontal scroll the same way (.ahp-dashboard__resizable-scroll)
   since the ladder is wide and this modal isn't full page width. */

/* .ahp-lead-filters__search's `flex: 1 1 220px` only stretches inside a
   flex row (the main dashboard's .ahp-lead-filters wrapper) -- here it
   sits directly in this plain block card with no flex parent, so it was
   rendering at its unstretched intrinsic width, clipping the placeholder
   text. Scoped to this one input via its own data attribute so the
   shared class's normal (working) behavior elsewhere is untouched. */
.ahp-view-modal__card [data-ahp-view-agents-search] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 10px;
}

.ahp-view-modal__card h3 {
	margin: 0 0 10px;
	font-size: 0.95rem;
	color: var(--ahp-navy, #1c2b4a);
}

.ahp-view-modal__stats strong {
	display: block;
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--ahp-navy, #1c2b4a);
}

.ahp-view-modal__stats span {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--ahp-text-muted, #7a8291);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Lead Summary modal (data-ahp-lead-modal) -- reuses .ahp-view-modal's
   panel/backdrop/header chrome above, just its own field layout. */
.ahp-lead-detail {
	margin: 0;
}

/* Quick-action row (Call/Text/Email) under the modal header (2026-09-22,
   styled after GHL's own contact-page icon toolbar, but a labeled pill
   row rather than bare icons -- easier to scan for staff who don't live
   in GHL all day). Text opens the same GHL contact/conversation deep
   link as the Chat detail row further down; Call/Email are the same
   tel:/mailto: links already used elsewhere in this modal. */
.ahp-lead-quickactions {
	display: flex;
	gap: 6px;
	margin: 0 0 10px;
}

/* Real request (2026-10-01): "the call text and email buttons can be
   smaller" -- tightened padding/font to reclaim vertical space in the
   workspace card header. */
.ahp-lead-quickaction {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 6px 8px;
	border-radius: var(--ahp-radius-8, 8px);
	border: 1px solid var(--ahp-border);
	background: var(--ahp-glass-bg);
	color: var(--ahp-navy);
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
}

.ahp-lead-quickaction:hover {
	border-color: var(--ahp-gold);
	color: var(--ahp-gold-text);
}

.ahp-lead-quickaction[aria-disabled="true"] {
	opacity: 0.4;
	pointer-events: none;
}

.ahp-lead-detail__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ahp-border, #e4e7ec);
}

.ahp-lead-detail__row:last-child {
	border-bottom: none;
}

.ahp-lead-detail__row dt {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--ahp-text-muted, #7a8291);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ahp-lead-detail__row dd {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ahp-navy, #1c2b4a);
	text-align: right;
}

.ahp-lead-detail__row dd a[data-ahp-lead-tel],
.ahp-lead-detail__row dd a[data-ahp-lead-mailto] {
	color: var(--ahp-gold-text, #8a6215);
	text-decoration: none;
}

.ahp-lead-detail__row dd a[data-ahp-lead-tel]:hover,
.ahp-lead-detail__row dd a[data-ahp-lead-mailto]:hover {
	text-decoration: underline;
}

/* The assign control now lives inside the "Assigned Agent" row itself
   (see class-shortcode.php) instead of as a detached section at the
   bottom of the whole lead detail list -- reassignment sits right next
   to the field it changes, not several fields away from it. That row
   needs its own layout: current value stacked above the mini-form,
   full-width and left-aligned rather than the terse right-aligned
   single-line style every other row uses. */
.ahp-lead-detail__row--assign {
	flex-direction: column;
	align-items: stretch;
}

.ahp-lead-detail__row--assign dd {
	text-align: left;
	width: 100%;
}

/* Real request (2026-10-02): rebuilt to match ChatGPT's own mockup
   (ahp-lead-workspace-stacked.html, "i do like how it looks and want it
   exactly the same please dont deviate") exactly -- a header card
   (identity row + a 4-field header-controls row: Disposition/Assigned
   agent/Call outcome/Next follow-up, under a gold rule, plus a stage-
   age/helper-text line) stacked above a two-column body: a narrower
   Contact info + Lead details stack on the left, a wider combined
   Add-a-note + Recent activity panel on the right. Replaces the
   previous main/side 2-column split entirely -- see
   renderLeadWorkspaceCard() in dashboard-widget.js for the matching
   DOM shape. All real data/REST wiring is unchanged; only the layout
   moved to match the mockup. */
.ahp-lead-workspace {
	display: block;
	width: 100%;
}

.ahp-lead-workspace__header {
	background: var(--ahp-glass-bg);
	backdrop-filter: var(--ahp-glass-blur);
	-webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border);
	border-radius: 18px;
	box-shadow: var(--ahp-shadow-card-subtle);
	padding: 20px;
}

.ahp-lead-workspace__identity-row {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
}

.ahp-lead-workspace__identity {
	min-width: 0;
}

.ahp-lead-workspace__name {
	margin: 0;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ahp-navy);
	overflow-wrap: anywhere;
}

.ahp-lead-workspace__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

/* Coverage badge: the mockup's own .coverage is a flat 11px pill (plus a
   per-type color via data-type="Medicare"/"Health"); this reuses the
   plugin's OWN already-established coverage color system instead
   (ahp-tag--<slugified-coverage>, same classes the lead list rows
   already use) rather than inventing a parallel data-type scheme --
   same colored-by-coverage result, one color system instead of two. Only
   the mockup's exact sizing is set here; background/color come from the
   ahp-tag/ahp-tag--* rules above. */
.ahp-lead-workspace__coverage-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 3px 7px;
	border-radius: 3px;
}

.ahp-lead-workspace__received {
	font-size: 11px;
	color: var(--ahp-text-muted);
}

/* Header-controls: the 4-field Disposition/Assigned agent/Call outcome/
   Next follow-up row, matching the mockup's own grid-template-columns
   exactly (3 equal tracks + a slightly wider 4th for the datetime
   input). Children are plain divs (no field-specific class needed), same
   as the mockup's own `.header-controls > div` -- the grid styles them
   by position, not by class. */
.ahp-lead-workspace__header-controls {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(195px, 1.25fr);
	gap: 12px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 2px solid var(--ahp-gold);
}

.ahp-lead-workspace__field-label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.35px;
	text-transform: uppercase;
	color: var(--ahp-text-muted);
	margin-bottom: 7px;
}

.ahp-lead-workspace__header-controls select,
.ahp-lead-workspace__header-controls input[type="datetime-local"],
/* Real request (2026-10-06): the Add Lead screen reuses this same
   header-controls row for real text inputs (First/Last Name) -- the rule
   above only ever needed to style select/datetime-local before, since
   every other user of this row (the real lead-detail card) only ever put
   read-only values or selects here. */
.ahp-lead-workspace__header-controls input[type="text"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-width: 0;
	min-height: 38px;
	padding: 7px 8px;
	border: 1px solid var(--ahp-border);
	border-radius: 6px;
	background: #fff;
	color: var(--ahp-navy);
	font: inherit;
	font-size: 13px;
}

.ahp-lead-workspace__header-help {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 9px;
	color: var(--ahp-text-muted);
	font-size: 11px;
}

@media (max-width: 740px) {
	.ahp-lead-workspace__header-controls {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Contact Outreach / Renewal Calling (2026-10-02) -- 3 fields (assign/
   outcome/follow-up), not the lead card's 4; even columns instead of the
   lead card's 3-narrow-plus-1-wide layout built for its disposition field. */
.ahp-contact-workspace__header-controls {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 740px) {
	.ahp-contact-workspace__header-controls {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}

/* Conversations UI redesign (2026-10-05) -- just Disposition/Assigned
   agent (see renderLeadControlsRow() in dashboard-widget.js), same
   "override the grid for this field count" pattern as
   .ahp-contact-workspace__header-controls above. Lighter top border and
   margin than the full lead card's own -- this sits inside a narrower
   chat panel column, not the wide 3-column lead workspace. */
.ahp-convo-lead-controls {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 0;
	margin-bottom: 4px;
	padding-top: 12px;
	padding-bottom: 12px;
	border-top: none;
	border-bottom: 1px solid var(--ahp-border);
}

.ahp-convo-lead-controls:empty {
	display: none;
}

@media (max-width: 740px) {
	.ahp-convo-lead-controls {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}

/* Real request (2026-10-02): "contact info panel can be thinner" --
   narrowed from the mockup's own minmax(235px,.85fr) left track to give
   the note/activity panel on the right more of the available width.
   align-items: stretch (2026-10-02: "smaller activity feed please like
   the same size as the lead card on the left") makes the right column's
   box match the left column's own height instead of growing to fit its
   own content -- see .ahp-lead-workspace__section--note/__activity/
   [data-ahp-activity-list] below for the nested flex that turns that
   fixed height into an internally-scrolling activity feed. */
/* Real request (2026-10-02): "lets move the recent activity to the far
   right" -- a third column, split out of the notes panel it used to
   share a box with. */
.ahp-lead-workspace__body-columns {
	display: grid;
	grid-template-columns: minmax(200px, .6fr) minmax(0, 1fr) minmax(260px, .55fr);
	gap: 16px;
	margin-top: 16px;
	align-items: stretch;
}

/* Real request (2026-10-02): "i dont want the scroll chrome nothing
   shold need to be scrolled exept the activity feed" -- the note editor
   is now collapsed behind an Add-note button by default (see
   .ahp-note-add-toggle below), so the old per-column scroll-bound fix
   for a long open editor pushing Save below the fold no longer applies
   in the common case; the only intentional internal scroll region left
   is [data-ahp-activity-list] itself. */
.ahp-lead-workspace__details-stack {
	display: grid;
	gap: 12px;
	min-width: 0;
}

/* Client card (2026-10-28): same three columns as the lead card now
   (details / note editor / Recent activity); Table rows open it. */
[data-ahp-client-table] tr[data-ahp-client-id] {
	cursor: pointer;
}

/* The List view pane is narrower than the overlay: wrap the three columns
   instead of overflowing (the pre-notes card's rule). */
[data-ahp-client-list-detail] .ahp-lead-workspace__body-columns {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 650px) {
	.ahp-lead-workspace__body-columns {
		grid-template-columns: minmax(0, 1fr);
	}
}

.ahp-lead-workspace__section {
	background: var(--ahp-glass-bg);
	backdrop-filter: var(--ahp-glass-blur);
	-webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border);
	border-radius: 16px;
	box-shadow: var(--ahp-shadow-card-subtle);
	padding: 16px;
	margin-bottom: 12px;
	min-width: 0;
}

.ahp-lead-workspace__section h5 {
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.25px;
	color: var(--ahp-text-muted);
}

.ahp-lead-workspace__section summary {
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--ahp-text-muted);
}

.ahp-lead-workspace__section select,
.ahp-lead-workspace__section input[type="datetime-local"] {
	width: 100%;
	box-sizing: border-box;
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-6, 6px);
	background: #fff;
	color: var(--ahp-text);
	font: inherit;
}

.ahp-lead-workspace__section label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--ahp-text-muted);
	margin-bottom: 12px;
}

.ahp-lead-workspace__section label select,
.ahp-lead-workspace__section label input {
	margin-top: 6px;
}

.ahp-lead-workspace__field {
	display: flex;
	flex-direction: column;
	padding: 10px 0;
	border-bottom: 1px solid var(--ahp-border);
}

.ahp-lead-workspace__field:first-child {
	padding-top: 0;
}

.ahp-lead-workspace__field:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.ahp-lead-workspace__label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ahp-text-muted);
	margin-bottom: 5px;
}

/* Real request (2026-10-06): Add Lead reuses .ahp-lead-workspace__field
   for real Phone/Email inputs, not just the read-only
   .ahp-lead-workspace__value text the real lead-detail card shows --
   matches that value's own type/size/weight/color so the field reads the
   same either way, just editable here. */
.ahp-lead-workspace__field input {
	font-size: 13px;
	font-weight: 600;
	color: var(--ahp-navy);
	font-family: inherit;
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-6, 6px);
	padding: 6px 8px;
	background: #fff;
}

.ahp-lead-workspace__value {
	font-size: 13px;
	font-weight: 600;
	color: var(--ahp-navy);
	overflow-wrap: anywhere;
}

.ahp-lead-workspace__save-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.ahp-lead-workspace__save-status {
	font-size: 0.85rem;
	color: var(--ahp-text-muted);
}

/* Real bug (2026-10-01): "can't scroll the recent activity" -- the page
   itself never scrolls (html/body overflow:hidden up top), and this list
   had no bound of its own, so a lead with many notes buried the older
   ones below the fold with no way to reach them. Scrolls internally
   instead once it has enough entries to need it. Fixed 360px cap
   replaced (2026-10-02: "smaller activity feed ... same size as the
   lead card on the left") with a flexible one that fills whatever
   height .ahp-lead-workspace__section--note's own stretch-to-match-left-
   column height leaves available. */
[data-ahp-activity-list] {
	flex: 1 1 auto;
	min-height: 80px;
	overflow-y: auto;
}

/* Real request (2026-10-02): "the leftmost panel is the lead cards and i
   want the recent activity to look like it the same size as its cards
   each activity another card" -- each entry is now its own bordered,
   rounded card (not a hairline-divided list), stacked with a small gap,
   and its internal structure mirrors the sidebar lead row's own
   bold-heading + muted-subtitle layout
   (.ahp-lead-sidebar__heading/.ahp-workspace__row-meta): a bold
   author name with a muted timestamp pushed to the right on one line,
   optional tag(s) below, then the note text. */
.ahp-lead-workspace__activity-entry {
	/* Real request (2026-10-02): "its still not the same sidth the height
	   is fine" -- 300px matches .ahp-workspace's own sidebar track width
	   exactly (the real lead cards' own column), not just the panel's
	   stretched height. */
	max-width: 300px;
	padding: 9px 10px;
	margin-bottom: 6px;
	border: 1px solid var(--ahp-border);
	border-radius: 14px;
	box-shadow: var(--ahp-shadow-card-subtle);
	background: var(--ahp-glass-bg);
	cursor: pointer;
}

.ahp-lead-workspace__activity-entry:last-child {
	margin-bottom: 0;
}

.ahp-lead-workspace__activity-entry:hover {
	border-color: var(--ahp-gold);
	background: var(--ahp-bg-subtle);
}

/* Real request (2026-10-01): "need to be able to do CRUD on the notes" --
   edit/delete per Recent Activity entry, reusing the existing
   .ahp-mini-btn-icon look already established for other row actions. */
.ahp-activity-actions {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	margin-top: 4px;
}

.ahp-lead-workspace__activity-heading-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}

.ahp-lead-workspace__activity-heading-row strong {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--ahp-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ahp-lead-workspace__activity-time {
	flex-shrink: 0;
	font-size: 12px;
	color: var(--ahp-text-muted);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.ahp-lead-workspace__activity-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 4px;
}

/* Real request (2026-10-02): "the recent activity card dosnt have to be
   so large ... we dont need to read the entire thing unless we click on
   it to view it" -- clamped to a single line by default (matching the
   sidebar row's own muted single-line source text), click toggles
   .is-expanded (see the activityList click handler in
   dashboard-widget.js) to show the full note. */
.ahp-lead-workspace__activity-body {
	margin-top: 3px;
	font-size: 0.72rem;
	line-height: 1.4;
	color: var(--ahp-text-muted);
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
}

.ahp-lead-workspace__activity-body.is-expanded {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
	color: var(--ahp-text);
}

.ahp-lead-workspace__activity-body p {
	margin: 0 0 5px;
}

/* Real bug (2026-10-02): "if i do a numbered or bulleted it doesn't show
   it in the recent activity" -- Quill always wraps BOTH bullet and
   numbered lists in <ol data-list="bullet|ordered">, distinguishing them
   only via that attribute plus its OWN snow-theme CSS (scoped to
   .ql-editor, where the actual marker glyph is drawn by a .ql-ui span
   Quill's runtime manages) -- none of which applies here since this is
   a plain div outside the live editor, not a .ql-editor. The <ol>/<li>
   round-tripped through wp_kses_post() intact, including data-list, so
   this restyles them with plain native markers instead of relying on
   Quill's editor-only rendering. */
.ahp-lead-workspace__activity-body ol,
.ahp-lead-workspace__activity-body ul {
	margin: 5px 0;
	padding-left: 20px;
}

.ahp-lead-workspace__activity-body li {
	margin-bottom: 2px;
}

.ahp-lead-workspace__activity-body li[data-list="bullet"] {
	list-style-type: disc;
}

.ahp-lead-workspace__activity-body li[data-list="ordered"] {
	list-style-type: decimal;
}

.ahp-lead-workspace__activity-body .ql-ui {
	display: none;
}

/* Real request (2026-10-02): "the note section should be more compact
   ... an add note button and then it expands to be used and when its
   saved it collapses and you see the activity feed" -- the editor body
   (heading/toolbar/editor/save row/help/feedback) is collapsed behind
   this one compact button by default, so the panel's resting state is
   just the button + Recent activity, not a full-height always-open
   editor. See initLeadNotesWorkspace() in dashboard-widget.js for the
   open/collapse logic. */
.ahp-note-add-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-8, 8px);
	background: #fff;
	color: var(--ahp-navy);
	font-size: 0.85rem;
	font-weight: 700;
}

.ahp-note-add-toggle:hover {
	border-color: var(--ahp-gold);
	color: var(--ahp-gold-text);
}

[data-ahp-lead-note-editor-wrap].is-open .ahp-note-add-toggle,
[data-ahp-lead-note-editor-wrap]:not(.is-open) [data-ahp-note-editor-body] {
	display: none;
}

[data-ahp-note-editor-body] {
	margin-top: 0;
}

/* Contact Outreach / Renewal Calling (2026-10-02) -- same collapsed/expanded
   toggle behavior as the lead note editor above, mirrored for the separate
   contact note editor wrap's own data attributes. */
[data-ahp-contact-note-editor-wrap].is-open .ahp-note-add-toggle,
[data-ahp-contact-note-editor-wrap]:not(.is-open) [data-ahp-contact-note-editor-body] {
	display: none;
}

[data-ahp-contact-note-editor-body] {
	margin-top: 0;
}

/* Client card notes (2026-10-28) -- same toggle, client wrap's attributes. */
[data-ahp-client-note-editor-wrap].is-open .ahp-note-add-toggle,
[data-ahp-client-note-editor-wrap]:not(.is-open) [data-ahp-client-note-editor-body] {
	display: none;
}

[data-ahp-client-note-editor-body] {
	margin-top: 0;
}

/* Add Lead modal's own note editor (2026-10-06) -- same collapsed/
   expanded toggle behavior as the two wraps above, own data attributes
   since this is a standalone Quill instance, not the shared singleton. */
[data-ahp-walk-in-note-wrap].is-open .ahp-note-add-toggle,
[data-ahp-walk-in-note-wrap]:not(.is-open) [data-ahp-walk-in-note-body] {
	display: none;
}

[data-ahp-walk-in-note-body] {
	margin-top: 0;
}

/* Real request (2026-10-01): "the note function needs to be exactly the
   same" as ChatGPT's own mockup, which used Quill (not wp_editor) with a
   note-type selector, expand toggle, live word count, and a disabled-
   until-content Save/Save & next pair. Values below are taken directly
   from that mockup's own CSS -- its --ac-navy/--ac-gold/--ac-gold-text
   already matched this project's --ahp-navy/--ahp-gold/--ahp-gold-text
   exactly, so this is a verbatim visual port, not a reconstruction. */
.ahp-note-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.ahp-note-heading h5 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
	color: var(--ahp-navy);
}

.ahp-note-heading-controls {
	display: flex;
	align-items: center;
	gap: 5px;
}

.ahp-note-heading-controls select {
	/* Real bug (2026-10-01): "General note" was clipping to "General not"
	   -- 115px wasn't enough room for its own longest option text once the
	   dropdown's native padding/arrow are accounted for. Width (132px, not
	   the mockup's 128px) and the extra right padding (for the native
	   arrow) are the deliberate deviations that fix; everything else below
	   matches the mockup's own #note-type exactly. */
	width: 132px;
	min-width: 0;
	min-height: 32px;
	padding: 5px 20px 5px 7px;
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-6, 6px);
	background: #fff;
	color: var(--ahp-navy);
	font: inherit;
	font-size: 12px;
}

/* The middle body-columns track -- just the Add-a-note editor now
   (Recent activity split out into its own far-right column, 2026-10-02:
   "lets move the recent activity to the far right"). Not the old narrow
   "sticky note" box from the previous main/side layout (that
   max-width:280px cap, and the reasoning behind it, no longer applies:
   the editor is meant to fill this column now). The editor is collapsed
   by default (see .ahp-note-add-toggle below). */
.ahp-lead-workspace__section--note {
	padding: 18px;
	display: flex;
	flex-direction: column;
	min-height: 0;
	/* Real request (2026-10-07): "can we make ths area where the arrow is
	   pointing go down to the edge of the bottom so we dont have it in
	   the way" -- this panel also carries the shared .ahp-lead-workspace__
	   section class, whose own margin-bottom:12px was quietly shaving 12px
	   off an otherwise grid-stretched box, leaving a visible gap below it
	   that .ahp-lead-workspace__activity's explicit height:100% (see
	   below) never had. Matching that same height:100% here, plus zeroing
	   the stray margin, makes this column's bottom edge land flush with
	   both siblings instead of stopping 12px short. */
	height: 100%;
	margin-bottom: 0;
}

/* Recent activity -- its own far-right panel/column. Stretched to the
   row's height the same way as the other two columns (see
   .ahp-lead-workspace__body-columns' align-items:stretch); flex-column
   so [data-ahp-activity-list] below can flex-grow to fill whatever
   height that leaves and carry the one intentional internal scroll
   region (2026-10-02: "i dont want the scroll chrome... exept the
   activity feed"). */
.ahp-lead-workspace__activity {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
}

.ahp-lead-workspace__activity-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.ahp-lead-workspace__activity-heading h5 {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
	color: var(--ahp-navy);
}

.ahp-lead-workspace__activity-heading span {
	font-size: 11px;
	color: var(--ahp-text-muted);
}

[data-ahp-activity-list] > .ahp-dashboard__note {
	font-size: 11px;
	font-style: normal;
	margin-top: 0;
}

.ahp-note-editor-shell {
	border: 1px solid #cbdbe7;
	border-radius: 8px;
	background: #fff;
}

.ahp-note-editor-shell .ql-toolbar.ql-snow {
	border: 0;
	border-bottom: 1px solid var(--ahp-border);
	border-radius: 8px 8px 0 0;
	background: var(--ahp-bg-subtle);
	padding: 6px;
}

/* Real request (2026-10-02): "the tools are too large again in the note
   editor" -- the notes panel is the middle of THREE body-columns tracks
   now (Recent activity split into its own far-right column), noticeably
   narrower than when it was the wide mockup-matching panel this 26x27
   sizing was originally tuned for. Shrunk back down to fit. */
.ahp-note-editor-shell .ql-toolbar.ql-snow button {
	width: 22px;
	height: 22px;
	padding: 2px;
}

.ahp-note-editor-shell .ql-toolbar.ql-snow svg {
	width: 14px;
	height: 14px;
}

.ahp-note-editor-shell .ql-toolbar.ql-snow .ql-formats {
	margin-right: 4px;
}

.ahp-note-editor-shell .ql-container.ql-snow {
	border: 0;
	font: 13px/1.6 Arial, sans-serif;
}

.ahp-note-editor-shell .ql-editor {
	min-height: 130px;
	max-height: 260px;
	height: auto;
	overflow-y: auto;
	padding: 12px;
	color: var(--ahp-text);
}

.ahp-note-editor-shell .ql-snow .ql-tooltip {
	max-width: 100%;
	white-space: normal;
	border-radius: 6px;
}

.ahp-note-editor-shell .ql-snow .ql-tooltip input[type="text"] {
	max-width: 100%;
	width: 170px;
}

.ahp-note-editor-status {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px;
	padding: 7px 10px;
	font-size: 10px;
	color: var(--ahp-text-muted);
	border-top: 1px solid #edf1f5;
}

.ahp-note-save-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.ahp-note-save-shortcut {
	font-size: 10px;
	color: var(--ahp-text-muted);
}

.ahp-note-save-actions {
	display: flex;
	gap: 6px;
	margin-left: auto;
}

.ahp-note-save-help {
	font-size: 11px;
	color: var(--ahp-text-muted);
	margin: 9px 0 0;
}

.ahp-note-feedback {
	font-size: 12px;
	color: var(--ahp-gold-text);
	margin: 10px 0 0;
	min-height: 1em;
}

.ahp-note-feedback:empty {
	display: none;
}

.ahp-lead-detail__assign {
	margin-top: 10px;
	padding: 12px;
	background: var(--ahp-bg-subtle-solid, #f5f7fa);
	border: 1px solid var(--ahp-border, #e4e7ec);
	border-radius: var(--ahp-radius-8, 8px);
}

.ahp-lead-detail__assign label {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--ahp-text-muted, #7a8291);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 8px;
}

.ahp-lead-detail__assign-row {
	display: flex;
	gap: 8px;
}

.ahp-lead-detail__assign-row select {
	flex: 1 1 auto;
	padding: 7px 10px;
	border-radius: var(--ahp-radius-6, 6px);
	border: 1px solid var(--ahp-border, #e4e7ec);
	font-size: 0.85rem;
	font-family: inherit;
	background: var(--ahp-glass-bg);
	color: var(--ahp-text);
}

.ahp-lead-detail__assign-note {
	margin: 8px 0 0;
	font-size: 0.82rem;
	color: var(--ahp-text-muted, #7a8291);
}
/* Real per-role login system (v2 demo) -- custom-branded login screen and
   the identity/logout chips in the top nav. See class-auth.php. Structure
   and class names follow a design the user commissioned directly (Gemini
   mockup + hand-authored CSS spec), ported here since this plugin has no
   React/Tailwind build step. */
.ahp-portal-container {
	min-height: 100vh;
	background-color: #f8fafc;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	padding: 2rem 1rem;
	box-sizing: border-box;
}

.ahp-portal-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.55;
	background-image: url('media/shield-network-bg.jpg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	pointer-events: none;
}

.ahp-login-form {
	position: relative;
	z-index: 10;
	width: 100%;
	max-width: 480px;
	background: #ffffff;
	border: 1px solid var(--ahp-border, #e2e8f0);
	border-radius: var(--ahp-radius-12, 12px);
	padding: 2.5rem;
	box-shadow: var(--ahp-shadow-popover, 0 10px 25px rgba(0, 0, 0, 0.1));
	box-sizing: border-box;
}

.ahp-form-header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.ahp-logo {
	display: block;
	width: 100%;
	max-width: 420px;
	height: auto;
	margin: 0 auto 0.5rem;
}

.ahp-card-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	border-radius: var(--ahp-radius-8, 8px);
	padding: 10px 12px;
	font-size: 0.85rem;
	margin: 0 0 1.25rem;
}

.ahp-form-group {
	margin-bottom: 1.5rem;
}

.ahp-form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--ahp-navy, #012340);
}

.ahp-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.ahp-icon-mail,
.ahp-icon-lock {
	position: absolute;
	left: 1rem;
	display: flex;
	color: #7c7c7c;
	opacity: 0.7;
	pointer-events: none;
}

.ahp-icon-mail svg,
.ahp-icon-lock svg,
.ahp-icon-toggle-password svg {
	width: 16px;
	height: 16px;
}

/* Real audit finding (2026-09-10, verified): the clickable area here was
   exactly the 16x16 icon itself -- well under any reasonable touch-target
   minimum. padding + an equal negative margin grows the actual hit area
   (position:absolute, so the negative margin doesn't affect any sibling
   layout) while leaving the icon's own rendered position pixel-identical
   to before -- verified live, no visual shift. */
.ahp-icon-toggle-password {
	position: absolute;
	right: 1rem;
	display: flex;
	color: #7c7c7c;
	opacity: 0.7;
	background: none;
	border: none;
	padding: 8px;
	margin: -8px;
	cursor: pointer;
}

.ahp-icon-toggle-password:hover {
	opacity: 1;
	color: var(--ahp-navy, #012340);
}

.ahp-icon-toggle-password.is-visible {
	opacity: 1;
	color: var(--ahp-gold, #d9a62b);
}

.ahp-input-wrapper input {
	width: 100%;
	padding: 0.75rem 2.5rem;
	border: 1px solid var(--ahp-border, #c8ccd1);
	border-radius: var(--ahp-radius-6, 6px);
	font-size: 1rem;
	font-family: inherit;
	color: var(--ahp-navy, #012340);
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.ahp-input-wrapper input:focus {
	outline: none;
	border-color: var(--ahp-navy, #012340);
	box-shadow: 0 0 0 3px rgba(1, 35, 64, 0.1);
}

.ahp-actions-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
	gap: 8px;
}

.ahp-remember-me {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #7c7c7c;
	cursor: pointer;
}

.ahp-remember-me input {
	margin: 0;
	accent-color: var(--ahp-navy, #012340);
	cursor: pointer;
}

/* Real audit finding (2026-09-10, verified): --ahp-gold on white measures
   ~2.2:1 contrast, well under WCAG AA's 4.5:1 minimum for normal text --
   confirmed by computing the actual ratio. Switched to --ahp-gold-text,
   the darker gold variant already established elsewhere in this file
   specifically for readable gold-on-light text (tags/pills) -- ~5.8:1,
   passes AA, same gold identity. */
.ahp-link-gold {
	color: var(--ahp-gold-text, #8a6215);
	text-decoration: none;
	font-weight: 500;
}

.ahp-link-gold:hover {
	text-decoration: underline;
}

.ahp-link-navy {
	color: var(--ahp-navy, #012340);
	text-decoration: none;
	font-weight: 500;
}

.ahp-link-navy:hover {
	text-decoration: underline;
}

.ahp-btn-gold {
	width: 100%;
	padding: 0.85rem;
	background-color: var(--ahp-gold, #d9a62b);
	color: #ffffff;
	border: none;
	border-radius: var(--ahp-radius-6, 6px);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.2s;
}

.ahp-btn-gold:hover {
	background-color: #2558b8;
}

.ahp-form-footer {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e7eb;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 16px;
}

.ahp-footer-links {
	display: flex;
	gap: 0.85rem;
	flex-shrink: 0;
	font-size: 0.8rem;
}

.ahp-secure-badge {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: #4b5563;
	border: 1px solid var(--ahp-border, #e2e8f0);
	border-radius: var(--ahp-radius-8, 8px);
	padding: 0.4rem 0.6rem;
	font-size: 0.7rem;
	white-space: nowrap;
}

.ahp-icon-lock-badge {
	display: flex;
	color: #7c7c7c;
}

.ahp-icon-lock-badge svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* Real values from Steve's design reference's ".ahp-access-chip" -- was
   a low-contrast light-blue-on-white-wash pill before (readable but not
   matching the reference's green "access" chip anywhere else). */
.ahp-dashboard__nav-role-pill {
	background: #e9f6ef;
	color: #176c45;
	font-size: 0.68rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 9px;
	border-radius: var(--ahp-radius-pill, 999px);
}

/* Single profile menu -- one click target for name/role/Settings/Log Out,
   replacing the old scattered name-text + separate Settings link + separate
   Log Out button trio (see class-shortcode.php). */
.ahp-dashboard__profile {
	position: relative;
}

.ahp-dashboard__profile-trigger {
	display: flex;
	align-items: center;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	border-radius: var(--ahp-radius-pill, 999px);
}

.ahp-dashboard__profile-trigger:hover .ahp-dashboard__avatar {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.ahp-dashboard__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--ahp-gold);
	color: var(--ahp-navy);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.ahp-dashboard__avatar--lg {
	width: 40px;
	height: 40px;
	font-size: 0.9rem;
	flex: none;
}

.ahp-dashboard__profile-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 220px;
	background: #fff;
	color: var(--ahp-navy);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-10, 10px);
	box-shadow: var(--ahp-shadow-elevated, 0 12px 28px rgba(1, 35, 64, 0.18));
	padding: 6px;
	z-index: 30;
}

.ahp-dashboard__profile-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px 10px;
	border-bottom: 1px solid var(--ahp-border);
	margin-bottom: 6px;
}

.ahp-dashboard__profile-name {
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--ahp-navy);
	margin-bottom: 4px;
}

.ahp-dashboard__profile-link {
	display: block;
	width: 100%;
	padding: 8px 10px;
	border-radius: var(--ahp-radius-6, 6px);
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--ahp-navy);
	text-decoration: none;
	/* Reset for the <button> variant (Change Password) so it matches the
	   <a> links (Settings/Log Out) exactly -- browsers don't inherit font/
	   text-align/border/background on buttons by default. */
	background: none;
	border: none;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.ahp-dashboard__profile-link:hover {
	background: var(--ahp-bg-subtle, #f4f5f7);
}

.ahp-dashboard__profile-link--logout {
	color: #b42318;
	border-top: 1px solid var(--ahp-border);
	margin-top: 6px;
	padding-top: 12px;
	border-radius: var(--ahp-radius-0, 0);
}

/* Groups Change Password + Admin Settings under one visible "Settings"
   label, distinct from Log Out below -- avoids Admin Settings (a real
   wp-admin page) reading as if it's the same kind of thing as the
   in-app password change. */
.ahp-dashboard__profile-section-label {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ahp-text-muted);
	padding: 4px 10px 2px;
}

.ahp-dashboard__profile-design-variant {
	padding: 4px 10px 10px;
	border-bottom: 1px solid var(--ahp-border);
	margin-bottom: 4px;
}

.ahp-dashboard__profile-design-variant .ahp-dashboard__profile-section-label {
	padding: 0 0 6px;
}

.ahp-dashboard__profile-link-hint {
	display: block;
	font-size: 0.72rem;
	font-weight: 500;
	color: var(--ahp-text-muted);
	margin-top: 2px;
}

/* Create Login modal's "Create New" / "Use Existing Account" mode toggle. */
.ahp-dashboard__tabs-mini {
	display: flex;
	gap: 6px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--ahp-border);
}

.ahp-dashboard__tabs-mini-item {
	appearance: none;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 6px 4px 10px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ahp-text-muted);
	cursor: pointer;
}

.ahp-dashboard__tabs-mini-item.is-active {
	color: var(--ahp-text);
	border-bottom-color: var(--ahp-gold, #d9a62b);
}

/* Mobile -- Steve's explicit ask (2026-09-02): make this feel like a real
   app on a phone, not a shrunk-down desktop page. Everything below only
   applies under 640px; desktop layout is untouched. */
@media (max-width: 640px) {
	.ahp-dashboard {
		padding: 0 6px;
	}

	/* Swipe in one row instead of wrapping into 2-3 cramped rows -- a
	   single scrollable strip reads as a real app's tab bar; wrapping just
	   looks broken on a narrow screen. */
	.ahp-dashboard__nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.ahp-dashboard__nav::-webkit-scrollbar {
		display: none;
	}
	.ahp-dashboard__nav-item {
		flex: 0 0 auto;
		padding: 10px 14px;
		font-size: 0.82rem;
	}
	.ahp-dashboard__nav-item--settings {
		margin-left: 4px;
	}

	.ahp-dashboard__stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		margin-bottom: 20px;
	}
	.ahp-stat-card {
		padding: 12px 14px;
	}
	.ahp-stat-card__value {
		font-size: 1.5rem;
	}

	.ahp-dashboard__trend {
		flex-wrap: wrap;
		gap: 14px;
		padding: 8px 0 16px;
	}

	/* Every table sharing this base class (Recent Leads, All Leads,
	   Unassigned, the Trends stage-distribution table) is wide -- up to 7
	   columns. Without this, a plain <table> forces the WHOLE PAGE to
	   scroll sideways on a phone, which is the actual "broken on mobile"
	   behavior; this scopes the scroll to just the table itself instead,
	   same pattern any real app uses for a wide data grid.
	   :not([data-ahp-resizable-table]) -- the All Leads table specifically
	   is excluded: it needs to stay a REAL table (table-layout:fixed +
	   explicit <th> widths) at every viewport width for resizing/
	   persisted widths to mean anything at all; this per-row display:table
	   hack ignores table-layout entirely, which is exactly why resizing
	   looked like it "did nothing" on a narrow screen. That table gets its
	   own .ahp-dashboard__resizable-scroll wrapper for horizontal scroll
	   instead (see that class, defined earlier in this file). */
	.ahp-dashboard__recent-leads:not([data-ahp-resizable-table]) {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
	}
	.ahp-dashboard__recent-leads:not([data-ahp-resizable-table]) thead,
	.ahp-dashboard__recent-leads:not([data-ahp-resizable-table]) tbody,
	.ahp-dashboard__recent-leads:not([data-ahp-resizable-table]) tr {
		display: table;
		width: 100%;
	}

	.ahp-lead-filters {
		flex-direction: column;
		align-items: stretch;
	}
	.ahp-lead-filters__search,
	.ahp-lead-filters select {
		width: 100%;
		/* Real bug found live (2026-09-08): the select's own
		   `flex: 0 1 180px` sets a 180px *width* target in the desktop
		   row layout -- but flex-basis follows the main axis, and this
		   rule switches the container to flex-direction: column, so
		   that same 180px became the select's HEIGHT instead, rendering
		   it as a tall, mostly-empty box. Reset to auto so it takes its
		   natural content height on mobile. */
		flex-basis: auto;
	}

	.ahp-dashboard__agents-simple {
		grid-template-columns: repeat(2, 1fr);
	}

	.ahp-view-modal {
		padding: 10px;
	}
	.ahp-view-modal__panel {
		max-height: 92vh;
	}
	.ahp-view-modal__header {
		padding: 14px 16px;
	}
	.ahp-view-modal__body {
		padding: 14px 16px 16px;
	}
	.ahp-view-modal__header-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ahp-portal-container {
		padding: 1.25rem 1rem;
	}
	.ahp-login-form {
		padding: 1.75rem 1.25rem;
	}
	.ahp-form-footer {
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px;
	}
}

/* Imported client cards reuse the Agencies/Agents card palette and borders. */
.ahp-clients-toolbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.ahp-clients-toolbar .ahp-dashboard__section-title,
.ahp-clients-toolbar .ahp-dashboard__note {
	margin-top: 0;
}

.ahp-clients-toolbar__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ahp-clients-toolbar__actions .ahp-btn--gold {
	margin-left: 0;
}

/* Real request (2026-09-17): "+ Add Lead" (All Leads panel) looked
   inconsistent sitting right against the Table/List toggle -- same root
   cause as .ahp-clients-toolbar__actions above, .ahp-btn--gold's own
   global margin-left:6px fights with .ahp-lead-filters' own flex
   `gap: 8px`, producing an uneven 6px-then-8px rhythm instead of one
   consistent gap across the whole filter row. */
.ahp-lead-filters .ahp-btn--gold {
	margin-left: 0;
}

.ahp-client-import-note {
	margin: 0 0 10px;
}

.ahp-client-import-errors {
	margin: 0 0 12px;
	padding: 10px 14px;
	border: 1px solid #fecaca;
	border-radius: var(--ahp-radius-8, 8px);
	background: #fef2f2;
	color: #991b1b;
	font-size: 0.8rem;
}

.ahp-client-import-errors ul {
	margin: 0;
	padding-left: 18px;
}

.ahp-client-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
}

.ahp-client-card {
	background: var(--ahp-glass-bg);
	backdrop-filter: var(--ahp-glass-blur);
	-webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-12, 12px);
	box-shadow: var(--ahp-shadow-card, 0 12px 30px rgba(1, 35, 64, 0.09));
	overflow: hidden;
}

.ahp-client-card__lock {
	flex: 0 0 auto;
	align-self: flex-start;
	padding: 3px 8px;
	border-radius: var(--ahp-radius-pill, 999px);
	background: var(--ahp-bg-subtle);
	color: var(--ahp-text-muted);
	font-size: 0.7rem;
	font-weight: 700;
}

.ahp-client-card__lock::before {
	content: "\1f512";
	margin-right: 4px;
}

.ahp-client-grid.is-unlocked .ahp-client-card__lock::before {
	content: "\1f513";
}

.ahp-client-card__sensitive {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 14px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--ahp-border);
}

.ahp-client-card__sensitive {
	border-bottom: 0;
	background: var(--ahp-bg-subtle);
}

.ahp-client-card__detail {
	min-width: 0;
}

.ahp-client-card__detail span {
	display: block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--ahp-text-muted);
}

.ahp-client-card__detail strong {
	display: block;
	margin-top: 2px;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--ahp-text);
	overflow-wrap: anywhere;
}

.ahp-client-card__detail--sensitive strong {
	filter: blur(6px);
	user-select: none;
	transition: filter 180ms ease;
}

.ahp-client-grid.is-unlocked .ahp-client-card__detail--sensitive strong {
	filter: none;
	user-select: text;
}

/* Who can see Clients (Zack + Steve, 2.10.92). */
.ahp-client-access__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 20px 0;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--ahp-navy, #012340);
}

[data-ahp-client-access-modal] [data-ahp-client-access-search] {
	display: block;
	width: calc(100% - 40px);
	box-sizing: border-box;
	margin: 14px 20px 0;
}

[data-ahp-client-access-results],
[data-ahp-client-access-list],
[data-ahp-client-access-note] {
	padding: 4px 20px;
}

.ahp-client-access__heading {
	/* Padding, not side margin: the theme makes h5 full width, so a 20px
	   margin pushed it past the panel and showed a sideways scrollbar. */
	margin: 14px 0 0;
	padding: 0 20px;
	font-size: 0.78rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--ahp-text-muted);
}

.ahp-client-access__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	font-size: 0.9rem;
	color: var(--ahp-navy, #012340);
}

.ahp-client-access__row + .ahp-client-access__row {
	border-top: 1px solid var(--ahp-border, #d8e5ec);
}

.ahp-client-access__who {
	min-width: 0;
	overflow-wrap: anywhere;
}

.ahp-client-access__meta {
	display: block;
	font-size: 0.78rem;
	color: var(--ahp-text-muted);
}

/* Clients column chooser at Import Sheet (2.10.100). */
.ahp-client-cols__intro {
	margin: 14px 0 0;
	padding: 0 20px;
}

.ahp-client-cols__list {
	max-height: 50vh;
	overflow-y: auto;
	padding: 6px 20px;
}

.ahp-client-cols__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	font-size: 0.9rem;
	color: var(--ahp-navy, #012340);
	cursor: pointer;
}

.ahp-col-filter-dropdown__link.ahp-client-reveal {
	margin-left: 8px;
}
.ahp-client-cols__row + .ahp-client-cols__row {
	border-top: 1px solid var(--ahp-border, #d8e5ec);
}

.ahp-client-cols__row.is-locked {
	opacity: 0.55;
	cursor: not-allowed;
}

[data-ahp-client-cols-note] {
	padding: 0 20px;
	color: var(--ahp-danger, #b42318);
}

.ahp-client-cols__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 12px 20px 18px;
}

@media (max-width: 640px) {
	.ahp-clients-toolbar {
		flex-direction: column;
	}

	.ahp-client-grid {
		grid-template-columns: 1fr;
	}

	.ahp-client-card__sensitive {
		grid-template-columns: 1fr;
	}
}

/* Dashboard triage and the existing All Leads / Unassigned list views. */
.ahp-dashboard__book-summary {
	color: var(--ahp-text-muted);
	margin: -12px 0 28px;
}
/* Real request (2026-10-05): card chrome for the Needs Attention panel --
   previously just flat rows directly on the page background, same
   .ahp-stat-card token combo (white/glass bg, border, radius, shadow) so
   it reads as a real section, consistent with the rest of the app. */
.ahp-attention {
	background: var(--ahp-glass-bg); backdrop-filter: var(--ahp-glass-blur); -webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-12, 12px);
	box-shadow: var(--ahp-shadow-card, 0 12px 30px rgba(1, 35, 64, 0.09));
	padding: 4px 20px;
}
.ahp-attention__group {
	border-bottom: 1px solid var(--ahp-border);
}
.ahp-attention__group:last-child {
	border-bottom: none;
}
/* Small gold accent so "Needs Attention" reads as the page's hero section
   -- a plain dot before the heading text, no markup change needed. */
.ahp-dashboard__section-title--attention::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ahp-gold);
	margin-right: 8px;
	vertical-align: middle;
}
.ahp-stat-card--accent {
	border-left: 3px solid var(--ahp-gold);
}
.ahp-attention__group > summary {
	cursor: pointer;
	padding: 16px 0;
	font-weight: 700;
}
.ahp-attention__row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 20px;
	padding: 16px 0;
	border-top: 1px solid var(--ahp-border);
}
/* Real request (2026-10-01): "stalled leads can just be a card you click
   on and manage from there" -- the whole row is the click target now
   (see the whole-row click delegation in dashboard-widget.js), this just
   signals that visually. */
.ahp-attention__row--card {
	cursor: pointer;
	border-radius: var(--ahp-radius-8, 8px);
	margin: 0 -10px;
	padding-left: 10px;
	padding-right: 10px;
	transition: background-color 120ms ease;
}
.ahp-attention__row--card:hover,
.ahp-attention__row--card:focus-visible {
	background: var(--ahp-bg-subtle-solid, #f5f7fa);
}
.ahp-attention__open-hint {
	color: var(--ahp-text-muted);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}
.ahp-attention__row--card:hover .ahp-attention__open-hint {
	color: var(--ahp-navy);
}
.ahp-attention__identity {
	flex: 1 1 240px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	overflow-wrap: anywhere;
}
.ahp-attention__disposition { flex-basis: 100%; }
.ahp-stage-age {
	color: var(--ahp-text-muted);
	font-size: 12px;
	font-weight: 400;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.ahp-lead-sidebar__heading {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 12px;
}
.ahp-lead-sidebar__heading strong { overflow-wrap: anywhere; }
.ahp-attention__group > summary:focus-visible,
.ahp-workspace__row[tabindex]:focus-visible {
	outline: 2px solid var(--ahp-navy);
	outline-offset: 2px;
}

/* Team Performance section (2026-09-13): agent leaderboard + lead
   source breakdown, side by side on wide screens, stacked on phone
   width -- reuses .ahp-dashboard__recent-leads for the tables
   themselves (same table this file already uses for Stage
   Distribution), just needs the two-card layout wrapper. */
.ahp-dashboard__performance-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

/* Real request (2026-10-05): these were plain divs with just a heading,
   sitting directly on the page background -- same card chrome as
   .ahp-attention/.ahp-stat-card above so they read as real cards. */
.ahp-performance-card {
	background: var(--ahp-glass-bg); backdrop-filter: var(--ahp-glass-blur); -webkit-backdrop-filter: var(--ahp-glass-blur);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-12, 12px);
	box-shadow: var(--ahp-shadow-card, 0 12px 30px rgba(1, 35, 64, 0.09));
	padding: 18px 20px;
}

.ahp-performance-card h4 {
	margin: 0 0 10px;
	font-size: 0.9rem;
	color: var(--ahp-text);
}

/* Real follow-up request (2026-09-22): "the column names i meant can
   stay still they dont need to scroll" -- the h4 title fix above
   already keeps the WHOLE card from page-scrolling, but the column
   header row itself was still scrolling away with the body rows
   inside .ahp-dashboard__scroll-table. Not using
   [data-ahp-resizable-table] (the existing sticky-thead selector
   elsewhere in this file) on purpose -- that attribute also turns on
   column-resize-handle JS (see initResizableTables() in
   dashboard-widget.js), which these small 2/4-column cards don't need
   -- this is a scoped, CSS-only sticky header instead. --ahp-bg-page
   (not the table's own near-transparent header tint) so the sticky
   row fully occludes rows scrolling underneath it, same reasoning as
   the existing sticky-header rule. */
.ahp-performance-card .ahp-dashboard__scroll-table thead th {
	position: sticky;
	top: 0;
	z-index: 5;
	background: var(--ahp-bg-page);
}

/* Small build-version indicator (2026-09-15 request): fixed bottom-right,
   out of the way of any real content, so Zack can tell at a glance which
   deployed version he's looking at without opening devtools. Low z-index
   relative to modals/overlays -- it's a passive label, never meant to
   intercept clicks or sit above anything else. */
.ahp-dashboard__version {
	position: fixed;
	right: 8px;
	bottom: 4px;
	font-size: 10px;
	color: var(--ahp-text-muted, #9aa5b1);
	opacity: 0.6;
	pointer-events: none;
	z-index: 1;
	user-select: none;
}

/* Contact preference remains separate from the disposition ladder. */
.ahp-contact-preference { min-width: 210px; white-space: normal; }
.ahp-contact-preference > select { max-width: 100%; width: 100%; }
/* Real request (2026-10-07): "i cant see the drop down arrow on...
   contact preference" -- scoped narrowly to just this select, not the
   shared .ahp-modal-form select rule (used by many unrelated modals) --
   same explicit chevron as the Assign To select above, for the same
   reason: the native arrow wasn't reliably visible. */
.ahp-contact-preference > select {
	padding-right: 26px;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23526875' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 10px 6px;
}
.ahp-contact-preference__editor { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ahp-contact-preference__editor input { min-width: 0; max-width: 100%; }
/* Real bug (2026-10-07): .ahp-lead-status-btn's white-space:nowrap is fine
   for short disposition labels ("New", "Contacted") but this editor reuses
   the same class for much longer Confirm/Cancel labels ("Confirm permanent
   removal", "Yes, request removal") -- those overflowed the narrow Table-
   view column instead of wrapping. Scoped to this editor only so the
   disposition bar elsewhere is untouched. */
.ahp-contact-preference__editor .ahp-lead-status-btn { white-space: normal; text-align: center; max-width: 100%; }
.ahp-contact-preference__snoozed,
.ahp-contact-preference__message { display: block; font-size: .8rem; margin: 4px 0; }
.ahp-contact-preference__snoozed { color: var(--ahp-text); font-weight: 600; }
.ahp-contact-preference__message.is-error { color: var(--ahp-danger, #b42318); }
/* Real request (2026-10-07): the "Request removal" confirm step needs to
   actually read as a warning, not blend in as ordinary editor copy --
   same danger color already used for an error message above. */
.ahp-contact-preference__warning { display: block; width: 100%; font-size: .8rem; color: var(--ahp-danger, #b42318); margin: 2px 0 6px; }
.ahp-contact-preference select:focus-visible { outline: 2px solid var(--ahp-gold); outline-offset: 2px; }
/* Removal reason (2026-10-28): required for an agent's request, optional in
   the Delete Lead modal. Same field look as the modal-form inputs. */
.ahp-contact-preference__editor textarea,
[data-ahp-delete-lead-reason] {
	display: block; width: 100%; box-sizing: border-box; resize: vertical;
	font: inherit; font-weight: 400; font-size: 0.9rem; padding: 8px 10px;
	border: 1px solid var(--ahp-border, #d7dce3); border-radius: var(--ahp-radius-6, 6px);
	background: #fff; color: var(--ahp-navy, #1c2b4a);
}
.ahp-contact-preference__editor textarea:focus,
[data-ahp-delete-lead-reason]:focus { outline: none; border-color: var(--ahp-gold, #d9a62b); box-shadow: 0 0 0 2px rgba(242, 169, 58, 0.25); }
[data-ahp-delete-lead-step2] label { display: block; margin: 0 0 12px; font-size: 0.82rem; font-weight: 700; }
[data-ahp-delete-lead-step2] label textarea { margin-top: 6px; }
.ahp-notifications { position: relative; margin-left: auto; }
.ahp-notifications [data-ahp-notification-bell] {
	color: #fff;
	border-radius: var(--ahp-radius-pill, 999px);
	padding: 6px;
	transition: color 150ms ease, filter 150ms ease;
}
/* Real request (2026-10-01): "maybe it can just be a glowing bell if its
   got notifications" -- replaced the numeric pill badge (rendered wrong,
   fell out of its intended corner-overlap position) with a plain glow on
   the bell icon itself. Real request (2026-10-06): "it will glow around
   the thing so they can see it right away and when they hover over it
   it stops glowing" -- upgraded the static glow to a pulsing animation so
   an unread notification is noticeable without having to look directly
   at the bell, and hovering stills it (both the animation and the
   underlying glow) so it isn't distracting once you're actually looking
   at it. Respects reduced-motion. */
.ahp-notifications [data-ahp-notification-bell].has-unread {
	color: var(--ahp-gold, #d9a62b);
	animation: ahp-notif-glow-pulse 1.6s ease-in-out infinite;
}
.ahp-notifications [data-ahp-notification-bell].has-unread:hover,
.ahp-notifications [data-ahp-notification-bell].has-unread:focus-visible {
	animation: none;
	filter: drop-shadow(0 0 6px rgba(217, 166, 43, 0.8));
}
@keyframes ahp-notif-glow-pulse {
	0%, 100% { filter: drop-shadow(0 0 4px rgba(217, 166, 43, 0.55)); }
	50% { filter: drop-shadow(0 0 11px rgba(217, 166, 43, 0.95)); }
}
@media (prefers-reduced-motion: reduce) {
	.ahp-notifications [data-ahp-notification-bell].has-unread {
		animation: none;
		filter: drop-shadow(0 0 6px rgba(217, 166, 43, 0.8));
	}
}
.ahp-notifications__badge { display: none; }
.ahp-notifications__panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); max-height: 420px; overflow-y: auto; z-index: 100; padding: 16px; background: #fff; color: var(--ahp-navy); border: 1px solid var(--ahp-border); border-radius: 8px; box-shadow: 0 12px 28px rgba(1, 35, 64, .18); }
.ahp-notifications__item { display: block; width: 100%; padding: 12px; border: 0; border-bottom: 1px solid var(--ahp-border); background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.ahp-notifications__item.is-unread { border-left: 3px solid var(--ahp-gold); background: #f4f7fa; font-weight: 600; }
.ahp-notifications__item time { display: block; margin-top: 5px; font-size: .75rem; font-weight: 400; }
.ahp-notifications__item:focus-visible { outline: 2px solid var(--ahp-gold); }
.ahp-theme-dark .ahp-notifications__panel { background: #162b40; color: #fff; }
.ahp-theme-dark .ahp-notifications__item.is-unread { background: #233c54; }
.ahp-notifications [hidden] { display: none; }

/* Lead Map: scoped first-party UI; Leaflet/vendor styles stay separately enqueued. */
.ahp-dashboard__panel[data-ahp-panel="leadmap"] {
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 8px 20px;
}

/* Real request (2026-10-02): "the top header can be smaller we only
   need to search" -- title and both explanatory paragraphs dropped
   from the markup (see class-shortcode.php's own comment); tightened
   this panel's own top padding too so the filter row sits close to the
   tab bar instead of leaving the old title's worth of empty space. */
.ahp-dashboard__panel--leadmap {
	padding-top: 4px;
}
.ahp-lead-map__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 12px;
	margin: 6px 0 8px;
}
.ahp-lead-map__filters label {
	display: flex;
	flex-direction: column;
	gap: 5px;
	color: var(--ahp-text);
	font-size: 0.85rem;
	font-weight: 600;
}
.ahp-lead-map__filters select,
.ahp-lead-map__filters input {
	box-sizing: border-box;
	min-height: 42px;
	max-width: 100%;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-6);
	background: var(--ahp-glass-bg);
	color: var(--ahp-text);
	font: inherit;
}
.ahp-lead-map__filters select { width: 220px; }
.ahp-lead-map__filters .ahp-btn { min-height: 42px; cursor: pointer; }
.ahp-lead-map__filters :focus-visible,
.ahp-lead-map__details summary:focus-visible {
	outline: 2px solid var(--ahp-gold-text);
	outline-offset: 3px;
}
.ahp-lead-map__filters :disabled { opacity: 0.6; cursor: wait; }
.ahp-lead-map__status { margin: 14px 0; font-variant-numeric: tabular-nums; }
/* Collapses to zero height whenever load()/render() clears it (success
   state no longer permanently shows lead counts -- see dashboard-widget.js) --
   still takes up its normal space for real Loading…/error/retry text. */
.ahp-lead-map__status:empty { margin: 0; }
.ahp-lead-map__canvas {
	position: relative;
	isolation: isolate;
	z-index: 0;
	width: 100%;
	/* Real request (2026-10-02): "the map should be larger" -- raised
	   every bound now that the header above it is so much shorter
	   (title + 2 paragraphs + permanent stats line all gone). */
	height: clamp(500px, 76vh, 900px);
	margin-top: 12px;
	background: var(--ahp-bg-subtle);
	border: 1px solid var(--ahp-border);
	border-radius: var(--ahp-radius-8);
}
.ahp-lead-map__pin {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #012340;
	color: #fff;
	border: 2px solid #fff;
	font: 700 12px/1 system-ui, sans-serif;
	font-variant-numeric: tabular-nums;
}
.ahp-lead-map__pin--cluster { background: #d9a62b; color: #012340; }
.ahp-lead-map__pin:focus-visible { outline: 3px solid #012340; outline-offset: 3px; }
.ahp-lead-map__canvas .leaflet-popup-content { margin: 13px 24px 13px 20px; }
/* Real bug found live (2026-10-02): "when i hover over a dot it should
   not look bad" -- the inner .ahp-lead-map__breakdown sets
   white-space: normal (so long carrier lists wrap) but neither it nor
   Leaflet's own .leaflet-tooltip had any min-width, so the outer
   tooltip box shrank to its narrowest possible content width -- as
   narrow as a single wrapped word/character, stacking "1 leads" into a
   single vertical column of one-letter lines. Also restyled to match
   this dashboard's own card look (border/radius/shadow) instead of
   Leaflet's plain default white box. */
.ahp-lead-map__canvas .leaflet-tooltip {
	min-width: 170px;
	padding: 10px 12px;
	border: 1px solid var(--ahp-border, #e2e5ea);
	border-radius: var(--ahp-radius-8, 8px);
	box-shadow: 0 6px 18px rgba(1, 35, 64, 0.16);
	font-size: 0.82rem;
}
.ahp-lead-map__breakdown { color: #012340; white-space: normal; overflow-wrap: anywhere; max-width: 280px; }
.ahp-lead-map__breakdown strong {
	display: block;
	margin-bottom: 6px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--ahp-gold, #d9a62b);
	font-size: 0.85rem;
}
.ahp-lead-map__breakdown ul { margin: 8px 0 0; padding-left: 18px; max-height: 220px; overflow-y: auto; }
.ahp-lead-map__breakdown li { margin-bottom: 2px; }
.ahp-lead-map__details { margin-top: 18px; }
.ahp-lead-map__details summary { cursor: pointer; color: var(--ahp-text); font-weight: 600; }
.ahp-lead-map__table-wrap { overflow-x: auto; }
.ahp-lead-map__table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.ahp-lead-map__table caption { padding: 12px 0; text-align: left; color: var(--ahp-text-muted); }
.ahp-lead-map__table th,
.ahp-lead-map__table td { padding: 10px; border-bottom: 1px solid var(--ahp-border); text-align: left; overflow-wrap: anywhere; }
.ahp-lead-map__table td:nth-child(2) { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
	.ahp-lead-map__filters label { flex: 1 1 140px; min-width: 0; }
	.ahp-lead-map__filters select { width: 100%; }
	.ahp-lead-map__canvas { height: 420px; }
}

/* Real request (2026-10-07): "filter everything with drop down and
   checkboxes" -- Michael (via Steve) wants a real spreadsheet-style
   per-column filter, replacing the old top-bar Coverage/Agent selects.
   See initColumnFilters()/openColumnFilterDropdown() in
   dashboard-widget.js for the logic this styles. */
.ahp-col-filter-trigger {
	appearance: none;
	-webkit-appearance: none;
	background: none;
	border: none;
	padding: 0 0 0 4px;
	margin: 0;
	cursor: pointer;
	color: var(--ahp-text-muted, #526875);
	font-size: 0.7rem;
	vertical-align: middle;
}
.ahp-col-filter-trigger:hover,
.ahp-col-filter-trigger:focus-visible {
	color: var(--ahp-gold, #d9a62b);
}
/* Real request (2026-10-07): "he needs to be able to toggle filtering on
   and off on the column names so it can go back to normal" -- purely
   visual, doesn't touch any filter already set (see
   initColumnFilterToggle() in dashboard-widget.js). */
[data-ahp-panel].ahp-col-filters-hidden .ahp-col-filter-trigger {
	display: none;
}
/* Real request (2026-10-07): "agency and office need to be removed when
   you hid the column filters also so it looks back to normal" -- these
   two columns didn't exist before this feature, so hiding them (not
   just their ▾ triggers) is what "back to normal" actually means for
   them specifically -- unlike Coverage/Disposition/Source/etc, which
   existed before and just lose their trigger. Plain display:none is
   safe here (no DOM-shape rebuild needed, unlike disposition's
   compact-vs-full ladder) since these are simple text cells. */
[data-ahp-panel].ahp-col-filters-hidden th[data-ahp-col="agencyName"],
[data-ahp-panel].ahp-col-filters-hidden th[data-ahp-col="officeName"],
[data-ahp-panel].ahp-col-filters-hidden td[data-ahp-field="agencyName"],
[data-ahp-panel].ahp-col-filters-hidden td[data-ahp-field="officeName"] {
	display: none;
}
/* Active-filter indicator -- a lead needs to notice at a glance which
   columns currently have something filtered out, not just what the
   dropdown itself shows while open. */
.ahp-col-filter-trigger.is-filtered {
	color: var(--ahp-gold, #d9a62b);
	font-weight: 900;
}

.ahp-col-filter-dropdown {
	z-index: 50;
	width: 240px;
	background: #fff;
	border: 1px solid var(--ahp-border, #d8e5ec);
	border-radius: var(--ahp-radius-8, 8px);
	box-shadow: var(--ahp-shadow-drawer, 0 8px 24px rgba(1, 35, 64, 0.18));
	padding: 10px;
	font-size: 0.82rem;
	color: var(--ahp-text, #012340);
}
/* Real request (2026-10-07): "filter by date also... like a date range
   if we can" -- only this column's dropdown uses a from/to range instead
   of the checkbox list (see openDateRangeFilterDropdown() in
   dashboard-widget.js). */
.ahp-col-filter-dropdown--date {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ahp-col-filter-dropdown__date-label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.76rem;
	color: var(--ahp-text-muted, #526875);
	font-weight: 700;
}
.ahp-col-filter-dropdown__date-label input[type="date"] {
	padding: 6px 8px;
	border: 1px solid var(--ahp-border, #d8e5ec);
	border-radius: var(--ahp-radius-6, 6px);
	font-size: 0.82rem;
	font-family: inherit;
	color: var(--ahp-text, #012340);
}
.ahp-col-filter-dropdown__search input {
	width: 100%;
	box-sizing: border-box;
	padding: 6px 8px;
	border: 1px solid var(--ahp-border, #d8e5ec);
	border-radius: var(--ahp-radius-6, 6px);
	font-size: 0.82rem;
	font-family: inherit;
	margin-bottom: 8px;
}
.ahp-col-filter-dropdown__links {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 6px;
	color: var(--ahp-text-muted, #526875);
	font-size: 0.76rem;
}
.ahp-col-filter-dropdown__link {
	appearance: none;
	-webkit-appearance: none;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	color: var(--ahp-navy, #012340);
	font-weight: 700;
	cursor: pointer;
	font-size: 0.76rem;
	text-decoration: underline;
}
.ahp-col-filter-dropdown__count {
	margin-left: auto;
}
.ahp-col-filter-dropdown__list {
	max-height: 280px;
	overflow-y: auto;
	border-top: 1px solid var(--ahp-border, #eef2f5);
	border-bottom: 1px solid var(--ahp-border, #eef2f5);
	padding: 4px 0;
	margin-bottom: 8px;
}
.ahp-col-filter-dropdown__row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 2px;
	cursor: pointer;
}
.ahp-col-filter-dropdown__row:hover {
	background: var(--ahp-bg-subtle, #f4f7f9);
}
.ahp-col-filter-dropdown__row input {
	flex-shrink: 0;
}
.ahp-col-filter-dropdown__row span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ahp-col-filter-dropdown__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}
/* Real request (2026-10-07): "the cancel and ok can be smaller so the
   coverage list can fit without having to scroll for the others" --
   smaller footprint for the action row frees up room for the checkbox
   list above it (also raised from 220px to 280px max-height) before a
   longer option set (Source, Assign To, ...) needs to scroll. */
.ahp-col-filter-dropdown__actions .ahp-btn {
	padding: 4px 10px;
	font-size: 0.72rem;
}

/* Real request (2026-10-07): "they want to be able to see it and then
   get a report if they want printed out or saved" -- window.print()'s
   own "Save as PDF" destination covers "saved" too, no separate export
   format needed. Hides everything on the page except the one panel that
   was actually showing when Print/Save Report was clicked (see
   initPrintReport() in dashboard-widget.js), and within that panel,
   only the currently-visible view (Table or List, whichever
   [data-ahp-leadview-table]/[data-ahp-leadview-list] isn't [hidden]) --
   filters, buttons, and the nav bar never print. */
@media print {
	body * {
		visibility: hidden;
	}
	[data-ahp-print-report-active],
	[data-ahp-print-report-active] * {
		visibility: visible;
	}
	[data-ahp-print-report-active] {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
	}
	[data-ahp-print-report-active] .ahp-lead-filters,
	[data-ahp-print-report-active] .ahp-bulk-bar,
	[data-ahp-print-report-active] .ahp-col-filter-trigger,
	[data-ahp-print-report-active] [data-ahp-select-all],
	[data-ahp-print-report-active] .ahp-dashboard__row-select,
	[data-ahp-print-report-active] .ahp-dashboard__row-delete,
	[data-ahp-print-report-active] [data-ahp-col="select"],
	[data-ahp-print-report-active] [data-ahp-col="delete"],
	[data-ahp-print-report-active] .ahp-mobile-back {
		display: none !important;
	}
	.ahp-col-filter-dropdown {
		display: none !important;
	}
	/* Real bug found 2026-10-07 ("if i print it it dosnt show up right"):
	   the lead table's scroll wrapper (.ahp-dashboard__resizable-scroll)
	   is a descendant of the printed panel and keeps its screen-only
	   overflow-x/y:auto + max-height:calc(100vh - 260px) in print too --
	   position:absolute on the panel only escapes normal document FLOW,
	   it does NOT stop an overflow:auto descendant from clipping its own
	   content. Print has no scrollbar, so everything past whatever was
	   scrolled into view on screen was silently cut off. Also neutralize
	   position:sticky (headers, pinned Date/Time columns) -- sticky has
	   no scrolling viewport to stick within on a printed page and was
	   overlapping/duplicating rows. */
	[data-ahp-print-report-active] .ahp-dashboard__resizable-scroll,
	[data-ahp-print-report-active] .ahp-dashboard__scroll-table {
		overflow: visible !important;
		max-height: none !important;
	}
	[data-ahp-print-report-active] [data-ahp-resizable-table],
	[data-ahp-print-report-active] [data-ahp-resizable-table] th,
	[data-ahp-print-report-active] [data-ahp-resizable-table] td {
		position: static !important;
		width: auto !important;
	}
	[data-ahp-print-report-active] table {
		width: 100% !important;
		table-layout: auto !important;
	}
	@page {
		size: landscape;
		margin: 0.4in;
	}
}

/* Real request (2026-10-08): a lead moved to Sold pulses the Sold tab until
   it is opened. Same gold pulse language as the select glow / bell. */
.ahp-dashboard__nav-item.ahp-tab-pulse {
	animation: ahp-select-glow-pulse 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
	.ahp-dashboard__nav-item.ahp-tab-pulse {
		animation: none;
		box-shadow: 0 0 0 2px rgba(217, 166, 43, 0.7);
	}
}

/* Payment status (2026-10-08): two exclusive checkboxes between Disposition
   and Contact Preference. */
.ahp-payment-status { white-space: nowrap; }
.ahp-payment-check {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 2px 0;
	padding: 3px 8px;
	border: 1px solid var(--ahp-border, #d8e5ec);
	border-radius: 999px;
	background: #fff;
	color: var(--ahp-navy, #012340);
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
}
.ahp-payment-check input { margin: 0; accent-color: var(--ahp-navy, #012340); }
.ahp-payment-check--needs.is-on { background: #fbeed2; border-color: #d9a62b; color: #8a6215; }
.ahp-payment-check--made.is-on { background: #dcfce7; border-color: #86d9a3; color: #15803d; }
.ahp-payment-msg.is-error { display: block; color: #b91c1c; font-size: 0.72rem; white-space: normal; }
.ahp-payment-status--card { display: flex; flex-wrap: wrap; gap: 6px; }
.ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="payment"] { width: 150px; }

/* Unassigned tab: flashing red dot while a lead this browser has not seen
   there is waiting (2026-10-08). */
.ahp-dashboard__nav-item.ahp-tab-newdot { position: relative; }
.ahp-dashboard__nav-item.ahp-tab-newdot::after {
	content: "";
	position: absolute;
	top: 6px;
	right: 6px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #e11d48;
	box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
	animation: ahp-newdot-flash 1.1s ease-in-out infinite;
}
@keyframes ahp-newdot-flash {
	0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.6); }
	50% { opacity: 0.35; box-shadow: 0 0 0 6px rgba(225, 29, 72, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.ahp-dashboard__nav-item.ahp-tab-newdot::after { animation: none; opacity: 1; }
}

/* Source pencil (2026-10-08) */
.ahp-source-pencil {
	margin-left: 8px;
	padding: 0 6px;
	border: 1px solid var(--ahp-border, #d8e5ec);
	border-radius: 6px;
	background: #fff;
	color: var(--ahp-navy, #012340);
	font-size: 0.85rem;
	line-height: 1.5;
	cursor: pointer;
}
.ahp-source-pencil:hover, .ahp-source-pencil:focus-visible { border-color: var(--ahp-gold, #d9a62b); }
.ahp-source-save, .ahp-source-cancel { margin-left: 6px; padding: 3px 12px; min-height: 0; font-size: 0.8rem; }
.ahp-source-msg { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--ahp-text-muted, #667887); }
.ahp-source-msg.is-error { color: #b91c1c; }

/* Recently Deleted table (2026-10-08): roomy rows, action buttons on one line. */
.ahp-rd-table { width: 100%; table-layout: auto; }
.ahp-rd-table th, .ahp-rd-table td { padding: 12px 14px; text-align: left; vertical-align: middle; font-size: 0.9rem; }
.ahp-rd-table td:last-child { white-space: nowrap; }
.ahp-rd-table td:last-child .ahp-btn { margin-right: 8px; padding: 6px 14px; min-height: 0; font-size: 0.8rem; }

/* Phone fix (2026-10-09, Zack's phone photo of All Leads): Assign To (220px offset) + Date (130px) + Time (90px) are all pinned to the
   right, which is ~440px of pinned columns on a ~390px screen -- they covered every other column. On phones only (and not in the
   dedicated phone layout, .ahp-mobile-shell, which has its own card rows): Date/Time shrink to tiny pinned columns and Assign To
   scrolls with the row instead of being pinned. Desktop is untouched. */
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) {
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="date"],
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="date"] {
		width: 56px; min-width: 56px; max-width: 56px; right: 46px; padding-left: 3px; padding-right: 3px; font-size: 9.5px; line-height: 1.2;
	}
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="time"],
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="time"] {
		width: 46px; min-width: 46px; max-width: 46px; right: 0; padding-left: 3px; padding-right: 3px; font-size: 9.5px; line-height: 1.2;
	}
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="date"],
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="time"] {
		font-size: 8.5px; letter-spacing: 0;
	}
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="assignTo"],
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-dashboard__recent-leads[data-ahp-resizable-table] td.ahp-dashboard__row-assign {
		right: auto; box-shadow: none;
	}
}

/* Phone landscape fix (2026-10-09, Zack: "landscape mode isn't scrolling on mobile"): the lead tables sit in boxes capped at
   calc(100vh - 260px) (or - 420px). Held sideways a phone is ~390px tall, so the box shrinks to a sliver (and the stacked filter bar
   above it already fills the screen), which swallows touch-scrolling instead of letting the page scroll. On phones and on short
   landscape screens the cap is removed so the PAGE scrolls vertically; sideways scrolling of wide tables still works. */
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) {
	.ahp-dashboard__resizable-scroll,
	.ahp-dashboard__scroll-table {
		max-height: none;
		min-height: 0;
	}
}

/* Phone landscape nav fix (2026-10-09, Zack's photo of a phone held sideways): the header tabs wrapped onto a second row (the
   sticky nav then ate ~116px of a ~390px-tall screen). On short landscape screens only (not the .ahp-mobile-shell phone layout,
   not desktop, not portrait): one row, no wrapping, smaller tabs that scale with the screen width, and slimmer side padding so
   the dashboard uses the full width. No overflow-x on the nav on purpose -- the bell/profile dropdowns are absolutely positioned
   inside it and would be clipped; instead tabs may shrink with an ellipsis as the last-resort safety net. */
@media (orientation: landscape) and (max-height: 500px) {
	.ahp-dashboard:not(.ahp-mobile-shell) {
		padding-left: 8px;
		padding-right: 8px;
	}
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-dashboard__nav {
		flex-wrap: nowrap;
		gap: 0;
		padding: 4px 4px 4px 6px;
		margin-bottom: 14px;
	}
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-dashboard__nav-logo {
		height: 20px;
		margin: 0 6px 0 0;
		padding-right: 6px;
	}
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-dashboard__nav-item {
		flex: 0 1 auto;
		min-width: 0;
		padding: 6px clamp(4px, 0.5vw, 8px);
		font-size: clamp(10px, 1.22vw, 12.5px);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-notifications {
		flex-shrink: 0;
		margin-left: auto;
	}
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-dashboard__profile {
		flex-shrink: 0;
	}
}

/* Landscape phone page scroll (2026-10-09, Zack: "make the dashboard scrollable"): the page is deliberately locked to the window on
   desktop (every panel scrolls its own list). Portrait phones already switch the page itself to scroll (max-width:760px block above), but
   a sideways phone is wider than 760px, so it kept the locked desktop mode -- and with the list height caps removed for short landscape
   screens nothing could scroll at all. Short landscape screens now scroll the page, exactly like portrait phones do. */
@media (orientation: landscape) and (max-height: 500px) {
	html:has(.ahp-dashboard),
	body:has(.ahp-dashboard),
	html:has(.ahp-onboarding-portal),
	body:has(.ahp-onboarding-portal) {
		height: auto;
		min-height: 100vh;
		overflow-y: auto;
	}
}

/* Short laptop screen page scroll (2026-10-24, Zack on a MacBook: "i cant scroll the referral page on production"): the locked
   desktop page cut off every tab taller than the window -- Referral Pages and Trends have no scroll region of their own, and
   Dashboard/Agents/Agencies ran 40-70px past the bottom of a ~640px-tall window. Desktop windows under 800px tall now scroll the
   page, exactly like phones do; taller screens keep the locked layout unchanged. */
@media (min-width: 761px) and (max-height: 800px) {
	html:has(.ahp-dashboard),
	body:has(.ahp-dashboard),
	html:has(.ahp-onboarding-portal),
	body:has(.ahp-onboarding-portal) {
		height: auto;
		min-height: 100vh;
		overflow-y: auto;
	}
}
/* Same day: Referral Pages, Trends and Contests are long pages with no scroll region of their own (prod Referral Pages was 1577px
   tall), so they scroll the page on every screen size. The lead tabs keep the locked layout on tall screens.
   Portfolio joins them (2026-10-30, Zack on prod 2.9.153: "cant scroll portfolio on desktop" -- 1330px tab in a 1012px window). */
html:has(.ahp-dashboard [data-ahp-panel="referrals"]:not([hidden])),
body:has(.ahp-dashboard [data-ahp-panel="referrals"]:not([hidden])),
html:has(.ahp-dashboard [data-ahp-panel="trends"]:not([hidden])),
body:has(.ahp-dashboard [data-ahp-panel="trends"]:not([hidden])),
html:has(.ahp-dashboard [data-ahp-panel="contests"]:not([hidden])),
body:has(.ahp-dashboard [data-ahp-panel="contests"]:not([hidden])),
html:has(.ahp-dashboard [data-ahp-panel="portfolio"]:not([hidden])),
body:has(.ahp-dashboard [data-ahp-panel="portfolio"]:not([hidden])) {
	height: auto;
	min-height: 100vh;
	overflow-y: auto;
}

/* Instant "Added by NAME" box on the Source cell (2026-10-23, "build the
   fast hover") -- replaces the native title tooltip's ~1s delay. Lives on
   <body>, outside .ahp-dashboard, so every token has a literal fallback.
   Same card look as the lead map's hover box above. */
.ahp-creator-tip {
	position: fixed;
	z-index: 100001;
	max-width: 260px;
	padding: 6px 10px;
	background: #ffffff;
	color: #012340;
	border: 1px solid var(--ahp-border, #e2e5ea);
	border-radius: var(--ahp-radius-8, 8px);
	box-shadow: 0 6px 18px rgba(1, 35, 64, 0.16);
	font: 600 0.8rem/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
	overflow-wrap: anywhere;
	pointer-events: none;
}
.ahp-creator-tip[hidden] { display: none; }
[data-ahp-added-by] { cursor: help; }

/* Zack 2026-10-27: "the add lead button on the card should be blue and look like a button and the warning should be red and
   larger so it is seen". Add Lead modal only: the submit button is filled navy (the site's blue) instead of bare text, and its
   message line (e.g. "This phone/email already belongs to ...") is a red box in larger, bold, upright text. */
[data-ahp-walk-in-modal] form > button[type="submit"].ahp-btn--primary {
	background: var(--ahp-navy);
	border-color: var(--ahp-navy);
	color: #fff;
	padding: 10px 22px;
}
[data-ahp-walk-in-modal] form > button[type="submit"].ahp-btn--primary:hover:not(:disabled) {
	background: #023a68;
	border-color: #023a68;
}
[data-ahp-walk-in-modal] [data-ahp-walk-in-error]:not([hidden]) {
	background: #fee2e2;
	border: 1px solid #f5b5b5;
	border-radius: var(--ahp-radius-8);
	color: #b91c1c;
	font-size: 15px;
	font-style: normal;
	font-weight: 600;
	line-height: 1.45;
	padding: 10px 14px;
}

/* 2.9.174: the sign-up portal page (class-shortcode.php render_prospect_portal). Its wrapper is not inside .ahp-dashboard,
   so it gets the same page chrome hiding, resets and brand header here (same rules as staging), and it scrolls normally. */
body:has(.ahp-onboarding-portal) #wpadminbar,
body:has(.ahp-onboarding-portal) #header,
body:has(.ahp-onboarding-portal) #footer,
body:has(.ahp-onboarding-portal) chat-widget {
	display: none !important;
}
html:has(.ahp-onboarding-portal) {
	margin-top: 0 !important;
	scrollbar-gutter: stable;
}
html:has(.ahp-onboarding-portal),
body:has(.ahp-onboarding-portal) {
	background: #f4f5f7 !important;
	height: auto;
	min-height: 100vh;
	overflow-y: auto;
}
.ahp-onboarding-portal *,
.ahp-onboarding-portal *::before,
.ahp-onboarding-portal *::after {
	box-sizing: border-box;
}
.ahp-onboarding-portal {
	font-size: 16px;
	line-height: 1.5;
}
.ahp-onboarding-portal,
.ahp-onboarding-portal * {
	margin: 0;
	padding: 0;
}
.ahp-onboarding-portal {
	max-width: 1180px;
	margin: 0 auto;
	padding: 16px 16px 40px;
	color: var(--ahp-ink, #1c2b39);
}
.ahp-portal__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--ahp-navy);
	color: #fff;
	border-radius: var(--ahp-radius-8, 8px);
	padding: 14px 18px;
	margin-bottom: 24px;
}
.ahp-portal__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}
.ahp-portal__brand-mark {
	font-size: 1.6rem;
	line-height: 1;
}
.ahp-portal__brand strong {
	display: block;
	font-size: 1rem;
}
.ahp-portal__brand span {
	display: block;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.7);
}
.ahp-portal__account {
	display: flex;
	align-items: center;
	gap: 10px;
}
.ahp-portal__account .ahp-btn--outline {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}
.ahp-portal__account .ahp-btn--outline:hover {
	background: rgba(255, 255, 255, 0.18);
}
.ahp-portal__note {
	background: #fff;
	border: 1px solid var(--ahp-line, #d8e5ec);
	border-radius: var(--ahp-radius-8, 8px);
	padding: 24px;
}
.ahp-portal__note h1 {
	font-size: 1.5rem;
	margin-bottom: 8px;
}
@media (max-width: 640px) {
	.ahp-portal__header {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Bell + profile group (2026-11-16): keeps the avatar next to the bell, right-aligned, instead of wrapping alone to the left. */
.ahp-dashboard__nav-end {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	flex-shrink: 0;
}
/* 2.9.180: on desktop the pair is pinned to the nav's top-right corner and the tabs wrap under it, so it never drops to a row of its
   own. Height = one tab row on prod (Flatsome gives buttons line-height 2.4em: 0.88rem x 2.4 + 16px padding). Phones (<=760px, the
   scrolling one-row nav), short landscape screens and the .ahp-mobile-shell layout keep the in-flow group above. */
@media (min-width: 761px) and (min-height: 501px) {
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-dashboard__nav {
		position: sticky;
		padding-right: 84px;
	}
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-dashboard__nav-end {
		position: absolute;
		top: 6px;
		right: 6px;
		height: calc(0.88rem * 2.4 + 16px);
		margin-left: 0;
	}
	/* 2.9.181 (Zack: "tighten the tabs so they fit one row"): 16px -> 13px side padding keeps all 17 admin tabs on one row at 1920px. */
	.ahp-dashboard:not(.ahp-mobile-shell) .ahp-dashboard__nav-item {
		padding-left: 13px;
		padding-right: 13px;
	}
}
/* Modern frame, reskin slice 1, 2026-11-19, canvas M1-M6 approved by Zack, - with Modern picked in the profile menu on a desktop
   screen, initModernFrame, in dashboard-widget.js puts .ahp-mf on .ahp-dashboard and adds the top bar, .ahp-mf-top,. LOOK ONLY -
   the dashboards own tab buttons become the left menu, same buttons, same handlers, same role gating, the bell and profile move
   to the top bars right end. Menu collapsed by default to a 72px icon rail, .ahp-mf-rail, the top bars menu button opens it.
   Same frame as the Onboarding tabs modern look, onboarding-center/assets/onbc-g-shell.css, while that one is on, this one
   steps aside. Classic never gets .ahp-mf, so nothing here touches it. */
.ahp-dashboard.ahp-mf{
	--mf-menu:256px;
	position:fixed!important;inset:0;z-index:10;box-sizing:border-box;width:auto!important;max-width:none!important;height:100vh;margin:0!important;
	display:flex!important;flex-direction:column;padding:64px 0 0 var(--mf-menu)!important;overflow:hidden;background:#f0f4f9;
	transition:padding-left .2s ease
}
.ahp-dashboard.ahp-mf.ahp-mf-rail{--mf-menu:72px}
/* Page behind the frame, class set by initModernFrame. No scrollbar gutter - the frame never scrolls the page.
   Keep comments in this block to plain words - no quote marks, apostrophes, brackets or colons. Twice on staging the
   Hummingbird minify service dropped the top bar rule next to comments that had them, 2.10.160 and 2.10.161. */
html.ahp-mf-page,html.ahp-mf-page body{background:#f0f4f9!important}
html.ahp-mf-page{scrollbar-gutter:auto!important}

/* Top bar, under the menus layer - the bell and profile live inside the menu, - menu button, Agency Portal, the open tabs search, leads tabs, bell + profile pinned at its right end. */
.ahp-mf-top{position:fixed;top:0;left:0;right:0;height:64px;z-index:39;display:flex;align-items:center;gap:12px;padding:0 160px 0 16px;box-sizing:border-box;background:#f0f4f9}
.ahp-mf-top[hidden]{display:none}
.ahp-mf-ibtn{width:40px;height:40px;flex:none;border-radius:50%;border:0;background:transparent;color:#444746;display:grid;place-items:center;cursor:pointer;padding:0}
.ahp-mf-ibtn:hover{background:#e9eef6}
.ahp-mf-ibtn:focus-visible,.ahp-mf-search input:focus-visible{outline:2px solid #0b57d0;outline-offset:2px}
.ahp-mf-brand{display:inline-flex;align-items:center;gap:10px;flex:none;width:200px;font-size:20px;line-height:28px;color:#1f1f1f;white-space:nowrap}
.ahp-mf-brand::before{content:"";flex:none;width:32px;height:32px;background:url('media/ahp-nav-icon.png') center/contain no-repeat}
.ahp-mf-search{flex:0 1 720px;min-width:0;height:48px;box-sizing:border-box;border-radius:999px;background:#e9eef6;display:flex;align-items:center;gap:12px;padding:0 20px;cursor:text}
.ahp-mf-search[hidden]{display:none}
.ahp-mf-search:focus-within{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.ahp-mf-search input{flex:1;min-width:0;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-family:inherit;font-size:16px;line-height:24px;color:#1f1f1f;outline:none}
/* The leads tabs own search box moved up - the top bar types into it, same filter, so it is hidden in place. */
.ahp-dashboard.ahp-mf .ahp-lead-filters__search[data-ahp-filter-search]{display:none!important}

/* Left menu - the dashboards tab buttons, one per line, icon + label, the open tab is a light blue pill. */
.ahp-dashboard.ahp-mf .ahp-dashboard__nav{
	position:fixed!important;top:64px;left:0;bottom:0;width:var(--mf-menu);box-sizing:border-box;z-index:40;
	display:flex!important;flex-direction:column;flex-wrap:nowrap!important;align-items:stretch;gap:1px;margin:0!important;padding:4px 12px 16px!important;
	border-radius:0!important;background:#f0f4f9!important;box-shadow:none!important;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;
	transition:width .15s ease-out
}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-logo{display:none}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item{
	position:relative;display:flex!important;align-items:center;gap:12px;flex:none;box-sizing:border-box;height:36px;margin:0!important;padding:0 16px!important;
	border-radius:999px!important;background:transparent!important;color:#444746!important;font-family:inherit;font-size:14px!important;line-height:20px;
	font-weight:500!important;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0;text-decoration:none
}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item::before{content:"";flex:none;width:20px;height:20px;background:currentColor;-webkit-mask:var(--mf-ico) center/contain no-repeat;mask:var(--mf-ico) center/contain no-repeat}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item:hover{background:#e9eef6!important;color:#1f1f1f!important}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item.is-active{background:#d3e3fd!important;color:#041e49!important}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item:focus-visible{outline:2px solid #0b57d0;outline-offset:-2px}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item:focus:not(:focus-visible){outline:none}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item>span{margin-left:auto}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item--settings{margin-top:8px!important}
/* Icon rail, menu collapsed, - icon only, the label is clipped off to the right, a count badge sits on the icons corner. */
.ahp-dashboard.ahp-mf.ahp-mf-rail .ahp-dashboard__nav-item{width:48px;padding:0 14px!important;gap:48px;text-overflow:clip}
.ahp-dashboard.ahp-mf.ahp-mf-rail .ahp-dashboard__nav-item>span{position:absolute;top:2px;left:26px;margin:0;transform:scale(.8);transform-origin:left top}
/* Hover the rail = the full menu slides out over the page, page does not move, eye button in the top bar hides the menu,
   the far left edge brings it out the same way. Plain left offset, no transform - the bell/profile inside the menu are fixed to the screen. */
.ahp-dashboard.ahp-mf.ahp-mf-peek .ahp-dashboard__nav{width:256px;box-shadow:4px 0 16px rgba(0,0,0,.12)!important}
.ahp-dashboard.ahp-mf.ahp-mf-rail.ahp-mf-peek .ahp-dashboard__nav-item{width:auto;padding:0 16px!important;gap:12px;text-overflow:ellipsis}
.ahp-dashboard.ahp-mf.ahp-mf-rail.ahp-mf-peek .ahp-dashboard__nav-item>span{position:static;margin-left:auto;transform:none}
.ahp-dashboard.ahp-mf.ahp-mf-hide{--mf-menu:0px}
.ahp-dashboard.ahp-mf.ahp-mf-hide .ahp-dashboard__nav{width:256px;left:-256px;transition:left .15s ease-out}
/* Zack 2026-11-20 "quicker and more responsive": the menu snaps out fast (80ms) on hover, tucks back at the normal pace. */
.ahp-dashboard.ahp-mf.ahp-mf-peek .ahp-dashboard__nav{transition-duration:.08s}
.ahp-dashboard.ahp-mf.ahp-mf-hide.ahp-mf-peek .ahp-dashboard__nav{left:0}
@media (prefers-reduced-motion:reduce){.ahp-dashboard.ahp-mf,.ahp-dashboard.ahp-mf .ahp-dashboard__nav,.ahp-dashboard.ahp-mf.ahp-mf-hide .ahp-dashboard__nav{transition:none}}

/* Tab name next to a rail icon on hover, and the how-it-works hint, dismissible for good,. */
.ahp-mf-tip{position:fixed;z-index:46;padding:6px 10px;border-radius:6px;background:#1f1f1f;color:#fff;font-size:12px;line-height:16px;white-space:nowrap;pointer-events:none;font-family:inherit}
.ahp-mf-tip[hidden],.ahp-mf-hint[hidden]{display:none}
.ahp-mf-hint{position:fixed;top:72px;left:84px;z-index:46;width:260px;box-sizing:border-box;padding:12px 14px;border-radius:12px;background:#1f1f1f;color:#fff;font-size:13px;line-height:18px;box-shadow:0 8px 28px rgba(0,0,0,.18)}
.ahp-mf-hint::before{content:"";position:absolute;left:-6px;top:16px;width:12px;height:12px;background:inherit;transform:rotate(45deg)}
.ahp-mf-hint p{margin:0 0 8px}
.ahp-mf-hint button{border:0;background:transparent;color:#a8c7fa;font:inherit;font-weight:500;padding:0;cursor:pointer}
.ahp-mf-hint button:hover{text-decoration:underline}

/* Bell + profile - pinned on the top bar, fixed, they stay put while the menu opens and closes,. */
.ahp-dashboard.ahp-mf .ahp-notifications{position:fixed!important;top:12px;right:56px;margin:0!important;z-index:45}
.ahp-dashboard.ahp-mf .ahp-dashboard__profile{position:fixed!important;top:16px;right:16px;margin:0!important;z-index:45}
.ahp-dashboard.ahp-mf .ahp-notifications [data-ahp-notification-bell]{width:40px;height:40px;padding:0;display:grid;place-items:center;color:#444746}
.ahp-dashboard.ahp-mf .ahp-notifications [data-ahp-notification-bell]:hover{background:#e9eef6}
.ahp-dashboard.ahp-mf .ahp-notifications [data-ahp-notification-bell].has-unread{color:#b26a00}

/* Main area - the open tab, white with a rounded top-left corner, filling the window below the top bar. */
.ahp-dashboard.ahp-mf>.ahp-dashboard__panel:not([hidden]){box-sizing:border-box;flex:1 1 auto;min-height:0;overflow:auto;margin:0!important;padding:24px 32px 32px;background:#fff;border-radius:16px 0 0 0}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="dashboard"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%229%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%225%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2212%22%20width%3D%227%22%20height%3D%229%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2216%22%20width%3D%227%22%20height%3D%225%22%20rx%3D%221%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="allleads"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%206h13M8%2012h13M8%2018h13M3%206h.01M3%2012h.01M3%2018h.01%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="notready"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%207v5l3%202%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="unassigned"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223.5%22%2F%3E%3Cpath%20d%3D%22M2%2020a7%207%200%200%201%2014%200M16%2011h6%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="tasks"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2011l3%203%208-8%22%2F%3E%3Cpath%20d%3D%22M20%2012v7a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h11%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="sold"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2012l-8%208-9-9V3h8z%22%2F%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%227.5%22%20r%3D%221.2%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="recentlydeleted"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%207h16M10%2011v6M14%2011v6M6%207l1%2013h10l1-13M9%207V4h6v3%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="leadmap"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2021s-7-6.5-7-12a7%207%200%200%201%2014%200c0%205.5-7%2012-7%2012z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%229%22%20r%3D%222.5%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="conversations"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2012a8%208%200%200%201-11.6%207.1L4%2020l1-4.6A8%208%200%201%201%2021%2012z%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="clients"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M4%2021a8%208%200%200%201%2016%200%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="portfolio"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2218%22%20height%3D%2213%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%207V5h6v2M3%2013h18%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="referralleads"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%2014a4%204%200%200%200%205.7%200l3-3a4%204%200%200%200-5.7-5.7l-1%201M14%2010a4%204%200%200%200-5.7%200l-3%203a4%204%200%200%200%205.7%205.7l1-1%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="agencies"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%2216%22%20height%3D%2218%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22M9%208h1M14%208h1M9%2012h1M14%2012h1M10%2021v-4h4v4%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="agents"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223.5%22%2F%3E%3Cpath%20d%3D%22M2%2020a7%207%200%200%201%2014%200M16%204.5a3.5%203.5%200%200%201%200%207M22%2020a7%207%200%200%200-4-6.3%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="agent-onboarding"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223.5%22%2F%3E%3Cpath%20d%3D%22M2%2020a7%207%200%200%201%2014%200M19%208v6M16%2011h6%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="announcements"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2011v2a1%201%200%200%200%201%201h3l5%204V6L7%2010H4a1%201%200%200%200-1%201zM16%209a4%204%200%200%201%200%206%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="contests"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%204h8v5a4%204%200%200%201-8%200zM8%206H5a3%203%200%200%200%203%204M16%206h3a3%203%200%200%201-3%204M12%2013v4M8%2021h8M10%2017h4%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="compliance"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%202l8%203.5v6c0%205-3.4%208.8-8%2010.5-4.6-1.7-8-5.5-8-10.5v-6L12%202z%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="myagency"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%2216%22%20height%3D%2218%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22M9%208h1M14%208h1M9%2012h1M14%2012h1M10%2021v-4h4v4%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="onboarding"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223.5%22%2F%3E%3Cpath%20d%3D%22M2%2020a7%207%200%200%201%2014%200M19%208v6M16%2011h6%22%2F%3E%3C%2Fsvg%3E")}
.ahp-dashboard.ahp-mf .ahp-dashboard__nav-item[data-ahp-tab="contacts"]{--mf-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M4%2021a8%208%200%200%201%2016%200%22%2F%3E%3C%2Fsvg%3E")}

/* Dashboard tab header row, 2.10.163, mockup M1 - one row, title then Viewing, the day range and the source pick, Preview as
   at the far right end. The announcement becomes a slim one line strip under the row, above the stat cards. Same markup as
   Classic - the announcement slot and its spot in the row step out of the way so their children join the row, the strip goes
   on its own line. Hidden slot stays hidden. Strip sizes only on the wide card - the phone card keeps its own. Modern only. */
.ahp-dashboard.ahp-mf .ahp-an-top{flex-wrap:wrap;gap:12px;row-gap:12px;margin:0 0 16px}
.ahp-dashboard.ahp-mf .ahp-an-title{font-size:28px;line-height:36px;font-weight:400;color:#1f1f1f;margin:0 12px 0 0}
.ahp-dashboard.ahp-mf .ahp-an-hint{font-size:14px;color:#444746}
.ahp-dashboard.ahp-mf .ahp-an-spacer.ahp-ann-spot,.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann-slot:not([hidden]){display:contents}
.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann-preview{order:1;margin-left:auto;flex:none}
.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann,.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann-ghost{order:2;flex:1 1 100%;min-width:0}
.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann.is-wide{min-height:0;padding:6px 8px 6px 10px;gap:10px;border-radius:12px}
.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann.is-wide.is-urgent{padding-left:15px}
.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann.is-wide .ahp-ann__icon{flex:0 0 28px;height:28px;border-radius:8px}
.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann.is-wide .ahp-ann__icon svg{width:16px;height:16px}
.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann.is-wide .ahp-ann__body{flex-direction:row;align-items:center;gap:10px}
.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann.is-wide .ahp-ann__meta{flex:none;flex-wrap:nowrap}
.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann.is-wide .ahp-ann__title{flex:0 1 auto;min-width:0;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann.is-wide .ahp-ann__msg{display:block;flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann.is-wide .ahp-ann__side{flex-direction:row;align-items:center;gap:8px}
.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann.is-wide .ahp-ann__cta{min-height:28px;padding:0 12px;border-radius:8px;font-size:12.5px}
.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann.is-wide .ahp-ann__pg,.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann.is-wide .ahp-ann__x{width:28px;height:28px}
.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann-slot:not(.is-compact) .ahp-ann-ghost{min-height:0;padding:6px 12px;border-radius:12px}
/* Header row on the live sites - the theme there stretches the title to the full width and makes the selects 240px, no arrow,
   taller buttons. Put back the natural sizes so the row stays one line, 36px high like the mockup. */
.ahp-dashboard.ahp-mf .ahp-an-title{width:auto;flex:none}
.ahp-dashboard.ahp-mf .ahp-an-hint{font-weight:400}
.ahp-dashboard.ahp-mf .ahp-an-top select{width:auto;height:36px;min-height:0;box-sizing:border-box;padding:0 12px;font-size:14px;line-height:normal;-webkit-appearance:menulist;appearance:auto}
.ahp-dashboard.ahp-mf .ahp-an-seg{box-sizing:border-box;height:36px;align-items:center}
.ahp-dashboard.ahp-mf .ahp-an-seg button{height:28px;min-height:0;padding:0 14px;font-size:14px;line-height:28px}
.ahp-dashboard.ahp-mf .ahp-an-top .ahp-ann-preview select{height:28px;font-size:12px;padding:0 8px}

/* Leads tables fit the screen, slice 2, mockup M2 - All Leads, Not Ready Yet, Unassigned, Sold, Recently Deleted. No sideways
   scroll - the script fits the other columns to the panel width, saved widths scaled to fit. These four keep fixed widths. The
   frozen Date and Time columns are not needed when nothing scrolls sideways, so they sit in the row like any other column. */
.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table]{width:100%}
.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="select"]{width:36px}
.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="assignTo"]{width:152px}
.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="date"]{width:120px}
.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="time"]{width:110px}
.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="assignTo"],
.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] td.ahp-dashboard__row-assign,
.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="date"],
.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="date"],
.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="time"],
.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="time"]{position:static}
.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] td.ahp-dashboard__row-assign,.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="date"],.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="time"]{background:transparent}
.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] td.ahp-dashboard__row-assign select{max-width:100%;box-sizing:border-box}
/* Long plain values end in three dots, the full value shows on hover. */
.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="firstName"],.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="lastName"],.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="source"],.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="agencyName"],.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="officeName"],.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="date"],.ahp-dashboard.ahp-mf .ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="time"]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Menu open - Date and Time step out to make room, hovering a row shows them in a small bubble next to Assign To. On screen
   only, a printed table keeps both. */
@media screen{
.ahp-dashboard.ahp-mf:not(.ahp-mf-rail):not(.ahp-mf-hide) .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="date"],.ahp-dashboard.ahp-mf:not(.ahp-mf-rail):not(.ahp-mf-hide) .ahp-dashboard__recent-leads[data-ahp-resizable-table] th[data-ahp-col="time"],.ahp-dashboard.ahp-mf:not(.ahp-mf-rail):not(.ahp-mf-hide) .ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="date"],.ahp-dashboard.ahp-mf:not(.ahp-mf-rail):not(.ahp-mf-hide) .ahp-dashboard__recent-leads[data-ahp-resizable-table] td[data-ahp-field="time"]{display:none}
}
.ahp-mf-when{position:fixed;z-index:60;pointer-events:none;background:#1f1f1f;color:#fff;font-size:12px;line-height:16px;padding:6px 10px;border-radius:8px;white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.ahp-mf-when[hidden]{display:none}

/* Dashboard home, slice 3a, mockup M1 - look only, same cards, numbers and controls. Flat white cards with a thin gray
   border, sentence case labels, light blue for the picked option, pink tint on the cards that need action. The chart
   colors come from these classes too, so no script change. */
.ahp-dashboard.ahp-mf [data-ahp-analytics]{--an-text:#1f1f1f;--an-muted:#444746;--an-border:#e1e3e1;--an-green:#146c2e;--an-red:#b3261e}
.ahp-dashboard.ahp-mf .ahp-an-kpis{gap:12px}
.ahp-dashboard.ahp-mf .ahp-an-grid2,.ahp-dashboard.ahp-mf .ahp-an-grid3{gap:16px}
.ahp-dashboard.ahp-mf .ahp-an-kpi,.ahp-dashboard.ahp-mf .ahp-an-kpi.is-accent{border:1px solid #e1e3e1;border-radius:12px;box-shadow:none;padding:14px 16px;color:#1f1f1f;background:#fff}
.ahp-dashboard.ahp-mf .ahp-an-kpi:has(.ahp-an-kpi__v.is-danger){background:#fff8f6;border-color:#f9dedc}
.ahp-dashboard.ahp-mf .ahp-an-kpi__l{text-transform:none;letter-spacing:0;font-size:12px;font-weight:500;color:#444746}
.ahp-dashboard.ahp-mf .ahp-an-kpi__v,.ahp-dashboard.ahp-mf .ahp-an-kpi__v.is-danger{font-size:28px;line-height:36px;font-weight:400;margin:0;color:#1f1f1f}
.ahp-dashboard.ahp-mf .ahp-an-kpi__v.is-danger{color:#b3261e}
.ahp-dashboard.ahp-mf .ahp-an-kpi__s{font-size:12px;line-height:16px;color:#444746}
.ahp-dashboard.ahp-mf .ahp-an-up{color:#146c2e;font-weight:700}
.ahp-dashboard.ahp-mf .ahp-an-down{color:#b3261e;font-weight:700}
.ahp-dashboard.ahp-mf .ahp-an-seg{padding:0;border:1px solid #747775;border-radius:999px;overflow:hidden;background:#fff}
.ahp-dashboard.ahp-mf .ahp-an-seg button{height:100%;border-radius:0;border-left:1px solid #747775;background:#fff;color:#444746;font-size:13px;font-weight:500;line-height:normal}
.ahp-dashboard.ahp-mf .ahp-an-seg button:first-child{border-left:0}
.ahp-dashboard.ahp-mf .ahp-an-seg button.is-on{background:#c2e7ff;color:#001d35}
.ahp-dashboard.ahp-mf .ahp-an-seg--sm{height:28px;box-sizing:border-box}
.ahp-dashboard.ahp-mf .ahp-an-seg--sm button{padding:0 12px;font-size:12.5px}
.ahp-dashboard.ahp-mf .ahp-an-ghost{border-color:#747775;color:#0b57d0;font-weight:500}
.ahp-dashboard.ahp-mf .ahp-an-ghost:hover{border-color:#747775;background:#f0f4f9;color:#0b57d0}
.ahp-dashboard.ahp-mf .ahp-an-card{border:1px solid #e1e3e1;border-radius:12px;box-shadow:none;padding:16px 20px;color:#1f1f1f;background:#fff}
.ahp-dashboard.ahp-mf .ahp-an-card h3{font-size:16px;line-height:24px;font-weight:500;margin:0 0 10px;color:#1f1f1f}
.ahp-dashboard.ahp-mf .ahp-an-card h4{color:#444746;font-weight:500}
.ahp-dashboard.ahp-mf .ahp-an-sub{margin-left:0;font-size:12px;font-weight:400;color:#444746}
.ahp-dashboard.ahp-mf .ahp-an-dot{background:#b3261e}
.ahp-dashboard.ahp-mf .ahp-an-card th{text-transform:none;letter-spacing:0;font-size:12px;font-weight:500;color:#444746;padding:0 12px;height:44px;border-bottom:1px solid #e1e3e1}
.ahp-dashboard.ahp-mf .ahp-an-card td{padding:0 12px;height:52px;border-bottom:1px solid #e1e3e1;color:#1f1f1f}
.ahp-dashboard.ahp-mf .ahp-an-card tr[data-an-open] td:nth-child(3){white-space:nowrap}
.ahp-dashboard.ahp-mf .ahp-an-card td b{font-weight:500}
.ahp-dashboard.ahp-mf .ahp-an-card tr:last-child td{border-bottom:0}
.ahp-dashboard.ahp-mf .ahp-an-card tr[data-an-open]:hover td,.ahp-dashboard.ahp-mf .ahp-an-card tr[data-an-view]:hover td{background:#f8fafd}
.ahp-dashboard.ahp-mf .ahp-an-tag{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:8px;font-size:12px;font-weight:500;white-space:nowrap;background:#e9eef6;color:#1f1f1f}
.ahp-dashboard.ahp-mf .ahp-an-tag.is-red{background:#f9dedc;color:#8c1d18}
.ahp-dashboard.ahp-mf .ahp-an-tag.is-amber,.ahp-dashboard.ahp-mf .ahp-an-tag.is-gold{background:#ffdfa0;color:#3d2e00}
.ahp-dashboard.ahp-mf .ahp-an-tag.is-green{background:#c4eed0;color:#0d652d}
.ahp-dashboard.ahp-mf .ahp-an-bar{height:6px;border-radius:6px;background:#e1e3e1}
.ahp-dashboard.ahp-mf .ahp-an-bar i{background:#0b57d0;border-radius:6px}
.ahp-dashboard.ahp-mf .ahp-an-bar.is-gold i{background:#146c2e}
.ahp-dashboard.ahp-mf .ahp-an-row__s{font-size:12px;color:#444746}
.ahp-dashboard.ahp-mf .ahp-an-f{margin:0;height:24px}
.ahp-dashboard.ahp-mf .ahp-an-f span{width:118px}
.ahp-dashboard.ahp-mf .ahp-an-f .ahp-an-bar,.ahp-dashboard.ahp-mf .ahp-an-f .ahp-an-bar i{height:6px;border-radius:6px}
.ahp-dashboard.ahp-mf .ahp-an-f em{color:#444746}
.ahp-dashboard.ahp-mf .ahp-an-note,.ahp-dashboard.ahp-mf .ahp-an-empty,.ahp-dashboard.ahp-mf .ahp-an-muted,.ahp-dashboard.ahp-mf tr.ahp-an-muted td,.ahp-dashboard.ahp-mf .ahp-an-legend{color:#444746}
.ahp-dashboard.ahp-mf .ahp-an-legend .k-vol{background:#a8c7fa}
.ahp-dashboard.ahp-mf .ahp-an-legend .k-sold{background:#0b57d0}
.ahp-dashboard.ahp-mf .ahp-an-legend .k-paid{background:#146c2e}
.ahp-dashboard.ahp-mf [data-ahp-analytics] svg text{fill:#444746}
.ahp-dashboard.ahp-mf .ahp-an-grid line{stroke:#e1e3e1}
.ahp-dashboard.ahp-mf .ahp-an-bars rect{fill:#a8c7fa}
.ahp-dashboard.ahp-mf .ahp-an-line-sold{stroke:#0b57d0}
.ahp-dashboard.ahp-mf .ahp-an-line-paid{stroke:#146c2e}
/* Lead card, slice 3b, mockup M3 - look only, same size, same fields, buttons and order. Light gray panel with white
   cards and a thin gray border, sentence case labels, pill buttons, light blue for the picked option. The gold line
   under the name becomes a thin gray divider. The card sits on the page body, so the script gives it the ahp-mf-card
   class in the modern look. List view shows the same card docked beside the list, so it gets the same rules. */
.ahp-dashboard.ahp-mf .ahp-lead-listview__detail{background:#f0f4f9;border:1px solid #e1e3e1;border-radius:16px}
.ahp-table-card-overlay.ahp-mf-card > .ahp-view-modal__backdrop{background:rgba(31,31,31,.32)}
.ahp-table-card-overlay.ahp-mf-card > .ahp-view-modal__panel{background:#f0f4f9;border-radius:28px;box-shadow:0 8px 24px rgba(0,0,0,.18);color:#1f1f1f}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__header,.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__section,.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__activity,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__header,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__section,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__activity{background:#fff;border:1px solid #e1e3e1;border-radius:16px;box-shadow:none;color:#1f1f1f}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__name,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__name{font-size:22px;line-height:28px;font-weight:400;color:#1f1f1f}
.ahp-table-card-overlay.ahp-mf-card .ahp-tag,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-tag{border-radius:8px;font-size:12px;font-weight:500;text-transform:none;letter-spacing:0}
.ahp-table-card-overlay.ahp-mf-card .ahp-tag:not([class*=ahp-tag--]),.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-tag:not([class*=ahp-tag--]){background:#e9eef6;border-color:#e9eef6;color:#1f1f1f}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__received,.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__header-help,.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__save-status,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__received,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__header-help,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__save-status{color:#444746}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-quickaction,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-quickaction{height:32px;padding:0 18px;border:0;border-radius:999px;background:#c2e7ff;color:#001d35;font-size:14px;font-weight:500;box-shadow:none}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-quickaction:hover,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-quickaction:hover{background:#b3dcf5;color:#001d35}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-quickaction[aria-disabled="true"],.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-quickaction[aria-disabled="true"]{background:#e9eef6;color:#8e918f;opacity:1}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__header-controls,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__header-controls{border-top:1px solid #e1e3e1}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__field-label,.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__label,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__field-label,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__label{text-transform:none;letter-spacing:0;font-size:12px;line-height:16px;font-weight:500;color:#444746}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__field,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__field{padding:8px 0}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__field:last-child,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__field:last-child{padding-bottom:0}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__header-controls select:not(.ahp-payment-select),.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__header-controls input,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__header-controls select:not(.ahp-payment-select),.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__header-controls input{border:1px solid #747775;border-radius:8px;box-shadow:none;color:#1f1f1f;font-size:14px}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__header-controls .ahp-payment-select,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__header-controls .ahp-payment-select{border-radius:8px;box-shadow:none;font-size:14px}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__header-controls select:focus,.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__header-controls input:focus,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__header-controls select:focus,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__header-controls input:focus{border-color:#0b57d0;outline:1px solid #0b57d0}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__section > h5,.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__activity-heading h5,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__section > h5,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__activity-heading h5{text-transform:none;letter-spacing:0;font-size:14px;line-height:20px;font-weight:500;color:#1f1f1f}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__section > h5,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__section > h5{margin-bottom:12px}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__activity-heading span,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__activity-heading span{color:#444746;font-size:12px}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__value,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__value{font-size:14px;line-height:20px;font-weight:400;color:#1f1f1f}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-workspace__value a,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-workspace__value a{color:#0b57d0}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-switch,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-switch{display:inline-flex;width:max-content;margin:0 0 12px;gap:0;padding:0;height:32px;border:1px solid #747775;border-radius:999px;overflow:hidden;background:#fff}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-switch button,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-switch button{height:100%;padding:0 16px;border:0;border-left:1px solid #747775;border-radius:0;background:#fff;color:#444746;font-size:13px;font-weight:500;text-transform:none;letter-spacing:0}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-switch button:first-child,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-switch button:first-child{border-left:0}
.ahp-table-card-overlay.ahp-mf-card .ahp-lead-switch button.is-active,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-lead-switch button.is-active{background:#c2e7ff;color:#001d35}
.ahp-table-card-overlay.ahp-mf-card .ahp-note-editor-shell,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-note-editor-shell{border:1px solid #c4c7c5;border-radius:12px;overflow:hidden}
.ahp-table-card-overlay.ahp-mf-card .ahp-note-editor-shell .ql-toolbar,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-note-editor-shell .ql-toolbar{border:0;border-bottom:1px solid #e1e3e1;background:#f8fafd}
.ahp-table-card-overlay.ahp-mf-card .ahp-btn--navy,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-btn--navy{border:0;border-radius:999px;background:#0b57d0;color:#fff;font-weight:500;text-transform:none;letter-spacing:0}
.ahp-table-card-overlay.ahp-mf-card .ahp-btn--navy:hover:not(:disabled),.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-btn--navy:hover:not(:disabled){background:#0842a0;color:#fff}
.ahp-table-card-overlay.ahp-mf-card .ahp-btn--navy:disabled,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-btn--navy:disabled{background:#e1e3e1;color:#8e918f}
.ahp-table-card-overlay.ahp-mf-card .ahp-note-save-help,.ahp-table-card-overlay.ahp-mf-card .ahp-note-save-shortcut,.ahp-table-card-overlay.ahp-mf-card .ahp-note-editor-status,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-note-save-help,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-note-save-shortcut,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-note-editor-status{color:#444746}
.ahp-table-card-overlay.ahp-mf-card .ahp-note-heading h5,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-note-heading h5{text-transform:none;letter-spacing:0;font-size:14px;line-height:20px;font-weight:500;color:#1f1f1f}
.ahp-table-card-overlay.ahp-mf-card .ahp-note-heading-controls select,.ahp-dashboard.ahp-mf .ahp-lead-listview__detail .ahp-note-heading-controls select{border:1px solid #747775;border-radius:8px;box-shadow:none;color:#1f1f1f}
/* Agents and Agencies, slice 3d, mockup M6 - look only, same lists, buttons, numbers and tables. The sidebar becomes a
   white card with a round search box and light blue for the picked row. The navy header of the picked agent or agency
   becomes white with a bigger round avatar, outlined pill buttons and light gray number cards. List, Builder and Role
   Access, and Agents and Leads, become pill switches. Only inside these two tabs, so other tabs keep their look. */
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-dashboard__section-title,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-dashboard__section-title{font-size:28px;line-height:36px;font-weight:400;color:#1f1f1f;text-transform:none;letter-spacing:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__sidebar,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__sidebar{background:#fff;border:1px solid #e1e3e1;border-radius:12px;box-shadow:none;padding:12px}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__searchwrap,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__searchwrap{padding:0;margin:0 0 8px;border:0;background:transparent}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__search,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__search{height:40px;border:0;border-radius:999px;background:#e9eef6;padding:0 16px;font-size:14px;color:#1f1f1f;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__search:focus,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__search:focus{outline:2px solid #0b57d0;outline-offset:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__row,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__row{border:0;border-radius:12px;padding:10px 12px;margin:0 0 4px;background:transparent;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__row:hover,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__row:hover{background:#f0f4f9}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__row.is-active,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__row.is-active{background:#d3e3fd;border:0;box-shadow:none;outline:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__row-avatar,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__row-avatar{width:36px;height:36px;background-color:#d3e3fd;color:#041e49;font-weight:500;font-size:14px}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__row.is-active .ahp-workspace__row-avatar,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__row.is-active .ahp-workspace__row-avatar{background-color:#fff}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__row-name,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__row-name{font-weight:500;color:#1f1f1f}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__row-meta,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__row-meta{font-size:13px;color:#444746}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__row-eyebrow,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__row-eyebrow{font-size:12px;font-weight:500;color:#444746;text-transform:none;letter-spacing:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__group-label,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__group-label{background:transparent;border:0;padding:8px 12px;font-size:12px;font-weight:500;color:#444746;text-transform:none;letter-spacing:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__group-add,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__group-add{color:#0b57d0;font-weight:500;text-transform:none;letter-spacing:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-view-modal__panel,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-view-modal__panel{background:#fff;border:1px solid #e1e3e1;border-radius:12px;box-shadow:none;color:#1f1f1f}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-view-modal__header,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-view-modal__header{background:#fff;color:#1f1f1f;border-bottom:0;padding:24px 24px 0}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-view-modal__avatar,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-view-modal__avatar{width:48px;height:48px;font-size:18px;font-weight:500;background-color:#d3e3fd;color:#041e49}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-view-modal__title,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-view-modal__title{font-size:22px;line-height:28px;font-weight:400;color:#1f1f1f}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-view-modal__meta,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-view-modal__meta{color:#444746}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-view-modal__meta strong,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-view-modal__meta strong{font-weight:500;color:#1f1f1f}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-view-modal__header .ahp-btn--outline,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-view-modal__header .ahp-btn--outline{height:40px;padding:0 20px;border:1px solid #747775;border-radius:999px;background:#fff;color:#0b57d0;font-size:14px;font-weight:500;text-decoration:none;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-view-modal__header .ahp-btn--outline:hover,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-view-modal__header .ahp-btn--outline:hover{background:#f0f4f9;color:#0b57d0;border-color:#747775}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-view-modal__header [data-ahp-view-delete-agent],.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-view-modal__header [data-ahp-view-delete-agent]{color:#b3261e}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-stat-card,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-stat-card{background:#f8fafd;border:1px solid #e1e3e1;border-radius:12px;box-shadow:none;padding:12px 16px}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-stat-card__label,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-stat-card__label{font-size:12px;font-weight:500;color:#444746;text-transform:none;letter-spacing:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-stat-card__value,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-stat-card__value{font-size:24px;line-height:32px;font-weight:400;color:#1f1f1f}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-view-modal__body,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-view-modal__body{background:#fff}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-view-modal__card,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-view-modal__card{border:1px solid #e1e3e1;border-radius:12px;box-shadow:none;background:#fff}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-view-modal__card h3,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-view-modal__card h3{font-size:16px;line-height:24px;font-weight:500;color:#1f1f1f}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal__subtabs,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal__subtabs{display:inline-flex;gap:0;padding:0;height:32px;border:1px solid #747775;border-radius:999px;overflow:hidden;background:#fff}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal__subtab,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal__subtab{height:100%;padding:0 14px;border:0;border-left:1px solid #747775;border-radius:0;background:#fff;color:#444746;font-size:13px;font-weight:500;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal__subtab:first-child,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal__subtab:first-child{border-left:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal__subtab.is-active,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal__subtab.is-active{background:#c2e7ff;color:#001d35}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-roster-toolbar .ahp-lead-filters__search,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-roster-toolbar .ahp-lead-filters__search{height:32px;border:1px solid #747775;border-radius:8px;box-shadow:none;font-size:14px}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__row--expandable,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__row--expandable{padding:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-workspace__row-main,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-workspace__row-main{background:transparent;box-shadow:none;border:0;border-radius:12px;padding:10px 12px}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-sub-agency-card__branches,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-sub-agency-card__branches{color:#444746}
.ahp-dashboard.ahp-mf [data-ahp-panel="agents"] .ahp-view-modal--docked .ahp-view-modal__header a.ahp-btn--outline,.ahp-dashboard.ahp-mf [data-ahp-panel="agencies"] .ahp-view-modal--docked .ahp-view-modal__header a.ahp-btn--outline{display:inline-flex;align-items:center;box-sizing:border-box}

/* Tasks, slice 3e, mockup M4 - look only, same search box, buttons, columns, chips, late-row bar, Back dates and Mark as.
   Big plain title, My Tasks and All Tasks as a pill switch, blue Add Task, flat number cards (the picked one light blue),
   outlined chip buttons, the table in a rounded box with plain headers. Only inside the Tasks tab; the task card is not changed. */
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-dashboard__section-title{font-size:28px;line-height:36px;font-weight:400;color:#1f1f1f;text-transform:none;letter-spacing:0;margin:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__head .ahp-dashboard__note{font-size:14px;font-style:normal;color:#444746;margin-top:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__head-actions{gap:8px}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-dashboard__tabs-mini{display:inline-flex;gap:0;margin:0;height:40px;border:1px solid #747775;border-radius:999px;overflow:hidden;background:#fff}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-dashboard__tabs-mini-item{height:100%;padding:0 14px;border:0;border-left:1px solid #747775;border-radius:0;background:#fff;color:#444746;font-size:13px;font-weight:500}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-dashboard__tabs-mini-item:first-child{border-left:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-dashboard__tabs-mini-item.is-active{background:#c2e7ff;color:#001d35}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-btn--gold{height:40px;padding:0 20px;margin-left:0;border:0;border-radius:999px;background:#0b57d0;color:#fff;font-size:14px;font-weight:500;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-btn--gold:hover{background:#0842a0;color:#fff}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__stats{gap:12px}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__stat{min-height:0;margin:0;padding:14px 16px;gap:2px;background:#fff;border:1px solid #e1e3e1;border-radius:12px;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__stat:hover{background:#f8fafd}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__stat.is-active{margin:0;background:#d3e3fd;border:1px solid #d3e3fd}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__stat:focus-visible{outline:2px solid #0b57d0;outline-offset:2px}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__stat .ahp-stat-card__label{font-size:12px;font-weight:500;color:#444746;text-transform:none;letter-spacing:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__stat .ahp-stat-card__value{font-size:28px;line-height:36px;font-weight:400;color:#1f1f1f}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__stat--danger .ahp-stat-card__value{color:#b3261e}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__stat-hint{font-size:12px;color:#444746}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-lead-filters{gap:8px;align-items:center}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-lead-filters__search{height:32px;width:240px;border:1px solid #747775;border-radius:8px;padding:0 12px;background:#fff;color:#1f1f1f;font-size:14px;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-lead-filters__search:focus{outline:2px solid #0b57d0;outline-offset:0;border-color:#0b57d0}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-lead-filters select{height:32px;border:1px solid #747775;border-radius:8px;background-color:#fff;color:#1f1f1f;font-size:14px}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__check{height:32px;box-sizing:border-box;padding:0 12px;border:1px solid #747775;border-radius:8px;background:#fff;color:#444746;font-size:14px;font-weight:500;cursor:pointer}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-lead-filters .ahp-btn--outline{height:32px;padding:0 12px;margin:0;border:1px solid #747775;border-radius:8px;background:#fff;color:#444746;font-size:14px;font-weight:500;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-lead-filters .ahp-btn--outline:hover{background:#f0f4f9;color:#1f1f1f}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-dashboard__resizable-scroll{border:1px solid #e1e3e1;border-radius:12px;box-shadow:none;background:#fff}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__table th{background:#fff;color:#444746;font-size:12px;font-weight:500;text-transform:none;letter-spacing:0;border-bottom:1px solid #e1e3e1}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__table td{border-bottom:1px solid #e1e3e1;font-size:14px;color:#1f1f1f}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__table tbody tr:last-child td{border-bottom:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__row:hover td{background:#f8fafd}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__row--late td:first-child{box-shadow:inset 4px 0 0 #b3261e}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__title{font-size:14px;font-weight:500;color:#1f1f1f}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__sub{font-size:12px;color:#444746}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tag{border-radius:8px;font-size:12px;font-weight:500;text-transform:none;letter-spacing:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__due,.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__prio{height:24px;line-height:24px;padding:0 10px;border-radius:8px;font-size:12px;font-weight:500;background:#e9eef6;color:#1f1f1f}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__due--late,.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__prio--high{background:#f9dedc;color:#8c1d18}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__due--today{background:#ffdfa0;color:#3d2e00}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__due--none{background:transparent;color:#444746}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__prio--low{background:transparent;box-shadow:inset 0 0 0 1px #e1e3e1;color:#444746}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__status .ahp-pill{border-radius:8px;font-size:12px;font-weight:500;text-transform:none;letter-spacing:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__status .ahp-pill--open{background:#d3e3fd;color:#041e49}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__status .ahp-pill--working{background:#e9eef6;color:#1f1f1f}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__status .ahp-pill--won{background:#c4eed0;color:#0d652d}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__mark{height:32px;padding:0 14px;border:1px solid #747775;border-radius:999px;background:#fff;color:#0b57d0;font-size:14px;font-weight:500;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__mark:hover{background:#f0f4f9;color:#0b57d0}
.ahp-dashboard.ahp-mf [data-ahp-panel="tasks"] .ahp-tasks__shown{font-size:12px;font-style:normal;color:#444746}

/* Remaining tabs, slice 4 - look only, same labels, buttons, fields and layout. Clients, Portfolio, Contests, Announcements,
   Lead Map, Compliance, Referral Pages and View Trends take the styles of the approved slices: big plain titles, plain notes,
   blue main button, outlined pill buttons in a header, gray-outlined small buttons and fields in a filter row, light blue
   picked switches and chips, flat cards with a thin gray line. Nothing outside these eight tabs changes; Classic unchanged. */
.ahp-dashboard.ahp-mf [data-ahp-panel="clients"] .ahp-dashboard__section-title,.ahp-dashboard.ahp-mf [data-ahp-panel="portfolio"] .ahp-pf__head .ahp-dashboard__section-title,.ahp-dashboard.ahp-mf [data-ahp-panel="trends"] > .ahp-dashboard__section-title:first-of-type,.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] .ahp-dashboard__section-title,.ahp-dashboard.ahp-mf [data-ahp-panel="referrals"] .ahp-ref-title,.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__h1,.ahp-dashboard.ahp-mf [data-ahp-panel="contests"] .ahpc .head .title{font-size:28px;line-height:36px;font-weight:400;color:#1f1f1f;text-transform:none;letter-spacing:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="trends"] .ahp-dashboard__section-title,.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__h2{font-weight:400;color:#1f1f1f;text-transform:none;letter-spacing:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="trends"] .ahp-dashboard__section-title:not(:first-of-type){font-size:22px;line-height:28px}
.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__h2{font-size:22px;line-height:28px}
.ahp-dashboard.ahp-mf [data-ahp-panel="clients"] .ahp-dashboard__note,.ahp-dashboard.ahp-mf [data-ahp-panel="portfolio"] .ahp-dashboard__note,.ahp-dashboard.ahp-mf [data-ahp-panel="trends"] .ahp-dashboard__note,.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] .ahp-dashboard__note,.ahp-dashboard.ahp-mf [data-ahp-panel="contests"] .ahpc .head .sub{font-size:14px;font-style:normal;color:#444746}
/* Main button: blue pill. */
.ahp-dashboard.ahp-mf [data-ahp-panel="clients"] .ahp-btn--gold,.ahp-dashboard.ahp-mf [data-ahp-panel="portfolio"] .ahp-btn--gold,.ahp-dashboard.ahp-mf [data-ahp-panel="leadmap"] .ahp-btn--gold,.ahp-dashboard.ahp-mf [data-ahp-panel="referrals"] .ahp-btn--gold,.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__new,.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__primary,.ahp-dashboard.ahp-mf [data-ahp-panel="contests"] .ahpc .btn.primary{min-height:40px;padding:0 20px;border:0;border-radius:999px;background:#0b57d0;color:#fff;font-size:14px;font-weight:500;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="clients"] .ahp-btn--gold:hover,.ahp-dashboard.ahp-mf [data-ahp-panel="portfolio"] .ahp-btn--gold:hover,.ahp-dashboard.ahp-mf [data-ahp-panel="leadmap"] .ahp-btn--gold:hover,.ahp-dashboard.ahp-mf [data-ahp-panel="referrals"] .ahp-btn--gold:hover,.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__new:hover,.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__primary:hover,.ahp-dashboard.ahp-mf [data-ahp-panel="contests"] .ahpc .btn.primary:hover{background:#0842a0;color:#fff}
.ahp-dashboard.ahp-mf [data-ahp-panel="contests"] .ahpc .btn.primary.sm{min-height:32px;padding:0 14px;font-size:13px}
/* Other buttons: outlined, blue words. */
.ahp-dashboard.ahp-mf [data-ahp-panel="clients"] .ahp-btn--outline,.ahp-dashboard.ahp-mf [data-ahp-panel="trends"] .ahp-btn--outline,.ahp-dashboard.ahp-mf [data-ahp-panel="leadmap"] .ahp-btn--outline,.ahp-dashboard.ahp-mf [data-ahp-panel="referrals"] .ahp-btn--outline,.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__secondary,.ahp-dashboard.ahp-mf [data-ahp-panel="contests"] .ahpc .btn:not(.primary):not(.link):not(.light):not(.danger){border:1px solid #747775;border-radius:999px;background:#fff;color:#0b57d0;font-weight:500;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="clients"] .ahp-btn--outline:hover,.ahp-dashboard.ahp-mf [data-ahp-panel="trends"] .ahp-btn--outline:hover,.ahp-dashboard.ahp-mf [data-ahp-panel="leadmap"] .ahp-btn--outline:hover,.ahp-dashboard.ahp-mf [data-ahp-panel="referrals"] .ahp-btn--outline:hover,.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__secondary:hover,.ahp-dashboard.ahp-mf [data-ahp-panel="contests"] .ahpc .btn:not(.primary):not(.link):not(.light):not(.danger):hover{background:#f0f4f9}
/* Fields: thin gray outline, 8px corners, blue ring on focus. */
.ahp-dashboard.ahp-mf [data-ahp-panel="clients"] .ahp-lead-filters__search,.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] .ahp-lead-filters__search,.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] select,.ahp-dashboard.ahp-mf [data-ahp-panel="trends"] select,.ahp-dashboard.ahp-mf [data-ahp-panel="leadmap"] select,.ahp-dashboard.ahp-mf [data-ahp-panel="leadmap"] input[type="date"],.ahp-dashboard.ahp-mf [data-ahp-panel="referrals"] input[type="search"],.ahp-dashboard.ahp-mf [data-ahp-panel="referrals"] select,.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__input{border:1px solid #747775;border-radius:8px;background-color:#fff;color:#1f1f1f;font-weight:400;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="clients"] .ahp-lead-filters__search:focus,.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] .ahp-lead-filters__search:focus,.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] select:focus,.ahp-dashboard.ahp-mf [data-ahp-panel="trends"] select:focus,.ahp-dashboard.ahp-mf [data-ahp-panel="leadmap"] select:focus,.ahp-dashboard.ahp-mf [data-ahp-panel="leadmap"] input[type="date"]:focus,.ahp-dashboard.ahp-mf [data-ahp-panel="referrals"] input[type="search"]:focus,.ahp-dashboard.ahp-mf [data-ahp-panel="referrals"] select:focus,.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__input:focus{outline:2px solid #0b57d0;outline-offset:0;border-color:#0b57d0}
.ahp-dashboard.ahp-mf [data-ahp-panel="referrals"] input[type="search"],.ahp-dashboard.ahp-mf [data-ahp-panel="referrals"] select{font-size:14px}
/* Two-way switches (Table/List, 30/90 Days, Agents/Requirements): one pill, the picked side light blue. */
.ahp-dashboard.ahp-mf [data-ahp-panel="clients"] .ahp-lead-view-toggle,.ahp-dashboard.ahp-mf [data-ahp-panel="trends"] .ahp-view-modal__subtabs,.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] .ahp-dashboard__tabs-mini{display:inline-flex;gap:0;padding:0;height:32px;border:1px solid #747775;border-radius:999px;overflow:hidden;background:#fff;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="clients"] .ahp-lead-view-toggle__btn,.ahp-dashboard.ahp-mf [data-ahp-panel="trends"] .ahp-view-modal__subtab,.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] .ahp-dashboard__tabs-mini-item{height:100%;margin:0;padding:0 14px;border:0;border-left:1px solid #747775;border-radius:0;background:#fff;color:#444746;font-size:13px;font-weight:500;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="clients"] .ahp-lead-view-toggle__btn:first-child,.ahp-dashboard.ahp-mf [data-ahp-panel="trends"] .ahp-view-modal__subtab:first-child,.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] .ahp-dashboard__tabs-mini-item:first-child{border-left:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="clients"] .ahp-lead-view-toggle__btn.is-active,.ahp-dashboard.ahp-mf [data-ahp-panel="trends"] .ahp-view-modal__subtab.is-active,.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] .ahp-dashboard__tabs-mini-item.is-active{background:#c2e7ff;color:#001d35}
/* Portfolio's view tabs: underline in blue instead of gold. */
.ahp-dashboard.ahp-mf [data-ahp-panel="portfolio"] .ahp-pf__tabs{border-bottom-color:#e1e3e1}
.ahp-dashboard.ahp-mf [data-ahp-panel="portfolio"] .ahp-pf__tab{color:#444746;font-weight:500}
.ahp-dashboard.ahp-mf [data-ahp-panel="portfolio"] .ahp-pf__tab.is-active{color:#0b57d0;border-bottom-color:#0b57d0}
.ahp-dashboard.ahp-mf [data-ahp-panel="portfolio"] .ahp-pf__tab:focus-visible{outline-color:#0b57d0}
/* Announcements chips: filter tabs and type chips, picked one light blue. */
.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__tab,.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__chip{border:1px solid #747775;border-radius:8px;background:#fff;color:#444746;font-weight:500}
.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__tab.is-on,.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__chip.is-on{background:#d3e3fd;border-color:#d3e3fd;color:#041e49}
.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__audbtn,.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__toggle{border-color:#e1e3e1;border-radius:8px;color:#1f1f1f;font-weight:500}
.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__audbtn.is-on{background:#d3e3fd;border-color:#d3e3fd}
.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__audbtn.is-on .ahp-anned__tick{border-color:#0b57d0;background:#0b57d0}
.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__rowtitle{font-weight:500;color:#1f1f1f}
/* Cards and boxes: flat, thin gray line, rounded. */
.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__list,.ahp-dashboard.ahp-mf [data-ahp-panel="announcements"] .ahp-anned__pane,.ahp-dashboard.ahp-mf [data-ahp-panel="trends"] .ahp-trend-card,.ahp-dashboard.ahp-mf [data-ahp-panel="portfolio"] .ahp-pf__card,.ahp-dashboard.ahp-mf [data-ahp-panel="referrals"] .ahp-ref-empty,.ahp-dashboard.ahp-mf [data-ahp-panel="leadmap"] .ahp-lead-map__canvas{border:1px solid #e1e3e1;border-radius:12px;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="portfolio"] .ahp-pf__card-title,.ahp-dashboard.ahp-mf [data-ahp-panel="trends"] .ahp-trend-card__title{font-weight:500;color:#1f1f1f}
.ahp-dashboard.ahp-mf [data-ahp-panel="trends"] .ahp-trend-card__controls{border:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="contests"] .ahpc{--c-text:#1f1f1f;--c-muted:#444746;--c-border:#e1e3e1;--c-strong:#747775;--c-link:#0b57d0}
/* Compliance number cards: same as the Tasks cards, the picked one light blue. Late and due-soon numbers keep their colors. */
.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] .ahp-comp__stat{margin:0;padding:14px 16px;background:#fff;border:1px solid #e1e3e1;border-radius:12px;box-shadow:none}
.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] .ahp-comp__stat:hover{background:#f8fafd}
.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] .ahp-comp__stat.is-active{margin:0;background:#d3e3fd;border:1px solid #d3e3fd}
.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] .ahp-comp__stat:focus-visible{outline:2px solid #0b57d0;outline-offset:2px}
.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] .ahp-comp__stat .ahp-stat-card__label{font-size:12px;font-weight:500;color:#444746;text-transform:none;letter-spacing:0}
.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] .ahp-comp__stat .ahp-stat-card__value{font-size:28px;line-height:36px;font-weight:400}
.ahp-dashboard.ahp-mf [data-ahp-panel="compliance"] .ahp-comp__stat--over .ahp-stat-card__value{color:#b3261e}
