/* ================================================================================
 * 40-v160-console.css — Hi Car Match v160 back-office console
 * --------------------------------------------------------------------------------
 * Scope: admin console, dealer/seller console, member (my-page) console.
 * Loads AFTER 38-v160-foundation.css (tokens + primitives) and 39-v160-public.css.
 *
 * Rules honoured (see v160 design contract):
 *   · Consumes --v160-* / --gab-* tokens only. No new raw colours are minted here.
 *   · Layer-local classes are namespaced .v160-con-*  (a handful of chart aliases
 *     .v160-chart-* are declared alongside because the contract names them).
 *   · Global primitives (.v160-btn/.v160-card/.v160-table/...) are never rewritten,
 *     only composed or scoped.
 *   · Logical properties throughout; [dir="rtl"] only for things logical props
 *     cannot express (icon mirroring, translate, conic sweeps).
 *   · Specificity capped at two class selectors. No :has(), no nesting, no @layer.
 *   · !important appears exactly once, to defeat a legacy !important, and is
 *     commented with the file being overridden.
 *
 * SECTIONS
 *   01 Console palette scope + chart series ramp
 *   02 Shell (sidebar + topbar + content)
 *   03 Sidebar
 *   04 Topbar / breadcrumb / global search / bell / user menu
 *   05 Page header + section blocks
 *   06 KPI extras (sparkline, trend, tiles)
 *   07 Filter bar
 *   08 Bulk action bar
 *   09 Data table extras (bulk column, row actions, overflow menu, status pills)
 *   10 Detail / review layout (docs, decision panel, audit timeline, definition list)
 *   11 Settings-style sectioned forms
 *   12 CSS-only charts (bar / line / donut / legend / progress / spark)
 *   13 Notices, toasts, modals, drawers
 *   14 Tab strips, pagination summary, sub-nav
 *   15 Empty, zero-data, loading and permission-denied states
 *   16 Legacy bridge — .gab-dash-*, .gab-a*, .gab-my-*, .hicm-admin-*, .hicm-dcc-*
 *   17 Responsive (tablet <=1024, mobile <=640, wide >=1441)
 *   18 RTL corrections
 *   19 Reduced motion + print
 * ============================================================================== */


/* ================================================================================
 * 01 — CONSOLE PALETTE SCOPE + CHART SERIES RAMP
 * Component-scoped custom properties only. Nothing is added to :root.
 * The series ramp is composed from existing semantic tokens; it is NOT a new
 * palette (see "concerns" — a real categorical chart ramp does not exist yet).
 * ============================================================================== */

.v160-con-shell,
.v160-con-chart,
.gab-dash,
.gab-my,
.gab-dpro {
	--v160-con-side-w: 260px;
	--v160-con-rail-w: 68px;
	--v160-con-top-h: 60px;
	--v160-con-gutter: clamp(16px, 2.4vw, 28px);
	--v160-con-max: 1560px;

	--v160-chart-c1: var(--v160-accent);
	--v160-chart-c2: var(--v160-info);
	--v160-chart-c3: var(--v160-success);
	--v160-chart-c4: var(--v160-warning);
	--v160-chart-c5: var(--v160-neutral);
	--v160-chart-c6: var(--gab-navy-700);
	--v160-chart-track: var(--v160-surface-3);
	--v160-chart-grid: var(--v160-border-subtle);
}


/* ================================================================================
 * 02 — SHELL
 * <div class="v160-con-shell">
 *   <aside class="v160-con-shell__side v160-con-side"> … </aside>
 *   <div class="v160-con-shell__main">
 *     <header class="v160-con-shell__top v160-con-top"> … </header>
 *     <main class="v160-con-shell__body"> … </main>
 *   </div>
 * </div>
 * ============================================================================== */

.v160-con-shell {
	display: grid;
	grid-template-columns: var(--v160-con-side-w) minmax(0, 1fr);
	min-block-size: 100vh;
	background: var(--v160-surface-2);
	color: var(--v160-text);
	font-family: var(--v160-font-sans);
}

.v160-con-shell--rail {
	grid-template-columns: var(--v160-con-rail-w) minmax(0, 1fr);
}

.v160-con-shell__side {
	position: sticky;
	inset-block-start: 0;
	block-size: 100vh;
	min-inline-size: 0;
	z-index: var(--v160-z-sticky);
}

.v160-con-shell__main {
	display: flex;
	flex-direction: column;
	min-inline-size: 0;
	min-block-size: 100vh;
}

.v160-con-shell__body {
	flex: 1;
	inline-size: 100%;
	max-inline-size: var(--v160-con-max);
	margin-inline: auto;
	padding: var(--v160-space-6) var(--v160-con-gutter) var(--v160-space-10);
	display: flex;
	flex-direction: column;
	gap: var(--v160-space-5);
	min-inline-size: 0;
}

.v160-con-shell__body--tight {
	max-inline-size: var(--v160-container-tight);
}

/* Off-canvas scrim, shown by the shell at tablet and below. */
.v160-con-scrim {
	display: none;
	position: fixed;
	inset: 0;
	background: var(--v160-surface-overlay);
	z-index: var(--v160-z-overlay);
}


/* ================================================================================
 * 03 — SIDEBAR
 * Calm, light, scannable at 20+ items. Grouped sections with uppercase labels,
 * accent inline-start bar + tinted fill for the active row.
 * ============================================================================== */

.v160-con-side {
	display: flex;
	flex-direction: column;
	background: var(--v160-surface);
	border-inline-end: 1px solid var(--v160-border);
	block-size: 100%;
	overflow: hidden;
}

/* --- brand block --- */
.v160-con-side__brand {
	display: flex;
	align-items: center;
	gap: var(--v160-space-3);
	min-block-size: var(--v160-con-top-h);
	padding: var(--v160-space-3) var(--v160-space-4);
	border-block-end: 1px solid var(--v160-border-subtle);
	text-decoration: none;
	color: var(--v160-text);
	flex-shrink: 0;
}

.v160-con-side__brand:hover {
	background: var(--v160-surface-2);
}

.v160-con-side__brand-mark {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	block-size: 28px;
}

.v160-con-side__brand-mark img,
.v160-con-side__brand-mark svg {
	block-size: 28px;
	inline-size: auto;
	display: block;
}

.v160-con-side__brand-text {
	display: flex;
	flex-direction: column;
	min-inline-size: 0;
	line-height: var(--v160-lh-tight);
}

.v160-con-side__brand-name {
	font-size: var(--v160-fs-md);
	font-weight: 700;
	letter-spacing: var(--v160-track-snug);
	color: var(--v160-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.v160-con-side__brand-role {
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--v160-text-subtle);
}

/* --- role chip --- */
.v160-con-role {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	align-self: flex-start;
	margin: var(--v160-space-3) var(--v160-space-4) 0;
	padding: 3px 9px;
	border-radius: var(--v160-r-pill);
	background: var(--v160-accent-soft);
	border: 1px solid var(--v160-accent-border);
	color: var(--v160-accent-hover);
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	letter-spacing: var(--v160-track-snug);
	white-space: nowrap;
}

.v160-con-role i {
	font-size: 11px;
}

.v160-con-role--admin {
	background: var(--v160-info-soft);
	border-color: var(--v160-info-border);
	color: var(--v160-info);
}

.v160-con-role--dealer {
	background: var(--v160-success-soft);
	border-color: var(--v160-success-border);
	color: var(--v160-success);
}

/* --- scroll region --- */
.v160-con-side__scroll {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: var(--v160-space-3) var(--v160-space-3) var(--v160-space-5);
	scrollbar-width: thin;
}

.v160-con-side__scroll::-webkit-scrollbar {
	inline-size: 8px;
}

.v160-con-side__scroll::-webkit-scrollbar-thumb {
	background: var(--v160-border);
	border-radius: var(--v160-r-pill);
}

/* --- grouped nav --- */
.v160-con-nav {
	display: flex;
	flex-direction: column;
}

.v160-con-nav__group {
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding-block-end: var(--v160-space-3);
	margin-block-end: var(--v160-space-3);
	border-block-end: 1px solid var(--v160-border-subtle);
}

.v160-con-nav__group:last-child {
	border-block-end: 0;
	margin-block-end: 0;
	padding-block-end: 0;
}

.v160-con-nav__label {
	padding: var(--v160-space-2) var(--v160-space-3) 6px;
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--v160-text-subtle);
	white-space: nowrap;
}

.v160-con-nav__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-block-size: 38px;
	padding: 8px var(--v160-space-3);
	border-radius: var(--v160-r-md);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-md);
	font-weight: 600;
	line-height: var(--v160-lh-snug);
	text-decoration: none;
	transition: background var(--v160-dur-fast) var(--v160-ease),
		color var(--v160-dur-fast) var(--v160-ease);
}

.v160-con-nav__item:hover {
	background: var(--v160-surface-3);
	color: var(--v160-text);
}

.v160-con-nav__item:focus-visible {
	outline: 2px solid var(--v160-accent);
	outline-offset: -2px;
}

.v160-con-nav__item.is-active,
.v160-con-nav__item[aria-current="page"] {
	background: var(--v160-accent-soft);
	color: var(--v160-accent-hover);
	font-weight: 700;
}

.v160-con-nav__item.is-active::before,
.v160-con-nav__item[aria-current="page"]::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block: 7px;
	inline-size: 3px;
	border-radius: var(--v160-r-pill);
	background: var(--v160-accent);
}

.v160-con-nav__item i,
.v160-con-nav__item .bi {
	font-size: 16px;
	inline-size: 20px;
	text-align: center;
	flex-shrink: 0;
	color: var(--v160-text-subtle);
}

.v160-con-nav__item.is-active i,
.v160-con-nav__item[aria-current="page"] i {
	color: var(--v160-accent);
}

.v160-con-nav__label-text {
	flex: 1;
	min-inline-size: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.v160-con-nav__count {
	flex-shrink: 0;
	min-inline-size: 20px;
	padding: 1px 6px;
	border-radius: var(--v160-r-pill);
	background: var(--v160-surface-3);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.v160-con-nav__count.is-alert {
	background: var(--v160-accent);
	color: var(--v160-accent-contrast);
}

/* --- collapsed icon rail --- */
.v160-con-shell--rail .v160-con-side__brand-text,
.v160-con-shell--rail .v160-con-nav__label,
.v160-con-shell--rail .v160-con-nav__label-text,
.v160-con-shell--rail .v160-con-role,
.v160-con-shell--rail .v160-con-user__meta {
	display: none;
}

.v160-con-shell--rail .v160-con-nav__item {
	justify-content: center;
	padding-inline: 0;
}

.v160-con-shell--rail .v160-con-nav__count {
	position: absolute;
	inset-block-start: 2px;
	inset-inline-end: 4px;
	min-inline-size: 16px;
	padding: 0 4px;
	font-size: 10px;
	line-height: 16px;
}

.v160-con-shell--rail .v160-con-side__brand {
	justify-content: center;
	padding-inline: 0;
}

/* --- collapse toggle --- */
.v160-con-side__collapse {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 32px;
	block-size: 32px;
	margin-inline-start: auto;
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-md);
	background: var(--v160-surface);
	color: var(--v160-text-muted);
	cursor: pointer;
	flex-shrink: 0;
	transition: color var(--v160-dur-fast) var(--v160-ease),
		border-color var(--v160-dur-fast) var(--v160-ease);
}

.v160-con-side__collapse:hover {
	color: var(--v160-text);
	border-color: var(--v160-border-strong);
}

/* --- user footer --- */
.v160-con-side__foot {
	flex-shrink: 0;
	border-block-start: 1px solid var(--v160-border-subtle);
	padding: var(--v160-space-3);
	background: var(--v160-surface-2);
}

.v160-con-user {
	display: flex;
	align-items: center;
	gap: 10px;
	min-inline-size: 0;
}

.v160-con-user__meta {
	flex: 1;
	min-inline-size: 0;
	line-height: var(--v160-lh-tight);
}

.v160-con-user__name {
	font-size: var(--v160-fs-sm);
	font-weight: 700;
	color: var(--v160-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.v160-con-user__role {
	font-size: var(--v160-fs-2xs);
	color: var(--v160-text-subtle);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.v160-con-user__logout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 34px;
	block-size: 34px;
	border-radius: var(--v160-r-md);
	color: var(--v160-text-subtle);
	font-size: 16px;
	text-decoration: none;
	flex-shrink: 0;
	transition: background var(--v160-dur-fast) var(--v160-ease),
		color var(--v160-dur-fast) var(--v160-ease);
}

.v160-con-user__logout:hover {
	background: var(--v160-danger-soft);
	color: var(--v160-danger);
}


/* ================================================================================
 * 04 — TOPBAR
 * ============================================================================== */

.v160-con-top {
	position: sticky;
	inset-block-start: 0;
	z-index: var(--v160-z-sticky);
	display: flex;
	align-items: center;
	gap: var(--v160-space-3);
	min-block-size: var(--v160-con-top-h);
	padding: var(--v160-space-2) var(--v160-con-gutter);
	background: var(--v160-surface);
	border-block-end: 1px solid var(--v160-border);
}

.v160-con-top__lead {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-inline-size: 0;
	flex: 1 1 auto;
}

.v160-con-top__title {
	font-size: var(--v160-fs-lg);
	font-weight: 700;
	letter-spacing: var(--v160-track-snug);
	color: var(--v160-text);
	line-height: var(--v160-lh-tight);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
}

.v160-con-top__end {
	display: flex;
	align-items: center;
	gap: var(--v160-space-2);
	flex-shrink: 0;
	margin-inline-start: auto;
}

.v160-con-burger {
	display: none;
	align-items: center;
	justify-content: center;
	inline-size: 40px;
	block-size: 40px;
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-md);
	background: var(--v160-surface);
	color: var(--v160-text);
	font-size: 20px;
	cursor: pointer;
	flex-shrink: 0;
}

/* --- breadcrumb --- */
.v160-con-crumbs {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
	list-style: none;
	margin: 0;
	padding: 0;
	min-inline-size: 0;
}

.v160-con-crumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.v160-con-crumbs__item:hover {
	color: var(--v160-text-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.v160-con-crumbs__item[aria-current="page"] {
	color: var(--v160-text-muted);
	font-weight: 600;
}

.v160-con-crumbs__sep {
	color: var(--v160-border-strong);
	font-size: 10px;
	flex-shrink: 0;
}

/* --- global search --- */
.v160-con-gsearch {
	position: relative;
	flex: 0 1 320px;
	min-inline-size: 180px;
}

.v160-con-gsearch .v160-input {
	background: var(--v160-surface-2);
}

.v160-con-gsearch .v160-input:focus {
	background: var(--v160-surface);
}

/* --- icon action (bell, help, settings) --- */
.v160-con-iconbtn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 40px;
	block-size: 40px;
	border: 1px solid transparent;
	border-radius: var(--v160-r-md);
	background: transparent;
	color: var(--v160-text-muted);
	font-size: 17px;
	cursor: pointer;
	text-decoration: none;
	transition: background var(--v160-dur-fast) var(--v160-ease),
		color var(--v160-dur-fast) var(--v160-ease);
}

.v160-con-iconbtn:hover {
	background: var(--v160-surface-3);
	color: var(--v160-text);
}

.v160-con-iconbtn__dot {
	position: absolute;
	inset-block-start: 7px;
	inset-inline-end: 8px;
	inline-size: 8px;
	block-size: 8px;
	border-radius: 50%;
	background: var(--v160-accent);
	/* halo ring in the surface colour so the dot reads on any background —
	   not a sticker outline (no dark ink, not applied to chrome) */
	border: 2px solid var(--v160-surface);
}

.v160-con-iconbtn__count {
	position: absolute;
	inset-block-start: 3px;
	inset-inline-end: 3px;
	min-inline-size: 18px;
	padding: 0 4px;
	border-radius: var(--v160-r-pill);
	background: var(--v160-accent);
	color: var(--v160-accent-contrast);
	font-size: 10px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

/* --- user menu --- */
.v160-con-usermenu {
	position: relative;
}

.v160-con-usermenu__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-block-size: 40px;
	padding: 4px 8px;
	border: 1px solid transparent;
	border-radius: var(--v160-r-md);
	background: transparent;
	color: var(--v160-text);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	max-inline-size: 200px;
}

.v160-con-usermenu__btn:hover {
	background: var(--v160-surface-3);
}

.v160-con-usermenu__name {
	min-inline-size: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.v160-con-usermenu__pop {
	position: absolute;
	inset-block-start: calc(100% + 6px);
	inset-inline-end: 0;
	min-inline-size: 220px;
	padding: 6px;
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-lg);
	box-shadow: var(--v160-elev-4);
	z-index: var(--v160-z-dropdown);
	display: none;
}

.v160-con-usermenu__pop.is-open {
	display: block;
}

.v160-con-usermenu__item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-block-size: 38px;
	padding: 6px 10px;
	border: 0;
	inline-size: 100%;
	border-radius: var(--v160-r-sm);
	background: transparent;
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	font-family: inherit;
	text-align: start;
	text-decoration: none;
	cursor: pointer;
}

.v160-con-usermenu__item:hover {
	background: var(--v160-surface-3);
	color: var(--v160-text);
}

.v160-con-usermenu__item.is-danger:hover {
	background: var(--v160-danger-soft);
	color: var(--v160-danger);
}

.v160-con-usermenu__sep {
	block-size: 1px;
	margin: 5px 0;
	background: var(--v160-border-subtle);
}


/* ================================================================================
 * 05 — PAGE HEADER + SECTION BLOCKS
 * ============================================================================== */

.v160-con-page {
	display: flex;
	flex-direction: column;
	gap: var(--v160-space-5);
	min-inline-size: 0;
}

.v160-con-page__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--v160-space-4);
	flex-wrap: wrap;
}

