/* -----------------------------------------------------------------------------
 * Layout
 * -------------------------------------------------------------------------- */

.ledger-hidden {
	opacity: 0;
}

/* -----------------------------------------------------------------------------
 * Status
 * -------------------------------------------------------------------------- */

.status {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: end;
	gap: 4px;
	width: 100%;
	font-size: 15px;
	color: var(--e-global-color-text);
}

/* -----------------------------------------------------------------------------
 * Sheet rows
 * -------------------------------------------------------------------------- */

.sheet {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 15px;
	color: var(--e-global-color-text);
	justify-content: center;
}

.sheet .row {
	display: grid;
	grid-template-columns: 1fr;
	column-gap: 8px;
	margin-bottom: 2px;
}

.sheet .row:first-child {
	margin-bottom: 18px;
}

.sheet .row:last-child {
	margin-top: 18px;
	border-top: 2px dashed #E4E9F1;
	padding: 15px 0 28px 0;
}

.sheet .cols2-65-35 {
	grid-template-columns: calc(65% - 4px) calc(35% - 4px);
}

.sheet .cols2-75-25 {
	grid-template-columns: calc(75% - 4px) calc(25% - 4px);
}

.sheet .cols2-50-50 {
	grid-template-columns: calc(50% - 4px) calc(50% - 4px);
}

.sheet .type {
	font-weight: var(--keydesign-h5-font-weight);
	font-size: var(--keydesign-h5-font-size);
	line-height: var(--keydesign-h5-line-height);
	letter-spacing: var(--letter-spacing-default);
	color: var(--e-global-color-accent);
}

.sheet .data {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sheet .data.date {
	justify-self: end;
	font-size: 13px;
	opacity: 0.65;
}

.sheet .data.memo {
	white-space: wrap;
}

.sheet .data.amount {
	justify-self: end;
}

.cell {
	display: flex;
	align-items: center;
	min-height: 25px;
	gap: 10px;
	line-height: 1.44;
}

.cell span {
	font-weight: 600;
}

.cell:not(.amount) span {
	min-width: 140px;
}

/* -----------------------------------------------------------------------------
 * Skeleton shimmer
 * -------------------------------------------------------------------------- */

.ledger.loading .cell {
	color: transparent;
	position: relative;
}

.ledger.loading .cell::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 4px;
	background: linear-gradient(90deg, #f1f1f3 0%, #e5e5e8 40%, #f1f1f3 80%);
	background-size: 200% 100%;
	animation: shimmer 1s linear infinite;
}

@keyframes shimmer {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

/* -----------------------------------------------------------------------------
 * Dot loader for tag status
 * -------------------------------------------------------------------------- */

.dots {
	display: inline-flex;
	align-self: end;
	gap: 2px;
	margin-bottom: 4px;
}

.dots span {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--color-text);
	opacity: 0.2;
	animation: dot 1s infinite;
}

.dots span:nth-child(2) {
	animation-delay: 0.2s;
}

.dots span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes dot {
	0%,
	60%,
	100% {
		opacity: 0.2;
	}
	30% {
		opacity: 1;
	}
}

/* -----------------------------------------------------------------------------
 * Badge
 * -------------------------------------------------------------------------- */

.badge {
	display: flex;
	align-items: center;
	justify-content: end;
	width: 100%;
	gap: 3px;
	font-weight: 700;
	color: var(--e-global-color-accent);
}

.badge svg {
	max-height: 18px;
}

/* -----------------------------------------------------------------------------
 * Migration path + beam
 * -------------------------------------------------------------------------- */

#migration-path {
	position: relative;
	height: 8px;
	border-radius: 9999px;
	overflow: hidden;
}

.beam {
	display: block;
	height: 100%;
	width: 100%;
	--c: no-repeat linear-gradient(var(--e-global-color-accent) 0 0);
	background: var(--c), var(--c), #FFF;
	background-size: 60% 100%;
	visibility: hidden;
}

.beam.active {
	animation: beam 2.0s linear infinite;
	visibility: visible;
}

@keyframes beam {
	0% {
		background-position: -150% 0, -150% 0;
	}
	66% {
		background-position: 250% 0, -150% 0;
	}
	100% {
		background-position: 250% 0, 250% 0;
	}
}

/* -----------------------------------------------------------------------------
 * One-off animations
 * -------------------------------------------------------------------------- */

@keyframes fadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

.fadeIn {
	animation: fadeIn 0.6s ease-out forwards;
}

@keyframes zoomIn {
	0% {
		opacity: 0;
		transform: scale(0.8);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.zoomIn {
	animation: zoomIn 0.6s ease-out forwards;
}

@keyframes backOutDown {
	0% {
		opacity: 1;
		transform: translateY(0);
	}
	20% {
		opacity: 1;
		transform: translateY(-10px) scale(0.95);
	}
	100% {
		opacity: 0;
		transform: translateY(300px) scale(0.7);
	}
}

.backOutDown {
	animation: backOutDown 0.6s ease-out forwards;
}

@keyframes pulseOnce {
	0%,
	60%,
	100% {
		transform: none;
	}
	10% {
		transform: scale(110%);
		border-width: 2px;
		border-color: var(--e-global-color-accent);
		box-shadow: 0px 10px 80px 0px rgba(26, 156, 75, 0.2);
	}
}

.pulse-once {
	animation: pulseOnce 0.6s ease-out;
}

/* -----------------------------------------------------------------------------
 * Loader with spinner
 * -------------------------------------------------------------------------- */

.aptora-loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	min-height: 90px;
	text-align: center;
	font-size: 15px;
	margin-top: -40px;
}

.spin {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 3px solid #E9E9EB;
	border-top-color: var(--e-global-color-secondary);
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* -----------------------------------------------------------------------------
 * Responsive: ≤ 767px
 * -------------------------------------------------------------------------- */

@media (min-width: 767px) and (max-width: 1024px) {
    .ekit-wid-con .elementskit-infobox.icon-lef-right-aligin {
        flex-direction: row !important;
    }
}

@media (max-width: 767px) {
	#migration-path {
		width: 8px;
		height: 60px;
		margin: 0 auto;
	}

	.beam {
		background-size: 100% 60%;
	}

	.beam.active {
		animation: beam-vertical 2.0s linear infinite;
	}
}

@keyframes beam-vertical {
	0% {
		background-position: 0 -150%, 0 -150%;
	}
	66% {
		background-position: 0 250%, 0 -150%;
	}
	100% {
		background-position: 0 250%, 0 250%;
	}
}
