/* VENDEMI Love — field operations UI aligned with Core mockups */

.vl-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--vendemi-gap);
	margin: 8px 0 22px;
}

.vl-toolbar--end {
	justify-content: flex-end;
}

.vl-local-search {
	position: relative;
	flex: 1;
	max-width: 420px;
}

.vl-local-search .vendemi-search-input {
	width: 100%;
	height: 42px;
	padding: 0 44px 0 18px;
	background: var(--vendemi-card-bg);
	border: 1px solid var(--vendemi-border);
	border-radius: var(--vendemi-radius-pill);
	box-shadow: var(--vendemi-shadow-pill);
}

.vl-local-search .vendemi-search-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--vendemi-text-muted);
}

.vl-toolbar--locations {
	justify-content: flex-start;
	align-items: center;
}

.vl-toolbar--locations .vl-local-search {
	max-width: 360px;
}

.vl-toolbar--locations .vendemi-add-btn {
	width: 42px;
	height: 42px;
	flex-shrink: 0;
}

.vl-locations-dash {
	display: grid;
	grid-template-columns: minmax(260px, 1.05fr) minmax(240px, 0.95fr);
	gap: 18px;
	margin: 8px 0 22px;
	align-items: stretch;
}

.vl-locations-map {
	min-height: 280px;
	height: 100%;
	background: var(--vendemi-card-bg);
	border-radius: var(--vendemi-radius-card);
	box-shadow: var(--vendemi-shadow-subtle);
	overflow: hidden;
}

.vl-locations-map .maplibregl-canvas,
.vl-locations-map .maplibregl-canvas-container {
	border-radius: var(--vendemi-radius-card);
}

.vl-locations-map-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 280px;
	padding: 24px;
	color: var(--vendemi-text-muted);
	text-align: center;
}

.vl-locations-map-status {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	height: 100%;
	min-height: 280px;
	padding: 22px 24px;
	color: var(--vendemi-text);
}

.vl-locations-map-status__title {
	margin: 0;
	font-weight: 700;
}

.vl-locations-map-status__error {
	margin: 0;
	color: #a61e1e;
	font-size: 13px;
}

.vl-locations-map-status__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.vl-locations-map-status__list li {
	padding: 8px 10px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--vendemi-card-bg) 80%, #000 4%);
	font-size: 13px;
	line-height: 1.35;
}

.vl-locations-map-status__list li.is-ok {
	border-left: 4px solid #44574a;
}

.vl-locations-map-status__list li.is-bad {
	border-left: 4px solid #a61e1e;
}

.vl-locations-map-status__link {
	color: var(--vendemi-purple);
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
}

.vl-locations-map-status__link:hover {
	text-decoration: underline;
}

.vl-locations-status {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.vl-status-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	padding: 22px 24px;
	background: var(--vendemi-card-bg);
	border-radius: var(--vendemi-radius-card);
	box-shadow: var(--vendemi-shadow-subtle);
	color: inherit;
	text-decoration: none;
	transition: transform var(--vendemi-transition), box-shadow var(--vendemi-transition);
}

a.vl-status-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--vendemi-shadow-heavy);
}

.vl-status-card__title {
	margin: 0;
	font-size: var(--vendemi-text-md);
	font-weight: 700;
}

.vl-status-card__count {
	margin: 0;
	color: var(--vendemi-text-soft);
	font-size: var(--vendemi-text-base);
}

.vl-location-card {
	padding: 0;
	gap: 0;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}

.vl-location-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	background: color-mix(in srgb, var(--vendemi-purple) 16%, var(--vendemi-card-bg));
	overflow: hidden;
}

.vl-location-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: var(--vendemi-card-bg);
}

.vl-location-card__fallback {
	font-size: 2.4rem;
	font-weight: 700;
	color: var(--vendemi-purple);
	line-height: 1;
}

.vl-location-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px 18px;
}

.vl-location-card .vl-entity-card__footer {
	margin-top: 8px;
	padding-top: 10px;
}

.vl-location-popup {
	min-width: 180px;
	max-width: 240px;
}

.vl-location-popup__name {
	margin: 0 0 4px;
	font-weight: 700;
	font-size: 14px;
}

.vl-location-popup__line,
.vl-location-popup__count {
	margin: 0;
	font-size: 13px;
	color: var(--vendemi-text-soft);
}

.vl-location-popup__count {
	margin-top: 6px;
	font-weight: 700;
	color: var(--vendemi-text);
}

.vl-location-popup__btn {
	display: inline-flex;
	margin-top: 10px;
	padding: 7px 12px;
	border-radius: var(--vendemi-radius-pill);
	background: var(--vendemi-purple);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.vl-location-popup__btn:hover {
	filter: brightness(1.08);
}

.vl-locations-map .maplibregl-popup-content {
	padding: 12px 14px;
	border-radius: 14px;
	box-shadow: var(--vendemi-shadow-heavy);
}

.vl-locations-map .maplibregl-popup-close-button {
	display: none;
}

.vl-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.vl-card-grid--machines {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vl-entity-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 22px 18px;
	background: var(--vendemi-card-bg);
	border-radius: var(--vendemi-radius-card);
	box-shadow: var(--vendemi-shadow-subtle);
	border: 1px solid transparent;
	text-align: left;
	transition: transform var(--vendemi-transition), box-shadow var(--vendemi-transition);
}

.vl-entity-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--vendemi-shadow-heavy);
}

.vl-entity-card--button {
	width: 100%;
	cursor: pointer;
}

.vl-entity-card__title {
	font-size: var(--vendemi-text-md);
	font-weight: 700;
}

.vl-entity-card__line {
	color: var(--vendemi-text-soft);
	font-size: var(--vendemi-text-base);
}

.vl-entity-card__line--pin {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vl-entity-card__footer {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--vendemi-border);
}

.vl-empty {
	grid-column: 1 / -1;
	color: var(--vendemi-text-muted);
	padding: 40px 0;
}

.vl-machine-section {
	margin-bottom: 28px;
}

.vl-machine-kpi {
	/* Purple only lives here — never on status bols. */
	--vl-machine-available: #b8e6bd;
	--vl-machine-on-location: #ddd0f0;
	--vl-machine-limited: #ffd08a;
	--vl-machine-defect-on-location: #ffb3b3;
	--vl-machine-defect-warehouse: #a61e1e;
	margin-bottom: 8px;
}

body.vendemi-canvas .vl-machine-kpi .vl-machine-kpi__metric--available {
	border-left-color: var(--vl-machine-available) !important;
}

body.vendemi-canvas .vl-machine-kpi .vl-machine-kpi__metric--on-location {
	border-left-color: var(--vl-machine-on-location) !important;
}

body.vendemi-canvas .vl-machine-kpi .vl-machine-kpi__metric--limited {
	border-left-color: var(--vl-machine-limited) !important;
}

body.vendemi-canvas .vl-machine-kpi .vl-machine-kpi__metric--defect-on-location {
	border-left-color: var(--vl-machine-defect-on-location) !important;
}

body.vendemi-canvas .vl-machine-kpi .vl-machine-kpi__metric--defect-warehouse {
	border-left-color: var(--vl-machine-defect-warehouse) !important;
}

body.vendemi-canvas .vl-machine-kpi .vl-machine-kpi__segment--available {
	background: var(--vl-machine-available) !important;
}

