/* Console style refresh (admin-console-polish items 14 and 15): the mockups' clean look through Bootstrap 5's own variables.
   Loaded last (after site.less), so it wins over SmartAdmin and the pre-SmartAdmin 5 site.less.
   Off switch: remove the "console-refresh" class from <html> in Views/Home/Index.cshtml.
   Light theme only: under data-theme="dark" nothing here applies, so dark mode looks as before. */

html.console-refresh:not([data-theme="dark"]) {
	--cr-ink: #212529;
	--cr-muted: #6c757d;
	--cr-line: #dee2e6;
	--cr-control-line: #ced4da;
	--cr-control-line-hover: #adb5bd;
	/* Action green, darkened from #6fb33b so white text passes WCAG AA (4.8:1; Ramesh, 2026-11-19) */
	--cr-green: #47801f;
	--cr-green-hover: #3e711b;
	--cr-green-active: #376318;
	--cr-green-rgb: 71, 128, 31;
	--cr-row-hover: rgba(136, 106, 181, 0.05);
	--cr-row-line: #eeeff2;
}

/* ---------- Buttons: one shape; hover, press and focus driven by Bootstrap's variables ---------- */

/* Shape. Icon-only and panel-toolbar buttons keep SmartAdmin's fixed sizes. */
html.console-refresh:not([data-theme="dark"]) .btn:not(.btn-icon):not(.btn-system):not(.btn-panel):not(.btn-link) {
	--bs-btn-padding-x: 0.875rem;
	--bs-btn-padding-y: 0.4375rem;
	--bs-btn-font-weight: 500;
	--bs-btn-border-radius: 5px;
	padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);	/* beats site.less's fixed 8px 12px */
}
/* Same :not() chain as the shape rule, plus one class, so the sizes win over it */
html.console-refresh:not([data-theme="dark"]) .btn.btn-sm:not(.btn-icon):not(.btn-system):not(.btn-panel):not(.btn-link),
html.console-refresh:not([data-theme="dark"]) .btn.btn-xs:not(.btn-icon):not(.btn-system):not(.btn-panel):not(.btn-link) {
	--bs-btn-padding-x: 0.625rem;
	--bs-btn-padding-y: 0.25rem;
	--bs-btn-font-size: 0.8125rem;
	--bs-btn-border-radius: 5px;
}
html.console-refresh:not([data-theme="dark"]) .btn.btn-lg:not(.btn-icon):not(.btn-system):not(.btn-panel):not(.btn-link) {
	--bs-btn-padding-x: 1.125rem;
	--bs-btn-padding-y: 0.5625rem;
}

/* No resting shadows (SmartAdmin gives primary, secondary and danger a colored glow) */
html.console-refresh:not([data-theme="dark"]) .btn {
	--bs-btn-box-shadow: none;
	box-shadow: none;
}

/* Keyboard focus: a visible ring. SmartAdmin removes every button's focus shadow with
   "button:focus:not(.focus-ring) { box-shadow: none !important }" (and site.less adds "box-shadow: none" on green buttons),
   so no console button has shown a focus ring; !important is needed to restore it. Mouse clicks don't trigger :focus-visible. */
html.console-refresh:not([data-theme="dark"]) .btn:focus-visible {
	box-shadow: 0 0 0 0.2rem rgba(var(--bs-btn-focus-shadow-rgb), 0.4) !important;
	outline: 0;
}

/* Primary and success: the action green. site.less sets background-color directly and turns primary blue (#0068b3)
   on hover and focus, so the states are set explicitly here as well as through the variables. */