.v160-con-page__title {
	font-size: var(--v160-fs-2xl);
	font-weight: 700;
	letter-spacing: var(--v160-track-tight);
	color: var(--v160-text);
	line-height: var(--v160-lh-tight);
	margin: 0;
}

.v160-con-page__sub {
	margin: 4px 0 0;
	font-size: var(--v160-fs-sm);
	color: var(--v160-text-muted);
	line-height: var(--v160-lh-snug);
}

.v160-con-page__actions {
	display: flex;
	align-items: center;
	gap: var(--v160-space-2);
	flex-wrap: wrap;
	flex-shrink: 0;
}

.v160-con-section {
	display: flex;
	flex-direction: column;
	gap: var(--v160-space-3);
	min-inline-size: 0;
}

.v160-con-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--v160-space-3);
	flex-wrap: wrap;
}

.v160-con-section__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--v160-fs-lg);
	font-weight: 700;
	letter-spacing: var(--v160-track-snug);
	color: var(--v160-text);
	margin: 0;
}

.v160-con-section__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	color: var(--v160-text-link);
	text-decoration: none;
}

.v160-con-section__link:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Two-column and three-column console grids */
.v160-con-grid {
	display: grid;
	gap: var(--v160-space-4);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

.v160-con-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v160-con-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v160-con-grid--main-aside {
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}


/* ================================================================================
 * 06 — KPI EXTRAS
 * Composes the .v160-kpi primitive; adds a sparkline slot and a compact tile.
 * ============================================================================== */

.v160-con-kpi-spark {
	margin-block-start: var(--v160-space-3);
	block-size: 34px;
}

.v160-con-spark {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	block-size: 100%;
	inline-size: 100%;
}

.v160-con-spark__bar {
	flex: 1 1 0;
	min-inline-size: 2px;
	block-size: max(3px, calc(var(--v160-bar, 0) * 1%));
	border-radius: 2px 2px 0 0;
	background: var(--v160-chart-c1);
	opacity: .28;
}

.v160-con-spark__bar.is-last {
	opacity: 1;
}

.v160-con-spark--info .v160-con-spark__bar {
	background: var(--v160-chart-c2);
}

.v160-con-spark--success .v160-con-spark__bar {
	background: var(--v160-chart-c3);
}

/* Compact tile row for secondary metrics under a KPI grid */
.v160-con-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: var(--v160-space-3);
}

.v160-con-tile {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: var(--v160-space-3) var(--v160-space-4);
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-lg);
}

.v160-con-tile__label {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
	font-weight: 600;
}

.v160-con-tile__value {
	font-size: var(--v160-fs-xl);
	font-weight: 700;
	color: var(--v160-text);
	font-variant-numeric: tabular-nums;
	letter-spacing: var(--v160-track-tight);
}


/* ================================================================================
 * 07 — FILTER BAR
 * <div class="v160-con-filters"> … </div>  — wraps gracefully, no horizontal scroll.
 * ============================================================================== */

.v160-con-filters {
	display: flex;
	align-items: flex-end;
	gap: var(--v160-space-3);
	flex-wrap: wrap;
	padding: var(--v160-space-3) var(--v160-space-4);
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-xl);
}

.v160-con-filters--flat {
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.v160-con-filters__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-inline-size: 150px;
}

.v160-con-filters__field--grow {
	flex: 1 1 240px;
	min-inline-size: 200px;
}

.v160-con-filters__label {
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--v160-text-subtle);
}

.v160-con-filters__actions {
	display: flex;
	align-items: center;
	gap: var(--v160-space-2);
	margin-inline-start: auto;
	flex-wrap: wrap;
}

.v160-con-daterange {
	display: flex;
	align-items: center;
	gap: 6px;
}

.v160-con-daterange .v160-input {
	inline-size: auto;
	min-inline-size: 132px;
}

.v160-con-daterange__sep {
	color: var(--v160-text-subtle);
	font-size: var(--v160-fs-sm);
	flex-shrink: 0;
}

/* Active-filter summary chips under the bar */
.v160-con-activefilters {
	display: flex;
	align-items: center;
	gap: var(--v160-space-2);
	flex-wrap: wrap;
}

.v160-con-activefilters__label {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
	font-weight: 600;
}


/* ================================================================================
 * 08 — BULK ACTION BAR
 * Hidden until rows are selected: add .is-open (or keep legacy display toggling).
 * ============================================================================== */

.v160-con-bulk {
	display: none;
	align-items: center;
	gap: var(--v160-space-3);
	flex-wrap: wrap;
	padding: var(--v160-space-2) var(--v160-space-3) var(--v160-space-2) var(--v160-space-4);
	background: var(--v160-surface-dark);
	border-radius: var(--v160-r-xl);
	box-shadow: var(--v160-elev-3);
	color: var(--v160-text-inverse);
}

.v160-con-bulk.is-open {
	display: flex;
}

.v160-con-bulk__count {
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.v160-con-bulk__count b {
	font-weight: 700;
}

.v160-con-bulk__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.v160-con-bulk__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-block-size: 34px;
	padding: 0 12px;
	border: 1px solid var(--v160-border-inverse);
	border-radius: var(--v160-r-md);
	background: transparent;
	color: var(--v160-text-inverse);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: background var(--v160-dur-fast) var(--v160-ease);
}

.v160-con-bulk__btn:hover {
	background: var(--gab-navy-700);
}

.v160-con-bulk__btn.is-danger {
	border-color: var(--v160-danger);
	color: var(--v160-danger-soft);
}

.v160-con-bulk__btn.is-danger:hover {
	background: var(--v160-danger);
	color: var(--v160-text-inverse);
}

.v160-con-bulk__clear {
	margin-inline-start: auto;
	border: 0;
	background: transparent;
	color: var(--v160-text-subtle);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	font-family: inherit;
	min-block-size: 34px;
	padding-inline: 8px;
	cursor: pointer;
}

.v160-con-bulk__clear:hover {
	color: var(--v160-text-inverse);
	text-decoration: underline;
}

.v160-con-bulk--sticky {
	position: sticky;
	inset-block-end: var(--v160-space-4);
	z-index: var(--v160-z-raised);
}


/* ================================================================================
 * 09 — DATA TABLE EXTRAS
 * Composes .v160-table-wrap / .v160-table from layer 38.
 * ============================================================================== */

/* Selection column */
.v160-con-tcheck {
	inline-size: 44px;
	text-align: center;
	padding-inline: var(--v160-space-3);
}

.v160-table th.v160-con-tcheck,
.v160-table td.v160-con-tcheck {
	inline-size: 44px;
}

/* Media / thumbnail cell */
.v160-con-tthumb {
	inline-size: 56px;
	block-size: 42px;
	border-radius: var(--v160-r-sm);
	background: var(--v160-surface-3);
	object-fit: cover;
	flex-shrink: 0;
	display: block;
	border: 1px solid var(--v160-border-subtle);
}

.v160-con-tcell {
	display: flex;
	align-items: center;
	gap: 10px;
	min-inline-size: 0;
}

.v160-con-tcell__body {
	min-inline-size: 0;
}

.v160-con-tcell__title {
	font-size: var(--v160-fs-sm);
	font-weight: 700;
	color: var(--v160-text);
	line-height: var(--v160-lh-snug);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.v160-con-tcell__sub {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
	line-height: var(--v160-lh-snug);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Row actions */
.v160-con-rowact {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	justify-content: flex-end;
}

.v160-con-actbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 32px;
	block-size: 32px;
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-sm);
	background: var(--v160-surface);
	color: var(--v160-text-muted);
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	flex-shrink: 0;
	transition: color var(--v160-dur-fast) var(--v160-ease),
		border-color var(--v160-dur-fast) var(--v160-ease),
		background var(--v160-dur-fast) var(--v160-ease);
}

.v160-con-actbtn:hover {
	border-color: var(--v160-border-strong);
	background: var(--v160-surface-2);
	color: var(--v160-text);
}

.v160-con-actbtn.is-approve:hover {
	border-color: var(--v160-success-border);
	background: var(--v160-success-soft);
	color: var(--v160-success);
}

.v160-con-actbtn.is-danger:hover {
	border-color: var(--v160-danger-border);
	background: var(--v160-danger-soft);
	color: var(--v160-danger);
}

/* Overflow menu */
.v160-con-menu {
	position: relative;
	display: inline-block;
}

.v160-con-menu__pop {
	position: absolute;
	inset-block-start: calc(100% + 4px);
	inset-inline-end: 0;
	min-inline-size: 190px;
	padding: 5px;
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-lg);
	box-shadow: var(--v160-elev-4);
	z-index: var(--v160-z-dropdown);
	display: none;
}

.v160-con-menu__pop.is-open {
	display: block;
}

.v160-con-menu__item {
	display: flex;
	align-items: center;
	gap: 9px;
	inline-size: 100%;
	min-block-size: 34px;
	padding: 5px 9px;
	border: 0;
	border-radius: var(--v160-r-sm);
	background: transparent;
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	font-family: inherit;
	text-align: start;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.v160-con-menu__item:hover {
	background: var(--v160-surface-3);
	color: var(--v160-text);
}

.v160-con-menu__item.is-danger {
	color: var(--v160-danger);
}

.v160-con-menu__item.is-danger:hover {
	background: var(--v160-danger-soft);
}

.v160-con-menu__sep {
	block-size: 1px;
	margin: 4px 0;
	background: var(--v160-border-subtle);
}

/* Status pill — console vocabulary mapped onto the badge palette */
.v160-con-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 9px;
	border-radius: var(--v160-r-pill);
	border: 1px solid var(--v160-neutral-border);
	background: var(--v160-neutral-soft);
	color: var(--v160-neutral);
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	line-height: 18px;
	white-space: nowrap;
}

.v160-con-status::before {
	content: "";
	inline-size: 6px;
	block-size: 6px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}

.v160-con-status--active,
.v160-con-status--approved,
.v160-con-status--paid,
.v160-con-status--completed {
	background: var(--v160-success-soft);
	border-color: var(--v160-success-border);
	color: var(--v160-success);
}

.v160-con-status--pending,
.v160-con-status--hold,
.v160-con-status--waiting {
	background: var(--v160-warning-soft);
	border-color: var(--v160-warning-border);
	color: var(--v160-warning);
}

.v160-con-status--review,
.v160-con-status--progress {
	background: var(--v160-info-soft);
	border-color: var(--v160-info-border);
	color: var(--v160-info);
}

.v160-con-status--rejected,
.v160-con-status--suspended,
.v160-con-status--danger {
	background: var(--v160-danger-soft);
	border-color: var(--v160-danger-border);
	color: var(--v160-danger);
}

.v160-con-status--draft,
.v160-con-status--sold,
.v160-con-status--closed {
	background: var(--v160-neutral-soft);
	border-color: var(--v160-neutral-border);
	color: var(--v160-neutral);
}

/* Table foot: result count + page size */
.v160-con-tablefoot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--v160-space-3);
	flex-wrap: wrap;
	padding: var(--v160-space-3) var(--v160-space-4);
	border-block-start: 1px solid var(--v160-border-subtle);
	background: var(--v160-surface-2);
}

.v160-con-tablefoot__info {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
	font-variant-numeric: tabular-nums;
}


/* ================================================================================
 * 10 — DETAIL / REVIEW LAYOUT
 * ============================================================================== */

.v160-con-detail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: var(--v160-space-5);
	align-items: start;
	min-inline-size: 0;
}

.v160-con-detail__main {
	display: flex;
	flex-direction: column;
	gap: var(--v160-space-4);
	min-inline-size: 0;
}

/* __side 는 admin-claims / admin-orders / admin-member-detail / admin-dealer-detail /
   admin-dealer-verify / admin-settlement-detail 이 실제로 출력하는 이름이다. 두 이름을 모두 지원한다. */
.v160-con-detail__aside,
.v160-con-detail__side {
	position: sticky;
	inset-block-start: calc(var(--v160-con-top-h) + var(--v160-space-4));
	display: flex;
	flex-direction: column;
	gap: var(--v160-space-4);
	min-inline-size: 0;
}

/* --- definition list (key / value pairs) --- */
.v160-con-deflist {
	display: flex;
	flex-direction: column;
}

.v160-con-deflist__row {
	display: grid;
	grid-template-columns: minmax(120px, 34%) minmax(0, 1fr);
	gap: var(--v160-space-3);
	align-items: baseline;
	padding: 9px 0;
	border-block-end: 1px solid var(--v160-border-subtle);
}

.v160-con-deflist__row:last-child {
	border-block-end: 0;
}

.v160-con-deflist__k {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: var(--v160-fs-xs);
	font-weight: 600;
	color: var(--v160-text-muted);
}

.v160-con-deflist__k i {
	color: var(--v160-text-subtle);
	font-size: 13px;
}

.v160-con-deflist__v {
	font-size: var(--v160-fs-sm);
	color: var(--v160-text);
	font-weight: 600;
	word-break: break-word;
}

/* --- document / evidence viewer --- */
.v160-con-docs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: var(--v160-space-3);
}

.v160-con-doc {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-lg);
	background: var(--v160-surface);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color var(--v160-dur-fast) var(--v160-ease),
		box-shadow var(--v160-dur-fast) var(--v160-ease);
}

.v160-con-doc:hover {
	border-color: var(--v160-border-strong);
	box-shadow: var(--v160-elev-2);
}

.v160-con-doc__thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--v160-surface-3);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--v160-text-subtle);
	font-size: 26px;
	overflow: hidden;
}

.v160-con-doc__thumb img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	display: block;
}

.v160-con-doc__meta {
	padding: 9px 11px;
	border-block-start: 1px solid var(--v160-border-subtle);
	min-inline-size: 0;
}

.v160-con-doc__name {
	font-size: var(--v160-fs-xs);
	font-weight: 700;
	color: var(--v160-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.v160-con-doc__sub {
	font-size: var(--v160-fs-2xs);
	color: var(--v160-text-subtle);
	font-variant-numeric: tabular-nums;
	margin-block-start: 2px;
}

.v160-con-doc__flag {
	position: absolute;
	inset-block-start: 6px;
	inset-inline-start: 6px;
	padding: 1px 7px;
	border-radius: var(--v160-r-pill);
	background: var(--v160-surface-dark);
	color: var(--v160-text-inverse);
	font-size: 10px;
	font-weight: 700;
}

/* --- document ROW variant --------------------------------------------------
 * admin-member-detail / admin-dealer-detail / admin-dealer-verify 은 서류를
 * 썸네일 카드가 아니라 한 줄(아이콘 · 이름 · 상태 배지 · 열기 버튼)로 출력한다.
 * 그 세 화면 모두 컨테이너가 .v160-card__body.v160-stack 이므로 여기에 스코프한다.
 * (.v160-con-docs 그리드 안의 썸네일 카드 변형은 그대로 유지된다.) */
.v160-stack > .v160-con-doc {
	flex-direction: row;
	align-items: center;
	gap: var(--v160-space-3);
	padding: var(--v160-space-3);
}

.v160-con-doc__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 36px;
	block-size: 36px;
	border-radius: var(--v160-r-md);
	background: var(--v160-surface-3);
	color: var(--v160-text-muted);
	font-size: 17px;
}

.v160-stack > .v160-con-doc > .v160-con-doc__meta {
	flex: 1 1 auto;
	padding: 0;
	border-block-start: 0;
}

.v160-con-doc__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: var(--v160-space-2);
}

/* Large single-document viewer pane */
.v160-con-viewer {
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-xl);
	background: var(--v160-surface-3);
	overflow: hidden;
}

.v160-con-viewer__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-block-size: 320px;
	padding: var(--v160-space-4);
}

.v160-con-viewer__stage img {
	max-inline-size: 100%;
	max-block-size: 520px;
	object-fit: contain;
	border-radius: var(--v160-r-md);
	box-shadow: var(--v160-elev-2);
	display: block;
}