body.vendemi-canvas .vl-machine-kpi .vl-machine-kpi__segment--on-location {
	background: var(--vl-machine-on-location) !important;
}

body.vendemi-canvas .vl-machine-kpi .vl-machine-kpi__segment--limited {
	background: var(--vl-machine-limited) !important;
}

body.vendemi-canvas .vl-machine-kpi .vl-machine-kpi__segment--defect-on-location {
	background: var(--vl-machine-defect-on-location) !important;
}

body.vendemi-canvas .vl-machine-kpi .vl-machine-kpi__segment--defect-warehouse {
	background: var(--vl-machine-defect-warehouse) !important;
}

.vl-location-page {
	display: grid;
	gap: 18px;
}

.vl-location-top {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 18px;
	align-items: stretch;
}

.vl-location-mid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 240px;
	gap: 18px;
	align-items: stretch;
}

.vl-location-bottom {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	align-items: start;
}

.vl-panel {
	background: var(--vendemi-card-bg);
	border-radius: var(--vendemi-radius-card);
	box-shadow: var(--vendemi-shadow-subtle);
	padding: 22px;
}

.vl-panel--schedule {
	min-height: 0;
}

.vl-panel--schedule .vendemi-schedule-row {
	margin-top: 6px;
}

.vl-panel--schedule .vendemi-timeline {
	max-height: 180px;
}

.vl-panel--info {
	min-height: 0;
}

.vl-info-split {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.8fr);
	gap: 28px;
	align-items: start;
	height: 100%;
}

.vl-quick-side {
	display: flex;
	flex-direction: column;
	justify-content: stretch;
	gap: 0;
	padding: 0;
	overflow: hidden;
	min-height: 0;
}

body.vendemi-canvas .vl-side-action,
body.vendemi-canvas button.vl-side-action,
body.vendemi-canvas a.vl-side-action {
	display: flex;
	align-items: center;
	flex: 1 1 0;
	width: 100%;
	min-height: 44px;
	padding: 12px 18px;
	text-align: left;
	font: inherit;
	font-weight: 600;
	font-size: var(--vendemi-text-base);
	line-height: 1.25;
	color: inherit;
	text-decoration: none;
	border: 0;
	border-bottom: 1px solid var(--vendemi-border);
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	box-sizing: border-box;
}

body.vendemi-canvas .vl-side-action:last-child,
body.vendemi-canvas button.vl-side-action:last-child,
body.vendemi-canvas a.vl-side-action:last-child {
	border-bottom: 0;
}

body.vendemi-canvas .vl-side-action:hover,
body.vendemi-canvas button.vl-side-action:hover,
body.vendemi-canvas a.vl-side-action:hover {
	background: var(--vendemi-surface-alt);
}

.vl-quick-side--compact {
	align-self: start;
	justify-content: flex-start;
	height: auto;
	min-height: 0;
	padding: 18px 0 8px;
}

.vl-quick-side--compact .vl-panel__title {
	margin: 0 0 4px;
	padding: 0 18px;
}

.vl-quick-side__list {
	display: flex;
	flex-direction: column;
}

body.vendemi-canvas .vl-quick-side--compact .vl-side-action,
body.vendemi-canvas .vl-quick-side--compact button.vl-side-action,
body.vendemi-canvas .vl-quick-side--compact a.vl-side-action {
	flex: 0 0 auto;
}

.vl-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.vl-panel__title {
	font-size: var(--vendemi-text-md);
}

.vl-panel__title--lg {
	font-size: var(--vendemi-text-lg);
	font-weight: 700;
}

.vl-panel__actions {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
}

.vl-panel__actions .vendemi-add-btn[data-vl-delete-location]:hover {
	color: var(--vendemi-danger, #c0392b);
}

.vl-panel__line {
	color: var(--vendemi-text-soft);
	margin-bottom: 4px;
}

.vl-hours {
	margin: 0;
	display: grid;
	gap: 8px;
	padding-top: 4px;
}

.vl-hours li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: var(--vendemi-text-sm);
	color: var(--vendemi-text-soft);
}

.vl-chart-placeholder,
.vl-chart-mount {
	min-height: 140px;
}

.vl-chart-mount--top5 {
	min-height: 240px;
}

.vl-sparkline {
	width: 100%;
	height: 140px;
}

.vl-sparkline--top5 {
	height: 220px;
}

.vl-chart-axis {
	stroke: #c5c9d1;
	stroke-width: 1.5;
}

.vl-chart-grid {
	stroke: #e8eaee;
	stroke-width: 1;
}

.vl-chart-tick {
	font-size: 10px;
	fill: #8b919a;
}

.vl-chart-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1rem;
	list-style: none;
	margin: 0.55rem 0 0;
	padding: 0;
	font-size: 0.85rem;
	color: #4b5563;
}

.vl-chart-legend--top {
	margin: 0 0 0.75rem;
	justify-content: flex-start;
}

.vl-chart-legend li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.vl-chart-swatch {
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 999px;
	display: inline-block;
	flex-shrink: 0;
}

.vl-chart-mount--donut {
	min-height: 200px;
}

.vl-donut-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(140px, 200px);
	gap: 16px 20px;
	align-items: center;
}

.vl-chart-legend--side {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0.45rem;
	margin: 0;
	max-height: 260px;
	overflow: auto;
}

.vl-chart-legend--side li {
	display: grid;
	grid-template-columns: 0.65rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.45rem;
	width: 100%;
}