html.console-refresh:not([data-theme="dark"]) .btn.btn-primary,
html.console-refresh:not([data-theme="dark"]) .btn.btn-success {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--cr-green);
	--bs-btn-border-color: var(--cr-green);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--cr-green-hover);
	--bs-btn-hover-border-color: var(--cr-green-hover);
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: var(--cr-green-active);
	--bs-btn-active-border-color: var(--cr-green-active);
	--bs-btn-focus-shadow-rgb: var(--cr-green-rgb);
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: var(--cr-green);
	--bs-btn-disabled-border-color: var(--cr-green);
	color: var(--bs-btn-color);
	background-color: var(--bs-btn-bg);
	border-color: var(--bs-btn-border-color);
}
html.console-refresh:not([data-theme="dark"]) .btn.btn-primary:focus-visible,
html.console-refresh:not([data-theme="dark"]) .btn.btn-success:focus-visible {
	color: var(--bs-btn-color);
	background-color: var(--bs-btn-bg);
	border-color: var(--bs-btn-border-color);
}
html.console-refresh:not([data-theme="dark"]) .btn.btn-primary:hover,
html.console-refresh:not([data-theme="dark"]) .btn.btn-success:hover {
	color: var(--bs-btn-hover-color);
	background-color: var(--bs-btn-hover-bg);
	border-color: var(--bs-btn-hover-border-color);
}
html.console-refresh:not([data-theme="dark"]) .btn.btn-primary:active,
html.console-refresh:not([data-theme="dark"]) .btn.btn-primary.active,
html.console-refresh:not([data-theme="dark"]) .btn.btn-success:active,
html.console-refresh:not([data-theme="dark"]) .btn.btn-success.active {
	color: var(--bs-btn-active-color);
	background-color: var(--bs-btn-active-bg);
	border-color: var(--bs-btn-active-border-color);
}
html.console-refresh:not([data-theme="dark"]) .btn.btn-primary:disabled,
html.console-refresh:not([data-theme="dark"]) .btn.btn-primary.disabled,
html.console-refresh:not([data-theme="dark"]) .btn.btn-success:disabled,
html.console-refresh:not([data-theme="dark"]) .btn.btn-success.disabled {
	background-color: var(--bs-btn-disabled-bg);
	border-color: var(--bs-btn-disabled-border-color);
}

/* Outline (and the Bootstrap 3 btn-default): white, hairline border, ink text */
html.console-refresh:not([data-theme="dark"]) .btn.btn-outline-secondary,
html.console-refresh:not([data-theme="dark"]) .btn.btn-default,
html.console-refresh:not([data-theme="dark"]) .btn.btn-outline-default {
	--bs-btn-color: var(--cr-ink);
	--bs-btn-bg: #fff;
	--bs-btn-border-color: var(--cr-control-line);
	--bs-btn-hover-color: var(--cr-ink);
	--bs-btn-hover-bg: #f8f9fa;
	--bs-btn-hover-border-color: var(--cr-control-line-hover);
	--bs-btn-active-color: var(--cr-ink);
	--bs-btn-active-bg: #e9ecef;
	--bs-btn-active-border-color: var(--cr-control-line-hover);
	--bs-btn-focus-shadow-rgb: 108, 117, 125;
	--bs-btn-disabled-color: var(--cr-muted);
	--bs-btn-disabled-bg: #fff;
	--bs-btn-disabled-border-color: var(--cr-control-line);
	color: var(--bs-btn-color);
	background: var(--bs-btn-bg);
	border-color: var(--bs-btn-border-color);
}
html.console-refresh:not([data-theme="dark"]) .btn.btn-outline-secondary:hover,
html.console-refresh:not([data-theme="dark"]) .btn.btn-default:hover,
html.console-refresh:not([data-theme="dark"]) .btn.btn-outline-default:hover {
	color: var(--bs-btn-hover-color);
	background: var(--bs-btn-hover-bg);
	border-color: var(--bs-btn-hover-border-color);
}
html.console-refresh:not([data-theme="dark"]) .btn.btn-outline-secondary:active,
html.console-refresh:not([data-theme="dark"]) .btn.btn-default:active,
html.console-refresh:not([data-theme="dark"]) .btn.btn-outline-default:active {
	background: var(--bs-btn-active-bg);
	border-color: var(--bs-btn-active-border-color);
	box-shadow: none;
}

/* ---------- Panels and cards: hairline border, 6px corners, no shadow, quieter header ---------- */

html.console-refresh:not([data-theme="dark"]) .panel {
	box-shadow: none;
	border: 1px solid var(--cr-line);
	border-radius: 6px;
	--border-radius: 6px;
}
html.console-refresh:not([data-theme="dark"]) .panel-hdr {
	box-shadow: none;
	border-bottom: 1px solid var(--cr-line);
}
html.console-refresh:not([data-theme="dark"]) .card {
	--bs-card-border-color: var(--cr-line);
	--bs-card-border-radius: 6px;
	--bs-card-inner-border-radius: 5px;
	box-shadow: none;
}

