/* ============================================================
   SCROLLBAR
   Custom scrollbar styling
   ============================================================ */

.app-scrollbar {
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
	transition: scrollbar-color 0.3s ease;
}

.app-scrollbar:hover {
	scrollbar-color: var(--border-tertiary) transparent;
}

/* Webkit (Chrome, Safari, Edge) */
.app-scrollbar::-webkit-scrollbar {
	width: 4px;
}

.app-scrollbar::-webkit-scrollbar-track {
	background: transparent;
}

.app-scrollbar::-webkit-scrollbar-thumb {
	background: transparent;
	border-radius: var(--radius-full, 9999px);
	transition: background 0.3s ease;
}

.app-scrollbar:hover::-webkit-scrollbar-thumb {
	background: var(--border-tertiary);
}

.app-scrollbar::-webkit-scrollbar-thumb:hover {
	background: var(--border-secondary);
}

/* ============================================================
   HORIZONTAL SCROLL REGION
   Wraps content too wide for the page (tables, long rows) so it
   scrolls on its own instead of widening the page.
   ============================================================ */

.app-scroll-x {
	overflow-x: auto;
	overflow-y: hidden;
	max-width: 100%;
	scrollbar-width: thin;
	scrollbar-color: var(--border-tertiary) transparent;
}

/* Cancels the padding of a containing card so the content scrolls edge to edge */
.app-scroll-x--flush {
	margin-left: calc(var(--spacing-xl) * -1);
	margin-right: calc(var(--spacing-xl) * -1);
	padding-left: var(--spacing-xl);
	padding-right: var(--spacing-xl);
}

.app-scroll-x::-webkit-scrollbar {
	height: 8px;
}

.app-scroll-x::-webkit-scrollbar-track {
	background: transparent;
}

.app-scroll-x::-webkit-scrollbar-thumb {
	background: var(--border-tertiary);
	border-radius: var(--radius-full, 9999px);
}

.app-scroll-x::-webkit-scrollbar-thumb:hover {
	background: var(--border-secondary);
}
