/*
 * JoomProject — dashboard v2 supplemental styles.
 * Everything that isn't a Bootstrap 5 utility lives here.
 * Keep it small. If a rule can be expressed as `class="..."`, prefer that.
 */

.jp-dashboard { padding-bottom: 1rem; }

/* KPI cards: subtle hover lift, no other custom chrome. */
.jp-kpi-card {
	transition: transform .15s ease, box-shadow .15s ease;
}
.jp-kpi-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .12) !important;
}

/* Sparkline — stroke + fill inherit the parent's `color`,
   so a `text-{accent}` ancestor controls the hue. */
.jp-spark {
	display: block;
	width: 100%;
	height: 28px;
	color: inherit;
}
.jp-spark__line {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}
.jp-spark__fill {
	fill: currentColor;
	opacity: .12;
}
.jp-spark--empty {
	display: block;
	height: 28px;
	background: linear-gradient(90deg,
		rgba(0, 0, 0, .04) 0%,
		rgba(0, 0, 0, .04) 50%,
		transparent 50%, transparent 100%);
	background-size: 8px 100%;
	border-radius: 2px;
}

/* The date-range pill needs a slightly bigger hit-area on small screens. */
@media (max-width: 575.98px) {
	.jp-dashboard .dropdown > .btn { padding: .375rem .75rem; }
}

/* Tighter list rows in widget bodies so the cards stay compact. */
.jp-dashboard .card-body .border-bottom:last-child {
	border-bottom: 0 !important;
}

/* Cap long widget bodies so paired cards in a row stay the same height —
   anything taller scrolls inside the card instead of stretching the row. */
.jp-widget-body {
	max-height: 22rem;
}

/* Slim, modern scrollbar for the inner scroll area (Chromium/WebKit). */
.jp-widget-body::-webkit-scrollbar { width: 6px; }
.jp-widget-body::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, .15);
	border-radius: 3px;
}
.jp-widget-body:hover::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, .25);
}
