/* ═══ AtlasCM UI layer ═════════════════════════════════════════════════════════════════════════════════════════════
   Loaded on every staff page right after entity-910.css (api/views/layouts.php). Three parts:
   1. The app-wide tooltip (any [data-tip]; behaviour in assets/js/samg-tooltips.js) and its "i" trigger (.sa-tip).
   2. AtlasCM hierarchy rules, scoped to .bsfa-theme so no other tenant changes.
   3. Atlas|CM patterns: one look for tabs, toolbars, search, filter chips, tables and page actions (docs/ATLASCM-UI-PATTERNS.md). */

/* ── 1. Tooltip ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.sa-tip {
	position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 22px; height: 22px; margin: 0 0 0 .15rem; padding: 0;
	border: 0; border-radius: 50%; background: transparent;
	color: var(--bsfa-text-faint, #8896A6); font-size: .62rem; font-weight: 700; line-height: 1; vertical-align: -.2em;
	cursor: default; transition: color .12s, background-color .12s;
}
/* LineIcons 5's lni-info is a bare "i"; draw the ring so it reads as an info marker at a glance. */
.sa-tip::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.sa-tip:hover, .sa-tip:focus-visible { color: var(--bsfa-blue, #1565C0); background: rgba(21, 101, 192, .09); outline: none; }
.sa-tip:focus-visible { box-shadow: 0 0 0 2px rgba(21, 101, 192, .4); }
@media (pointer: coarse) { .sa-tip { width: 32px; height: 32px; } }   /* a real tap target on touch screens */
.sa-tooltip {
	position: fixed; z-index: 1085; max-width: min(380px, calc(100vw - 16px));
	padding: .7rem .9rem; border-radius: 10px;
	font-size: .9rem; font-weight: 500; line-height: 1.5; letter-spacing: 0; text-align: left; white-space: normal;   /* York, 2026-11-11: "a little bigger" (was .8rem); 1rem was "a little overkill" */
	color: #fff; background: #0F1E35;   /* solid: at .95 the text behind it showed through */
	box-shadow: 0 12px 30px rgba(15, 30, 53, .28), 0 0 0 1px rgba(255, 255, 255, .06);
	pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity .12s ease, transform .12s ease;
}
.sa-tooltip.is-below { transform: translateY(-3px); }
.sa-tooltip.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sa-tooltip { transition: none; } }
[data-theme-mode="dark"] .sa-tooltip { background: #FAFAFA; color: #0F1E35; }
[data-theme-mode="dark"] .sa-tip { color: #8592A1; }
[data-theme-mode="dark"] .sa-tip:hover, [data-theme-mode="dark"] .sa-tip:focus-visible { color: #5B9EE8; background: rgba(91, 158, 232, .14); }
/* The "i" is a letter in the page's own font, centered in the ring. The rebuilt icon font (lineicons-weights.css) draws
   lni-info at the left edge of its box, so the icon sat off-center (York, 2026-11-17: "not sure that is right"). Table
   headers set capitals and letter spacing, which the letter must not take. */
.sa-tip > .lni.lni-info { width: auto; height: auto; font-family: inherit; font-size: 11px; font-weight: 700; font-style: normal; line-height: 1; text-transform: none; letter-spacing: 0; }
.sa-tip > .lni.lni-info::before { content: "i"; }
th .sa-tip { vertical-align: middle; }

/* "Who can see this page" banner on financial and sensitive pages (atlascmAccessBanner(), fx-atlascm-permissions.php;
   York, 2026-11-17). The same look as Practice Health's own (.ph-access). Not scoped to .bsfa-theme: the Reports hub
   embeds pages without that wrapper. */
.acm-access {
	display: flex; align-items: flex-start; gap: .55rem;
	margin: 0 0 1rem; padding: .7rem .9rem;
	background: rgba(21, 101, 192, .07);
	border: 1px solid var(--bsfa-border, #E4EAF2); border-left: 3px solid var(--bsfa-blue, #1565C0); border-radius: 10px;
	color: var(--bsfa-navy-text, #0F1E35); font-size: .85rem; line-height: 1.45;
}
.acm-access > i { color: var(--bsfa-blue, #1565C0); font-size: 1rem; margin-top: 1px; flex: 0 0 auto; }
.acm-access strong { font-weight: 600; }
[data-theme-mode="dark"] .acm-access { background: rgba(91, 158, 232, .1); border-color: #303030; border-left-color: #5B9EE8; color: #E8E8E8; }
[data-theme-mode="dark"] .acm-access > i { color: #5B9EE8; }

/* ── 2. AtlasCM-wide (scoped to .bsfa-theme) ───────────────────────────────────────────────────────────────────── */
/* Keyboard focus: every link and custom control shows where focus is. Buttons already have their ring in the BUTTON
   SYSTEM (atlasmps-custom.css), so .btn is left alone; the outline follows each element's own corner radius. */
.bsfa-theme :is(a:not(.btn), summary, [role="button"]:not(.btn), [tabindex]:not([tabindex="-1"]):not(.btn)):focus-visible {
	outline: 2px solid rgba(21, 101, 192, .55); outline-offset: 2px;
}
[data-theme-mode="dark"] .bsfa-theme :is(a:not(.btn), summary, [role="button"]:not(.btn), [tabindex]:not([tabindex="-1"]):not(.btn)):focus-visible {
	outline-color: rgba(91, 158, 232, .7);
}

/* ── 3. Atlas|CM patterns (York, 2026-11-10: "I need more consistency with these tabs / KPI cards etc. ... I like the tabs
   that look like pills like on the provider profiles - make them all uniform ... Tables, column headers, toggles, filters,
   search ... all uniform"). One look per pattern, mapped onto every class Atlas|CM pages already use, so a page keeps its
   markup and scripts; new markup uses the acm-* classes. The rules and what each list covers: docs/ATLASCM-UI-PATTERNS.md.
   A new module class that plays one of these roles joins the matching list here.
   Scope: .bsfa-theme (every Atlas|CM page) and the Email Engine's .ee root on entity 910 (that page has no .bsfa-theme).
   These sit in @layer sa-controls with !important: layered !important beats the modules' unlayered rules and the GLASS UI
   block's underlined tabs (sa-glass), and sa-controls is the layer that wins among the four. ─────────────────────────── */
@layer sa-controls {
	/* Tabs: the provider profile's pill track, one row that scrolls sideways when it runs out of room. */
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-tabs, .nav-tabs, .pvp-tabs, .pi-tabs, .pm-tabs, .sp-tabs, .ee-tabs, .pc-tabs, .ph-tabs) {
		display: inline-flex !important; flex-wrap: nowrap !important; align-items: center !important; gap: .25rem !important;
		width: auto !important; max-width: 100% !important; overflow-x: auto !important; overflow-y: hidden !important; scrollbar-width: none;
		margin: 0 0 1.1rem !important; padding: .25rem !important; list-style: none !important;
		background: var(--bsfa-bg-soft, #F4F8FC) !important; border: 1px solid var(--bsfa-border, #E4EAF2) !important;
		border-radius: 999px !important; box-shadow: none !important;
	}
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-tabs, .nav-tabs, .pvp-tabs, .pi-tabs, .pm-tabs, .sp-tabs, .ee-tabs, .pc-tabs, .ph-tabs)::-webkit-scrollbar { display: none; }
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.nav-tabs, .ee-tabs) > .nav-item { margin: 0 !important; flex: 0 0 auto !important; }
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-tabs > *, .nav-tabs .nav-link, .ee-tabs .nav-link, .pvp-tabs > *, .pi-tabs > *, .pm-tabs > *, .sp-tabs > *, .pc-tabs > *, .ph-tabs > *) {
		display: inline-flex !important; align-items: center !important; justify-content: center; gap: .4rem !important; flex: 0 0 auto !important;
		min-height: 34px; margin: 0 !important; padding: .4rem 1rem !important;
		border: 0 !important; border-radius: 999px !important; background: transparent !important; box-shadow: none !important;
		color: var(--bsfa-text-muted, #5B6B7F) !important; font-size: .86rem !important; font-weight: 600 !important; line-height: 1.25 !important;
		white-space: nowrap !important; text-decoration: none !important; cursor: pointer;
		transition: background-color .15s, color .15s, box-shadow .15s;
	}
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-tabs > *, .nav-tabs .nav-link, .ee-tabs .nav-link, .pvp-tabs > *, .pi-tabs > *, .pm-tabs > *, .sp-tabs > *, .pc-tabs > *, .ph-tabs > *):not(.dropdown-toggle)::after { content: none !important; }
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-tabs > *, .nav-tabs .nav-link, .ee-tabs .nav-link, .pvp-tabs > *, .pi-tabs > *, .pm-tabs > *, .sp-tabs > *, .pc-tabs > *, .ph-tabs > *):hover {
		color: var(--bsfa-navy-text, #0F1E35) !important;
	}
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-tabs > *, .nav-tabs .nav-link, .ee-tabs .nav-link, .pvp-tabs > *, .pi-tabs > *, .pm-tabs > *, .sp-tabs > *, .pc-tabs > *, .ph-tabs > *):is(.active, .is-active, .is-on, [aria-selected="true"], [aria-current="page"]) {
		background: #fff !important; color: var(--bsfa-navy-text, #0F1E35) !important; box-shadow: 0 1px 3px rgba(15, 30, 53, .12) !important;
	}
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-tabs > *, .nav-tabs .nav-link, .ee-tabs .nav-link, .pvp-tabs > *, .pi-tabs > *, .pm-tabs > *, .sp-tabs > *, .pc-tabs > *, .ph-tabs > *):focus-visible {
		outline: 2px solid rgba(21, 101, 192, .45) !important; outline-offset: 1px;
	}
	[data-theme-mode="dark"] :is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-tabs, .nav-tabs, .pvp-tabs, .pi-tabs, .pm-tabs, .sp-tabs, .ee-tabs, .pc-tabs, .ph-tabs) {
		background: #171717 !important; border-color: rgba(255, 255, 255, .12) !important;
	}
	[data-theme-mode="dark"] :is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-tabs > *, .nav-tabs .nav-link, .ee-tabs .nav-link, .pvp-tabs > *, .pi-tabs > *, .pm-tabs > *, .sp-tabs > *, .pc-tabs > *, .ph-tabs > *) { color: #AAB4C0 !important; }
	[data-theme-mode="dark"] :is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-tabs > *, .nav-tabs .nav-link, .ee-tabs .nav-link, .pvp-tabs > *, .pi-tabs > *, .pm-tabs > *, .sp-tabs > *, .pc-tabs > *, .ph-tabs > *):hover { color: #E8E8E8 !important; }
	[data-theme-mode="dark"] :is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-tabs > *, .nav-tabs .nav-link, .ee-tabs .nav-link, .pvp-tabs > *, .pi-tabs > *, .pm-tabs > *, .sp-tabs > *, .pc-tabs > *, .ph-tabs > *):is(.active, .is-active, .is-on, [aria-selected="true"], [aria-current="page"]) {
		background: #2a2a2a !important; color: #E8E8E8 !important; box-shadow: none !important;
	}

	/* A count inside a tab: one small pill, the same in every row. Attention counts (the Help Desk's open tickets, a cart
	   waiting for approval) keep their colour. */
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-tab__n, .ee-count, .sp-tab__n, .pi-tabn, .pc-tabs > * > b) {
		display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.2rem; padding: 0 .4rem !important;
		border-radius: 999px !important; font-size: .72rem !important; font-weight: 700 !important; line-height: 1 !important; font-variant-numeric: tabular-nums;
		background: rgba(15, 30, 53, .07) !important; color: var(--bsfa-text-muted, #5B6B7F) !important; margin: 0 !important;
	}
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-tabs > *, .nav-tabs .nav-link, .ee-tabs .nav-link, .pvp-tabs > *, .pi-tabs > *, .pm-tabs > *, .sp-tabs > *, .pc-tabs > *):is(.active, .is-active, .is-on, [aria-selected="true"], [aria-current="page"])
		:is(.acm-tab__n, .ee-count, .sp-tab__n, .pi-tabn, b) {
		background: rgba(21, 101, 192, .1) !important; color: var(--bsfa-blue, #1565C0) !important;
	}
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.sp-tab__n.is-hot, .ee-count--warn) { background: rgba(242, 170, 60, .2) !important; color: #8A5D12 !important; }
	[data-theme-mode="dark"] :is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-tab__n, .ee-count, .sp-tab__n, .pi-tabn, .pc-tabs > * > b) { background: rgba(255, 255, 255, .1) !important; color: #AAB4C0 !important; }
	[data-theme-mode="dark"] :is(.bsfa-theme, [data-entity="910"] .ee) :is(.sp-tab__n.is-hot, .ee-count--warn) { background: rgba(242, 170, 60, .2) !important; color: #F0C475 !important; }

	/* Search: a 36px pill on the soft fill. Background colour only, so DataTables' magnifier (a background image) stays. */
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-search input, input[type="search"], div.dt-container .dt-search input) {
		height: 36px !important; border-radius: 999px !important; font-size: .86rem !important;
		background-color: var(--bsfa-bg-soft, #F4F8FC) !important; border: 1px solid var(--bsfa-border, #E4EAF2) !important; box-shadow: none !important;
	}
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-search input, input[type="search"], div.dt-container .dt-search input):focus {
		background-color: #fff !important; border-color: color-mix(in srgb, var(--bsfa-blue, #1565C0) 55%, var(--bsfa-border, #E4EAF2)) !important;
		box-shadow: 0 0 0 3px rgba(21, 101, 192, .14) !important; outline: none;
	}
	[data-theme-mode="dark"] :is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-search input, input[type="search"], div.dt-container .dt-search input) {
		background-color: #171717 !important; border-color: rgba(255, 255, 255, .12) !important; color: #E8E8E8 !important;
	}

	/* Filter chips: quick filters with counts; the selected one takes the brand tint. */
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-chip, .pvpt__chip) {
		display: inline-flex !important; align-items: center; gap: .4rem; height: 34px; padding: 0 .85rem !important;
		border: 1px solid var(--bsfa-border, #E4EAF2) !important; border-radius: 999px !important; background: #fff !important; box-shadow: none !important;
		color: var(--bsfa-text-muted, #5B6B7F) !important; font-size: .82rem !important; font-weight: 600 !important; line-height: 1; white-space: nowrap; cursor: pointer;
		text-decoration: none !important;
	}
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-chip, .pvpt__chip):hover { border-color: color-mix(in srgb, var(--bsfa-blue, #1565C0) 35%, var(--bsfa-border, #E4EAF2)) !important; color: var(--bsfa-navy-text, #0F1E35) !important; }
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-chip, .pvpt__chip):is(.is-on, [aria-pressed="true"], [aria-current="true"], [aria-current="page"]) {
		background: color-mix(in srgb, var(--bsfa-blue, #1565C0) 9%, #fff) !important; border-color: color-mix(in srgb, var(--bsfa-blue, #1565C0) 40%, var(--bsfa-border, #E4EAF2)) !important;
		color: var(--bsfa-blue, #1565C0) !important;
	}
	[data-theme-mode="dark"] :is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-chip, .pvpt__chip) { background: #1e1e1e !important; border-color: rgba(255, 255, 255, .14) !important; color: #AAB4C0 !important; }
	[data-theme-mode="dark"] :is(.bsfa-theme, [data-entity="910"] .ee) :is(.acm-chip, .pvpt__chip):is(.is-on, [aria-pressed="true"], [aria-current="true"], [aria-current="page"]) { background: rgba(91, 158, 232, .16) !important; border-color: rgba(91, 158, 232, .45) !important; color: #5B9EE8 !important; }

	/* Tables: the platform table look (the GLASS UI header) on the module tables that list things. Calendars, the Payer
	   Contracting grid and Practice Health's form table are layouts, not lists, and keep their own. */
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.pvp-table, .pi-table, .pm-table, .ci-table, .acd-table, .acd-rows__table, .hm-table, .ld-table, .pd-table, .pgl__table, .sp-table) > thead > tr > th {
		background-color: var(--ui-card, #fff) !important; color: var(--ui-label-2, #5B544E) !important;
		font-size: .78rem !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important;
		border-top: 0 !important; border-bottom: 1px solid var(--ui-sep-strong, rgba(28, 25, 23, .12)) !important;
	}
	:is(.bsfa-theme, [data-entity="910"] .ee) :is(.pvp-table, .pi-table, .pm-table, .ci-table, .acd-table, .acd-rows__table, .hm-table, .ld-table, .pd-table, .pgl__table, .sp-table) > tbody > tr > td {
		border-bottom-color: var(--ui-sep, rgba(28, 25, 23, .08)) !important;
	}

	/* Page actions: one size (36px) in the header and in a hub tab's actions row. */
	.bsfa-theme :is(.bsfa-page-header__actions, .bsfa-fragment-actions) { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; }
	.bsfa-theme :is(.bsfa-page-header__actions, .bsfa-fragment-actions, .acm-toolbar__actions) > .btn,
	.bsfa-theme :is(.bsfa-page-header__actions, .bsfa-fragment-actions, .acm-toolbar__actions) > .btn-group > .btn {
		min-height: 36px !important; padding: .4rem 1rem !important; font-size: .86rem !important; line-height: 1.25 !important;
		display: inline-flex !important; align-items: center; gap: .4rem; white-space: nowrap;
	}
}

/* Toolbar: search on the left, filters, then the record count and the list's actions on the right. One row that wraps. */
.acm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem; margin: 0 0 .9rem; }
.acm-search { position: relative; flex: 1 1 240px; max-width: 360px; margin: 0; }
.acm-search > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--bsfa-text-faint, #8896A6); pointer-events: none; font-size: .9rem; }
.acm-search > input { width: 100%; padding: 0 .9rem 0 2.2rem !important; color: var(--bsfa-navy-text, #0F1E35); }
.acm-select.form-select { width: auto; min-width: 150px; max-width: 100%; height: 36px; border-radius: 999px; font-size: .86rem; padding-top: 0; padding-bottom: 0; }
.acm-select.form-control { width: auto; max-width: 100%; height: 36px; font-size: .86rem; padding-top: 0; padding-bottom: 0; }   /* the toolbar's From / To dates */
.acm-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.acm-chip__n { color: var(--bsfa-text-faint, #8896A6); font-variant-numeric: tabular-nums; }
.acm-chip.is-on .acm-chip__n, .acm-chip[aria-pressed="true"] .acm-chip__n { color: inherit; }
.acm-toolbar .form-switch { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding-left: 0; min-height: 36px; }
.acm-toolbar .form-switch .form-check-input { float: none; margin: 0; }
.acm-toolbar .form-switch .form-check-label { font-size: .84rem; font-weight: 600; color: var(--bsfa-text-muted, #5B6B7F); }
.acm-toolbar__meta { font-size: .82rem; color: var(--bsfa-text-muted, #5B6B7F); font-variant-numeric: tabular-nums; white-space: nowrap; }
.acm-toolbar__actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.acm-toolbar__meta + .acm-toolbar__actions { margin-left: .25rem; }
.acm-toolbar > .acm-toolbar__meta:has(+ .acm-toolbar__actions) { margin-left: auto; }

/* Location multi-select (assets/js/atlascm-loc-picker.js): the Schedule's grouped location menu, for any form or list. */
.acm-ms { position: relative; }
.acm-ms__btn { display: block; width: 100%; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; color: var(--bsfa-text-muted, #5B6B7F); }
.acm-ms__btn.is-set { color: var(--bsfa-navy-text, #0F1E35); }
.acm-ms__menu { min-width: 290px; max-height: 340px; overflow: auto; padding: .35rem; border-radius: 12px; }
.acm-ms__menu label { display: flex; align-items: center; gap: .6rem; min-height: 40px; margin: 0; padding: .2rem .5rem; border-radius: 8px; font-size: .86rem; color: var(--bsfa-navy-text, #0F1E35); cursor: pointer; }
.acm-ms__menu label:hover { background: var(--bsfa-bg-soft, #F4F8FC); }
.acm-ms__menu input { flex: none; width: 1.05rem; height: 1.05rem; margin: 0; }
.acm-ms__group + .acm-ms__group { margin-top: .15rem; padding-top: .15rem; border-top: 1px solid var(--bsfa-border, #E4EAF2); }
.acm-ms__head { font-weight: 700; }
.acm-ms__n { margin-left: auto; padding: 0 .45rem; border-radius: 999px; background: rgba(136, 150, 166, .14); color: var(--bsfa-text-faint, #8896A6); font-size: .7rem; font-weight: 600; }
.acm-ms__item { padding-left: 1.6rem !important; }
.acm-ms__menu > .acm-ms__item { padding-left: .5rem !important; }
.acm-ms__empty { padding: .5rem; font-size: .84rem; color: var(--bsfa-text-muted, #5B6B7F); }
@media (max-width: 575.98px) { .acm-ms__menu { min-width: 0; width: calc(100vw - 2.5rem); } .acm-ms__menu label { min-height: 44px; } }
[data-theme-mode="dark"] .acm-ms__btn.is-set, [data-theme-mode="dark"] .acm-ms__menu label { color: #E8E8E8; }
[data-theme-mode="dark"] .acm-ms__menu label:hover { background: rgba(255, 255, 255, .06); }
[data-theme-mode="dark"] .acm-ms__group + .acm-ms__group { border-top-color: rgba(255, 255, 255, .12); }

/* A summary line where a page used to have KPI cards: the number, then what it counts. */
.acm-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.6rem; margin: 0 0 .9rem; }
.acm-facts > div { display: flex; align-items: baseline; gap: .4rem; }
.acm-facts dt { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--bsfa-navy-text, #0F1E35); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.acm-facts dd { margin: 0; font-size: .84rem; color: var(--bsfa-text-muted, #5B6B7F); }
.acm-facts > div.is-warn dt { color: #9A5B00; }
[data-theme-mode="dark"] .acm-search > input, [data-theme-mode="dark"] .acm-facts dt { color: #E8E8E8; }
[data-theme-mode="dark"] .acm-toolbar__meta, [data-theme-mode="dark"] .acm-facts dd, [data-theme-mode="dark"] .acm-toolbar .form-switch .form-check-label { color: #AAB4C0; }
[data-theme-mode="dark"] .acm-facts > div.is-warn dt { color: #F0C475; }

/* Reports > High Level Summary: the practice in plain English (York, 2026-11-11: "stats in english vs. endless visual
   graphs", "display only. Nice KPI's", then "two large blocks +Ahead or -Behind ... the cards sorted ... a nice stat card in
   each section ... tooltips or color coded"). First two blocks, Ahead and Behind: the biggest item as a sentence, the rest
   as rows, biggest first. Then each section: one featured card with a picture of its comparison (bars, a goal meter, or
   today's visits split), the rest sorted from most ahead to most behind. A card is the number, what it is under it (never
   a label above a number) and one line saying how it compares. Colored by tone: good green, bad red, warn amber, calm
   neutral with a blue icon; the chip carries an arrow or icon too, so the tone never rests on color alone. Display only:
   a card or row shows the numbers behind it on hover, keyboard focus or a tap ([data-tip]), and is never a link. */
.acm-say {
	--say-card: #FFFFFF; --say-ink: var(--bsfa-navy-text, #0F1E35); --say-muted: var(--bsfa-text-muted, #5B6B7F);
	--say-line: var(--ui-sep, rgba(28, 25, 23, .08)); --say-track: rgba(15, 30, 53, .07);
	container: say / inline-size; display: flex; flex-direction: column; gap: 2rem;
}
.acm-say [data-tone] { --tone: var(--ui-blue, #1D5FB8); --tone-tint: var(--ui-blue-tint, rgba(29, 110, 220, .11)); }
.acm-say [data-tone="good"] { --tone: var(--ui-green, #1E7B45); --tone-tint: var(--ui-green-tint, rgba(36, 160, 84, .12)); }
.acm-say [data-tone="bad"] { --tone: var(--ui-red, #BF3328); --tone-tint: var(--ui-red-tint, rgba(220, 60, 48, .11)); }
.acm-say [data-tone="warn"] { --tone: var(--ui-amber, #9A5600); --tone-tint: var(--ui-amber-tint, rgba(232, 146, 12, .15)); }

/* The two blocks */
.acm-say__sides { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@container say (min-width: 760px) { .acm-say__sides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acm-say__side {
	--side: var(--ui-green, #1E7B45);
	container: say-side / inline-size; display: flex; flex-direction: column; min-width: 0;
	padding: 1.3rem 1.5rem 1.05rem; border-radius: var(--sa-radius, 8px);
	background: color-mix(in srgb, var(--side) 6%, var(--say-card)); border: 1px solid color-mix(in srgb, var(--side) 24%, transparent);
}
.acm-say__side[data-side="behind"] { --side: var(--ui-red, #BF3328); }
.acm-say__side.is-empty[data-side="behind"] { --side: var(--ui-green, #1E7B45); }
.acm-say__side.is-empty[data-side="ahead"] { --side: var(--bsfa-text-muted, #5B6B7F); }
.acm-say .acm-say__side-title { display: flex; align-items: center; gap: .6rem; margin: 0 0 .9rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; color: var(--side); }
.acm-say__side-icon { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--side); color: #FFFFFF; font-size: .74rem; }
.acm-say__lead { display: flex; align-items: center; gap: 1.1rem; padding: 0 0 1.05rem; }
.acm-say__lead-fig { flex: none; font-size: clamp(2rem, 3.6cqi, 2.6rem); font-weight: 750; line-height: 1; letter-spacing: -.035em; color: var(--tone); font-variant-numeric: tabular-nums; }
.acm-say .acm-say__lead-say { margin: 0; min-width: 0; font-size: .95rem; line-height: 1.45; color: var(--say-ink); text-wrap: pretty; }
.acm-say__lead-say b { font-weight: 700; color: var(--tone); }
.acm-say__rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid color-mix(in srgb, var(--side) 20%, transparent); }
.acm-say__row { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr) auto; align-items: baseline; gap: .15rem .9rem; padding: .5rem 0; }
.acm-say__row + .acm-say__row { border-top: 1px solid color-mix(in srgb, var(--side) 13%, transparent); }
/* A dotted underline on hover or focus: the usual sign that a tooltip is there, never a link's underline. */
.acm-say__row:is(:hover, :focus-visible) .acm-say__what, .acm-say__lead:is(:hover, :focus-visible) .acm-say__lead-say b {
	text-decoration: underline dotted color-mix(in srgb, currentColor 55%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.acm-say__fig { font-size: .95rem; font-weight: 700; color: var(--tone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.acm-say__what { min-width: 0; font-size: .85rem; font-weight: 600; color: var(--say-ink); overflow-wrap: anywhere; }
.acm-say__row-note { font-size: .8rem; color: var(--say-muted); text-align: right; }
@container say-side (max-width: 460px) {
	.acm-say__row { grid-template-columns: 4.25rem minmax(0, 1fr); }
	.acm-say__row-note { grid-column: 2; text-align: left; }
	.acm-say__lead { align-items: flex-start; flex-direction: column; gap: .5rem; }
}
.acm-say .acm-say__also { margin: .5rem 0 0; font-size: .8rem; color: var(--say-muted); }
.acm-say .acm-say__none { margin: 0 0 .25rem; font-size: .95rem; color: var(--say-ink); }

/* The sections: the featured card beside the rest, which sit in at most --cols columns (a 2 by 2 for four cards) */
.acm-say__sec { min-width: 0; }
.acm-say .acm-say__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: 0 0 .7rem; font-size: .98rem; font-weight: 650; letter-spacing: -.005em; color: var(--say-ink); }
.acm-say__note { font-size: .82rem; font-weight: 500; letter-spacing: 0; color: var(--say-muted); }
.acm-say__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
@container say (min-width: 880px) {
	.acm-say__body.has-feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.acm-say__body.has-feature:has(> .acm-say__grid[data-n="1"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.acm-say__grid {
	--cols: 3;
	display: grid; gap: .75rem; align-content: stretch;
	grid-template-columns: repeat(auto-fit, minmax(max(180px, calc((100% - (var(--cols) - 1) * .75rem) / var(--cols))), 1fr));
}
.acm-say__grid[data-n="1"] { --cols: 1; }
.acm-say__grid[data-n="2"], .acm-say__grid[data-n="4"] { --cols: 2; }
@container say (min-width: 1500px) { .acm-say__body:not(.has-feature) > .acm-say__grid { --cols: 4; } }

.acm-say__kpi {
	display: flex; flex-direction: column; min-width: 0; padding: 1rem 1.1rem 1.05rem;
	background: var(--say-card); border: 1px solid var(--say-line); border-radius: var(--sa-radius, 8px);
	box-shadow: 0 1px 2px rgba(15, 30, 53, .04); transition: border-color .15s, box-shadow .15s;
}
.acm-say__kpi:not([data-tone="calm"]) { background: color-mix(in srgb, var(--tone) 4%, var(--say-card)); border-color: color-mix(in srgb, var(--tone) 26%, transparent); }
.acm-say__kpi[data-tip]:hover { border-color: color-mix(in srgb, var(--tone) 50%, transparent); box-shadow: 0 6px 18px rgba(15, 30, 53, .08); }
.acm-say__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.acm-say__value { min-width: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--say-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.acm-say__icon { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tone-tint); color: var(--tone); font-size: .85rem; }
.acm-say__chip { flex: none; display: inline-flex; align-items: center; gap: .3rem; margin-top: .2rem; padding: .2rem .6rem; border-radius: 999px; background: var(--tone-tint); color: var(--tone); font-size: .74rem; font-weight: 700; line-height: 1.35; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acm-say__chip .lni { font-size: .7rem; }
.acm-say__kpi[data-tone="calm"] .acm-say__chip { background: var(--say-track); color: var(--say-muted); }
.acm-say__label { margin-top: .25rem; font-size: .84rem; font-weight: 600; color: var(--say-ink); overflow-wrap: anywhere; }
.acm-say .acm-say__line { margin: .25rem 0 0; font-size: .8rem; line-height: 1.45; color: var(--say-muted); text-wrap: pretty; }
.acm-say__line b { font-weight: 650; color: var(--say-ink); }
.acm-say__kpi:not([data-tone="calm"]) .acm-say__line b { color: var(--tone); }
.acm-say .acm-say__line:has(+ .acm-say__bars, + .acm-say__meter, + .acm-say__split) { margin-bottom: 1.1rem; }

/* The featured card and its picture */
.acm-say__kpi.is-feature { padding: 1.25rem 1.4rem 1.3rem; }
.acm-say__kpi.is-feature .acm-say__value { font-size: clamp(1.9rem, 2.9cqi, 2.5rem); letter-spacing: -.03em; line-height: 1.05; }
.acm-say__kpi.is-feature .acm-say__label { font-size: .88rem; }
.acm-say .is-feature .acm-say__line { font-size: .88rem; max-width: 52ch; }
.acm-say__bars { display: grid; gap: .7rem; margin-top: auto; }
.acm-say__bar { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; font-size: .78rem; color: var(--say-muted); font-variant-numeric: tabular-nums; }
.acm-say__bar.is-now { font-weight: 650; color: var(--say-ink); }
.acm-say__bar-track { height: 12px; border-radius: 999px; background: var(--say-track); overflow: hidden; }
.acm-say__bar-fill { display: block; width: var(--w); height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--say-muted) 42%, transparent); }
.acm-say__bar.is-now .acm-say__bar-fill { background: var(--tone); }
.acm-say__bar-value { min-width: 4.5rem; text-align: right; }
.acm-say__meter { position: relative; height: 6px; margin-top: auto; border-radius: 999px; background: var(--say-track); }
.acm-say__meter.is-big { height: 10px; margin-bottom: 1.15rem; }
.acm-say__meter-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--tone); }
.acm-say__meter-goal { position: absolute; top: -4px; bottom: -4px; left: var(--at); width: 2px; margin-left: -1px; border-radius: 1px; background: var(--say-ink); opacity: .5; }
.acm-say__meter-goal > span { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 600; color: var(--say-muted); white-space: nowrap; }
.acm-say__split { display: flex; gap: 2px; height: 10px; margin-top: auto; border-radius: 999px; overflow: hidden; background: var(--say-track); }
.acm-say__split > span { flex: none; width: var(--w); min-width: 3px; }
.acm-say [data-k="seen"] { --k: var(--ui-green, #1E7B45); }
.acm-say [data-k="in"] { --k: var(--ui-blue, #1D5FB8); }
.acm-say [data-k="to"] { --k: color-mix(in srgb, var(--say-muted) 40%, transparent); }
.acm-say [data-k="ns"] { --k: var(--ui-red, #BF3328); }
.acm-say__split > span { background: var(--k); }
.acm-say__legend { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: .7rem 0 0; padding: 0; list-style: none; font-size: .78rem; color: var(--say-muted); }
.acm-say__legend li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .4rem; border-radius: 50%; background: var(--k); vertical-align: .05em; }
.acm-say__legend b { font-weight: 700; color: var(--say-ink); font-variant-numeric: tabular-nums; }
/* The one moment: the bars, meters and split draw in from the left as the tab opens. */
@keyframes acm-say-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.acm-say__bar-fill, .acm-say__meter-fill, .acm-say__split { animation: acm-say-draw .9s cubic-bezier(.16, 1, .3, 1) .1s both; }
@media (prefers-reduced-motion: reduce) { .acm-say__bar-fill, .acm-say__meter-fill, .acm-say__split { animation: none; } .acm-say__kpi, .acm-say__row { transition: none; } }

.acm-say__foot { margin: 1.25rem 0 0; font-size: .8rem; color: var(--bsfa-text-muted, #5B6B7F); }
.acm-say__empty { padding: 2rem 0; font-size: .92rem; color: var(--bsfa-text-muted, #5B6B7F); }
[data-theme-mode="dark"] .acm-say { --say-card: #202020; --say-ink: #E8E8E8; --say-muted: #AAB4C0; --say-line: #303030; --say-track: rgba(255, 255, 255, .09); }
[data-theme-mode="dark"] .acm-say__kpi { box-shadow: none; }
[data-theme-mode="dark"] .acm-say__kpi[data-tip]:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
[data-theme-mode="dark"] .acm-say__side-icon { color: #141414; }
[data-theme-mode="dark"] .acm-say__foot, [data-theme-mode="dark"] .acm-say__empty { color: #AAB4C0; }
@media (max-width: 575.98px) {
	.acm-search { flex-basis: 100%; max-width: none; }
	.acm-toolbar__actions { margin-left: 0; width: 100%; }
	.acm-toolbar__actions > .btn { flex: 1 1 auto; justify-content: center; }
}

/* Reports > Overview (York, 2026-11-18: "Think of a clinic owner, what would you want to see ... Redesign and repurpose
   this page"; atlascmReportOverviewHtml(), fx-atlascm-report-overview.php). Fewer, bigger, clearer: a line at the top
   that says whether the practice is on track and names what needs the owner, then six questions on the canvas, each a
   heading, a sentence or two with one bold part, two to four number cards, at most one small chart, and a link to the
   tab that goes deeper. Only the numbers are cards. A number says what it is UNDER it and shows what it counts on hover,
   keyboard focus or a tap ([data-tip]); it is never a link. Tones as .acm-say, but behind is Big Sky's blue, never
   orange (York, 2026-11-18: "use the brand colors not this orange"); red is for real problems only. Charts use Big Sky's
   blue pair, validated with the dataviz validator in each mode (light #1565C0 / #5B9EE8, dark #4B95E5 / #145EC1; the
   paler one is under 3:1, so every bar carries its figure and the legend names both). Every Reports tab uses these
   pieces: the lead, the number cards, the questions and .acm-detail for what sits one step deeper. */
.acm-ov {
	--ov-card: #FFFFFF; --ov-ink: var(--bsfa-navy-text, #0F1E35); --ov-muted: var(--bsfa-text-muted, #5B6B7F);
	--ov-line: var(--ui-sep, rgba(28, 25, 23, .08)); --ov-track: rgba(15, 30, 53, .06);
	--ov-billed: #1565C0; --ov-collected: #5B9EE8; --ov-behind: #1565C0; --ov-behind-tint: rgba(21, 101, 192, .1);
	container: ov / inline-size; display: flex; flex-direction: column;
}
[data-theme-mode="dark"] .acm-ov { --ov-card: #202020; --ov-ink: #E8E8E8; --ov-muted: #AAB4C0; --ov-line: #303030; --ov-track: rgba(255, 255, 255, .07); --ov-billed: #4B95E5; --ov-collected: #145EC1; --ov-behind: #8EBBF0; --ov-behind-tint: rgba(91, 158, 232, .16); }
.acm-ov [data-tone] { --tone: var(--ui-blue, #1D5FB8); --tone-tint: var(--ui-blue-tint, rgba(29, 110, 220, .11)); }
.acm-ov [data-tone="good"] { --tone: var(--ui-green, #1E7B45); --tone-tint: var(--ui-green-tint, rgba(36, 160, 84, .12)); }
.acm-ov [data-tone="bad"] { --tone: var(--ui-red, #BF3328); --tone-tint: var(--ui-red-tint, rgba(220, 60, 48, .11)); }
.acm-ov [data-tone="warn"] { --tone: var(--ov-behind); --tone-tint: var(--ov-behind-tint); }
.acm-ov [data-tone="calm"] { --tone: var(--ov-muted); --tone-tint: var(--ov-track); }

/* The line at the top: on track or not, and what needs you */
.acm-ov__lead { padding: .15rem 0 .15rem 1.1rem; margin-bottom: 2rem; border-left: 3px solid var(--tone); }
.acm-ov .acm-ov__verdict { margin: 0; max-width: 70ch; font-size: clamp(1.1rem, 2.3cqi, 1.45rem); font-weight: 300; line-height: 1.4; letter-spacing: -.012em; color: var(--ov-ink); text-wrap: pretty; }
.acm-ov__verdict b { font-weight: 600; color: var(--tone); }
.acm-ov .acm-ov__week { margin: .5rem 0 0; font-size: .95rem; line-height: 1.5; color: var(--ov-muted); }
.acm-ov .acm-ov__week a { font-weight: 600; color: var(--bsfa-blue, #1565C0); }

/* The six questions (the heading's size is !important: mobile.css sets every h2 to 1rem !important on phones) */
.acm-ov__sec { min-width: 0; padding: 2rem 0; border-top: 1px solid var(--ov-line); scroll-margin-top: calc(var(--sa-topbar-h, 64px) + 16px); }
.acm-ov .acm-ov__q { margin: 0 0 .45rem; font-size: clamp(1.3rem, 2.6cqi, 1.65rem) !important; font-weight: 300; line-height: 1.2; letter-spacing: -.016em; color: var(--ov-ink); }
.acm-ov .acm-ov__say { margin: 0 0 1.15rem; max-width: 74ch; font-size: 1rem; line-height: 1.55; color: var(--ov-ink); text-wrap: pretty; }
.acm-ov__say b { font-weight: 650; }

/* The numbers: two columns on a phone, one row of up to four from 640px */
.acm-ov__nums { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container ov (min-width: 640px) { .acm-ov__nums { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } }
.acm-ov__nums[data-n="1"] { --n: 1; } .acm-ov__nums[data-n="2"] { --n: 2; } .acm-ov__nums[data-n="3"] { --n: 3; }
.acm-ov__num {
	display: flex; flex-direction: column; min-width: 0; padding: 1rem 1.1rem 1.05rem;
	background: var(--ov-card); border: 1px solid var(--ov-line); border-radius: var(--sa-radius, 8px);
	box-shadow: 0 1px 2px rgba(15, 30, 53, .04); transition: border-color .15s, box-shadow .15s;
}
.acm-ov__num:not([data-tone="calm"]) { border-color: color-mix(in srgb, var(--tone) 30%, transparent); }
.acm-ov__num[data-tip]:hover { box-shadow: 0 6px 18px rgba(15, 30, 53, .08); }
.acm-ov__num-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .5rem; }
.acm-ov__fig { min-width: 0; font-size: clamp(1.55rem, 3.4cqi, 2.2rem); font-weight: 600; line-height: 1.08; letter-spacing: -.028em; color: var(--ov-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.acm-ov__chip { flex: none; display: inline-flex; align-items: center; gap: .25rem; padding: .18rem .55rem; border-radius: 999px; background: var(--tone-tint); color: var(--tone); font-size: .74rem; font-weight: 700; line-height: 1.35; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acm-ov__chip .lni { font-size: .68rem; }
.acm-ov__what { margin-top: .4rem; font-size: .88rem; font-weight: 600; color: var(--ov-ink); }
.acm-ov__vs { margin-top: .15rem; font-size: .82rem; line-height: 1.4; color: var(--ov-muted); }
.acm-ov__num:not([data-tone="calm"]) .acm-ov__vs { color: var(--tone); font-weight: 600; }
.acm-ov__pace { margin-top: auto; padding-top: .6rem; font-size: .82rem; color: var(--ov-muted); }

/* The one chart: the months of the year side by side. A row per month on a phone (each figure with a thin bar under it),
   a column per month from 900px (the bars standing, their figures on top). A month whose close isn't entered is a dashed
   bar named in the legend, never a zero. */
.acm-ov__chart { --bars: 2; margin: 1.4rem 0 0; }
.acm-ov__chart[data-kind="visits"] { --bars: 1; }
.acm-ov__legend { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0 0 .6rem; font-size: .8rem; color: var(--ov-muted); }
.acm-ov__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: .4rem; border-radius: 3px; background: var(--k); vertical-align: -.05em; }
.acm-ov__legend span.is-open::before { background: transparent; box-shadow: inset 0 0 0 1px var(--k); }
.acm-ov [data-k="billed"], .acm-ov [data-k="enc"] { --k: var(--ov-billed); }
.acm-ov [data-k="collected"] { --k: var(--ov-collected); }
.acm-ov__months { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.acm-ov__mo { display: grid; grid-template-columns: 2.6rem repeat(var(--bars), minmax(0, 1fr)); align-items: center; gap: .3rem .9rem; padding: .35rem .4rem; border-radius: 6px; }
.acm-ov__mo:is(:hover, :focus-visible) { background: var(--ov-track); }
.acm-ov__mo-name { font-size: .8rem; font-weight: 600; line-height: 1.2; color: var(--ov-muted); }
.acm-ov__mo-name .acm-ov__sub { display: block; font-size: .74rem; font-weight: 500; }
.acm-ov__bar { display: grid; gap: 3px; min-width: 0; }
.acm-ov__bar-v { font-size: .8rem; line-height: 1.2; color: var(--ov-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.acm-ov__bar-fill { display: block; width: var(--w); min-width: 2px; height: 6px; border-radius: 999px; background: var(--k); animation: acm-say-draw .9s cubic-bezier(.16, 1, .3, 1) .1s both; }
.acm-ov__bar.is-open .acm-ov__bar-v { color: var(--ov-muted); }
.acm-ov__bar.is-open .acm-ov__bar-fill { background: transparent; border: 1px dashed color-mix(in srgb, var(--k) 65%, transparent); animation: none; }
@keyframes acm-ov-rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@container ov (min-width: 900px) {
	.acm-ov__months { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .4rem; }
	.acm-ov__mo { grid-template-columns: repeat(var(--bars), minmax(0, 1fr)); grid-template-rows: 1.25rem 9rem auto; align-items: end; gap: .35rem 4px; padding: .4rem .35rem .45rem; }
	.acm-ov__mo-name { grid-row: 3; grid-column: 1 / -1; text-align: center; }
	.acm-ov__bar { grid-row: 2; position: relative; display: block; height: 100%; }
	.acm-ov__bar-fill { position: absolute; inset: auto 0 0 0; width: auto; height: var(--w); min-height: 2px; border-radius: 4px 4px 0 0; animation-name: acm-ov-rise; }
	.acm-ov__bar-v { position: absolute; bottom: calc(var(--w) + 4px); left: 50%; transform: translateX(-50%); font-size: .7rem; }
	.acm-ov__bar.is-open .acm-ov__bar-v { display: none; }
	.acm-ov__bar.is-open .acm-ov__bar-fill { border-radius: 4px; }
}

/* Each doctor: one compact row */
.acm-ov__docs { --cols: 1; border-top: 1px solid var(--ov-line); }
.acm-ov__docs.has-money { --cols: 3; }
.acm-ov__docs ul { margin: 0; padding: 0; list-style: none; }
.acm-ov__docs-head, .acm-ov__doc { display: grid; grid-template-columns: minmax(9rem, 1.4fr) repeat(var(--cols), minmax(0, 1fr)); gap: .4rem 1rem; align-items: baseline; }
.acm-ov__docs:not(.has-money) :is(.acm-ov__docs-head, .acm-ov__doc) { grid-template-columns: minmax(9rem, 20rem) minmax(0, 1fr); }
.acm-ov__docs-head { padding: .6rem .4rem; font-size: .76rem; font-weight: 600; color: var(--ov-muted); border-bottom: 1px solid var(--ov-line); }
.acm-ov__doc { padding: .75rem .4rem; border-bottom: 1px solid var(--ov-line); border-radius: 4px; }
.acm-ov__doc:is(:hover, :focus-visible) { background: var(--ov-track); }
.acm-ov__doc-name { min-width: 0; font-weight: 600; color: var(--ov-ink); overflow-wrap: anywhere; }
.acm-ov__doc-cell { min-width: 0; font-size: .85rem; color: var(--ov-muted); }
.acm-ov__doc-cell b { margin-right: .25rem; font-size: 1.08rem; font-weight: 650; color: var(--ov-ink); font-variant-numeric: tabular-nums; }
.acm-ov__doc-cell .acm-ov__sub { display: block; margin-top: .1rem; font-size: .78rem; color: var(--ov-muted); }
.acm-ov__doc-cell .acm-ov__chip + .acm-ov__sub { display: inline; margin-left: .4rem; }
@container ov (max-width: 600px) {
	.acm-ov__docs-head { display: none; }
	.acm-ov__doc { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
	.acm-ov__doc-name { grid-column: 1 / -1; }
	.acm-ov__doc-cell .acm-ov__chip + .acm-ov__sub { display: block; margin: .25rem 0 0; }
}

/* Where it's leaking, and what needs you: a sentence each, with where to act */
.acm-ov__rows { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.acm-ov__row {
	display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; align-items: center; gap: .5rem 1.1rem; padding: .85rem 1.1rem;
	background: var(--ov-card); border: 1px solid var(--ov-line); border-left: 3px solid var(--tone); border-radius: var(--sa-radius, 8px);
}
.acm-ov__rows.is-needs .acm-ov__row { grid-template-columns: 1.75rem minmax(0, 1fr) auto; }
.acm-ov__row-fig { min-width: 0; padding: .1rem 0; font-size: 1.35rem; font-weight: 650; line-height: 1.1; letter-spacing: -.02em; color: var(--tone); font-variant-numeric: tabular-nums; }
.acm-ov__row-fig .acm-ov__sub { display: block; margin-top: .2rem; font-size: .75rem; font-weight: 600; letter-spacing: 0; line-height: 1.25; color: var(--ov-muted); }
.acm-ov__row-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tone-tint); color: var(--tone); font-size: .8rem; font-weight: 700; }
.acm-ov .acm-ov__row-say { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ov-ink); text-wrap: pretty; }
.acm-ov__row-say b { font-weight: 650; color: var(--tone); }
.acm-ov .acm-ov__row-act { display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; font-size: .86rem; font-weight: 600; white-space: nowrap; color: var(--bsfa-blue, #1565C0); text-decoration: none; }
@container ov (max-width: 640px) {
	.acm-ov__row { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
	.acm-ov__rows.is-needs .acm-ov__row { grid-template-columns: 1.75rem minmax(0, 1fr); }
	.acm-ov__rows.is-needs .acm-ov__row-act { grid-column: 2; }
	.acm-ov__row-fig .acm-ov__sub { display: inline; margin: 0 0 0 .4rem; }
}

/* The link to the tab that goes deeper, the note when ModMed is away, the sources */
.acm-ov .acm-ov__more { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; margin-top: 1rem; font-size: .9rem; font-weight: 600; color: var(--bsfa-blue, #1565C0); text-decoration: none; }
.acm-ov :is(.acm-ov__more, .acm-ov__row-act):hover { text-decoration: underline; text-underline-offset: 3px; }
.acm-ov .acm-ov__note { margin: 0 0 1.5rem; padding: .75rem 1rem; border-radius: var(--sa-radius, 8px); background: var(--ov-behind-tint); color: var(--ov-ink); font-size: .9rem; }
.acm-ov .acm-ov__foot { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--ov-line); font-size: .8rem; line-height: 1.5; color: var(--ov-muted); }
[data-theme-mode="dark"] .acm-ov .acm-ov__sec a:is(.acm-ov__more, .acm-ov__row-act):not(.btn), [data-theme-mode="dark"] .acm-ov .acm-ov__lead .acm-ov__week a:not(.btn) { color: #5B9EE8; }
[data-theme-mode="dark"] .acm-ov__num { box-shadow: none; }
[data-theme-mode="dark"] .acm-ov__num[data-tip]:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: reduce) { .acm-ov__bar-fill { animation: none; } .acm-ov__num { transition: none; } }

/* The other Reports tabs open the same way as the Overview (2026-11-18, York: "make it cleaner, more branded ... easy to
   consume and beautiful"): the lead and up to four number cards in an .acm-ov block, then the tab's own depth. */
.acm-ov.acm-ov--tab { margin-bottom: 1.75rem; }
.acm-ov--tab .acm-ov__lead { margin-bottom: 1.25rem; }
.acm-ov__nums[data-n="5"] { --n: 5; }
@container ov (max-width: 1099px) { .acm-ov__nums[data-n="5"] { --n: 3; } }
/* One step deeper: a plain disclosure under a card or chart, in Big Sky's blue. */
.acm-detail { margin-top: 1rem; border-top: 1px solid var(--ui-sep, rgba(12, 53, 96, .09)); }
.acm-detail > summary { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding-top: .6rem; list-style: none; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--bsfa-blue, #1565C0); }
.acm-detail > summary::-webkit-details-marker { display: none; }
.acm-detail > summary::after { content: ""; width: .5rem; height: .5rem; margin-left: .1rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15rem) rotate(45deg); transition: transform .15s; }
.acm-detail[open] > summary::after { transform: translateY(.1rem) rotate(-135deg); }
.acm-detail > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.acm-detail > summary:focus-visible { outline: 2px solid var(--bsfa-blue, #1565C0); outline-offset: 2px; border-radius: 4px; }
.acm-detail__body { padding-top: .5rem; }
[data-theme-mode="dark"] .acm-detail { border-top-color: #303030; }
[data-theme-mode="dark"] .acm-detail > summary { color: #5B9EE8; }
/* A lead with nothing to flag is still Big Sky's: its rule and its one bold phrase in the brand blue. */
.acm-ov__lead[data-tone="calm"] { --tone: var(--bsfa-blue, #1565C0); }
[data-theme-mode="dark"] .acm-ov__lead[data-tone="calm"] { --tone: #5B9EE8; }