/* ---------- Sidebar (item 18): the mockups' sizes. SmartAdmin's 17px root made it 20% larger, with 54px group rows ---------- */

/* SmartAdmin sizes the links themselves (".app-sidebar .primary-nav ul li a { font-size: 1rem }", 1.5rem lines in groups) */
html.console-refresh:not([data-theme="dark"]) .primary-nav .nav-menu li a {
	font-size: 14px;
	line-height: 22px;
}
/* Section headings (Customers, Product, Operations, Favorites) */
html.console-refresh:not([data-theme="dark"]) .primary-nav .nav-menu > li.nav-title {
	font-size: 12px;
	color: #9aa0ad;
}
/* Groups: 36px rows, medium weight (were 54px, semibold) */
html.console-refresh:not([data-theme="dark"]) .primary-nav .nav-menu > li > a {
	padding-top: 7px;
	padding-bottom: 7px;
	font-weight: 500;
}
/* Items inside a group: 32px rows (were 46px); the open page in medium weight */
html.console-refresh:not([data-theme="dark"]) .primary-nav .nav-menu li > ul > li > a {
	padding-top: 5px;
	padding-bottom: 5px;
}
html.console-refresh:not([data-theme="dark"]) .primary-nav .nav-menu li > ul > li.active > a {
	font-weight: 500;
}

/* ---------- Grids (item 14): every DataTables grid, whatever its classes ---------- */

html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) {
	--bs-table-striped-bg: transparent;
	--bs-table-hover-bg: transparent;
	--bs-table-border-color: var(--cr-line);
}
/* No zebra rows (Ramesh, 2026-11-19); DataTables 2 draws stripes as an inset shadow */
html.console-refresh:not([data-theme="dark"]) :is(table.table.dataTable, table.table.cr-grid).table-striped > tbody > tr:nth-of-type(2n+1):not(.selected) > * {
	box-shadow: none;
}
/* A faint hover tint on every grid, with or without table-hover */
html.console-refresh:not([data-theme="dark"]) :is(table.table.dataTable, table.table.cr-grid) > tbody > tr:not(.selected):hover > * {
	box-shadow: inset 0 0 0 9999px var(--cr-row-hover);
}
/* ...and only the tint: SmartAdmin also outlines the hovered row in purple on table-hover grids (item 18, Ramesh) */
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) > tbody > tr:hover {
	outline: 0;
}
/* No row backgrounds at all: the Bootstrap 3 compatibility layer stripes odd rows and tints hovered rows on the <tr>
   (item 18; the cells' tint above is the only hover) */
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) > tbody > tr,
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) > tbody > tr:hover {
	background-color: transparent;
}
/* Fainter lines between rows and dark ink, as in the mockups (item 18) */
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) > tbody > tr > * {
	border-bottom-color: var(--cr-row-line);
	color: var(--cr-ink);
}
/* Horizontal lines only: no vertical borders, even on table-bordered grids */
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) > :not(caption) > * > * {
	border-left-width: 0;
	border-right-width: 0;
}
/* No outer box (the DataTables theme draws a 1px border around every grid): row lines only */
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) {
	border-width: 0;
}
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) > thead > tr > th {
	color: var(--cr-muted);
	font-weight: 600;
	border-bottom: 2px solid var(--cr-line);
}
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) td.text-end,
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) td.dt-type-numeric,
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) td.n {
	font-variant-numeric: tabular-nums;
}

/* ---------- Grids, second pass (item 18): denser rows, a quiet header, one framed card. Also plain tables with class "cr-grid" ---------- */

/* Regular weight in every table and tooltip: SmartAdmin sets 300 on .table and .tooltip-inner, which Inter carried
   but Segoe UI Light renders thin and narrow (the console font is Segoe UI since item 18) */