.v160-con-viewer__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--v160-space-3);
	flex-wrap: wrap;
	padding: var(--v160-space-2) var(--v160-space-3);
	background: var(--v160-surface);
	border-block-start: 1px solid var(--v160-border);
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
}

/* --- decision / approve-reject panel --- */
.v160-con-decision {
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-xl);
	background: var(--v160-surface);
	box-shadow: var(--v160-elev-1);
	overflow: hidden;
}

.v160-con-decision__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: var(--v160-space-3) var(--v160-space-4);
	border-block-end: 1px solid var(--v160-border-subtle);
	background: var(--v160-surface-2);
	font-size: var(--v160-fs-sm);
	font-weight: 700;
	color: var(--v160-text);
}

.v160-con-decision__body {
	padding: var(--v160-space-4);
	display: flex;
	flex-direction: column;
	gap: var(--v160-space-3);
}

.v160-con-decision__reasons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.v160-con-decision__actions {
	display: flex;
	gap: var(--v160-space-2);
	padding: var(--v160-space-3) var(--v160-space-4);
	border-block-start: 1px solid var(--v160-border-subtle);
	background: var(--v160-surface-2);
	flex-wrap: wrap;
}

.v160-con-decision__actions .v160-btn {
	flex: 1 1 140px;
}

/* --- audit timeline --- */
.v160-con-timeline {
	position: relative;
	display: flex;
	flex-direction: column;
	list-style: none;
	margin: 0;
	padding: 0;
}

.v160-con-timeline__item {
	position: relative;
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: var(--v160-space-3);
	padding-block-end: var(--v160-space-4);
}

.v160-con-timeline__item:last-child {
	padding-block-end: 0;
}

.v160-con-timeline__item::before {
	content: "";
	position: absolute;
	inset-block-start: 20px;
	inset-block-end: 0;
	inset-inline-start: 12px;
	inline-size: 1px;
	background: var(--v160-border);
}

.v160-con-timeline__item:last-child::before {
	display: none;
}

.v160-con-timeline__dot {
	position: relative;
	z-index: 1;
	inline-size: 25px;
	block-size: 25px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	background: var(--v160-neutral-soft);
	border: 1px solid var(--v160-neutral-border);
	color: var(--v160-neutral);
	flex-shrink: 0;
}

.v160-con-timeline__dot.is-success {
	background: var(--v160-success-soft);
	border-color: var(--v160-success-border);
	color: var(--v160-success);
}

.v160-con-timeline__dot.is-danger {
	background: var(--v160-danger-soft);
	border-color: var(--v160-danger-border);
	color: var(--v160-danger);
}

.v160-con-timeline__dot.is-warning {
	background: var(--v160-warning-soft);
	border-color: var(--v160-warning-border);
	color: var(--v160-warning);
}

.v160-con-timeline__dot.is-info {
	background: var(--v160-info-soft);
	border-color: var(--v160-info-border);
	color: var(--v160-info);
}

.v160-con-timeline__body {
	min-inline-size: 0;
	padding-block-start: 2px;
}

.v160-con-timeline__title {
	font-size: var(--v160-fs-sm);
	font-weight: 700;
	color: var(--v160-text);
	line-height: var(--v160-lh-snug);
}

.v160-con-timeline__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-block-start: 2px;
	font-size: var(--v160-fs-2xs);
	color: var(--v160-text-subtle);
}

.v160-con-timeline__actor {
	font-weight: 700;
	color: var(--v160-text-muted);
}

/* admin-orders / admin-dealer-detail / admin-member-detail 이 출력하는 타임스탬프 줄 */
.v160-con-timeline__time {
	margin-block-start: 2px;
	font-size: var(--v160-fs-2xs);
	color: var(--v160-text-subtle);
	font-variant-numeric: tabular-nums;
	unicode-bidi: isolate;
}

.v160-con-timeline__note {
	margin-block-start: 6px;
	padding: 8px 10px;
	border-radius: var(--v160-r-md);
	background: var(--v160-surface-3);
	border: 1px solid var(--v160-border-subtle);
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
	line-height: var(--v160-lh-base);
	word-break: break-word;
}


/* ================================================================================
 * 11 — SETTINGS-STYLE SECTIONED FORMS
 * label-left / control-right on wide, stacked on narrow.
 * ============================================================================== */

.v160-con-form {
	display: flex;
	flex-direction: column;
	gap: var(--v160-space-4);
	min-inline-size: 0;
}

.v160-con-formsec {
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-xl);
	box-shadow: var(--v160-elev-1);
	overflow: hidden;
}

.v160-con-formsec__head {
	padding: var(--v160-space-4);
	border-block-end: 1px solid var(--v160-border-subtle);
	background: var(--v160-surface-2);
}

.v160-con-formsec__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--v160-fs-md);
	font-weight: 700;
	color: var(--v160-text);
	margin: 0;
}

.v160-con-formsec__title i {
	color: var(--v160-text-subtle);
	font-size: 15px;
}

.v160-con-formsec__desc {
	margin: 4px 0 0;
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
	line-height: var(--v160-lh-base);
}

.v160-con-formsec__body {
	padding: var(--v160-space-2) var(--v160-space-4);
}

.v160-con-formrow {
	display: grid;
	grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
	gap: var(--v160-space-3) var(--v160-space-5);
	align-items: start;
	padding: var(--v160-space-4) 0;
	border-block-end: 1px solid var(--v160-border-subtle);
}

.v160-con-formrow:last-child {
	border-block-end: 0;
}

.v160-con-formrow__label {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-block-start: 9px;
}

.v160-con-formrow__title {
	font-size: var(--v160-fs-sm);
	font-weight: 700;
	color: var(--v160-text);
	line-height: var(--v160-lh-snug);
}

.v160-con-formrow__hint {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
	line-height: var(--v160-lh-base);
}

.v160-con-formrow__control {
	min-inline-size: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.v160-con-formrow--stack {
	grid-template-columns: minmax(0, 1fr);
}

.v160-con-formrow--stack .v160-con-formrow__label {
	padding-block-start: 0;
}

/* Sticky save bar at the bottom of a settings form */
.v160-con-formbar {
	position: sticky;
	inset-block-end: 0;
	z-index: var(--v160-z-raised);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--v160-space-2);
	flex-wrap: wrap;
	padding: var(--v160-space-3) var(--v160-space-4);
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-xl);
	box-shadow: var(--v160-elev-3);
}

.v160-con-formbar__msg {
	margin-inline-end: auto;
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
}

/* Upload dropzone (listing form, document upload) */
.v160-con-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: var(--v160-space-7) var(--v160-space-4);
	border: 1px dashed var(--v160-border-strong);
	border-radius: var(--v160-r-xl);
	background: var(--v160-surface-2);
	text-align: center;
	cursor: pointer;
	transition: border-color var(--v160-dur-fast) var(--v160-ease),
		background var(--v160-dur-fast) var(--v160-ease);
}

.v160-con-drop:hover,
.v160-con-drop.is-over {
	border-color: var(--v160-accent);
	background: var(--v160-accent-soft);
}

.v160-con-drop__icon {
	font-size: 28px;
	color: var(--v160-text-subtle);
}

.v160-con-drop__title {
	font-size: var(--v160-fs-sm);
	font-weight: 700;
	color: var(--v160-text);
}

.v160-con-drop__hint {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
}


/* ================================================================================
 * 12 — CSS-ONLY CHARTS
 * No JS chart library exists in this theme, so every chart renders from inline
 * custom properties written by PHP:
 *   bar    : style="--v160-bar:64"     (0-100, percentage of track height)
 *   donut  : style="--v160-pct:37"     (0-100) or an inline conic-gradient
 *   line   : inline <svg> + the .v160-c-* helper classes below, or a clip-path area
 * Series colours come from --v160-chart-c1..c6 (composed from semantic tokens).
 * Canonical names are .v160-con-chart-*; the contract's shorter .v160-chart-*
 * aliases are declared on the same rules so either markup renders identically.
 * ============================================================================== */

.v160-con-chart,
.v160-chart {
	position: relative;
	min-inline-size: 0;
}

.v160-con-chart__head,
.v160-chart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--v160-space-3);
	flex-wrap: wrap;
	margin-block-end: var(--v160-space-4);
}

.v160-con-chart__title,
.v160-chart__title {
	font-size: var(--v160-fs-md);
	font-weight: 700;
	color: var(--v160-text);
	margin: 0;
}

.v160-con-chart__sub,
.v160-chart__sub {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
	margin: 2px 0 0;
}

/* --- vertical bar chart ---------------------------------------------------- */
.v160-con-chart-bar,
.v160-chart-bar {
	display: flex;
	align-items: flex-end;
	gap: clamp(4px, 1.4vw, 14px);
	block-size: 200px;
	padding-block-end: 22px;
	position: relative;
	border-block-end: 1px solid var(--v160-chart-grid);
}

.v160-con-chart-bar__item,
.v160-chart-bar__item {
	position: relative;
	flex: 1 1 0;
	min-inline-size: 8px;
	block-size: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.v160-con-chart-bar__fill,
.v160-chart-bar__fill {
	inline-size: 100%;
	max-inline-size: 46px;
	block-size: max(2px, calc(var(--v160-bar, 0) * 1%));
	border-radius: var(--v160-r-sm) var(--v160-r-sm) 0 0;
	background: var(--v160-chart-c1);
	transition: block-size var(--v160-dur-slow) var(--v160-ease-out);
}

/* Series/emphasis modifiers go on the fill itself, e.g.
   <span class="v160-con-chart-bar__fill is-s2" style="--v160-bar:72"></span> */
.v160-con-chart-bar__fill.is-s2,
.v160-chart-bar__fill.is-s2 {
	background: var(--v160-chart-c2);
}

.v160-con-chart-bar__fill.is-s3,
.v160-chart-bar__fill.is-s3 {
	background: var(--v160-chart-c3);
}

.v160-con-chart-bar__fill.is-muted,
.v160-chart-bar__fill.is-muted {
	background: var(--v160-chart-track);
}

.v160-con-chart-bar__label,
.v160-chart-bar__label {
	position: absolute;
	inset-block-end: -20px;
	inset-inline: 0;
	text-align: center;
	font-size: var(--v160-fs-2xs);
	color: var(--v160-text-subtle);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.v160-con-chart-bar__value,
.v160-chart-bar__value {
	position: absolute;
	inset-block-end: calc(var(--v160-bar, 0) * 1% + 4px);
	inset-inline: 0;
	text-align: center;
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	color: var(--v160-text-muted);
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

/* horizontal ranked bars */
.v160-con-chart-bar--h,
.v160-chart-bar--h {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	block-size: auto;
	gap: var(--v160-space-3);
	padding-block-end: 0;
	border-block-end: 0;
}

.v160-con-chart-rank {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
}

.v160-con-chart-rank__no {
	inline-size: 22px;
	block-size: 22px;
	border-radius: var(--v160-r-sm);
	background: var(--v160-surface-3);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-variant-numeric: tabular-nums;
}

.v160-con-chart-rank__no.is-top {
	background: var(--v160-accent);
	color: var(--v160-accent-contrast);
}

.v160-con-chart-rank__label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	font-size: var(--v160-fs-xs);
	margin-block-end: 4px;
}

.v160-con-chart-rank__name {
	font-weight: 600;
	color: var(--v160-text);
	min-inline-size: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.v160-con-chart-rank__val {
	font-weight: 700;
	color: var(--v160-text-muted);
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
}

/* --- progress / capacity bar ----------------------------------------------- */
.v160-con-progress {
	block-size: 7px;
	border-radius: var(--v160-r-pill);
	background: var(--v160-chart-track);
	overflow: hidden;
}

.v160-con-progress__fill {
	display: block;
	block-size: 100%;
	inline-size: calc(var(--v160-pct, 0) * 1%);
	border-radius: var(--v160-r-pill);
	background: var(--v160-chart-c1);
	transition: inline-size var(--v160-dur-slow) var(--v160-ease-out);
}

.v160-con-progress__fill.is-success {
	background: var(--v160-success);
}

.v160-con-progress__fill.is-warning {
	background: var(--v160-warning);
}

.v160-con-progress__fill.is-danger {
	background: var(--v160-danger);
}

.v160-con-progress__fill.is-info {
	background: var(--v160-info);
}

.v160-con-progress--lg {
	block-size: 10px;
}

/* --- line / area chart ------------------------------------------------------ */
.v160-con-chart-line,
.v160-chart-line {
	position: relative;
	inline-size: 100%;
	block-size: 220px;
}

.v160-con-chart-line svg,
.v160-chart-line svg {
	inline-size: 100%;
	block-size: 100%;
	display: block;
	overflow: visible;
}

.v160-con-chart-line .v160-c-grid,
.v160-chart-line .v160-c-grid {
	stroke: var(--v160-chart-grid);
	stroke-width: 1;
	fill: none;
}

.v160-con-chart-line .v160-c-axis,
.v160-chart-line .v160-c-axis {
	fill: var(--v160-text-subtle);
	font-size: 11px;
	font-family: var(--v160-font-sans);
}

.v160-con-chart-line .v160-c-line,
.v160-chart-line .v160-c-line {
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke: var(--v160-chart-c1);
}

.v160-con-chart-line .v160-c-area,
.v160-chart-line .v160-c-area {
	stroke: none;
	fill: var(--v160-chart-c1);
	opacity: .10;
}

.v160-con-chart-line .v160-c-dot,
.v160-chart-line .v160-c-dot {
	fill: var(--v160-chart-c1);
	stroke: var(--v160-surface);
	stroke-width: 2;
}

.v160-con-chart-line .is-s2,
.v160-chart-line .is-s2 {
	stroke: var(--v160-chart-c2);
}

.v160-c-area.is-s2 {
	fill: var(--v160-chart-c2);
	stroke: none;
}

.v160-c-area.is-s3 {
	fill: var(--v160-chart-c3);
	stroke: none;
}

.v160-con-chart-line .is-s3,
.v160-chart-line .is-s3 {
	stroke: var(--v160-chart-c3);
}

.v160-con-chart-line .is-dashed,
.v160-chart-line .is-dashed {
	stroke-dasharray: 4 4;
}

/* Pure-CSS area fallback: PHP supplies clip-path:polygon(...) inline. */
.v160-con-chart-line__area {
	position: absolute;
	inset: 0;
	background: var(--v160-chart-c1);
	opacity: .12;
}

.v160-con-chart-line__grid {
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		to top,
		var(--v160-chart-grid) 0 1px,
		transparent 1px 25%
	);
	pointer-events: none;
}

.v160-con-chart-line__axis {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	margin-block-start: 6px;
	font-size: var(--v160-fs-2xs);
	color: var(--v160-text-subtle);
}

/* --- donut ------------------------------------------------------------------ */
.v160-con-chart-donut,
.v160-chart-donut {
	position: relative;
	inline-size: 160px;
	block-size: 160px;
	flex-shrink: 0;
}

.v160-con-chart-donut__ring,
.v160-chart-donut__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	/* Single-value default. For multi-segment charts PHP writes an inline
	   background-image: conic-gradient(...) built from --v160-chart-c1..c6. */
	background-image: conic-gradient(
		var(--v160-chart-c1) 0 calc(var(--v160-pct, 0) * 1%),
		var(--v160-chart-track) 0
	);
}

.v160-con-chart-donut__hole,
.v160-chart-donut__hole {
	position: absolute;
	inset: 24px;
	border-radius: 50%;
	background: var(--v160-surface);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 6px;
}

.v160-con-chart-donut__value,
.v160-chart-donut__value {
	font-size: var(--v160-fs-2xl);
	font-weight: 700;
	color: var(--v160-text);
	line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: var(--v160-track-tight);
}

.v160-con-chart-donut__label,
.v160-chart-donut__label {
	font-size: var(--v160-fs-2xs);
	color: var(--v160-text-subtle);
	margin-block-start: 3px;
}

.v160-con-chart-donut--sm,
.v160-chart-donut--sm {
	inline-size: 108px;
	block-size: 108px;
}

.v160-con-chart-donut--sm .v160-con-chart-donut__hole,
.v160-chart-donut--sm .v160-chart-donut__hole {
	inset: 17px;
}

/* --- legend ----------------------------------------------------------------- */
.v160-con-chart-legend,
.v160-chart-legend {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-inline-size: 0;
}

.v160-con-chart-legend--row,
.v160-chart-legend--row {
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--v160-space-4);
}

.v160-con-chart-legend__item,
.v160-chart-legend__item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
	min-inline-size: 0;
}

.v160-con-chart-legend__dot,
.v160-chart-legend__dot {
	inline-size: 10px;
	block-size: 10px;
	border-radius: 3px;
	flex-shrink: 0;
	background: var(--v160-chart-c1);
}

.v160-con-chart-legend__dot.is-s2,
.v160-chart-legend__dot.is-s2 {
	background: var(--v160-chart-c2);
}

.v160-con-chart-legend__dot.is-s3,
.v160-chart-legend__dot.is-s3 {
	background: var(--v160-chart-c3);
}