.vl-donut-legend-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vl-donut-legend-pct {
	font-variant-numeric: tabular-nums;
	color: var(--vendemi-text-muted, #8b919a);
	font-size: 0.8rem;
}

.vl-donut-canvas {
	display: flex;
	justify-content: center;
	align-items: center;
}

.vl-donut {
	width: 100%;
	max-width: 200px;
	height: auto;
	aspect-ratio: 1;
}

.vl-donut-slice:hover {
	opacity: 0.88;
}

@media (max-width: 782px) {
	.vl-donut-layout {
		grid-template-columns: 1fr;
	}

	.vl-donut-canvas {
		order: -1;
	}

	.vl-chart-legend--side {
		max-height: none;
	}
}

.vl-panel__subtitle {
	margin: 1rem 0 0.4rem;
	font-size: 0.95rem;
	font-weight: 600;
}

.vl-revenue-line {
	margin-top: 8px;
	font-size: var(--vendemi-text-base);
}

.vl-sales-grid--rapport {
	grid-template-columns: 1fr;
}

.vl-sales-split-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.vl-least-panel,
.vl-commission-panel {
	padding: 1.25rem 1.4rem 1.35rem;
}

.vl-least-panel .vl-panel__title,
.vl-commission-panel .vl-panel__title {
	margin-bottom: 1rem;
}

.vl-commission-forms {
	display: grid;
	gap: 0.85rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vl-commission-forms li {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 0.75rem 1rem;
	align-items: center;
	font-size: 1.05rem;
	line-height: 1.35;
	color: #111827;
	padding: 0;
	border: 0;
}

.vl-commission-forms__month {
	font-weight: 500;
}

.vl-commission-forms__amount {
	font-weight: 500;
	text-align: right;
	white-space: nowrap;
}

.vl-commission-forms__download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #111827;
	width: 1.5rem;
	height: 1.5rem;
}

.vl-commission-forms__download:hover {
	color: var(--vendemi-accent, #111827);
}

.vl-commission-forms__download .vendemi-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.vl-sort-toggle {
	display: inline-flex;
	align-items: center;
	margin-left: 0.35rem;
	padding: 0 0.2rem;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	vertical-align: middle;
}

.vl-sort-toggle:hover {
	opacity: 0.7;
}

.vl-top5-panel {
	padding: 1.25rem 1.4rem 1.35rem;
}

.vl-top5-layout {
	display: grid;
	grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.6fr);
	gap: 1.5rem 2rem;
	align-items: stretch;
}

.vl-top5-list-col .vl-panel__title {
	margin-bottom: 1rem;
}

.vl-top-products {
	display: grid;
	gap: 0.85rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vl-top-products li {
	display: grid;
	grid-template-columns: 1.5rem 1fr;
	gap: 0.35rem;
	align-items: baseline;
	font-size: 1.05rem;
	line-height: 1.35;
	color: #111827;
}

.vl-top-products__rank {
	font-weight: 600;
	color: #111827;
}

.vl-top-products__name {
	font-weight: 500;
}

.vl-top5-chart-col {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.vl-browse-list {
	display: grid;
	gap: 12px;
}

.vl-browse-list li {
	display: grid;
	gap: 2px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--vendemi-border);
	font-size: var(--vendemi-text-sm);
	color: var(--vendemi-text-soft);
}

.vl-browse-list--machines li {
	grid-template-columns: 1fr auto;
	align-items: center;
}

.vl-browse-empty {
	color: var(--vendemi-text-muted);
	padding: 12px 0;
}

.vl-doc-grid--browse {
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.vl-mini-list,
.vl-machine-list,
.vl-period-list,
.vl-product-sales,
.vl-top-products {
	display: grid;
	gap: 12px;
}

.vl-mini-list li,
.vl-machine-list li,
.vl-product-sales li {
	display: grid;
	gap: 2px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--vendemi-border);
	font-size: var(--vendemi-text-sm);
	color: var(--vendemi-text-soft);
}

.vl-machine-list li {
	grid-template-columns: 1fr auto;
	align-items: center;
}

.vl-status-bol {
	display: inline-block;
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	min-width: 10px;
	min-height: 10px;
	margin-right: 2px;
	border-radius: 50%;
	vertical-align: middle;
	background: #b8e6bd;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Bols outside the overview bar: green / orange / red only. */
.vl-status-bol--ok {
	background: #b8e6bd;
}

.vl-status-bol--warn {
	background: #ffd08a;
}

.vl-status-bol--bad {
	background: #ffb3b3;
}

.vl-entity-card__title,
.vl-machine-name,
.vl-panel__title--lg,
.vendemi-nav-label,
.vendemi-search-result .vl-machine-name,
.vl-sales-machine-tab .vl-machine-name,
.vendemi-drive-machine-tab .vl-machine-name {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4em;
	min-width: 0;
}

.vendemi-nav-label {
	min-width: 0;
}

.vl-status-text {
	font-weight: 600;
	color: var(--vendemi-text-soft);
	font-size: var(--vendemi-text-sm, 0.85em);
	white-space: nowrap;
}

.vl-status-dot {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--vendemi-text);
}

.vl-status-dot::before {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #b8e6bd;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.vl-status-dot--available::before,
.vl-status-dot--on_location::before,
.vl-status-dot--active::before,
.vl-status-dot--ok::before {
	background: #b8e6bd;
}

.vl-status-dot--limited::before,
.vl-status-dot--warn::before {
	background: #ffd08a;
}

.vl-status-dot--defect_on_location::before,
.vl-status-dot--defect_warehouse::before,
.vl-status-dot--defect::before,
.vl-status-dot--bad::before {
	background: #ffb3b3;
}

.vl-doc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.vl-location-bottom .vl-panel--list {
	min-height: 280px;
}

.vl-doc-card {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 14px 8px;
	background: var(--vendemi-surface-alt);
	border-radius: 14px;
	text-align: center;
	font-size: var(--vendemi-text-xs);
}

.vl-doc-item {
	display: grid;
	gap: 4px;
}

.vl-doc-delete {
	border: 0;
	background: transparent;
	color: var(--vendemi-status-expired);
	cursor: pointer;
	font: inherit;
	font-size: var(--vendemi-text-xs);
}

.vl-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 18px;
}

.vl-metrics--combined {
	gap: 0;
	background: var(--vendemi-card-bg);
	border-radius: var(--vendemi-radius-card);
	box-shadow: var(--vendemi-shadow-subtle);
	overflow: hidden;
}

.vl-metrics--combined .vl-metric-card {
	box-shadow: none;
	border-radius: 0;
	border-right: 1px solid var(--vendemi-border);
	padding: 26px 28px;
}

.vl-metrics--combined .vl-metric-card:last-child {
	border-right: 0;
}

.vl-metric-card {
	background: var(--vendemi-card-bg);
	border-radius: var(--vendemi-radius-card);
	box-shadow: var(--vendemi-shadow-subtle);
	padding: 22px;
	display: grid;
	gap: 8px;
}

.vl-metric-card span {
	font-size: var(--vendemi-text-sm);
	color: var(--vendemi-text-muted);
}

.vl-metric-card strong {
	font-size: var(--vendemi-text-xl);
}

.vl-sales-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.vl-panel--wide {
	grid-column: 1 / -1;
}

.vl-period-pick-list {
	display: grid;
	gap: 8px;
	margin: 0 0 18px;
	max-height: 180px;
	overflow: auto;
}

.vl-period-pick-btn {
	display: grid;
	gap: 2px;
	width: 100%;
	padding: 12px 14px;
	text-align: left;
	border: 1px solid var(--vendemi-border);
	border-radius: 12px;
	background: var(--vendemi-surface-sunken);
}

.vl-period-pick-btn:hover {
	border-color: var(--vendemi-border-strong);
	background: var(--vendemi-purple-soft);
}

.vl-period-pick-btn strong {
	font-size: var(--vendemi-text-sm);
}

.vl-period-pick-btn span {
	font-size: var(--vendemi-text-xs);
	color: var(--vendemi-text-muted);
}

.vl-period-btn {
	width: 100%;
	display: grid;
	gap: 4px;
	text-align: left;
	padding: 12px 0;
	border-bottom: 1px solid var(--vendemi-border);
}

.vl-product-sales li {
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 16px;
}

.vl-range-controls {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.vl-range-select select {
	height: 40px;
	padding: 0 16px;
	border-radius: var(--vendemi-radius-pill);
	border: 1px solid var(--vendemi-border-strong);
	background: var(--vendemi-card-bg);
}

.vl-range-calendar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: var(--vendemi-radius-pill);
	border: 1px solid var(--vendemi-border-strong);
	background: var(--vendemi-card-bg);
	color: var(--vendemi-text);
	cursor: pointer;
}

.vl-range-calendar-btn:hover,
.vl-range-calendar-btn.is-open,
.vl-range-calendar-btn.is-active {
	border-color: var(--vendemi-accent, #7b4db5);
	color: var(--vendemi-accent, #7b4db5);
}

.vl-range-popover {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 40;
	width: min(280px, calc(100vw - 32px));
	padding: 14px;
	border: 1px solid var(--vendemi-border);
	border-radius: 14px;
	background: var(--vendemi-card-bg);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
	display: grid;
	gap: 10px;
}

.vl-range-popover[hidden] {
	display: none !important;
}

.vl-range-popover__field {
	display: grid;
	gap: 4px;
	font-size: 0.85rem;
	color: var(--vendemi-text-muted);
}

.vl-range-popover__field input[type='date'] {
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--vendemi-border-strong);
	border-radius: 10px;
	background: var(--vendemi-card-bg);
	color: var(--vendemi-text);
}

.vl-chart-mount--tips .vl-chart-svg-wrap {
	position: relative;
}

.vl-chart-dot--tip {
	cursor: pointer;
	pointer-events: all;
}

.vl-chart-dot--tip:hover {
	r: 5.5;
	stroke: #fff;
	stroke-width: 2;
}

.vl-chart-tooltip {
	position: absolute;
	z-index: 5;
	min-width: 160px;
	max-width: 240px;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(24, 28, 36, 0.94);
	color: #fff;
	font-size: 0.78rem;
	line-height: 1.35;
	pointer-events: none;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.vl-chart-tooltip__title,
.vl-chart-tooltip__date,
.vl-chart-tooltip__metric,
.vl-chart-tooltip__empty {
	display: block;
}

.vl-chart-tooltip__title {
	font-size: 0.82rem;
	margin-bottom: 2px;
}

.vl-chart-tooltip__date {
	opacity: 0.75;
	margin-bottom: 8px;
}

.vl-chart-tooltip__metric {
	margin-top: 2px;
}

.vl-chart-tooltip__metric em {
	font-style: normal;
	font-weight: 600;
}

.vl-chart-tooltip__products {
	list-style: none;
	margin: 8px 0 0;
	padding: 8px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	display: grid;
	gap: 4px;
}

.vl-chart-tooltip__products li {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 8px;
	align-items: baseline;
}

.vl-chart-tooltip__empty {
	margin-top: 6px;
	opacity: 0.8;
}

.vendemi-quick-actions {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.vl-notifications-card {
	min-height: 0;
}

.vl-link-machine-section + .vl-link-machine-section {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--vendemi-border);
}

.vl-machine-typeahead {
	position: relative;
}

.vl-machine-typeahead input[type='search'] {
	width: 100%;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--vendemi-border-strong);
	border-radius: var(--vendemi-radius-pill);
	background: var(--vendemi-card-bg);
}

.vl-drive-location-field .vl-machine-typeahead {
	position: relative;
}

.vl-drive-location-field .vendemi-autocomplete {
	z-index: 30;
}

.vendemi-drive-services {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 12px 0;
	padding: 12px;
	border: 1px solid var(--vendemi-border);
	border-radius: 12px;
	background: var(--vendemi-surface-sunken, #f7f7f8);
}

body.vendemi-canvas button.vl-machine-open,
body.vendemi-canvas a.vl-machine-open {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 10px 0;
	border: 0;
	background: transparent;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-decoration: none;
}

body.vendemi-canvas button.vl-machine-open:hover,
body.vendemi-canvas a.vl-machine-open:hover {
	opacity: 0.85;
}

.vl-machine-open__main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.vl-machine-revenue {
	font-size: var(--vendemi-text-sm, 0.85em);
	color: var(--vendemi-text-soft);
}

.vl-machine-fill-heading {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.vl-machine-fill-heading .vendemi-modal-title {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	margin: 0;
}

.vl-machine-fill-status {
	margin: 0;
	font-size: var(--vendemi-text-sm, 0.85em);
	font-weight: 600;
	color: var(--vendemi-text-soft);
}

.vl-spiral-map-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.vl-spiral-map-section.is-fill-mode .vl-spiral-scroll {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	align-items: stretch;
}

.vl-spiral-slot--fill {
	flex: 1 1 0;
	min-width: 0;
	max-width: none;
	padding: 6px;
	gap: 6px;
	align-self: stretch;
	overflow: hidden;
}

.vl-spiral-slot--double {
	flex: 2 1 0;
	border-style: solid;
	border-color: var(--vendemi-border-strong, #c8c8d0);
}

.vl-spiral-slot--fill.vl-spiral-slot--double {
	min-height: 100%;
}

.vl-spiral-product--double {
	min-height: 100%;
}

.vl-spiral-steps {
	font-size: 9px;
	font-weight: 500;
	color: var(--vendemi-text-muted, #6b6b76);
	white-space: nowrap;
}

.vl-spiral-map-section.is-fill-mode .vl-spiral-product__img {
	width: 44px;
	height: 44px;
}

.vl-spiral-map-section.is-fill-mode .vl-spiral-picker-input {
	font-size: 11px;
	min-height: 30px;
	padding: 4px 8px;
}

.vl-spiral-map-section.is-fill-mode .vl-spiral-product {
	overflow: hidden;
}

.vl-sales-machine-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

.vl-sales-machine-tab {
	border: 1px solid var(--vendemi-border-strong, #c8c8d0);
	background: #fff;
	border-radius: 999px;
	padding: 8px 14px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	color: inherit;
}

.vl-sales-machine-tab.is-active {
	background: var(--vendemi-purple, #7b4db5);
	border-color: var(--vendemi-purple, #7b4db5);
	color: #fff;
}

.vl-map-history-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vl-map-history-item {
	padding: 12px 14px;
	border: 1px solid var(--vendemi-border);
	border-radius: 12px;
	background: var(--vendemi-surface-sunken, #f7f7f8);
}

.vl-map-history-item strong {
	display: block;
	margin-bottom: 2px;
}

.vl-map-history-item span {
	display: block;
	font-size: 12px;
	color: var(--vendemi-text-muted, #6b6b76);
}

.vl-map-history-item p {
	margin: 8px 0 0;
	font-size: 13px;
}

.vl-map-history-empty {
	color: var(--vendemi-text-muted, #6b6b76);
}

.vl-panel__notes {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--vendemi-border);
}

.vl-panel__notes-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--vendemi-text-muted, #6b6b76);
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.vl-panel__notes p {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
}

.vl-spiral-product {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	padding: 8px;
	border: 1px dashed var(--vendemi-border-strong, #c8c8d0);
	border-radius: 10px;
	background: var(--vendemi-card-bg, #fff);
	font: inherit;
	color: inherit;
	text-align: left;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

.vl-spiral-product.has-product {
	border-style: solid;
	border-color: var(--vendemi-purple, #7b4db5);
}

.vl-spiral-product__media {
	display: flex;
	justify-content: center;
}

.vl-spiral-product__img {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--vendemi-border);
	background: var(--vendemi-surface-sunken, #f7f7f8);
}

.vl-spiral-product__img--empty {
	display: block;
	background: linear-gradient(145deg, var(--vendemi-border), var(--vendemi-card-bg, #fff));
}

.vl-spiral-product__meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: center;
}

.vl-spiral-product__meta strong {
	font-size: 11px;
	line-height: 1.25;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
}

.vl-spiral-product__meta span {
	font-size: 11px;
	color: var(--vendemi-text-muted, #6b6b76);
}

.vl-spiral-picker {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	max-width: 100%;
}

.vl-spiral-picker-field {
	position: relative;
	z-index: 1;
	min-width: 0;
	max-width: 100%;
}

.vl-spiral-picker-input {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	min-height: 34px;
	padding: 6px 10px;
	border: 1px solid var(--vendemi-border-strong, #c8c8d0);
	border-radius: 8px;
	font: inherit;
	font-size: 12px;
	color: var(--vendemi-text);
	background: var(--vendemi-card-bg);
	box-sizing: border-box;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vl-spiral-picker-input::placeholder {
	color: var(--vendemi-text-muted);
}

.vl-spiral-picker-list {
	position: fixed;
	z-index: 220;
	max-height: 190px;
	overflow-x: hidden;
	overflow-y: auto;
	margin: 0;
	padding: 4px;
	border: 1px solid var(--vendemi-border-strong, #c8c8d0);
	border-radius: 8px;
	color: var(--vendemi-text);
	background: var(--vendemi-card-bg);
	box-shadow: var(--vendemi-shadow-heavy, 0 10px 28px rgba(20, 20, 30, 0.18));
	box-sizing: border-box;
}

.vl-spiral-picker-list[hidden] {
	display: none !important;
}

.vl-spiral-picker-list.is-open {
	display: block;
}

.vl-picker-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--vendemi-text);
	text-align: left;
	font: inherit;
	cursor: pointer;
}

.vl-picker-item:hover {
	background: var(--vendemi-surface-alt, #f3f3f6);
}

.vl-picker-item strong {
	font-size: 12px;
	line-height: 1.25;
	color: inherit;
}

.vl-spiral-picker-list .vendemi-autocomplete-meta {
	color: var(--vendemi-text-muted);
}

.vl-spiral-product .vl-spiral-picker-clear {
	border: 0;
	background: transparent;
	color: var(--vendemi-text-muted, #6b6b76);
	cursor: pointer;
	font-size: 12px;
	line-height: 1;
	padding: 0 2px;
}

.vl-spiral-product .vl-spiral-picker-clear:hover {
	color: var(--vendemi-status-expired, #c0392b);
}

.vendemi-drive-service {
	margin: 0;
}

.vendemi-timeline-meta {
	display: block;
	font-size: var(--vendemi-text-sm, 13px);
	color: var(--vendemi-text-muted, #6b6b76);
}

.vl-intake-progress {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
}

.vl-intake-progress__step {
	flex: 1 1 120px;
	min-height: 36px;
	padding: 8px 12px;
	border: 1px solid var(--vendemi-border-strong, #c8c8d0);
	border-radius: var(--vendemi-radius-md, 10px);
	background: var(--vendemi-card-bg, #fff);
	color: var(--vendemi-text-muted, #6b6b76);
	font: inherit;
	font-size: var(--vendemi-text-sm, 13px);
	font-weight: 600;
	cursor: pointer;
	text-align: center;
}

.vl-intake-progress__step.is-active {
	border-color: var(--vendemi-purple, #5b4b8a);
	background: var(--vendemi-purple-soft, rgba(91, 75, 138, 0.1));
	color: var(--vendemi-purple, #5b4b8a);
}

.vl-intake-progress__step.is-done {
	border-color: var(--vendemi-border, #e2e2e8);
	color: var(--vendemi-text, #1f1f28);
}

.vl-intake-panel {
	margin: 0;
}

.vl-intake-actions {
	flex-wrap: wrap;
}

.vl-intake-products {
	margin-top: 0;
}

.vl-spiral-stock {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	margin-top: 4px;
}

.vl-spiral-stock__label {
	font-size: 11px;
	color: var(--vendemi-text-muted, #6b6b76);
}

.vl-spiral-stock__input {
	width: 100%;
	min-height: 34px;
	padding: 6px 10px;
	border: 1px solid var(--vendemi-border-strong, #c8c8d0);
	border-radius: 8px;
	font: inherit;
	font-size: 12px;
	background: #fff;
	box-sizing: border-box;
}

.vl-cat-scroll {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 10px;
	margin-bottom: 12px;
	scrollbar-width: none;
}

.vl-cat-scroll::-webkit-scrollbar {
	display: none;
}

.vl-cat-btn {
	flex: 0 0 auto;
	padding: 8px 14px;
	border: 1px solid var(--vendemi-border-strong);
	border-radius: var(--vendemi-radius-pill);
	background: var(--vendemi-card-bg);
	font-size: var(--vendemi-text-sm);
	white-space: nowrap;
}

.vl-cat-btn.is-active {
	background: var(--vendemi-purple-soft);
	border-color: var(--vendemi-purple);
	color: var(--vendemi-purple);
	font-weight: 600;
}

.vl-intake-summary {
	margin-bottom: 12px;
	font-size: var(--vendemi-text-sm);
	font-weight: 700;
	color: var(--vendemi-text-muted);
}

.vl-kits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
	max-height: 360px;
	overflow-y: auto;
	padding-right: 4px;
}

.vl-kit-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--vendemi-border);
	border-radius: 12px;
	background: var(--vendemi-surface-sunken);
}

.vl-kit-card.is-fav {
	border-color: var(--vendemi-purple);
	background: var(--vendemi-purple-soft);
}

.vl-kit-card.is-block {
	opacity: 0.55;
	border-color: #c0392b;
}

.vl-kit-card__img {
	width: 100%;
	height: 110px;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: 10px;
	background: var(--vendemi-card-bg);
	border: 1px solid var(--vendemi-border);
}

.vl-kit-card__img--empty {
	display: block;
	background: linear-gradient(145deg, var(--vendemi-border), var(--vendemi-card-bg));
}

.vl-kit-card__cat {
	display: block;
	margin-bottom: 4px;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--vendemi-text-muted);
}

.vl-kit-card__body {
	min-width: 0;
}

.vl-kit-card__body strong {
	font-size: var(--vendemi-text-sm);
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.vl-kit-card__actions {
	display: flex;
	gap: 6px;
	margin-top: auto;
}

.vl-kbtn {
	flex: 1;
	padding: 6px 4px;
	border: 1px solid var(--vendemi-border-strong);
	border-radius: 8px;
	background: var(--vendemi-card-bg);
	font-size: 11px;
	cursor: pointer;
}

.vl-notifications-block {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--vendemi-border);
}

.vl-notifications-heading {
	margin: 0 0 10px;
	font-size: var(--vendemi-text-sm);
	font-weight: 600;
	color: var(--vendemi-text-muted);
}

.vl-notifications {
	display: grid;
	gap: 8px;
}

.vl-notification-btn {
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	text-align: left;
	padding: 12px 14px;
	background: var(--vendemi-surface-sunken);
	border-radius: 12px;
	font-size: var(--vendemi-text-sm);
}

.vl-notification-btn:hover {
	background: var(--vendemi-purple-soft);
}

.vl-notification-dot {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	margin-top: 0.45em;
	border-radius: 50%;
	background: var(--vendemi-purple, #8b7cf6);
	box-shadow: 0 0 0 3px rgba(139, 124, 246, 0.18);
}

.vl-notification-dot--open {
	background: #e11d48;
	box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.18);
}

.vl-notification-dot--fixed {
	background: #16a34a;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.vl-notification-label {
	flex: 1 1 auto;
	min-width: 0;
}

.vl-notification-products {
	margin: 10px 0 0;
	padding-left: 1.1em;
}

.vl-notification-products li {
	margin: 4px 0;
}

.vl-notification--empty {
	color: var(--vendemi-text-muted);
	padding: 8px 0;
}

.vl-hours-grid.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.vl-intake-flags {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 16px;
}

.vl-intake-flags .vendemi-field-hint {
	margin: 0 0 8px 28px;
}

.vl-website-live {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin-bottom: 8px;
}

.vl-website-live .vendemi-switch {
	margin: 0;
}

.vl-website-live__status {
	margin: 0;
	font-size: var(--vendemi-text-sm);
	font-weight: 700;
}

.vl-website-live__status.is-live {
	color: var(--vendemi-success, #16a34a);
}

.vl-website-live__status.is-offline {
	color: var(--vendemi-danger, #dc2626);
}

.vl-location-heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
	flex: 1 1 auto;
}

.vl-location-heading__title {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.vl-location-logo {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 10px;
	background: var(--vendemi-surface-alt);
	flex: 0 0 auto;
}

.vl-hours__always {
	font-weight: 700;
}

.vl-hours-day {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--vendemi-border, #e4e4ea);
	border-radius: 10px;
	background: var(--vendemi-card-bg, #fff);
}

.vl-hours-day.is-closed {
	background: rgba(0, 0, 0, 0.02);
}

.vl-hours-day__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.vl-hours-day__head .vendemi-field-label {
	margin: 0;
}

.vl-hours-day__toggle {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--vendemi-text-muted, #6b6b76);
	width: 28px;
	height: 28px;
	border-radius: 8px;
	font: inherit;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.vl-hours-day__toggle:hover {
	background: rgba(0, 0, 0, 0.06);
	color: var(--vendemi-text, #1d1d22);
}

.vl-hours-day.is-closed .vl-hours-day__toggle {
	color: var(--vendemi-danger, #b42318);
}

.vl-hours-day__times {
	display: flex;
	align-items: center;
	gap: 8px;
}

.vl-hours-day__time {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.vl-hours-day__time input[type='time'] {
	width: 100%;
	min-height: 40px;
	padding: 6px 8px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	background: var(--vendemi-bg, #fff);
	font: inherit;
}

.vl-hours-day__sep {
	color: var(--vendemi-text-muted, #6b6b76);
	font-weight: 600;
}

.vl-hours-day__closed-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--vendemi-text-muted, #6b6b76);
}

.vl-hours-day .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.vl-spiral-map-section {
	margin: 8px 0 18px;
	padding-top: 8px;
	border-top: 1px solid var(--vendemi-border);
}

.vl-spiral-map-section.is-fill-mode .vl-spiral-row {
	align-items: stretch;
	overflow: hidden;
}

.vl-spiral-map-intake-bar {
	display: flex;
	justify-content: flex-start;
	margin: 0 0 12px;
}

.vl-spiral-map-intake-bar:has(> [hidden]:only-child) {
	display: none;
	margin: 0;
}

.vl-spiral-map-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.vl-spiral-map-header .vendemi-form-section-title {
	margin: 0;
}

.vl-spiral-map-copy {
	display: flex;
	align-items: center;
	gap: 8px;
}

.vl-spiral-map-copy[hidden],
#vl-add-map-row[hidden],
.vl-spiral-map-section.is-map-locked .vl-spiral-map-copy,
.vl-spiral-map-section.is-map-locked #vl-add-map-row {
	display: none !important;
}

.vl-spiral-copy-select {
	min-width: 220px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--vendemi-border-strong);
	border-radius: var(--vendemi-radius-pill);
	background: var(--vendemi-card-bg);
}

.vl-spiral-map-hint {
	margin: 8px 0 14px;
	font-size: var(--vendemi-text-sm);
	color: var(--vendemi-text-muted);
}

.vl-spiral-map {
	display: grid;
	gap: 12px;
	margin-bottom: 12px;
}

.vl-spiral-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
	padding: 12px;
	background: var(--vendemi-surface-sunken);
	border-radius: 12px;
	border-left: 3px solid var(--vendemi-purple);
}

.vl-spiral-row-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 110px;
	flex-shrink: 0;
}

.vl-spiral-row-label {
	font-size: var(--vendemi-text-sm);
	font-weight: 700;
	color: var(--vendemi-purple);
}

.vl-spiral-mini-btn {
	padding: 4px 8px !important;
	font-size: 11px !important;
	min-height: 0 !important;
}

.vl-spiral-scroll {
	display: flex;
	gap: 6px;
	flex: 1;
	min-width: 0;
	width: 100%;
	overflow-x: auto;
	overflow-y: visible;
	align-items: flex-start;
}

.vl-spiral-slot {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 6px;
	background: var(--vendemi-card-bg);
	border: 1px dashed var(--vendemi-border-strong);
	border-radius: 10px;
}

.vl-spiral-slot--double {
	flex: 2 1 0;
	border-style: solid;
	border-color: var(--vendemi-border-strong, #c8c8d0);
}

.vl-spiral-slot-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2px;
	font-size: 10px;
	color: var(--vendemi-text-muted);
	min-width: 0;
}

.vl-spiral-slot-head > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.vl-spiral-slot-actions {
	display: flex;
	gap: 4px;
}

.vl-spiral-icon-btn {
	border: 0;
	background: transparent;
	color: var(--vendemi-purple);
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.vl-spiral-icon-btn--danger {
	color: #c0392b;
}

.vl-spiral-field {
	display: grid;
	gap: 2px;
	font-size: 10px;
	color: var(--vendemi-text-muted);
}

.vl-spiral-field input,
.vl-spiral-field select {
	width: 100%;
	min-width: 0;
	padding: 4px 6px;
	border: 1px solid var(--vendemi-border);
	border-radius: 6px;
	background: var(--vendemi-surface-sunken);
	font-size: 12px;
}

.vl-payment-checks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin: 4px 0 18px;
}
.vl-payment-checks > .vendemi-field-label {
	flex: 1 1 100%;
	margin: 0;
}
.vl-payment-checks .vendemi-check {
	min-width: 140px;
	align-items: center;
}

#vl-modal-machine .vendemi-field input[type='file'] {
	width: 100%;
	max-width: 100%;
	padding: 12px;
	font-size: 0.82rem;
	line-height: 1.35;
}

#vl-machine-internal-number {
	background: var(--vendemi-surface-sunken);
	color: var(--vendemi-text-soft);
	cursor: default;
}

#vl-machine-invoice-current,
#vl-machine-manual-current {
	display: inline-block;
	margin-bottom: 6px;
}
#vl-machine-invoice-current[hidden],
#vl-machine-manual-current[hidden] {
	display: none;
}

#vl-modal-machine.is-identity-only .vendemi-modal-panel {
	max-width: min(640px, calc(100vw - 24px));
}

#vl-modal-machine.is-identity-only .vl-spiral-map-section {
	display: none !important;
}

.vl-sales-lines {
	display: grid;
	gap: 10px;
}

.vl-sales-line {
	display: grid;
	grid-template-columns: 1fr 90px;
	gap: 12px;
	align-items: center;
}

.vl-search-group + .vl-search-group {
	margin-top: 8px;
}

@media (max-width: 1100px) {
	.vl-card-grid,
	.vl-card-grid--machines,
	.vl-location-top,
	.vl-location-mid,
	.vl-location-bottom,
	.vl-sales-grid,
	.vl-metrics,
	.vl-locations-dash {
		grid-template-columns: 1fr 1fr;
	}

	.vl-metrics--combined {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.vl-panel--wide {
		grid-column: 1 / -1;
	}

	.vl-location-mid .vl-quick-side {
		grid-column: 1 / -1;
		min-height: 0;
		flex-direction: row;
	}

	.vl-location-mid .vl-side-action {
		border-bottom: 0;
		border-right: 1px solid var(--vendemi-border);
		justify-content: center;
		text-align: center;
	}

	.vl-location-mid .vl-side-action:last-child {
		border-right: 0;
	}

	.vl-location-mid .vl-quick-side--compact {
		flex-direction: column;
		height: auto;
	}

	.vl-location-mid .vl-quick-side--compact .vl-side-action {
		border-right: 0;
		border-bottom: 1px solid var(--vendemi-border);
		justify-content: flex-start;
		text-align: left;
		flex: 0 0 auto;
	}

	.vl-location-mid .vl-quick-side--compact .vl-side-action:last-child {
		border-bottom: 0;
	}
}

.vl-nearby-drives {
	margin-top: 0.75rem;
}

.vl-nearby-drives__card {
	border: 1px solid var(--vendemi-border);
	padding: 0.85rem 1rem;
	background: color-mix(in srgb, var(--vendemi-accent, #c45c26) 8%, transparent);
}

.vl-nearby-drives__list {
	margin: 0.5rem 0 0;
	padding-left: 1.1rem;
}

.vl-nearby-drives__actions {
	margin: 0.4rem 0 0.55rem;
}

.vl-nearby-drives__actions .vendemi-btn {
	margin-top: 0.15rem;
}

.vl-nearby-picklist {
	margin: 0.45rem 0;
}

.vl-nearby-picklist__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.75rem;
}

.vl-nearby-picklist__edit {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.55rem;
	margin-top: 0.55rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--vendemi-border);
	border-radius: 10px;
	background: var(--vendemi-card-bg, #fff);
}

.vl-nearby-picklist__edit-actions {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

#vl-drive-location-search.is-locked,
#vl-drive-location-search[readonly],
#vl-drive-location-search:disabled {
	opacity: 0.85;
	cursor: not-allowed;
	pointer-events: none;
}

.vendemi-timeline-item[data-vl-appointment] {
	cursor: pointer;
}

.vl-drive-hours-hint.is-error {
	color: #b42318;
	font-weight: 600;
}

.vendemi-drive-copy-address {
	display: block;
	width: 100%;
	text-align: left;
	border: 1px solid var(--vendemi-border);
	background: transparent;
	padding: 0.9rem 1rem;
	margin: 0.75rem 0;
	cursor: pointer;
}

.vendemi-drive-copy-address strong {
	display: block;
	font-size: 1.05rem;
}

.vendemi-drive-nav-actions {
	display: grid;
	gap: 0.6rem;
}

.vendemi-drive-machine-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0.75rem 0;
}

.vendemi-drive-machine-tab {
	border: 1px solid var(--vendemi-border);
	background: transparent;
	padding: 0.4rem 0.7rem;
	cursor: pointer;
}

.vendemi-drive-machine-tab.is-active {
	border-color: var(--vendemi-text, #222);
	font-weight: 600;
}

.vendemi-drive-note {
	margin: 0.4rem 0 0.75rem;
}

.vendemi-drive-note textarea {
	width: 100%;
}

.vendemi-cash-denoms {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
	gap: 0.5rem;
	margin: 0.75rem 0;
}

.vendemi-cash-denom {
	display: grid;
	gap: 0.25rem;
	font-size: 0.85rem;
}

.vendemi-cash-denom input {
	width: 100%;
}

.vendemi-cash-total {
	margin: 0.5rem 0 0;
}

@media (max-width: 782px) {
	.vl-card-grid,
	.vl-card-grid--machines,
	.vl-location-top,
	.vl-location-mid,
	.vl-location-bottom,
	.vl-sales-grid,
	.vl-sales-split-row,
	.vl-metrics,
	.vl-metrics--combined,
	.vl-doc-grid,
	.vl-hours-grid,
	.vl-info-split,
	.vl-top5-layout,
	.vl-locations-dash {
		grid-template-columns: 1fr;
	}

	.vl-locations-map {
		min-height: 320px;
		aspect-ratio: 1;
		height: auto;
	}

	.vl-metrics--combined .vl-metric-card {
		border-right: 0;
		border-bottom: 1px solid var(--vendemi-border);
	}

	.vl-metrics--combined .vl-metric-card:last-child {
		border-bottom: 0;
	}

	.vl-location-mid .vl-quick-side {
		flex-direction: column;
	}

	.vl-location-mid .vl-side-action {
		border-right: 0;
		border-bottom: 1px solid var(--vendemi-border);
		justify-content: flex-start;
		text-align: left;
	}

	.vl-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.vl-local-search {
		max-width: none;
	}

	.vl-spiral-icon-btn {
		min-width: 36px;
		min-height: 36px;
	}

	.vl-spiral-slot-head {
		font-size: 12px;
	}
}

/* Machine page + malfunctions */
.vl-malfunction-open {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}
.vl-malfunction-open.is-resolved {
	opacity: 0.55;
}
.vl-spiral-readonly {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 180px;
}
.vl-expiry-drive-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 12px;
}

.vl-expiry-drive-option {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--vendemi-border, #ddd);
	border-radius: 10px;
	background: #fff;
	text-align: left;
	cursor: pointer;
}

.vl-expiry-drive-option.is-selected {
	border-color: #7c6bb5;
	box-shadow: inset 0 0 0 1px #7c6bb5;
}

.vl-expiry-drive-badge {
	font-size: 12px;
	color: #6b5b95;
}

.vl-expiry-swap-new {
	margin: 12px 0;
}

.vl-visit-history-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
}

.vl-visit-history-detail {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vl-notification-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}
#vl-overdue-reschedule-form {
	margin-top: 4px;
}
.vl-machine-page .vl-panel--spiral {
	min-height: 280px;
}

/* Demo tools (private, no sidebar) */
.vl-demo-tools {
	max-width: 960px;
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
}
.vl-demo-tools__header {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1rem;
}
.vl-demo-tools__header h1 {
	margin: 0 0 0.35rem;
	font-size: 1.6rem;
}
.vl-demo-tools__header p {
	margin: 0;
	opacity: 0.8;
}
.vl-demo-tools__header-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
.vl-demo-tools__status {
	min-height: 1.25rem;
	margin: 0 0 1rem;
}
.vl-demo-tools__status.is-error {
	color: var(--vendemi-danger, #c0392b);
}
.vl-demo-tools__tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--vendemi-border);
}
.vl-demo-tools__tab {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	padding: 0.65rem 0.9rem;
	margin-bottom: -1px;
	cursor: pointer;
	font: inherit;
	opacity: 0.7;
}
.vl-demo-tools__tab.is-active {
	opacity: 1;
	border-bottom-color: var(--vendemi-accent, currentColor);
	font-weight: 600;
}
.vl-demo-tools__controls,
.vl-demo-tools__form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.9rem 1rem;
	align-items: end;
	margin-bottom: 1rem;
}
.vl-demo-tools__controls--simple {
	grid-template-columns: minmax(200px, 1.4fr) minmax(160px, 0.8fr) auto;
}
@media (max-width: 720px) {
	.vl-demo-tools__controls--simple {
		grid-template-columns: 1fr;
	}
}
.vl-demo-tools__controls label,
.vl-demo-tools__form label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.92rem;
}
.vl-demo-tools__controls select,
.vl-demo-tools__controls input,
.vl-demo-tools__form select,
.vl-demo-tools__form input {
	width: 100%;
	min-height: 42px;
	padding: 0.45rem 0.65rem;
	border: 1px solid var(--vendemi-border);
	border-radius: 8px;
	background: var(--vendemi-card-bg, #fff);
	color: inherit;
	font: inherit;
}
.vl-demo-tools__control-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
}
.vl-demo-tools__hint {
	margin: 0 0 1.25rem;
	opacity: 0.8;
}
.vl-demo-tools__sheet {
	display: grid;
	gap: 1.25rem;
}
.vl-demo-tools__machine h2 {
	margin: 0 0 0.65rem;
	font-size: 1.05rem;
}
.vl-demo-tools__type-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}
.vl-demo-tools__type {
	appearance: none;
	text-align: left;
	border: 1px solid var(--vendemi-border);
	border-radius: 10px;
	background: var(--vendemi-card-bg, #fff);
	padding: 0.85rem 0.95rem;
	cursor: pointer;
	font: inherit;
	color: inherit;
}
.vl-demo-tools__type strong {
	display: block;
	margin-bottom: 0.25rem;
}
.vl-demo-tools__type span {
	display: block;
	font-size: 0.88rem;
	opacity: 0.75;
}
.vl-demo-tools__type.is-active {
	border-color: var(--vendemi-accent, currentColor);
	box-shadow: inset 0 0 0 1px var(--vendemi-accent, currentColor);
}
.vl-demo-tools__form-block {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.9rem 1rem;
	grid-column: 1 / -1;
}
.vl-demo-tools__form-block[hidden] {
	display: none !important;
}

#vl-modal-machine.is-layout-edit .vendemi-field-grid,
#vl-modal-machine.is-layout-edit .vl-payment-checks,
#vl-modal-machine.is-layout-edit .vl-spiral-map-intake-bar {
	display: none !important;
}

#vl-modal-machine.is-layout-edit .vendemi-modal-panel {
	max-width: min(1120px, calc(100vw - 24px));
}

#vl-modal-machine.is-layout-edit .vendemi-modal-body {
	overflow-x: hidden;
}

#vl-modal-machine.is-layout-edit .vl-spiral-row {
	flex-wrap: wrap;
}

#vl-modal-machine.is-layout-edit .vl-spiral-scroll {
	flex: 1 1 calc(100% - 130px);
	flex-wrap: nowrap;
	overflow-x: hidden;
	overflow-y: visible;
	width: 100%;
}

#vl-modal-machine.is-layout-edit .vl-spiral-slot {
	flex: 1 1 0;
	min-width: 0;
	max-width: none;
}

#vl-modal-machine.is-layout-edit .vl-spiral-slot--double {
	flex: 2 1 0;
}

.vl-picker-item--fit {
	background: rgba(68, 87, 74, 0.18);
}

.vl-picker-item--loose {
	background: rgba(196, 80, 80, 0.14);
}

.vl-picker-item--nofit {
	opacity: 0.45;
}

.vl-spiral-change-list {
	margin: 0 0 1rem;
	padding-left: 1.1rem;
}

.vl-spiral-change-body .vendemi-field {
	margin-bottom: 0.6rem;
}

.vl-generator-picker,
.vl-generator-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	margin: 0 0 16px;
}

.vl-generator-workspace,
.vl-generator-report {
	margin-top: 8px;
}

.vl-spiral-map--generator {
	overflow-x: hidden;
	max-width: 100%;
}

.vl-spiral-map--generator .vl-spiral-row {
	min-width: 0;
	max-width: 100%;
}

.vl-spiral-map--generator .vl-spiral-slot-head > span {
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.vl-spiral-map--generator .vl-spiral-steps {
	white-space: normal;
}

.vl-spiral-map--generator .vl-generator-steps {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.3;
	padding: 1px 4px;
	border: 1px solid var(--vendemi-border);
	border-radius: 4px;
	background: var(--vendemi-surface-sunken, var(--vendemi-card-bg));
	color: inherit;
}

.vl-spiral-map--generator .vl-generator-type,
.vl-spiral-map--generator .vl-spiral-field,
.vl-spiral-map--generator .vl-spiral-field select {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.vl-spiral-plan-src {
	font-weight: 500;
	color: var(--vendemi-gold, #eab749);
}

.vl-spiral-map--generator .vl-spiral-scroll,
.vl-spiral-map--generator.is-fill-mode .vl-spiral-scroll {
	overflow-x: hidden;
	width: 100%;
	flex-wrap: nowrap;
}

.vl-spiral-map--generator .vl-spiral-slot,
.vl-spiral-map--generator .vl-spiral-slot--fill {
	flex: 1 1 0;
	min-width: 0;
	max-width: none;
}

.vl-spiral-map--generator .vl-spiral-slot--double,
.vl-spiral-map--generator .vl-spiral-slot--fill.vl-spiral-slot--double {
	flex: 2 1 0;
}

.vl-spiral-instruction-list {
	margin: 0 0 1rem;
	padding-left: 1.1rem;
}

.vl-spiral-instruction-list li {
	margin: 0 0 0.35rem;
}

.vl-spiral-instruction-list span {
	display: block;
	color: var(--vendemi-text-muted);
	font-size: 0.9em;
}

.vl-spiral-maps {
	display: grid;
	gap: 16px;
	margin: 12px 0 16px;
}

.vl-spiral-vis-row {
	display: flex;
	align-items: stretch;
	gap: 8px;
	margin: 0 0 8px;
}

.vl-spiral-vis-label {
	flex: 0 0 72px;
	font-size: 12px;
	font-weight: 700;
	color: var(--vendemi-purple);
}

.vl-spiral-vis-slots {
	display: flex;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.vl-spiral-vis-slot {
	flex: 1 1 0;
	min-width: 0;
	padding: 8px;
	border-radius: 8px;
	background: var(--vendemi-card-bg);
	border: 1px dashed var(--vendemi-border-strong);
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 11px;
}

.vl-spiral-vis-slot.is-double {
	flex: 2 1 0;
	border-style: solid;
}

.vl-spiral-vis-slot strong {
	font-size: 12px;
}

.vf-suggest {
	background: var(--vendemi-surface-alt);
	border: 1px solid var(--vendemi-border);
	border-radius: var(--vendemi-radius-row, 10px);
	padding: 10px 12px;
	margin: 8px 0 12px;
	max-height: 220px;
	overflow: auto;
}

.vf-suggest strong {
	display: block;
	margin-bottom: 6px;
	font-size: var(--vendemi-text-sm, 13px);
}

.vf-suggest button {
	display: block;
	width: 100%;
	text-align: left;
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--vendemi-text);
	padding: 8px 0;
	cursor: pointer;
	border-bottom: 1px solid var(--vendemi-border);
}

.vf-suggest button:last-child {
	border-bottom: 0;
}

.vf-suggest button:hover {
	color: var(--vendemi-accent, #eab749);
}