html.console-refresh:not([data-theme="dark"]) .table,
html.console-refresh:not([data-theme="dark"]) .tooltip-inner {
	font-weight: 400;
}
/* Rows about 40px (was 47): 14px text, 8px x 12px cells, 24px icon buttons (was 28). In px: SmartAdmin's root font is 17px */
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) {
	font-size: 14px;
}
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) > :not(caption) > * > * {
	padding: 8px 12px;
}
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) td .btn.btn-icon {
	width: 24px;
	min-width: 24px;
	height: 24px;
	padding: 0;
	font-size: 12px;
	border-radius: 5px;
}
/* Small text buttons in grid cells (Edit, View): the same 24px height */
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) td .btn.btn-sm:not(.btn-icon):not(.btn-system):not(.btn-panel):not(.btn-link),
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) td .btn.btn-xs:not(.btn-icon):not(.btn-system):not(.btn-panel):not(.btn-link) {
	padding: 2px 8px;
	font-size: 12px;
	line-height: 18px;
}
/* Header: small, medium weight, muted; one line */
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) > thead > tr > th {
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}
/* Sort arrows: hidden at rest, faint on hover, clear on the sorted column (DataTables shows both at 12% on every column) */
html.console-refresh:not([data-theme="dark"]) table.dataTable thead > tr > th .dt-column-order::before,
html.console-refresh:not([data-theme="dark"]) table.dataTable thead > tr > th .dt-column-order::after {
	opacity: 0;
}
html.console-refresh:not([data-theme="dark"]) table.dataTable thead > tr > th:hover .dt-column-order::before,
html.console-refresh:not([data-theme="dark"]) table.dataTable thead > tr > th:hover .dt-column-order::after {
	opacity: 0.3;
}
html.console-refresh:not([data-theme="dark"]) table.dataTable thead > tr > th.dt-ordering-asc .dt-column-order::before,
html.console-refresh:not([data-theme="dark"]) table.dataTable thead > tr > th.dt-ordering-desc .dt-column-order::after {
	opacity: 0.7;
}
/* Badges inside grids: a size smaller, so they don't set the row height */
html.console-refresh:not([data-theme="dark"]) :is(table.dataTable, table.cr-grid) .badge {
	font-size: 12px;
	--bs-badge-padding-y: 0.2em;
	--bs-badge-padding-x: 0.5em;
}
/* The table, its "Showing…" line, pager and page size in one bordered card */
html.console-refresh:not([data-theme="dark"]) div.dt-container {
	border: 1px solid var(--cr-line);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}
html.console-refresh:not([data-theme="dark"]) div.dt-container > .row {
	margin: 0;
}
html.console-refresh:not([data-theme="dark"]) div.dt-container > .row > * {
	padding: 0;
}
html.console-refresh:not([data-theme="dark"]) div.dt-container > .row:not(.dt-layout-table) {
	padding: 8px 12px;
	font-size: 13px;
	color: var(--cr-muted);
	align-items: center;
}
html.console-refresh:not([data-theme="dark"]) div.dt-container > .row:not(.dt-layout-table) + .row:not(.dt-layout-table) {
	padding-top: 0;
}
/* DataTables keeps a layout row even when the grid turns its info, paging and page size off: hide rows with nothing in them */
html.console-refresh:not([data-theme="dark"]) div.dt-container > .row:not(.dt-layout-table):not(:has(> :not(:empty))) {
	display: none;
}
html.console-refresh:not([data-theme="dark"]) div.dt-container table.dataTable {
	margin: 0 !important;	/* DataTables sets its own margins with !important */
}
html.console-refresh:not([data-theme="dark"]) div.dt-container table.dataTable > tbody > tr:last-child > * {
	border-bottom-color: var(--cr-line);
}
html.console-refresh:not([data-theme="dark"]) div.dt-container .dt-length select {
	padding-top: 2px;
	padding-bottom: 2px;
	font-size: 13px;
}
/* Plain (non-DataTables) tables opt in to the grid look with class "cr-grid" on the table, and to the card with
   "cr-grid-frame" on its wrapper; other plain tables keep their borders (the holiday calendar needs them) */