.v160-con-chart-legend__dot.is-s4,
.v160-chart-legend__dot.is-s4 {
	background: var(--v160-chart-c4);
}

.v160-con-chart-legend__dot.is-s5,
.v160-chart-legend__dot.is-s5 {
	background: var(--v160-chart-c5);
}

.v160-con-chart-legend__dot.is-s6,
.v160-chart-legend__dot.is-s6 {
	background: var(--v160-chart-c6);
}

.v160-con-chart-legend__label,
.v160-chart-legend__label {
	flex: 1;
	min-inline-size: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.v160-con-chart-legend__value,
.v160-chart-legend__value {
	font-weight: 700;
	color: var(--v160-text);
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
}

/* donut + legend side by side */
.v160-con-chart-split {
	display: flex;
	align-items: center;
	gap: var(--v160-space-5);
	flex-wrap: wrap;
}

.v160-con-chart-split > .v160-con-chart-legend {
	flex: 1 1 160px;
}

/* Range switcher above a chart */
.v160-con-range {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	background: var(--v160-surface-3);
	border-radius: var(--v160-r-lg);
}

.v160-con-range__btn {
	border: 0;
	background: transparent;
	padding: 5px 12px;
	min-block-size: 30px;
	border-radius: var(--v160-r-md);
	font-size: var(--v160-fs-xs);
	font-weight: 700;
	font-family: inherit;
	color: var(--v160-text-muted);
	cursor: pointer;
	white-space: nowrap;
}

.v160-con-range__btn.is-active,
.v160-con-range__btn[aria-pressed="true"] {
	background: var(--v160-surface);
	color: var(--v160-accent);
	box-shadow: var(--v160-elev-1);
}


/* ================================================================================
 * 12b — ANALYTICS PRIMITIVES CONSUMED BY THE ADMIN VIEWS
 * The views in views/pages/admin-dashboard.php, admin-dms-dashboard.php,
 * admin-stats.php, admin-stats-revenue.php and admin-stats-traffic.php write the
 * bar length inline as a ready-made percentage:
 *     style="--v160-bar-pct:64%"
 * so it is consumed verbatim (no `* 1%` multiplication, unlike --v160-bar above).
 * Ramp tokens are read with a fallback so these primitives still render if they
 * are ever used outside the .gab-dash / .v160-con-shell scope of section 01.
 * All sizing is logical, so Arabic (RTL) fills from the correct edge.
 * ============================================================================== */

/* --- horizontal ranked bar (label / track / value) -------------------------- */
.v160-hbar-list {
	display: flex;
	flex-direction: column;
	gap: var(--v160-space-3);
	min-inline-size: 0;
}

.v160-hbar {
	display: grid;
	grid-template-columns: minmax(88px, 1fr) minmax(0, 3fr) auto;
	align-items: center;
	gap: var(--v160-space-3);
	min-inline-size: 0;
}

.v160-hbar__label {
	min-inline-size: 0;
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
}

/* Also used standalone inside a table cell (share column), hence inline-size:100%
   plus a floor so it never collapses to zero in a narrow <td>. */
.v160-hbar__track {
	display: block;
	inline-size: 100%;
	min-inline-size: 48px;
	block-size: 8px;
	border-radius: 99px;
	background: var(--v160-chart-track, var(--v160-surface-3));
	overflow: hidden;
}

.v160-hbar__fill {
	display: block;
	block-size: 100%;
	inline-size: var(--v160-bar-pct, 0%);
	border-radius: 99px;
	background: var(--v160-chart-c1, var(--v160-accent));
	transition: inline-size var(--v160-dur-slow) var(--v160-ease-out);
}

.v160-hbar__value {
	font-size: var(--v160-fs-xs);
	font-weight: 700;
	color: var(--v160-text);
	font-variant-numeric: tabular-nums;
	text-align: end;
	white-space: nowrap;
}

/* --- funnel / pipeline steps ------------------------------------------------ */
.v160-funnel {
	display: flex;
	flex-direction: column;
	gap: var(--v160-space-4);
	min-inline-size: 0;
}

.v160-funnel__step {
	min-inline-size: 0;
}

.v160-funnel__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--v160-space-3);
	margin-block-end: 6px;
}

.v160-funnel__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-inline-size: 0;
	font-size: var(--v160-fs-xs);
	font-weight: 600;
	color: var(--v160-text-muted);
}

.v160-funnel__value {
	font-size: var(--v160-fs-sm);
	font-weight: 700;
	color: var(--v160-text);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.v160-funnel__track {
	display: block;
	inline-size: 100%;
	block-size: 10px;
	border-radius: 99px;
	background: var(--v160-chart-track, var(--v160-surface-3));
	overflow: hidden;
}

.v160-funnel__fill {
	display: block;
	block-size: 100%;
	inline-size: var(--v160-bar-pct, 0%);
	border-radius: 99px;
	background: var(--v160-chart-c1, var(--v160-accent));
	transition: inline-size var(--v160-dur-slow) var(--v160-ease-out);
}

.v160-funnel__drop {
	margin: 6px 0 0;
	font-size: var(--v160-fs-2xs);
	color: var(--v160-text-subtle);
}

/* --- column chart (plot / col / bar + axis + legend) ------------------------ */
/* Height comes from the inline style="--v160-chart-h:180px" on .v160-chart. */
.v160-chart__plot {
	display: flex;
	align-items: flex-end;
	gap: clamp(2px, 0.9vw, 10px);
	block-size: var(--v160-chart-h, 180px);
	min-inline-size: 0;
	border-block-end: 1px solid var(--v160-chart-grid, var(--v160-border-subtle));
}

.v160-chart__col {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 2px;
	flex: 1 1 0;
	min-inline-size: 0;
	block-size: 100%;
}

.v160-chart__bar {
	display: block;
	align-self: flex-end;
	flex: 1 1 0;
	min-inline-size: 3px;
	max-inline-size: 20px;
	block-size: max(2px, var(--v160-bar-pct, 0%));
	border-radius: var(--v160-r-sm) var(--v160-r-sm) 0 0;
	background: var(--v160-chart-c1, var(--v160-accent));
	transition: block-size var(--v160-dur-slow) var(--v160-ease-out);
}

.v160-chart__bar--alt {
	background: var(--v160-chart-c2, var(--v160-info));
}

.v160-chart__axis {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--v160-space-2);
	margin-block-start: 6px;
}

.v160-chart__axis-item {
	font-size: var(--v160-fs-2xs);
	color: var(--v160-text-subtle);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.v160-chart__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--v160-space-2) var(--v160-space-4);
	margin-block-end: var(--v160-space-3);
}

.v160-chart__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-inline-size: 0;
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
}

.v160-chart__swatch {
	inline-size: 10px;
	block-size: 10px;
	border-radius: 3px;
	flex-shrink: 0;
	background: var(--v160-chart-c1, var(--v160-accent));
}

.v160-chart__swatch--alt {
	background: var(--v160-chart-c2, var(--v160-info));
}


/* ================================================================================
 * 13 — NOTICES, TOASTS, MODALS, DRAWERS
 * ============================================================================== */

/* --- toast stack --- */
.v160-con-toasts {
	position: fixed;
	inset-block-end: var(--v160-space-5);
	inset-inline-end: var(--v160-space-5);
	z-index: var(--v160-z-toast);
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-inline-size: min(360px, calc(100vw - 32px));
	pointer-events: none;
}

.v160-con-toast {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: var(--v160-space-3) var(--v160-space-4);
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-lg);
	box-shadow: var(--v160-elev-4);
	pointer-events: auto;
	animation: v160ConToastIn var(--v160-dur-slow) var(--v160-ease-out);
}

@keyframes v160ConToastIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.v160-con-toast__icon {
	font-size: 16px;
	line-height: 20px;
	color: var(--v160-info);
	flex-shrink: 0;
}

.v160-con-toast__body {
	flex: 1;
	min-inline-size: 0;
	font-size: var(--v160-fs-sm);
	color: var(--v160-text-muted);
	line-height: var(--v160-lh-snug);
}

.v160-con-toast__title {
	font-weight: 700;
	color: var(--v160-text);
	margin-block-end: 2px;
}

.v160-con-toast__x {
	inline-size: 26px;
	block-size: 26px;
	border: 0;
	border-radius: var(--v160-r-sm);
	background: transparent;
	color: var(--v160-text-subtle);
	cursor: pointer;
	flex-shrink: 0;
	font-size: 13px;
}

.v160-con-toast__x:hover {
	background: var(--v160-surface-3);
	color: var(--v160-text);
}

.v160-con-toast--success .v160-con-toast__icon { color: var(--v160-success); }
.v160-con-toast--warning .v160-con-toast__icon { color: var(--v160-warning); }
.v160-con-toast--danger .v160-con-toast__icon { color: var(--v160-danger); }

/* --- modal --- */
.v160-con-modal {
	position: fixed;
	inset: 0;
	z-index: var(--v160-z-modal);
	display: none;
	align-items: center;
	justify-content: center;
	padding: var(--v160-space-5);
	background: var(--v160-surface-overlay);
}

.v160-con-modal.is-open {
	display: flex;
}

.v160-con-modal__panel {
	inline-size: 100%;
	max-inline-size: 480px;
	max-block-size: min(88vh, 760px);
	display: flex;
	flex-direction: column;
	background: var(--v160-surface);
	border-radius: var(--v160-r-2xl);
	box-shadow: var(--v160-elev-5);
	overflow: hidden;
	animation: v160ConModalIn var(--v160-dur) var(--v160-ease-out);
}

@keyframes v160ConModalIn {
	from { opacity: 0; transform: translateY(10px) scale(.985); }
	to { opacity: 1; transform: none; }
}

.v160-con-modal__panel--lg { max-inline-size: 720px; }
.v160-con-modal__panel--sm { max-inline-size: 380px; }

.v160-con-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--v160-space-3);
	padding: var(--v160-space-4) var(--v160-space-5);
	border-block-end: 1px solid var(--v160-border-subtle);
	flex-shrink: 0;
}

.v160-con-modal__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--v160-fs-lg);
	font-weight: 700;
	color: var(--v160-text);
	margin: 0;
	min-inline-size: 0;
}

.v160-con-modal__x {
	inline-size: 34px;
	block-size: 34px;
	border: 0;
	border-radius: var(--v160-r-md);
	background: transparent;
	color: var(--v160-text-subtle);
	font-size: 15px;
	cursor: pointer;
	flex-shrink: 0;
}

.v160-con-modal__x:hover {
	background: var(--v160-surface-3);
	color: var(--v160-text);
}

.v160-con-modal__body {
	padding: var(--v160-space-5);
	overflow-y: auto;
	flex: 1;
	min-block-size: 0;
}

.v160-con-modal__foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--v160-space-2);
	padding: var(--v160-space-4) var(--v160-space-5);
	border-block-start: 1px solid var(--v160-border-subtle);
	background: var(--v160-surface-2);
	flex-shrink: 0;
	flex-wrap: wrap;
}

/* --- drawer (inline-end side panel) --- */
.v160-con-drawer {
	position: fixed;
	inset: 0;
	z-index: var(--v160-z-modal);
	display: none;
	background: var(--v160-surface-overlay);
}

.v160-con-drawer.is-open {
	display: block;
}

.v160-con-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	inline-size: min(460px, 100%);
	display: flex;
	flex-direction: column;
	background: var(--v160-surface);
	box-shadow: var(--v160-elev-5);
	animation: v160ConDrawerIn var(--v160-dur-slow) var(--v160-ease-out);
}

@keyframes v160ConDrawerIn {
	from { transform: translateX(24px); opacity: 0; }
	to { transform: none; opacity: 1; }
}

.v160-con-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--v160-space-3);
	padding: var(--v160-space-4);
	border-block-end: 1px solid var(--v160-border-subtle);
	flex-shrink: 0;
}

.v160-con-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: var(--v160-space-4);
	min-block-size: 0;
}

.v160-con-drawer__foot {
	display: flex;
	gap: var(--v160-space-2);
	padding: var(--v160-space-4);
	border-block-start: 1px solid var(--v160-border-subtle);
	background: var(--v160-surface-2);
	flex-shrink: 0;
	flex-wrap: wrap;
}


/* ================================================================================
 * 14 — TAB STRIPS, PAGINATION, SUB-NAV
 * ============================================================================== */

.v160-con-subnav {
	display: flex;
	align-items: center;
	gap: var(--v160-space-3);
	flex-wrap: wrap;
	justify-content: space-between;
	border-block-end: 1px solid var(--v160-border);
	padding-block-end: 0;
}

.v160-con-pagebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--v160-space-3);
	flex-wrap: wrap;
	padding-block-start: var(--v160-space-2);
}

.v160-con-pagebar__size {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
}

.v160-con-pagebar__size .v160-select {
	inline-size: auto;
	min-inline-size: 96px;
}


/* ================================================================================
 * 15 — EMPTY / ZERO-DATA / LOADING / PERMISSION-DENIED
 * ============================================================================== */

/* Honest zero row inside a data table */
.v160-con-zero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: var(--v160-space-8) var(--v160-space-4);
	text-align: center;
	color: var(--v160-text-muted);
}

.v160-con-zero i {
	font-size: 24px;
	color: var(--v160-text-subtle);
}

.v160-con-zero strong {
	font-size: var(--v160-fs-sm);
	font-weight: 700;
	color: var(--v160-text);
}

.v160-con-zero span {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
	max-inline-size: 46ch;
	line-height: var(--v160-lh-base);
}

/* Permission denied / not-authorised panel */
.v160-con-denied {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--v160-space-3);
	max-inline-size: 520px;
	margin-inline: auto;
	padding: var(--v160-space-9) var(--v160-space-5);
	text-align: center;
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-2xl);
	box-shadow: var(--v160-elev-1);
}

.v160-con-denied__icon {
	inline-size: 56px;
	block-size: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	background: var(--v160-warning-soft);
	color: var(--v160-warning);
}

.v160-con-denied__title {
	font-size: var(--v160-fs-xl);
	font-weight: 700;
	color: var(--v160-text);
	margin: 0;
}

.v160-con-denied__text {
	font-size: var(--v160-fs-sm);
	color: var(--v160-text-muted);
	line-height: var(--v160-lh-base);
	margin: 0;
}

.v160-con-denied__actions {
	display: flex;
	gap: var(--v160-space-2);
	flex-wrap: wrap;
	justify-content: center;
	margin-block-start: var(--v160-space-2);
}

/* Loading rows */
.v160-con-loadrows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: var(--v160-space-4);
}


/* ================================================================================
 * 16 — LEGACY BRIDGE
 * The console templates that have not been rewritten yet still emit the old
 * .gab-dash-*, .gab-a*, .gab-my-*, .hicm-admin-*, .hicm-dcc-* markup. Everything
 * below re-points those hooks at the v160 vocabulary so old and new screens are
 * visually identical. Nothing here introduces a new colour.
 * ============================================================================== */

/* ---- 16.1 dashboard shell ------------------------------------------------- */
.gab-dash {
	grid-template-columns: var(--v160-con-side-w) minmax(0, 1fr);
	background: var(--v160-surface-2);
	font-family: var(--v160-font-sans);
	color: var(--v160-text);
}

.gab-dash-side {
	background: var(--v160-surface);
	border-inline-end: 1px solid var(--v160-border);
	box-shadow: none;
}

.gab-dash-brand {
	padding: var(--v160-space-3) var(--v160-space-4);
	min-block-size: var(--v160-con-top-h);
	border-block-end: 1px solid var(--v160-border-subtle);
	gap: 10px;
}

.gab-dash-brand-icon {
	inline-size: 32px;
	block-size: 32px;
	border-radius: var(--v160-r-md);
	background: var(--v160-surface-3);
	overflow: hidden;
	box-shadow: none;
}

.gab-dash-brand-icon img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	display: block;
	filter: none;
}

.gab-dash-brand-name {
	font-size: var(--v160-fs-md);
	font-weight: 700;
	color: var(--v160-text);
	letter-spacing: var(--v160-track-snug);
}

.gab-dash-brand-role {
	font-size: var(--v160-fs-2xs);
	color: var(--v160-text-subtle);
	letter-spacing: .08em;
}

.gab-dash-nav {
	padding: var(--v160-space-3);
}

.gab-dash-nav-label {
	padding: var(--v160-space-2) var(--v160-space-3) 6px;
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	letter-spacing: .09em;
	color: var(--v160-text-subtle);
}

.gab-dash-nav-item {
	position: relative;
	gap: 10px;
	min-block-size: 38px;
	padding: 8px var(--v160-space-3);
	border-radius: var(--v160-r-md);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-md);
	font-weight: 600;
	margin-block-end: 1px;
	transition: background var(--v160-dur-fast) var(--v160-ease),
		color var(--v160-dur-fast) var(--v160-ease);
}

