/* Latest Orders — compact cards; colors from color-modes.css (dark / light / auto) */
.vb-lo-section {
	max-width: 1300px;
	margin: 0.5rem auto 0;
	padding: 0 7px;
	box-sizing: border-box;
}

.vb-lo-title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 800;
	color: var(--vb-text, #fff);
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.vb-lo-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.vb-lo-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-width: 0;
	background: var(--vb-bg-card-alt, #1e2547);
	border-radius: 10px;
	padding: 6px 10px;
	border: 1px solid var(--vb-border-subtle, rgba(255, 255, 255, 0.07));
}

/* Left: avatar + name + line — flex-basis 0 so long names shrink (ellipsis) instead of overlapping meta */
.vb-lo-left {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	flex: 1 1 0%;
}

.vb-lo-avatar {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	/* Tint with accent on top of surface — works in dark + light */
	background: color-mix(in srgb, var(--vb-accent, #2fb5ff) 24%, var(--vb-bg-card-alt, #161f44));
	display: flex;
	align-items: center;
	justify-content: center;
}

@supports not (background: color-mix(in srgb, red, blue)) {
	.vb-lo-avatar {
		background: rgba(45, 212, 191, 0.2);
	}

	html[data-theme="light"] .vb-lo-avatar,
	:root[data-theme="light"] .vb-lo-avatar {
		background: rgba(0, 102, 204, 0.14);
	}

	@media (prefers-color-scheme: light) {
		html:not([data-theme="dark"]) .vb-lo-avatar {
			background: rgba(0, 102, 204, 0.14);
		}
	}
}

.vb-lo-avatar__img {
	width: 32px;
	height: 32px;
	object-fit: cover;
	display: block;
}

.vb-lo-avatar__guest {
	font-size: 12px;
	font-weight: 700;
	color: var(--vb-text, #fff);
	line-height: 1;
}

.vb-lo-main {
	flex: 1 1 0%;
	min-width: 0;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	box-sizing: border-box;
}

.vb-lo-name {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	font-size: 12px;
	font-weight: 600;
	color: var(--vb-text, #fff);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* inline-flex: label does NOT grow across the row — price + thumb stay after title */
.vb-lo-line {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 2px;
	min-width: 0;
	max-width: 100%;
	font-size: 10px;
	color: var(--vb-text-muted, rgba(255, 255, 255, 0.55));
	line-height: 1.25;
}

.vb-lo-line__label {
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vb-lo-line__price-wrap {
	flex-shrink: 0;
	display: inline-flex;
	align-items: baseline;
	white-space: nowrap;
}

.vb-lo-sep {
	margin: 0 3px;
	opacity: 0.55;
}

.vb-lo-price {
	color: var(--vb-text, #fff);
	font-weight: 600;
}

.vb-lo-thumb {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--vb-glass-row, rgba(255, 255, 255, 0.06));
	border: 1px solid var(--vb-border-subtle, rgba(255, 255, 255, 0.07));
}

.vb-lo-thumb__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Right: time + status */
.vb-lo-meta {
	flex: 0 0 auto;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	min-width: 0;
	max-width: min(46%, 12.5rem);
}

.vb-lo--no-time .vb-lo-meta {
	max-width: 36%;
}

.vb-lo-time {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	font-size: 10px;
	color: var(--vb-text-muted2, rgba(255, 255, 255, 0.45));
	white-space: nowrap;
	line-height: 1;
	text-align: right;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vb-lo-badge {
	flex-shrink: 0;
	font-size: 9px;
	font-weight: 700;
	padding: 3px 7px;
	border-radius: 999px;
	background: var(--vb-glass-row, rgba(255, 255, 255, 0.08));
	color: var(--vb-text, #fff);
	line-height: 1.1;
	max-width: 7.5rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vb-lo-badge--ok {
	background: #22c55e;
	color: #fff;
}

/* Processing = distinct from completed (not fake “complete”) */
.vb-lo-badge--processing {
	background: color-mix(in srgb, var(--vb-accent, #2fb5ff) 35%, var(--vb-bg-card-alt, #161f44));
	color: var(--vb-text, #fff);
	border: 1px solid var(--vb-border-subtle, rgba(255, 255, 255, 0.08));
}

@supports not (background: color-mix(in srgb, red, blue)) {
	.vb-lo-badge--processing {
		background: rgba(47, 181, 255, 0.22);
	}

	html[data-theme="light"] .vb-lo-badge--processing,
	:root[data-theme="light"] .vb-lo-badge--processing {
		background: rgba(0, 102, 204, 0.18);
	}

	@media (prefers-color-scheme: light) {
		html:not([data-theme="dark"]) .vb-lo-badge--processing {
			background: rgba(0, 102, 204, 0.18);
		}
	}
}

@media (min-width: 481px) {
	.vb-lo-section {
		margin-top: 0.75rem;
	}

	.vb-lo-title {
		font-size: 15px;
		margin-bottom: 10px;
	}

	.vb-lo-list {
		gap: 8px;
	}

	.vb-lo-row {
		padding: 8px 12px;
		border-radius: 12px;
		gap: 10px;
	}

	.vb-lo-avatar,
	.vb-lo-avatar__img {
		width: 36px;
		height: 36px;
	}

	.vb-lo-avatar__guest {
		font-size: 13px;
	}

	.vb-lo-name {
		font-size: 13px;
	}

	.vb-lo-line {
		font-size: 11px;
		margin-top: 3px;
	}

	.vb-lo-time {
		font-size: 11px;
	}

	.vb-lo-badge {
		font-size: 10px;
		padding: 4px 8px;
	}

	.vb-lo-thumb {
		width: 16px;
		height: 16px;
	}

	.vb-lo-meta {
		max-width: none;
		gap: 8px;
	}
}