html.console-refresh:not([data-theme="dark"]) .cr-grid-frame {
	border: 1px solid var(--cr-line);
	border-radius: 8px;
	background: #fff;
}
html.console-refresh:not([data-theme="dark"]) .cr-grid-frame > table.cr-grid {
	margin-bottom: 0;
}
html.console-refresh:not([data-theme="dark"]) .cr-grid-frame > table.cr-grid > tbody > tr:last-child > * {
	border-bottom-width: 0;
}
/* A compact pager */
html.console-refresh:not([data-theme="dark"]) div.dt-container div.dt-paging .pagination {
	--bs-pagination-padding-x: 0.6rem;
	--bs-pagination-padding-y: 0.2rem;
	--bs-pagination-font-size: 13px;
	gap: 4px;
	margin: 0;
}
html.console-refresh:not([data-theme="dark"]) div.dt-container div.dt-paging .page-link {
	border-radius: 5px !important;
	font-variant-numeric: tabular-nums;
}

/* Paging: the same shape as the buttons */
html.console-refresh:not([data-theme="dark"]) .pagination {
	--bs-pagination-border-color: var(--cr-control-line);
	--bs-pagination-border-radius: 5px;
	--bs-pagination-color: var(--cr-ink);
	--bs-pagination-hover-color: var(--cr-ink);
	--bs-pagination-hover-bg: #f8f9fa;
	--bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
	--bs-pagination-active-color: #fff;
	--bs-pagination-active-bg: var(--cr-green);
	--bs-pagination-active-border-color: var(--cr-green);
}

/* ---------- Badges: soft fills with a hairline border; solid only for danger ---------- */

html.console-refresh:not([data-theme="dark"]) .badge {
	--bs-badge-border-radius: 4px;
	--bs-badge-font-weight: 600;
	--bs-badge-padding-y: 0.3em;
	--bs-badge-padding-x: 0.6em;
	border: 1px solid transparent;
}
html.console-refresh:not([data-theme="dark"]) .badge.bg-primary {
	background-color: var(--bs-primary-bg-subtle) !important;	/* Bootstrap's bg-* utilities are !important */
	color: var(--bs-primary-text-emphasis) !important;
	border-color: var(--bs-primary-border-subtle);
}
/* Success in green, not SmartAdmin's teal, so "Active" reads as good (item 18) */
html.console-refresh:not([data-theme="dark"]) .badge.bg-success {
	background-color: #e6f2df !important;
	color: #2f5a14 !important;
	border-color: #c9e2b8;
}
html.console-refresh:not([data-theme="dark"]) .badge.bg-info {
	background-color: var(--bs-info-bg-subtle) !important;
	color: var(--bs-info-text-emphasis) !important;
	border-color: var(--bs-info-border-subtle);
}
html.console-refresh:not([data-theme="dark"]) .badge.bg-secondary {
	background-color: var(--bs-secondary-bg-subtle) !important;
	color: var(--bs-secondary-text-emphasis) !important;
	border-color: var(--bs-secondary-border-subtle);
}
html.console-refresh:not([data-theme="dark"]) .badge.bg-warning {
	background-color: var(--bs-warning-bg-subtle) !important;
	color: var(--bs-warning-text-emphasis) !important;
	border-color: var(--bs-warning-border-subtle);
}
html.console-refresh:not([data-theme="dark"]) .badge[class*="-subtle"] {
	border-color: var(--cr-line);
}

/* ---------- Inputs and selects: the buttons' shape ---------- */

/* Through the variable, so Bootstrap's input-group rules still square the joined corners */
html.console-refresh:not([data-theme="dark"]) .form-control,
html.console-refresh:not([data-theme="dark"]) .form-select {
	--bs-border-radius: 5px;
}
html.console-refresh:not([data-theme="dark"]) .form-control:not(:focus):not(.is-invalid):not(.is-valid),
html.console-refresh:not([data-theme="dark"]) .form-select:not(:focus):not(.is-invalid):not(.is-valid) {
	border-color: var(--cr-control-line);
}

/* ---------- Info icons and tooltips ---------- */

/* The info icon from the Activity > Customers view (know-our-users Phase 8), available on every page.
   Same values as the rule in customers.html, which stays there for this first pass. */