.gab-dash-nav-item i {
	font-size: 16px;
	inline-size: 20px;
	text-align: center;
	color: var(--v160-text-subtle);
}

.gab-dash-nav-item span {
	min-inline-size: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gab-dash-nav-item:hover {
	background: var(--v160-surface-3);
	color: var(--v160-text);
}

.gab-dash-nav-item.is-active {
	background: var(--v160-accent-soft);
	color: var(--v160-accent-hover);
	font-weight: 700;
}

.gab-dash-nav-item.is-active i {
	color: var(--v160-accent);
}

.gab-dash-nav-item.is-active::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block: 7px;
	inline-size: 3px;
	border-radius: var(--v160-r-pill);
	background: var(--v160-accent);
}

.gab-dash-nav-badge {
	margin-inline-start: auto;
	margin-inline-end: 0;
	min-inline-size: 20px;
	padding: 1px 6px;
	background: var(--v160-surface-3);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: center;
	border-radius: var(--v160-r-pill);
}

.gab-dash-user {
	padding: var(--v160-space-3);
	border-block-start: 1px solid var(--v160-border-subtle);
	background: var(--v160-surface-2);
}

.gab-dash-user-name {
	font-size: var(--v160-fs-sm);
	font-weight: 700;
	color: var(--v160-text);
}

.gab-dash-user-role {
	font-size: var(--v160-fs-2xs);
	color: var(--v160-text-subtle);
}

.gab-dash-user-logout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 34px;
	block-size: 34px;
	border-radius: var(--v160-r-md);
	color: var(--v160-text-subtle);
	font-size: 16px;
}

.gab-dash-user-logout:hover {
	background: var(--v160-danger-soft);
	color: var(--v160-danger);
}

.gab-dash-build {
	border-block-start: 1px solid var(--v160-border-subtle);
	color: var(--v160-text-subtle);
	font-size: var(--v160-fs-2xs);
	background: var(--v160-surface-2);
	padding: 9px var(--v160-space-4);
}

.gab-dash-build-core {
	background: var(--v160-surface-3);
	color: var(--v160-text-muted);
	border-radius: var(--v160-r-xs);
}

.gab-dash-close {
	position: absolute;
	inset-block-start: 12px;
	inset-inline-end: 12px;
	inline-size: 36px;
	block-size: 36px;
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-md);
	background: var(--v160-surface);
	color: var(--v160-text-muted);
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

/* mobile top bar */
.gab-dash-mbar {
	background: var(--v160-surface);
	color: var(--v160-text);
	border-block-end: 1px solid var(--v160-border);
	padding: 10px var(--v160-space-4);
	min-block-size: var(--v160-con-top-h);
	z-index: var(--v160-z-sticky);
}

.gab-dash-burger {
	inline-size: 40px;
	block-size: 40px;
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-md);
	background: var(--v160-surface);
	color: var(--v160-text);
	font-size: 20px;
}

.gab-dash-burger:active {
	background: var(--v160-surface-3);
}

.gab-dash-mbar-title {
	font-size: var(--v160-fs-md);
	font-weight: 700;
	color: var(--v160-text);
	letter-spacing: var(--v160-track-snug);
}

.gab-dash-mbar-title .accent {
	color: var(--v160-accent);
}

.gab-dash-mbar-home {
	color: var(--v160-text-muted);
	inline-size: 40px;
	block-size: 40px;
	border-radius: var(--v160-r-md);
	font-size: 18px;
}

.gab-dash-mbar-home:hover {
	background: var(--v160-surface-3);
	color: var(--v160-text);
}

.gab-dash-nav-backdrop {
	background: var(--v160-surface-overlay);
}

/* content area */
.gab-dash-main {
	inline-size: 100%;
	max-inline-size: var(--v160-con-max);
	margin-inline: auto;
	padding: var(--v160-space-6) var(--v160-con-gutter) var(--v160-space-10);
}

.gab-dash-header {
	margin-block-end: var(--v160-space-5);
	align-items: flex-start;
	flex-wrap: wrap;
}

.gab-dash-title {
	font-size: var(--v160-fs-2xl);
	font-weight: 700;
	letter-spacing: var(--v160-track-tight);
	color: var(--v160-text);
	line-height: var(--v160-lh-tight);
}

.gab-dash-subtitle {
	font-size: var(--v160-fs-sm);
	color: var(--v160-text-muted);
	margin-block-start: 4px;
}

.gab-dash-hbtn {
	min-block-size: var(--v160-control-h);
	padding: 0 var(--v160-control-pad-x);
	border-radius: var(--v160-r-md);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	border: 1px solid var(--v160-border);
	background: var(--v160-surface);
	color: var(--v160-text-muted);
	box-shadow: var(--v160-elev-1);
	transition: border-color var(--v160-dur-fast) var(--v160-ease),
		background var(--v160-dur-fast) var(--v160-ease);
}

.gab-dash-hbtn:hover {
	border-color: var(--v160-border-strong);
	background: var(--v160-surface-2);
	color: var(--v160-text);
	box-shadow: var(--v160-elev-2);
}

.gab-dash-hbtn--wp {
	background: var(--v160-surface-dark);
	border-color: var(--v160-surface-dark);
	color: var(--v160-text-inverse);
}

.gab-dash-hbtn--wp:hover {
	background: var(--gab-navy-800);
	border-color: var(--gab-navy-800);
	color: var(--v160-text-inverse);
}

/* ---- 16.2 stat / KPI strips ------------------------------------------------ */
.gab-dash-stats,
.gab-astat-row {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--v160-space-3);
	margin-block-end: var(--v160-space-5);
}

.gab-astat-row--6 {
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.gab-dash-stat,
.gab-astat {
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-xl);
	box-shadow: var(--v160-elev-1);
	padding: var(--v160-space-4);
	gap: var(--v160-space-3);
	align-items: center;
}

.gab-dash-stat-icon,
.gab-astat-icon {
	inline-size: 38px;
	block-size: 38px;
	border-radius: var(--v160-r-md);
	font-size: 17px;
	background: var(--v160-surface-3);
	color: var(--v160-text-muted);
}

.gab-dash-stat-icon--blue,
.gab-astat-icon--blue {
	background: var(--v160-info-soft);
	color: var(--v160-info);
}

.gab-dash-stat-icon--green,
.gab-astat-icon--green {
	background: var(--v160-success-soft);
	color: var(--v160-success);
}

.gab-dash-stat-icon--amber,
.gab-astat-icon--amber {
	background: var(--v160-warning-soft);
	color: var(--v160-warning);
}

.gab-dash-stat-icon--purple,
.gab-astat-icon--violet {
	background: var(--v160-accent-soft);
	color: var(--v160-accent);
}

.gab-astat-icon--red {
	background: var(--v160-danger-soft);
	color: var(--v160-danger);
}

.gab-astat-icon--gray {
	background: var(--v160-neutral-soft);
	color: var(--v160-neutral);
}

.gab-dash-stat-value,
.gab-astat-val {
	font-size: var(--v160-fs-3xl);
	font-weight: 700;
	color: var(--v160-text);
	letter-spacing: var(--v160-track-tight);
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
}

.gab-dash-stat-label,
.gab-astat-lbl {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
	margin-block-start: 3px;
	font-weight: 600;
}

/* dealer PRO KPI cards (14-dealer.css) */
.gab-kpi-grid {
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: var(--v160-space-3);
	margin-block-end: var(--v160-space-5);
}

.gab-kpi {
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-xl);
	box-shadow: var(--v160-elev-1);
	padding: var(--v160-space-4);
	animation: none;
	transition: box-shadow var(--v160-dur) var(--v160-ease),
		border-color var(--v160-dur) var(--v160-ease);
}

.gab-kpi:hover {
	transform: none;
	box-shadow: var(--v160-elev-3);
	border-color: var(--v160-border-strong);
}

.gab-kpi-icon {
	inline-size: 36px;
	block-size: 36px;
	border-radius: var(--v160-r-md);
	font-size: 16px;
	background: var(--v160-surface-3);
	color: var(--v160-text-muted);
}

.gab-kpi-icon--blue { background: var(--v160-info-soft); color: var(--v160-info); }
.gab-kpi-icon--green { background: var(--v160-success-soft); color: var(--v160-success); }
.gab-kpi-icon--amber { background: var(--v160-warning-soft); color: var(--v160-warning); }
.gab-kpi-icon--violet { background: var(--v160-accent-soft); color: var(--v160-accent); }

.gab-kpi-value {
	font-size: var(--v160-fs-3xl);
	font-weight: 700;
	letter-spacing: var(--v160-track-tight);
	color: var(--v160-text);
	font-variant-numeric: tabular-nums;
}

.gab-kpi-label {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
	font-weight: 600;
}

.gab-kpi-delta,
.gab-kpi-trend {
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	padding: 2px 7px;
	border-radius: var(--v160-r-pill);
	background: var(--v160-neutral-soft);
	color: var(--v160-neutral);
}

.gab-kpi-delta--up,
.gab-kpi-trend.is-up {
	background: var(--v160-success-soft);
	color: var(--v160-success);
}

.gab-kpi-delta--down,
.gab-kpi-trend.is-down {
	background: var(--v160-danger-soft);
	color: var(--v160-danger);
}

.gab-kpi-trend {
	inset-block-start: 14px;
	inset-inline-end: 14px;
	inset-inline-start: auto;
}

/* ---- 16.3 toolbars, filters, chips ---------------------------------------- */
.gab-atoolbar {
	gap: var(--v160-space-2);
	margin-block-end: var(--v160-space-3);
	padding: var(--v160-space-3);
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-xl);
	align-items: center;
}

.gab-asearch {
	min-inline-size: 200px;
}

.gab-asearch i {
	/* neutralise the legacy physical `left: 14px` from 16-admin.css first,
	   then position logically so Arabic mirrors correctly */
	left: auto;
	right: auto;
	inset-inline-start: 13px;
	inset-inline-end: auto;
	color: var(--v160-text-subtle);
	font-size: 14px;
}

.gab-asearch input {
	min-block-size: var(--v160-control-h);
	padding-block: 0;
	padding-inline: 38px var(--v160-control-pad-x);
	border: 1px solid var(--v160-border-strong);
	border-radius: var(--v160-r-md);
	background: var(--v160-surface);
	color: var(--v160-text);
	font-size: var(--v160-fs-sm);
	font-family: inherit;
}

.gab-asearch input:focus {
	border-color: var(--v160-accent);
	box-shadow: var(--v160-ring);
	outline: none;
}

.gab-afilter,
.gab-apage-size {
	min-block-size: var(--v160-control-h);
	padding: 0 var(--v160-control-pad-x);
	border: 1px solid var(--v160-border-strong);
	border-radius: var(--v160-r-md);
	background: var(--v160-surface);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-sm);
	font-family: inherit;
}

.gab-afilter:focus,
.gab-apage-size:focus {
	border-color: var(--v160-accent);
	box-shadow: var(--v160-ring);
	outline: none;
}

.gab-atool-csv {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-block-size: var(--v160-control-h);
	padding: 0 var(--v160-control-pad-x);
	border: 1px solid var(--v160-border-strong);
	border-radius: var(--v160-r-md);
	background: var(--v160-surface);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
}

.gab-atool-csv:hover {
	border-color: var(--v160-border-strong);
	background: var(--v160-surface-2);
	color: var(--v160-text);
}

.gab-achip {
	min-block-size: 34px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-pill);
	background: var(--v160-surface);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
}

.gab-achip.is-active {
	background: var(--v160-accent-soft);
	border-color: var(--v160-accent-border);
	color: var(--v160-accent-hover);
}

/* ---- 16.4 bulk bar --------------------------------------------------------- */
.gab-abulk {
	align-items: center;
	gap: var(--v160-space-3);
	flex-wrap: wrap;
	margin-block-end: var(--v160-space-3);
	padding: var(--v160-space-2) var(--v160-space-3) var(--v160-space-2) var(--v160-space-4);
	background: var(--v160-surface-dark);
	color: var(--v160-text-inverse);
	border-radius: var(--v160-r-xl);
	box-shadow: var(--v160-elev-3);
}

.gab-abulk-count {
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.gab-abulk-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.gab-abulk-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-block-size: 34px;
	padding: 0 12px;
	border: 1px solid var(--v160-border-inverse);
	border-radius: var(--v160-r-md);
	background: transparent;
	color: var(--v160-text-inverse);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
}

.gab-abulk-btn:hover {
	background: var(--gab-navy-700);
}

.gab-abulk-btn--warn {
	border-color: var(--v160-warning);
	color: var(--v160-warning-soft);
}

.gab-abulk-btn--warn:hover {
	background: var(--v160-warning);
	color: var(--v160-text-inverse);
}

.gab-abulk-clear {
	margin-inline-start: auto;
	border: 0;
	background: transparent;
	color: var(--v160-text-subtle);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	font-family: inherit;
	min-block-size: 34px;
	padding-inline: 8px;
	cursor: pointer;
}

.gab-abulk-clear:hover {
	color: var(--v160-text-inverse);
	text-decoration: underline;
}

/* ---- 16.5 tables ----------------------------------------------------------- */
.gab-atable-wrap,
.gab-table-wrap {
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-xl);
	box-shadow: var(--v160-elev-1);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.gab-atable,
.gab-table,
.gab-inv-table,
.gab-protable {
	inline-size: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.gab-atable thead th,
.gab-table th,
.gab-protable th {
	position: sticky;
	inset-block-start: 0;
	z-index: 1;
	background: var(--v160-surface-2);
	text-align: start;
	padding: 10px var(--v160-space-4);
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--v160-text-subtle);
	border-block-end: 1px solid var(--v160-border);
	white-space: nowrap;
}

.gab-atable tbody td,
.gab-table td,
.gab-protable td {
	padding: 11px var(--v160-space-4);
	border-block-start: 0;
	border-block-end: 1px solid var(--v160-border-subtle);
	font-size: var(--v160-fs-sm);
	color: var(--v160-text-muted);
	vertical-align: middle;
	line-height: var(--v160-lh-snug);
}

.gab-atable tbody tr:last-child td,
.gab-table tr:last-child td,
.gab-protable tbody tr:last-child td {
	border-block-end: 0;
}

.gab-atable tbody tr:hover,
.gab-protable tbody tr:hover {
	background: var(--v160-surface-2);
}

.gab-table tr:hover td {
	background: var(--v160-surface-2);
}

.gab-ath-chk,
.gab-atd-chk {
	inline-size: 44px;
	text-align: center;
	padding-inline: var(--v160-space-3);
}

.gab-ath-sort {
	cursor: pointer;
	user-select: none;
}

.gab-ath-sort:hover {
	color: var(--v160-text-muted);
}

.gab-ath-sort i {
	font-size: 10px;
	margin-inline-start: 3px;
	opacity: .55;
}

.gab-ath-sort.is-asc i,
.gab-ath-sort.is-desc i {
	opacity: 1;
	color: var(--v160-accent);
}

.gab-acell-main,
.gab-table-car,
.gab-protable-car {
	display: flex;
	align-items: center;
	gap: 10px;
	min-inline-size: 0;
}

.gab-acell-avatar,
.gab-inq-avatar {
	inline-size: 34px;
	block-size: 34px;
	border-radius: var(--v160-r-pill);
	background: var(--v160-surface-3);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-sm);
	font-weight: 700;
	background-image: none;
	flex-shrink: 0;
}

.gab-acell-name,
.gab-table-car-name,
.gab-protable-name {
	font-size: var(--v160-fs-sm);
	font-weight: 700;
	color: var(--v160-text);
}

.gab-acell-sub,
.gab-table-car-meta,
.gab-protable-meta {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
}

.gab-acell-thumb,
.gab-table-thumb,
.gab-inv-thumb,
.gab-protable-thumb {
	inline-size: 56px;
	block-size: 42px;
	border-radius: var(--v160-r-sm);
	background: var(--v160-surface-3);
	background-image: none;
	border: 1px solid var(--v160-border-subtle);
	color: var(--v160-text-subtle);
	flex-shrink: 0;
	overflow: hidden;
}

.gab-table-price,
.gab-inv-price,
.gab-protable-price {
	font-weight: 700;
	color: var(--v160-accent);
	font-variant-numeric: tabular-nums;
}

.gab-inv-metric,
.gab-protable-mini {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
	font-variant-numeric: tabular-nums;
}

/* ---- 16.6 badges + status pills ------------------------------------------- */
.gab-abadge,
.gab-status,
.gab-tier-badge,
.gab-my-list-status,
.hicm-admin-inquiry-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 9px;
	border-radius: var(--v160-r-pill);
	border: 1px solid var(--v160-neutral-border);
	background: var(--v160-neutral-soft);
	color: var(--v160-neutral);
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	line-height: 18px;
	white-space: nowrap;
}

.gab-abadge--active,
.gab-abadge--green,
.gab-status--active,
.gab-my-list-status--answered,
.gab-my-badge-inline {
	background: var(--v160-success-soft);
	border-color: var(--v160-success-border);
	color: var(--v160-success);
}

.gab-abadge--pending,
.gab-abadge--amber,
.gab-status--pending {
	background: var(--v160-warning-soft);
	border-color: var(--v160-warning-border);
	color: var(--v160-warning);
}

.gab-abadge--review,
.gab-abadge--blue,
.gab-status--review {
	background: var(--v160-info-soft);
	border-color: var(--v160-info-border);
	color: var(--v160-info);
}

.gab-abadge--rejected,
.gab-abadge--red,
.gab-status--rejected {
	background: var(--v160-danger-soft);
	border-color: var(--v160-danger-border);
	color: var(--v160-danger);
}

.gab-abadge--gray,
.gab-status--sold,
.gab-my-list-status--waiting {
	background: var(--v160-neutral-soft);
	border-color: var(--v160-neutral-border);
	color: var(--v160-neutral);
}

.gab-abadge i {
	font-size: 10px;
	margin-right: 0; /* clears legacy 16-admin.css margin-right before the logical value */
	margin-inline-end: 1px;
}

.gab-tier-badge--free {
	background: var(--v160-neutral-soft);
	border-color: var(--v160-neutral-border);
	color: var(--v160-neutral);
}

.gab-tier-badge--basic {
	background: var(--v160-info-soft);
	border-color: var(--v160-info-border);
	color: var(--v160-info);
}

.gab-tier-badge--premium {
	background: var(--v160-accent-soft);
	background-image: none;
	border-color: var(--v160-accent-border);
	color: var(--v160-accent-hover);
}

/* ---- 16.7 row action buttons ---------------------------------------------- */
.gab-aact,
.gab-table-actions {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.gab-aact-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-block-size: 32px;
	padding: 0 11px;
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-md);
	background: var(--v160-surface);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-xs);
	font-weight: 600;
	font-family: inherit;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color var(--v160-dur-fast) var(--v160-ease),
		background var(--v160-dur-fast) var(--v160-ease),
		color var(--v160-dur-fast) var(--v160-ease);
}

.gab-aact-btn:hover {
	border-color: var(--v160-border-strong);
	background: var(--v160-surface-2);
	color: var(--v160-text);
}

.gab-aact-btn--approve,
.gab-aact-btn--ok {
	background: var(--v160-success-soft);
	border-color: var(--v160-success-border);
	color: var(--v160-success);
}

.gab-aact-btn--approve:hover,
.gab-aact-btn--ok:hover {
	background: var(--v160-success);
	border-color: var(--v160-success);
	color: var(--v160-text-inverse);
	filter: none;
}

.gab-aact-btn--reject,
.gab-aact-btn--no {
	background: var(--v160-surface);
	border-color: var(--v160-border);
	color: var(--v160-text-muted);
}

.gab-aact-btn--reject:hover,
.gab-aact-btn--no:hover {
	background: var(--v160-danger-soft);
	border-color: var(--v160-danger-border);
	color: var(--v160-danger);
}

.gab-aact-btn--view,
.gab-aact-btn--dealer {
	background: var(--v160-surface);
	border-color: var(--v160-border-strong);
	color: var(--v160-text);
}

.gab-aact-btn--view:hover,
.gab-aact-btn--dealer:hover {
	background: var(--v160-accent-soft);
	border-color: var(--v160-accent-border);
	color: var(--v160-accent-hover);
}

.gab-aact-btn--best,
.gab-aact-btn--best-on {
	background: var(--v160-surface);
	border-color: var(--v160-border);
	color: var(--v160-text-muted);
}

.gab-aact-btn--best-on {
	background: var(--v160-accent-soft);
	border-color: var(--v160-accent-border);
	color: var(--v160-accent-hover);
}

.gab-aicon-btn,
.gab-table-act {
	inline-size: 32px;
	block-size: 32px;
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-sm);
	background: var(--v160-surface);
	color: var(--v160-text-muted);
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.gab-aicon-btn:hover,
.gab-table-act:hover {
	border-color: var(--v160-border-strong);
	background: var(--v160-surface-2);
	color: var(--v160-text);
}

.gab-table-act--danger:hover {
	background: var(--v160-danger-soft);
	border-color: var(--v160-danger-border);
	color: var(--v160-danger);
}

.gab-reject-chip {
	min-block-size: 30px;
	display: inline-flex;
	align-items: center;
	padding: 0 11px;
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-pill);
	background: var(--v160-surface);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-xs);
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}

.gab-reject-chip:hover {
	border-color: var(--v160-accent-border);
	background: var(--v160-accent-soft);
	color: var(--v160-accent-hover);
}

/* ---- 16.8 pagination ------------------------------------------------------- */
.gab-apage {
	padding: var(--v160-space-3) var(--v160-space-4);
	border-block-start: 1px solid var(--v160-border-subtle);
	background: var(--v160-surface-2);
	flex-wrap: wrap;
	gap: var(--v160-space-3);
}

.gab-apage-info {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
	font-variant-numeric: tabular-nums;
}

.gab-apage-ctrl {
	display: flex;
	align-items: center;
	gap: var(--v160-space-2);
	flex-wrap: wrap;
}

.gab-apage-nums {
	gap: 3px;
	flex-wrap: wrap;
}

.gab-apage-num {
	min-inline-size: 34px;
	block-size: 34px;
	padding: 0 8px;
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-md);
	background: var(--v160-surface);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	inline-size: auto;
}

.gab-apage-num:hover {
	border-color: var(--v160-border-strong);
	background: var(--v160-surface-2);
	color: var(--v160-text);
}

.gab-apage-num.is-active {
	background: var(--v160-accent);
	border-color: var(--v160-accent);
	color: var(--v160-accent-contrast);
}

/* ---- 16.9 cards, panels, quick grid ---------------------------------------- */
.gab-dash-card,
.gab-panel,
.gab-stat-card,
.gab-quickbox,
.gab-preview-card,
.gab-progress-card,
.gab-lsec,
.gab-my-panel,
.gab-my-sidebar {
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-xl);
	box-shadow: var(--v160-elev-1);
	animation: none;
}

.gab-dash-card {
	margin-block-end: var(--v160-space-5);
	overflow: hidden;
}

.gab-dash-card-head,
.gab-panel-head,
.gab-stat-card-head {
	padding: var(--v160-space-4);
	border-block-end: 1px solid var(--v160-border-subtle);
	margin-block-end: 0;
	gap: var(--v160-space-3);
	flex-wrap: wrap;
}

.gab-dash-card-title,
.gab-panel-title,
.gab-stat-card-title,
.gab-quickbox-title {
	font-size: var(--v160-fs-md);
	font-weight: 700;
	color: var(--v160-text);
	letter-spacing: var(--v160-track-snug);
}

.gab-panel-sub,
.gab-stat-card-sub {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
	font-weight: 500;
}

.gab-dash-card-body {
	padding: var(--v160-space-4);
}

.gab-panel,
.gab-stat-card {
	padding: var(--v160-space-4);
}

.gab-panel-head,
.gab-stat-card-head {
	padding: 0 0 var(--v160-space-3);
	margin-block-end: var(--v160-space-3);
}

.gab-panel-foot {
	margin-block-start: var(--v160-space-3);
	padding-block-start: var(--v160-space-3);
	border-block-start: 1px solid var(--v160-border-subtle);
}

.gab-panel-foot a,
.gab-sec-head__link {
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	color: var(--v160-text-link);
	text-decoration: none;
}

.gab-panel-foot a:hover,
.gab-sec-head__link:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gab-quickbox {
	padding: var(--v160-space-5);
	margin-block-start: var(--v160-space-5);
}

.gab-quickgrid {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: var(--v160-space-3);
}

.gab-quickcard {
	gap: 9px;
	padding: var(--v160-space-4) var(--v160-space-3);
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-lg);
	box-shadow: none;
	transition: border-color var(--v160-dur) var(--v160-ease),
		box-shadow var(--v160-dur) var(--v160-ease);
}

.gab-quickcard:hover {
	transform: none;
	border-color: var(--v160-border-strong);
	box-shadow: var(--v160-elev-3);
	background: var(--v160-surface);
}

.gab-quickcard-icon {
	inline-size: 40px;
	block-size: 40px;
	border-radius: var(--v160-r-md);
	background: var(--v160-surface-3);
	color: var(--v160-text-muted);
	font-size: 18px;
}

.gab-quickcard:hover .gab-quickcard-icon {
	background: var(--v160-accent-soft);
	color: var(--v160-accent);
}

.gab-quickcard-label {
	font-size: var(--v160-fs-xs);
	font-weight: 600;
	color: var(--v160-text-muted);
}

/* legends, ranks, donuts, traffic cells from 16-admin.css */
.gab-legend-dot,
.gab-donut-dot,
.gab-donut-legend-row .dot {
	inline-size: 10px;
	block-size: 10px;
	border-radius: 3px;
}

.gab-legend-item,
.gab-donut-leg,
.gab-donut-legend-row {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
	font-weight: 600;
}

.gab-donut-total {
	font-size: var(--v160-fs-3xl);
	font-weight: 700;
	color: var(--v160-text);
	font-variant-numeric: tabular-nums;
	letter-spacing: var(--v160-track-tight);
}

.gab-donut-total-label {
	font-size: var(--v160-fs-2xs);
	color: var(--v160-text-subtle);
}

.gab-rank-no {
	border-radius: var(--v160-r-sm);
	background: var(--v160-surface-3);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.gab-rank-no--top {
	background: var(--v160-accent);
	background-image: none;
	color: var(--v160-accent-contrast);
}

.gab-rank-bar {
	block-size: 7px;
	background: var(--v160-surface-3);
	border-radius: var(--v160-r-pill);
}

.gab-rank-bar > div,
.gab-rank-bar--accent > div {
	background: var(--v160-accent);
	background-image: none;
	border-radius: var(--v160-r-pill);
}

.gab-rank-dealer-val {
	color: var(--v160-accent);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.gab-traffic-cell {
	background: var(--v160-surface-2);
	border: 1px solid var(--v160-border-subtle);
	border-radius: var(--v160-r-lg);
	padding: var(--v160-space-3);
}

.gab-traffic-val {
	font-size: var(--v160-fs-2xl);
	font-weight: 700;
	color: var(--v160-text);
	font-variant-numeric: tabular-nums;
	letter-spacing: var(--v160-track-tight);
}

.gab-traffic-lbl {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
	font-weight: 600;
}

.gab-stat-range {
	background: var(--v160-surface-3);
	border-radius: var(--v160-r-lg);
	padding: 3px;
}

.gab-stat-range-btn {
	min-block-size: 30px;
	padding: 0 12px;
	border-radius: var(--v160-r-md);
	font-size: var(--v160-fs-xs);
	font-weight: 700;
	color: var(--v160-text-muted);
	font-family: inherit;
}

.gab-stat-range-btn.is-on {
	background: var(--v160-surface);
	color: var(--v160-accent);
	box-shadow: var(--v160-elev-1);
}

/* ---- 16.10 dealer PRO header, feed, inquiry widgets ------------------------ */
.gab-dpro {
	background: var(--v160-surface-2);
	background-image: none;
	inline-size: 100%;
	max-inline-size: var(--v160-con-max);
	margin-inline: auto;
	padding: var(--v160-space-6) var(--v160-con-gutter) var(--v160-space-10);
}

.gab-dpro-top {
	margin-block-end: var(--v160-space-5);
	flex-wrap: wrap;
}

.gab-dpro-hello {
	font-size: var(--v160-fs-2xl);
	font-weight: 700;
	letter-spacing: var(--v160-track-tight);
	color: var(--v160-text);
}

.gab-dpro-hello .wave {
	animation: none;
}

.gab-dpro-date {
	font-size: var(--v160-fs-sm);
	color: var(--v160-text-muted);
}

.gab-dpro-bell {
	inline-size: 40px;
	block-size: 40px;
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-md);
	background: var(--v160-surface);
	color: var(--v160-text-muted);
	font-size: 17px;
}

.gab-dpro-bell:hover {
	border-color: var(--v160-border-strong);
	color: var(--v160-text);
}

.gab-dpro-bell-dot {
	right: auto; /* clears legacy 14-dealer.css right:10px */
	inset-block-start: 8px;
	inset-inline-end: 9px;
	inset-inline-start: auto;
	background: var(--v160-accent);
	border-color: var(--v160-surface);
}

.gab-dpro-cta {
	min-block-size: var(--v160-control-h);
	padding: 0 var(--v160-control-pad-x);
	background: var(--v160-accent);
	background-image: none;
	color: var(--v160-accent-contrast);
	border-radius: var(--v160-r-md);
	font-size: var(--v160-fs-sm);
	font-weight: 700;
	box-shadow: var(--v160-elev-1);
}

.gab-dpro-cta:hover {
	background: var(--v160-accent-hover);
	box-shadow: var(--v160-elev-2);
}

.gab-inq-item {
	gap: 10px;
	padding: 10px 0;
	border-block-start: 1px solid var(--v160-border-subtle);
}

.gab-inq-buyer {
	font-size: var(--v160-fs-sm);
	font-weight: 700;
	color: var(--v160-text);
}

.gab-inq-car {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
}

.gab-inq-time {
	font-size: var(--v160-fs-2xs);
	color: var(--v160-text-subtle);
	font-variant-numeric: tabular-nums;
}

.gab-inq-unread {
	right: auto; /* clears legacy 14-dealer.css right:-1px */
	background: var(--v160-accent);
	border-color: var(--v160-surface);
	inset-inline-end: -1px;
}

.gab-inq-reply {
	min-block-size: 32px;
	display: inline-flex;
	align-items: center;
	padding: 0 12px;
	border-radius: var(--v160-r-md);
	background: var(--v160-accent-soft);
	color: var(--v160-accent-hover);
	font-size: var(--v160-fs-xs);
	font-weight: 700;
}

.gab-inq-reply:hover {
	background: var(--v160-accent);
	color: var(--v160-accent-contrast);
}

.gab-feed-item:not(:last-child)::before {
	left: auto; /* clears legacy 14-dealer.css left:17px */
	inset-inline-start: 17px;
	background: var(--v160-border);
	inline-size: 1px;
}

.gab-feed-icon {
	inline-size: 34px;
	block-size: 34px;
	font-size: 14px;
	background: var(--v160-surface-3);
	color: var(--v160-text-muted);
}

.gab-feed-icon--sale { background: var(--v160-success-soft); color: var(--v160-success); }
.gab-feed-icon--review { background: var(--v160-info-soft); color: var(--v160-info); }
.gab-feed-icon--inquiry { background: var(--v160-warning-soft); color: var(--v160-warning); }
.gab-feed-icon--view { background: var(--v160-neutral-soft); color: var(--v160-neutral); }

.gab-feed-text {
	font-size: var(--v160-fs-sm);
	color: var(--v160-text-muted);
	line-height: var(--v160-lh-base);
}

.gab-feed-time {
	font-size: var(--v160-fs-2xs);
	color: var(--v160-text-subtle);
	font-variant-numeric: tabular-nums;
}

/* inventory tabs */
.gab-inv-tabs {
	border-block-end: 1px solid var(--v160-border);
	gap: 2px;
	margin: 0 0 var(--v160-space-4);
}

.gab-inv-tab {
	min-block-size: 42px;
	padding: 0 14px;
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	color: var(--v160-text-muted);
	border-block-end: 2px solid transparent;
	font-family: inherit;
}

.gab-inv-tab:hover {
	color: var(--v160-text);
}

.gab-inv-tab.is-on {
	color: var(--v160-accent);
	border-block-end-color: var(--v160-accent);
	font-weight: 700;
}

.gab-inv-tab-n {
	background: var(--v160-surface-3);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	padding: 1px 7px;
	border-radius: var(--v160-r-pill);
	font-variant-numeric: tabular-nums;
}

/* The active-tab counter keeps its legacy accent tint from 16-admin.css
   (.gab-inv-tab.is-on .gab-inv-tab-n) — that already resolves to brand-red
   tints, so no third-class override is needed here. */

/* ---- 16.11 modals + drawers (legacy) --------------------------------------- */
.gab-modal-backdrop {
	background: var(--v160-surface-overlay);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	z-index: var(--v160-z-modal);
}

.gab-modal-backdrop .gab-modal {
	border-radius: var(--v160-r-2xl);
	box-shadow: var(--v160-elev-5);
	background: var(--v160-surface);
}

.gab-modal-head {
	padding: var(--v160-space-4) var(--v160-space-5);
	border-block-end: 1px solid var(--v160-border-subtle);
}

.gab-modal-head h3 {
	font-size: var(--v160-fs-lg);
	font-weight: 700;
	color: var(--v160-text);
}

.gab-modal-head h3 i {
	color: var(--v160-text-subtle);
}

.gab-modal-x {
	inline-size: 34px;
	block-size: 34px;
	border-radius: var(--v160-r-md);
	color: var(--v160-text-subtle);
}

.gab-modal-x:hover {
	background: var(--v160-surface-3);
	color: var(--v160-text);
}

.gab-modal-body {
	padding: var(--v160-space-5);
}

.gab-modal-sub {
	font-size: var(--v160-fs-sm);
	color: var(--v160-text-muted);
	margin: 0 0 var(--v160-space-4);
}

.gab-modal-sub b {
	color: var(--v160-text);
}

.gab-modal-label {
	font-size: var(--v160-fs-xs);
	font-weight: 700;
	color: var(--v160-text-muted);
	margin: var(--v160-space-3) 0 6px;
}

.gab-modal-input {
	min-block-size: var(--v160-control-h);
	padding: 8px var(--v160-control-pad-x);
	border: 1px solid var(--v160-border-strong);
	border-radius: var(--v160-r-md);
	background: var(--v160-surface);
	color: var(--v160-text);
	font-size: var(--v160-fs-md);
	font-family: inherit;
}

.gab-modal-input:focus {
	border-color: var(--v160-accent);
	box-shadow: var(--v160-ring);
	outline: none;
}

.gab-modal-foot {
	padding: var(--v160-space-4) var(--v160-space-5);
	border-block-start: 1px solid var(--v160-border-subtle);
	background: var(--v160-surface-2);
	gap: var(--v160-space-2);
	flex-wrap: wrap;
}

.gab-tier-opt span {
	min-block-size: var(--v160-control-h);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--v160-border-strong);
	border-radius: var(--v160-r-md);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	color: var(--v160-text-muted);
	padding: 8px;
}