.tip {
	display: inline-grid;
	place-items: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 1px solid var(--bs-secondary-border-subtle, #adb5bd);
	color: var(--bs-secondary-color, #6c757d);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	cursor: help;
	vertical-align: 1px;
}
html.console-refresh:not([data-theme="dark"]) .tooltip {
	--bs-tooltip-bg: var(--cr-ink);
	--bs-tooltip-opacity: 1;
	--bs-tooltip-font-size: 0.75rem;
	--bs-tooltip-border-radius: 5px;
	--bs-tooltip-max-width: 300px;
}

/* ---------- Find a user (wp-users-and-user-record): the user-lookup component and the Ctrl+K palette ---------- */
/* Layout and the base colors are NOT scoped: the component must position and stay readable in dark mode and with the
   refresh switched off (no console-refresh class). Base colors use Bootstrap's own variables, which follow the theme.
   Only the refresh's look (radius, shadow, type) sits under the refresh scope, like the rest of this file. */
.user-lookup {
	position: relative;
	width: 22rem;
	max-width: 100%;
}
.user-lookup-sm {
	width: 18rem;
}
.user-lookup-lg {
	width: 100%;
}
.user-lookup-menu {
	position: absolute;
	z-index: 1000;	/* Bootstrap's dropdown level */
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 24rem;
	overflow-y: auto;
	padding: 4px 0;
	background: var(--bs-body-bg);
	border: 1px solid var(--bs-border-color);
}
.user-lookup-heading,
.user-lookup-item,
.user-lookup-message {
	padding: 6px 12px;
}
.user-lookup-item {
	cursor: pointer;
}
.user-lookup-item.active {
	background: var(--bs-tertiary-bg);
}
.user-lookup-sep {
	margin: 0 4px;
}
.user-lookup-id {
	margin-left: 8px;
	white-space: nowrap;
}
.user-lookup-match {
	font-weight: 700;
}
.user-palette-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1070;
	background: rgba(0, 0, 0, 0.3);
}
.user-palette {
	position: fixed;
	z-index: 1071;
	top: 12vh;
	left: 50%;
	transform: translateX(-50%);
	width: 40rem;
	max-width: calc(100vw - 2rem);
	padding: 12px;
	background: var(--bs-body-bg);
}
.user-palette .user-lookup-menu {
	position: static;
	margin-top: 8px;
	max-height: 60vh;
	border: 0;
}
.user-palette-hint {
	margin-top: 8px;
	font-size: 0.75rem;
}
/* The refresh's look (light theme only, as the rest of this file) */
html.console-refresh:not([data-theme="dark"]) .user-lookup-menu {
	border-color: var(--cr-line);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
html.console-refresh:not([data-theme="dark"]) .user-lookup-heading {
	padding-top: 4px;
	padding-bottom: 4px;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cr-muted);
}
html.console-refresh:not([data-theme="dark"]) .user-lookup-item.active {
	background: var(--cr-row-hover);
}
html.console-refresh:not([data-theme="dark"]) .user-lookup-name {
	font-weight: 500;
	color: var(--cr-ink);
}
html.console-refresh:not([data-theme="dark"]) .user-lookup-meta,
html.console-refresh:not([data-theme="dark"]) .user-lookup-message,
html.console-refresh:not([data-theme="dark"]) .user-palette-hint {
	font-size: 0.8125rem;
	color: var(--cr-muted);
}
html.console-refresh:not([data-theme="dark"]) .user-lookup-match {
	color: var(--cr-ink);
}
html.console-refresh:not([data-theme="dark"]) .user-palette {
	border-radius: 8px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}
html.console-refresh:not([data-theme="dark"]) .user-palette .user-lookup-menu {
	box-shadow: none;
}

/* wp-users-and-user-record Phase 2: the Active now dot (grid email, toggle, record header). Unscoped: it must show in dark
   mode and with the refresh off. */
.users-active-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--bs-success, #198754);
	vertical-align: 1px;
}

/* admin-console-polish item 19: who is signed in, at the right of the header. Unscoped, like the dot above. */
.console-user {
	align-items: center;
	gap: 10px;
	margin-right: 12px;
	padding-right: 16px;
	border-right: 1px solid var(--bs-border-color, #dee2e6);
	max-width: 280px;
	cursor: default;
}
.console-user-avatar {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--bs-primary-bg-subtle, #ece5f6);
	color: var(--bs-primary-text-emphasis, #4b2f7a);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
}
.console-user-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}
.console-user-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--bs-body-color, #212529);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.console-user-role {
	font-size: 12px;
	color: var(--bs-secondary-color, #6c757d);
	white-space: nowrap;
}