.gab-tier-opt input:checked + span {
	border-color: var(--v160-accent);
	background: var(--v160-accent-soft);
	color: var(--v160-accent-hover);
}

.gab-tier-opt input:focus-visible + span {
	outline: 2px solid var(--v160-accent);
	outline-offset: 2px;
}

.gab-drawer-backdrop {
	position: fixed;
	inset: 0;
	background: var(--v160-surface-overlay);
	z-index: var(--v160-z-modal);
}

.gab-drawer-panel {
	background: var(--v160-surface);
	box-shadow: var(--v160-elev-5);
	border: 0;
}

.gab-drawer-head {
	padding: var(--v160-space-4);
	border-block-end: 1px solid var(--v160-border-subtle);
}

.gab-drawer-name {
	font-size: var(--v160-fs-lg);
	font-weight: 700;
	color: var(--v160-text);
}

.gab-drawer-meta {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
}

.gab-drawer-avatar {
	inline-size: 42px;
	block-size: 42px;
	border-radius: var(--v160-r-pill);
	background: var(--v160-surface-3);
	background-image: none;
	color: var(--v160-text-muted);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gab-drawer-x {
	inline-size: 34px;
	block-size: 34px;
	border: 0;
	border-radius: var(--v160-r-md);
	background: transparent;
	color: var(--v160-text-subtle);
	cursor: pointer;
}

.gab-drawer-x:hover {
	background: var(--v160-surface-3);
	color: var(--v160-text);
}

.gab-drawer-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	padding: var(--v160-space-3) var(--v160-space-4);
	border-block-end: 1px solid var(--v160-border-subtle);
}

.gab-dract {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-block-size: 34px;
	padding: 0 11px;
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-md);
	background: var(--v160-surface);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-xs);
	font-weight: 600;
	font-family: inherit;
	text-decoration: none;
	cursor: pointer;
}

.gab-dract:hover {
	border-color: var(--v160-border-strong);
	background: var(--v160-surface-2);
	color: var(--v160-text);
}

.gab-dract--del:hover {
	border-color: var(--v160-danger-border);
	background: var(--v160-danger-soft);
	color: var(--v160-danger);
}

.gab-drawer-body {
	padding: var(--v160-space-4);
}

.gab-drinfo {
	display: grid;
	grid-template-columns: minmax(120px, 40%) minmax(0, 1fr);
	gap: var(--v160-space-3);
	align-items: baseline;
	padding: 9px 0;
	border-block-end: 1px solid var(--v160-border-subtle);
}

.gab-drinfo-k {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: var(--v160-fs-xs);
	font-weight: 600;
	color: var(--v160-text-muted);
}

.gab-drinfo-v {
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	color: var(--v160-text);
	word-break: break-word;
}

/* ---- 16.12 listing form (dealer) ------------------------------------------- */
.gab-lsec {
	padding: var(--v160-space-5);
}

.gab-lsec-num {
	inline-size: 26px;
	block-size: 26px;
	background: var(--v160-accent);
	color: var(--v160-accent-contrast);
	font-size: var(--v160-fs-xs);
	font-weight: 700;
}

.gab-lsec-title,
.gab-form-section-title {
	font-size: var(--v160-fs-md);
	font-weight: 700;
	color: var(--v160-text);
}

.gab-form-section-title {
	border-block-end: 1px solid var(--v160-border-subtle);
	padding-block-end: var(--v160-space-2);
}

.gab-form-section-title i {
	color: var(--v160-text-subtle);
}

.gab-upload,
.gab-img-slot {
	border: 1px dashed var(--v160-border-strong);
	border-radius: var(--v160-r-xl);
	background: var(--v160-surface-2);
	transition: border-color var(--v160-dur-fast) var(--v160-ease),
		background var(--v160-dur-fast) var(--v160-ease);
}

.gab-upload:hover,
.gab-img-slot:hover {
	border-color: var(--v160-accent);
	background: var(--v160-accent-soft);
}

.gab-upload-icon {
	font-size: 30px;
	color: var(--v160-text-subtle);
}

.gab-upload-text {
	font-size: var(--v160-fs-sm);
	font-weight: 700;
	color: var(--v160-text);
}

.gab-upload-hint,
.gab-img-slot span {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
}

.gab-img-slot i {
	font-size: 22px;
	color: var(--v160-text-subtle);
}

.gab-upload-thumb {
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-md);
	background: var(--v160-surface-3);
	background-image: none;
	color: var(--v160-text-subtle);
}

.gab-upload-thumb--main {
	border: 1px solid var(--v160-accent);
	box-shadow: var(--v160-ring);
}

.gab-upload-badge {
	left: auto; /* clears legacy 14-dealer.css left:4px */
	background: var(--v160-accent);
	color: var(--v160-accent-contrast);
	border-radius: var(--v160-r-pill);
	inset-inline-start: 4px;
}

.gab-upload-del {
	right: auto; /* clears legacy 14-dealer.css right:4px */
	inset-inline-end: 4px;
	inline-size: 20px;
	block-size: 20px;
	background: var(--v160-surface-dark);
	color: var(--v160-text-inverse);
}

.gab-opt {
	min-block-size: var(--v160-control-h);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-md);
	font-size: var(--v160-fs-sm);
	color: var(--v160-text-muted);
	padding: 8px var(--v160-control-pad-x);
}

.gab-opt:hover {
	border-color: var(--v160-border-strong);
	background: var(--v160-surface-2);
}

.gab-opt-check {
	inline-size: 18px;
	block-size: 18px;
	border: 1px solid var(--v160-border-strong);
	border-radius: var(--v160-r-xs);
}

.gab-opt input:checked ~ .gab-opt-check {
	background: var(--v160-accent);
	border-color: var(--v160-accent);
}

.gab-price-input {
	min-block-size: var(--v160-control-h-lg);
	border: 1px solid var(--v160-border-strong);
	border-radius: var(--v160-r-md);
	font-size: var(--v160-fs-lg);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	padding-block: 0;
	padding-inline: 52px var(--v160-control-pad-x);
	color: var(--v160-text);
}

.gab-price-input:focus {
	border-color: var(--v160-accent);
	box-shadow: var(--v160-ring);
	outline: none;
}

.gab-price-cur {
	left: auto; /* clears legacy 14-dealer.css left:14px */
	inset-inline-start: 14px;
	color: var(--v160-text-subtle);
	font-weight: 600;
}

.gab-price-converted {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
	font-variant-numeric: tabular-nums;
}

.gab-switch-track {
	background: var(--v160-border-strong);
}

.gab-switch input:checked + .gab-switch-track {
	background: var(--v160-accent);
}

.gab-switch-label {
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	color: var(--v160-text);
}

.gab-switch-desc {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
}

.gab-preview-img {
	background: var(--v160-surface-3);
	background-image: none;
	color: var(--v160-text-subtle);
}

.gab-preview-badge {
	left: auto; /* clears legacy 14-dealer.css left:10px */
	background: var(--v160-accent);
	color: var(--v160-accent-contrast);
	inset-inline-start: 10px;
}

.gab-preview-label {
	color: var(--v160-text-subtle);
	font-size: var(--v160-fs-2xs);
	letter-spacing: .08em;
}

.gab-preview-title {
	font-size: var(--v160-fs-lg);
	font-weight: 700;
	color: var(--v160-text);
}

.gab-preview-meta {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
}

.gab-preview-price,
.gab-my-car-price {
	font-size: var(--v160-fs-xl);
	font-weight: 700;
	color: var(--v160-accent);
	font-variant-numeric: tabular-nums;
}

.gab-progress-card-bar {
	block-size: 7px;
	background: var(--v160-surface-3);
	border-radius: var(--v160-r-pill);
}

.gab-progress-card-fill {
	background: var(--v160-success);
	background-image: none;
	border-radius: var(--v160-r-pill);
}

.gab-progress-check {
	font-size: var(--v160-fs-sm);
	color: var(--v160-text-subtle);
}

.gab-progress-check i {
	color: var(--v160-success);
}

.gab-progress-check.done {
	color: var(--v160-text);
}

.gab-lang-tabs {
	border-block-end: 1px solid var(--v160-border);
	gap: 2px;
}

.gab-lang-tab {
	min-block-size: 42px;
	padding: 0 var(--v160-space-4);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	color: var(--v160-text-muted);
	border-block-end: 2px solid transparent;
	margin-block-end: -1px;
}

.gab-lang-tab.is-active {
	color: var(--v160-accent);
	border-block-end-color: var(--v160-accent);
	font-weight: 700;
}

/* ---- 16.13 my-page (member console) ---------------------------------------- */
.gab-my {
	max-inline-size: var(--v160-container-tight);
	gap: var(--v160-space-5);
	padding: var(--v160-space-6) var(--v160-con-gutter) var(--v160-space-10);
	background: var(--v160-surface-2);
}

.gab-my-sidebar {
	padding: var(--v160-space-4);
	inset-block-start: 84px;
}

.gab-my-profile {
	padding-block-end: var(--v160-space-3);
	border-block-end: 1px solid var(--v160-border-subtle);
	margin-block-end: var(--v160-space-3);
}

.gab-my-avatar {
	inline-size: 44px;
	block-size: 44px;
	background: var(--v160-surface-3);
	background-image: none;
	color: var(--v160-text-muted);
	overflow: hidden;
}

.gab-my-name {
	font-size: var(--v160-fs-md);
	font-weight: 700;
	color: var(--v160-text);
}

.gab-my-email {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
}

.gab-my-type-badge {
	background: var(--v160-accent-soft);
	color: var(--v160-accent-hover);
	border: 1px solid var(--v160-accent-border);
	border-radius: var(--v160-r-pill);
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	padding: 2px 9px;
}

.gab-my-dealer-cta {
	min-block-size: var(--v160-control-h);
	border-radius: var(--v160-r-md);
	background: var(--v160-surface-dark);
	background-image: none;
	color: var(--v160-text-inverse);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	padding: 10px var(--v160-space-4);
	margin-block-end: var(--v160-space-3);
}

.gab-my-dealer-cta:hover {
	transform: none;
	background: var(--gab-navy-800);
}

.gab-my-dealer-cta i:first-child {
	color: var(--v160-text-inverse);
	font-size: 16px;
}

.gab-my-nav-item {
	position: relative;
	min-block-size: 38px;
	padding: 8px var(--v160-space-3);
	border-radius: var(--v160-r-md);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	gap: 10px;
}

.gab-my-nav-item i {
	font-size: 16px;
	inline-size: 20px;
	text-align: center;
	color: var(--v160-text-subtle);
}

.gab-my-nav-item:hover {
	background: var(--v160-surface-3);
	color: var(--v160-text);
}

.gab-my-nav-item.is-active {
	background: var(--v160-accent-soft);
	color: var(--v160-accent-hover);
	font-weight: 700;
}

.gab-my-nav-item.is-active i {
	color: var(--v160-accent);
}

.gab-my-nav-item.is-active::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block: 7px;
	inline-size: 3px;
	border-radius: var(--v160-r-pill);
	background: var(--v160-accent);
}

.gab-my-badge {
	margin-left: 0; /* clears legacy 15-member.css margin-left:auto */
	margin-inline-start: auto;
	background: var(--v160-accent);
	color: var(--v160-accent-contrast);
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	border-radius: var(--v160-r-pill);
	font-variant-numeric: tabular-nums;
}

.gab-my-logout {
	min-block-size: var(--v160-control-h);
	border-block-start: 1px solid var(--v160-border-subtle);
	color: var(--v160-text-subtle);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	padding-inline: var(--v160-space-3);
	border-radius: var(--v160-r-md);
}

.gab-my-logout:hover {
	color: var(--v160-danger);
	background: var(--v160-danger-soft);
}

.gab-my-title {
	font-size: var(--v160-fs-2xl);
	font-weight: 700;
	letter-spacing: var(--v160-track-tight);
	color: var(--v160-text);
}

.gab-my-sub {
	font-size: var(--v160-fs-sm);
	color: var(--v160-text-muted);
}

.gab-my-panel {
	padding: var(--v160-space-5);
}

.gab-my-field-row {
	grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
	padding: var(--v160-space-3) 0;
	border-block-end: 1px solid var(--v160-border-subtle);
}

.gab-my-field-label {
	font-size: var(--v160-fs-xs);
	font-weight: 700;
	color: var(--v160-text-muted);
}

.gab-my-field-value {
	font-size: var(--v160-fs-sm);
	color: var(--v160-text);
	font-weight: 600;
}

.gab-my-car {
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-xl);
	background: var(--v160-surface);
	box-shadow: var(--v160-elev-1);
	transition: box-shadow var(--v160-dur) var(--v160-ease),
		border-color var(--v160-dur) var(--v160-ease);
}

.gab-my-car:hover {
	transform: none;
	box-shadow: var(--v160-elev-3);
	border-color: var(--v160-border-strong);
}

.gab-my-car-thumb {
	background: var(--v160-surface-3);
	background-image: none;
	border-radius: var(--v160-r-md);
	color: var(--v160-text-subtle);
}

.gab-my-car-title {
	font-size: var(--v160-fs-sm);
	font-weight: 700;
	color: var(--v160-text);
}

.gab-my-car-meta {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-subtle);
}

.gab-my-list-item {
	padding: var(--v160-space-3) 0;
	border-block-end: 1px solid var(--v160-border-subtle);
}

.gab-my-list-item.unread {
	background: var(--v160-accent-soft);
}

.gab-my-list-icon {
	inline-size: 36px;
	block-size: 36px;
	font-size: 15px;
	background: var(--v160-surface-3);
	color: var(--v160-text-muted);
}

.gab-my-list-icon--inquiry { background: var(--v160-warning-soft); color: var(--v160-warning); }
.gab-my-list-icon--system { background: var(--v160-info-soft); color: var(--v160-info); }
.gab-my-list-icon--reply { background: var(--v160-success-soft); color: var(--v160-success); }

.gab-my-list-text {
	font-size: var(--v160-fs-sm);
	color: var(--v160-text-muted);
	line-height: var(--v160-lh-base);
}

.gab-my-list-time {
	font-size: var(--v160-fs-2xs);
	color: var(--v160-text-subtle);
	font-variant-numeric: tabular-nums;
}

.gab-my-empty {
	padding: var(--v160-space-10) var(--v160-space-5);
	color: var(--v160-text-muted);
}

.gab-my-empty i {
	font-size: 34px;
	color: var(--v160-text-subtle);
	margin-block-end: var(--v160-space-3);
}

/* my-dashboard (hicm-my-*) */
.hicm-my-welcome,
.hicm-my-panel {
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-2xl);
	box-shadow: var(--v160-elev-1);
	background-image: none;
}

.hicm-my-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--v160-text-subtle);
}

.hicm-my-panel-head {
	border-block-end: 1px solid var(--v160-border-subtle);
	padding-block-end: var(--v160-space-3);
	margin-block-end: var(--v160-space-3);
}

.hicm-my-summary-card {
	background: var(--v160-surface);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-xl);
	box-shadow: var(--v160-elev-1);
	text-decoration: none;
	transition: box-shadow var(--v160-dur) var(--v160-ease),
		border-color var(--v160-dur) var(--v160-ease);
}

.hicm-my-summary-card:hover {
	transform: none;
	box-shadow: var(--v160-elev-3);
	border-color: var(--v160-border-strong);
}

.hicm-my-summary-icon {
	background: var(--v160-surface-3);
	background-image: none;
	color: var(--v160-text-muted);
	border-radius: var(--v160-r-md);
}

.hicm-my-summary-copy b {
	font-variant-numeric: tabular-nums;
	color: var(--v160-text);
	letter-spacing: var(--v160-track-tight);
}

.hicm-my-summary-copy small {
	color: var(--v160-text-muted);
}

/* ---- 16.14 dealer command center (hicm-dcc-*) ------------------------------ */
.hicm-dcc,
.hicm-dcc-shell {
	background: var(--v160-surface-2);
	background-image: none;
	color: var(--v160-text);
}

.hicm-dcc-hero,
.hicm-dcc-card,
.hicm-dcc-kpi,
.hicm-dcc-task,
.hicm-dcc-health-item,
.hicm-dcc-inquiry,
.hicm-dcc-capacity {
	background: var(--v160-surface);
	background-image: none;
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-xl);
	box-shadow: var(--v160-elev-1);
}

.hicm-dcc-hero {
	border-radius: var(--v160-r-2xl);
}

.hicm-dcc-eyebrow {
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--v160-text-subtle);
}

.hicm-dcc-kpi__icon {
	background: var(--v160-surface-3);
	background-image: none;
	color: var(--v160-text-muted);
	border-radius: var(--v160-r-md);
}

.hicm-dcc-kpi__content b,
.hicm-dcc-card__count,
.hicm-dcc-score {
	font-variant-numeric: tabular-nums;
	color: var(--v160-text);
	letter-spacing: var(--v160-track-tight);
}

.hicm-dcc-btn {
	min-block-size: var(--v160-control-h);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 var(--v160-control-pad-x);
	border-radius: var(--v160-r-md);
	border: 1px solid var(--v160-border);
	background: var(--v160-surface);
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-sm);
	font-weight: 600;
	font-family: inherit;
	text-decoration: none;
	box-shadow: var(--v160-elev-1);
}

.hicm-dcc-btn--primary {
	background: var(--v160-accent);
	background-image: none;
	border-color: var(--v160-accent);
	color: var(--v160-accent-contrast);
}

.hicm-dcc-btn--primary:hover {
	background: var(--v160-accent-hover);
	border-color: var(--v160-accent-hover);
}

.hicm-dcc-btn--ghost {
	background: transparent;
	box-shadow: none;
}

.hicm-dcc-btn--ghost:hover {
	background: var(--v160-surface-3);
	color: var(--v160-text);
}

.hicm-dcc-status,
.hicm-dcc-tier {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 9px;
	border-radius: var(--v160-r-pill);
	border: 1px solid var(--v160-neutral-border);
	background: var(--v160-neutral-soft);
	color: var(--v160-neutral);
	font-size: var(--v160-fs-2xs);
	font-weight: 700;
	line-height: 18px;
}

.hicm-dcc-pipe__track,
.hicm-dcc-capacity__track,
.hicm-dcc-bars__columns {
	background: var(--v160-surface-3);
	border-radius: var(--v160-r-pill);
}

.hicm-dcc-bars__day {
	background: var(--v160-accent);
	background-image: none;
	border-radius: var(--v160-r-sm) var(--v160-r-sm) 0 0;
}

.hicm-dcc-legend {
	font-size: var(--v160-fs-xs);
	color: var(--v160-text-muted);
}

.hicm-dcc-empty,
.hicm-dcc-chart-empty {
	background: var(--v160-surface-2);
	border: 1px dashed var(--v160-border-strong);
	border-radius: var(--v160-r-xl);
	color: var(--v160-text-muted);
}

.hicm-dcc-task__icon {
	background: var(--v160-surface-3);
	background-image: none;
	color: var(--v160-text-muted);
	border-radius: var(--v160-r-md);
}

.hicm-dcc-task__count {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: var(--v160-text);
}

.hicm-dcc-health-item__thumb {
	border-radius: var(--v160-r-sm);
	background: var(--v160-surface-3);
	border: 1px solid var(--v160-border-subtle);
}

/* ---- 16.15 legacy admin fragments (hicm-admin-*) --------------------------- */
.hicm-admin-empty,
.gab-arow-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: var(--v160-space-8) var(--v160-space-4);
	text-align: center;
	color: var(--v160-text-muted);
	font-size: var(--v160-fs-sm);
}

.hicm-admin-empty i,
.gab-arow-empty i {
	display: block;
	font-size: 24px;
	color: var(--v160-text-subtle);
	margin-block-end: 0;
}

.hicm-admin-empty strong,
.gab-arow-empty strong {
	font-weight: 700;
	color: var(--v160-text);
}

.hicm-admin-car-row,
.hicm-admin-review-row {
	border-block-end: 1px solid var(--v160-border-subtle);
}

.hicm-admin-media-review {
	background: var(--v160-surface-2);
	border: 1px solid var(--v160-border);
	border-radius: var(--v160-r-xl);
	padding: var(--v160-space-4);
}

.hicm-admin-media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: var(--v160-space-3);
}

.hicm-admin-media-grid img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	border-radius: var(--v160-r-md);
	border: 1px solid var(--v160-border);
	display: block;
	aspect-ratio: 4 / 3;
}

.hicm-admin-media-empty {
	padding: var(--v160-space-6);
	text-align: center;
	color: var(--v160-text-subtle);
	font-size: var(--v160-fs-sm);
	border: 1px dashed var(--v160-border-strong);
	border-radius: var(--v160-r-lg);
	background: var(--v160-surface);
}

.hicm-admin-media-actions {
	display: flex;
	gap: var(--v160-space-2);
	flex-wrap: wrap;
	margin-block-start: var(--v160-space-3);
}

.hicm-admin-media-confirm {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--v160-fs-sm);
	color: var(--v160-text-muted);
	min-block-size: var(--v160-tap);
}

.hicm-admin-review-description {
	font-size: var(--v160-fs-sm);
	color: var(--v160-text-muted);
	line-height: var(--v160-lh-base);
}

.hicm-admin-review-link {
	color: var(--v160-text-link);
	font-weight: 600;
	text-decoration: none;
}

.hicm-admin-review-link:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---- 16.16 misc legacy typographic bits ------------------------------------ */
.gab-ord-no {
	font-family: var(--v160-font-mono);
	font-size: var(--v160-fs-xs);
	font-weight: 700;
	color: var(--v160-text-link);
}

.gab-rev-stars {
	color: var(--v160-warning);
	font-size: var(--v160-fs-xs);
}

.gab-rev-text-cell {
	font-size: var(--v160-fs-sm);
	color: var(--v160-text-muted);
	line-height: var(--v160-lh-base);
}

.gab-rev-best {
	background: var(--v160-accent-soft);
	background-image: none;
	color: var(--v160-accent-hover);
	border-radius: var(--v160-r-pill);
	font-size: 10px;
	font-weight: 700;
	margin-right: 0; /* clears legacy 16-admin.css margin-right:5px */
	margin-inline-end: 5px;
}


/* ================================================================================
 * 17 — RESPONSIVE
 * ============================================================================== */

/* --- wide --- */
@media (min-width: 1441px) {
	.v160-con-shell {
		--v160-con-side-w: 276px;
	}

	.v160-con-shell__body,
	.gab-dash-main,
	.gab-dpro {
		padding-inline: var(--v160-space-8);
	}
}

/* --- tablet and below: sidebar becomes an off-canvas panel --- */
@media (max-width: 1024px) {
	.v160-con-shell,
	.v160-con-shell--rail,
	.gab-dash {
		grid-template-columns: minmax(0, 1fr);
	}

	.v160-con-shell__side {
		position: fixed;
		inset-block: 0;
		inset-inline-start: 0;
		inline-size: 280px;
		max-inline-size: 86vw;
		z-index: var(--v160-z-modal);
		transform: translateX(-100%);
		transition: transform var(--v160-dur-slow) var(--v160-ease);
		box-shadow: var(--v160-elev-5);
	}

	.v160-con-shell__side.is-open {
		transform: none;
	}

	.v160-con-scrim.is-open {
		display: block;
	}

	.v160-con-burger {
		display: inline-flex;
	}

	.v160-con-gsearch {
		flex-basis: 200px;
	}

	.v160-con-detail,
	.v160-con-grid--2,
	.v160-con-grid--3,
	.v160-con-grid--main-aside {
		grid-template-columns: minmax(0, 1fr);
	}

	.v160-con-detail__aside,
	.v160-con-detail__side {
		position: static;
	}

	.gab-dash-side {
		box-shadow: var(--v160-elev-5);
	}

	.gab-dash-close {
		display: flex;
	}

	.gab-dash-main,
	.gab-dpro,
	.gab-my {
		padding: var(--v160-space-4) var(--v160-con-gutter) var(--v160-space-9);
	}

	.gab-my {
		grid-template-columns: minmax(0, 1fr);
	}

	.gab-my-sidebar {
		position: static;
	}

	.gab-stat-grid2,
	.gab-chart-row,
	.gab-bottom-row,
	.gab-listing {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* [dir=rtl] off-canvas slides in from the inline-start edge, which is the right. */
@media (max-width: 1024px) {
	[dir="rtl"] .v160-con-shell__side {
		transform: translateX(100%);
	}

	[dir="rtl"] .v160-con-shell__side.is-open {
		transform: none;
	}
}

/* --- mobile: component reflow only (layer 41 owns mobile navigation) --- */
@media (max-width: 640px) {
	.v160-con-shell__body,
	.gab-dash-main,
	.gab-dpro,
	.gab-my {
		padding-inline: var(--v160-space-4);
		gap: var(--v160-space-4);
	}

	.v160-con-top {
		padding-inline: var(--v160-space-4);
		gap: var(--v160-space-2);
	}

	.v160-con-top__title {
		font-size: var(--v160-fs-md);
	}

	.v160-con-crumbs,
	.v160-con-gsearch,
	.v160-con-usermenu__name {
		display: none;
	}

	.v160-con-page__title,
	.gab-dash-title,
	.gab-my-title,
	.gab-dpro-hello {
		font-size: var(--v160-fs-xl);
	}

	.v160-con-page__actions,
	.gab-dash-header-actions {
		inline-size: 100%;
	}

	.v160-con-page__actions .v160-btn,
	.gab-dash-hbtn {
		flex: 1 1 auto;
		justify-content: center;
	}

	/* 44px minimum touch targets for every console control */
	.v160-con-actbtn,
	.v160-con-bulk__btn,
	.v160-con-bulk__clear,
	.v160-con-menu__item,
	.v160-con-usermenu__item,
	.v160-con-range__btn,
	.gab-aact-btn,
	.gab-aicon-btn,
	.gab-table-act,
	.gab-abulk-btn,
	.gab-abulk-clear,
	.gab-apage-num,
	.gab-atool-csv,
	.gab-reject-chip,
	.gab-dract,
	.hicm-dcc-btn {
		min-block-size: var(--v160-tap);
	}

	.v160-con-actbtn,
	.gab-aicon-btn,
	.gab-table-act {
		inline-size: var(--v160-tap);
	}

	.v160-con-filters {
		padding: var(--v160-space-3);
	}

	.v160-con-filters__field,
	.v160-con-filters__field--grow,
	.gab-asearch {
		flex: 1 1 100%;
		min-inline-size: 100%;
	}

	.v160-con-filters__actions {
		inline-size: 100%;
		margin-inline-start: 0;
	}

	.v160-con-daterange {
		inline-size: 100%;
	}

	.v160-con-daterange .v160-input {
		flex: 1 1 0;
		min-inline-size: 0;
	}

	.gab-atoolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.gab-afilter,
	.gab-atool-csv {
		inline-size: 100%;
	}

	/* Tables keep their own horizontal scroll; the page never scrolls sideways. */
	.v160-table-wrap,
	.gab-atable-wrap,
	.gab-table-wrap {
		max-inline-size: 100%;
	}

	.gab-atable,
	.gab-inv-table,
	.gab-table {
		min-inline-size: 640px;
	}

	.v160-con-formrow {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--v160-space-2);
	}

	.v160-con-formrow__label {
		padding-block-start: 0;
	}

	.v160-con-modal {
		padding: 0;
		align-items: flex-end;
	}

	.v160-con-modal__panel,
	.v160-con-modal__panel--lg,
	.v160-con-modal__panel--sm {
		max-inline-size: 100%;
		max-block-size: 92vh;
		border-start-start-radius: var(--v160-r-2xl);
		border-start-end-radius: var(--v160-r-2xl);
		border-end-start-radius: 0;
		border-end-end-radius: 0;
	}

	.v160-con-drawer__panel {
		inline-size: 100%;
	}

	.v160-con-toasts {
		inset-inline: var(--v160-space-3);
		inset-block-end: var(--v160-space-4);
		max-inline-size: none;
	}

	.v160-con-bulk,
	.gab-abulk {
		padding: var(--v160-space-3);
	}

	.v160-con-bulk__clear,
	.gab-abulk-clear {
		margin-inline-start: 0;
	}

	.v160-con-docs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.v160-con-chart-split {
		justify-content: center;
	}

	.v160-con-chart-bar,
	.v160-chart-bar {
		block-size: 160px;
	}

	/* Label above the bar so the 3-column ranked row does not crush on phones. */
	.v160-hbar {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 4px var(--v160-space-3);
	}

	.v160-hbar__track {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.gab-my-cars,
	.gab-modal-grid,
	.gab-form-grid,
	.gab-form-grid--2,
	.gab-price-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.gab-opt-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gab-upload-grid,
	.gab-img-upload {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.gab-donut-wrap {
		flex-direction: column;
		align-items: center;
	}
}


/* ================================================================================
 * 18 — RTL CORRECTIONS
 * Only for what logical properties cannot express.
 * ============================================================================== */

[dir="rtl"] .v160-con-nav__item .bi-chevron-right,
[dir="rtl"] .v160-con-crumbs__sep .bi-chevron-right,
[dir="rtl"] .v160-con-menu__item .bi-arrow-right,
[dir="rtl"] .v160-con-section__link .bi-arrow-right,
[dir="rtl"] .gab-sec-head__link .bi-arrow-right,
[dir="rtl"] .gab-my-dealer-cta .bi-arrow-right,
[dir="rtl"] .hicm-dcc-task__go .bi-arrow-right {
	transform: scaleX(-1);
}

[dir="rtl"] .v160-con-drawer__panel {
	animation-name: v160ConDrawerInRtl;
}

@keyframes v160ConDrawerInRtl {
	from { transform: translateX(-24px); opacity: 0; }
	to { transform: none; opacity: 1; }
}

/* The donut sweep is clockwise in both directions; mirror the ring so the first
   segment starts from the same visual origin as the legend order. */
[dir="rtl"] .v160-con-chart-donut__ring,
[dir="rtl"] .v160-chart-donut__ring {
	transform: scaleX(-1);
}

/* 14-dealer.css sets `padding-right: 40px !important` on .gab-select, which puts
   the chevron gap on the wrong side in Arabic. Overriding it requires matching
   its !important. */
[dir="rtl"] .gab-select {
	padding-right: var(--v160-control-pad-x) !important;
	padding-left: 40px;
}

/* 12-dashboard.css pins `.gab-table th { text-align: left }` via body[dir="rtl"],
   which our logical `text-align: start` cannot outrank at lower specificity. */
[dir="rtl"] .gab-table th,
[dir="rtl"] .gab-atable thead th {
	text-align: right;
}


/* ================================================================================
 * 19 — REDUCED MOTION + PRINT
 * ============================================================================== */

@media (prefers-reduced-motion: reduce) {
	.v160-con-toast,
	.v160-con-modal__panel,
	.v160-con-drawer__panel,
	.v160-con-shell__side {
		animation: none;
		transition: none;
	}

	.v160-con-chart-bar__fill,
	.v160-chart-bar__fill,
	.v160-chart__bar,
	.v160-hbar__fill,
	.v160-funnel__fill,
	.v160-con-progress__fill {
		transition: none;
	}
}

@media print {
	.v160-con-shell {
		display: block;
	}

	.v160-con-shell__side,
	.v160-con-top,
	.v160-con-bulk,
	.v160-con-toasts,
	.v160-con-formbar,
	.v160-con-rowact,
	.v160-con-filters,
	.gab-dash-side,
	.gab-dash-mbar,
	.gab-abulk,
	.gab-atoolbar,
	.gab-aact,
	.gab-table-actions,
	.gab-apage {
		display: none;
	}

	.v160-con-shell__body,
	.gab-dash,
	.gab-dash-main,
	.gab-dpro,
	.gab-my {
		display: block;
		padding: 0;
		max-inline-size: none;
		background: var(--v160-surface);
	}

	.v160-con-card,
	.v160-con-formsec,
	.gab-dash-card,
	.gab-panel {
		box-shadow: none;
		break-inside: avoid;
	}
}
