.success-content {
	overflow-y: hidden;
	overflow-x: hidden;
	max-width: 100%;

	.missing-spans {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 44px;
		margin: 16px;
		padding: 12px;
		border-radius: 4px;
		background: color-mix(in srgb, var(--bg-robin-600) 10%, transparent);

		.left-info {
			display: flex;
			align-items: center;
			gap: 8px;
			color: var(--bg-robin-400);
			font-family: Inter;
			font-size: 14px;
			font-style: normal;
			font-weight: 400;
			line-height: 20px; /* 142.857% */
			letter-spacing: -0.07px;

			.text {
				color: var(--bg-robin-400);
				font-family: Inter;
				font-size: 14px;
				font-style: normal;
				font-weight: 400;
				line-height: 20px; /* 142.857% */
				letter-spacing: -0.07px;
			}
		}

		.right-info {
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: row-reverse;
			gap: 8px;
			color: var(--bg-robin-400);
			font-family: Inter;
			font-size: 14px;
			font-style: normal;
			font-weight: 400;
			line-height: 20px; /* 142.857% */
			letter-spacing: -0.07px;
		}

		.right-info:hover {
			background-color: unset;
			color: var(--bg-robin-200);
		}
	}

	.waterfall-table {
		height: calc(70vh - 236px);
		overflow: auto;
		overflow-x: hidden;
		padding: 0px 20px 20px 20px;

		&::-webkit-scrollbar {
			width: 0.1rem;
		}

		// default table overrides css for table v3
		.div-table {
			width: 100% !important;
			border: none !important;
		}

		.div-thead {
			position: sticky;
			top: 0;
			z-index: 2;
			background-color: var(--l1-background) !important;

			.div-tr {
				height: 16px;
			}
		}

		.div-tr {
			display: flex;
			width: 100%;
			align-items: center;
			height: 54px;
		}

		.div-tr:hover {
			border-radius: 4px;
			background: color-mix(
				in srgb,
				var(--bg-robin-200) 6%,
				transparent
			) !important;

			.div-td .span-overview .second-row .add-funnel-button {
				opacity: 1;
			}

			.span-overview {
				background: unset !important;

				.span-overview-content {
					background: unset !important;
				}
			}
		}

		.div-th,
		.div-td {
			box-shadow: none;
			padding: 0px !important;
		}

		.div-th {
			padding: 2px 4px;
			position: relative;
			font-weight: bold;
			text-align: center;
		}

		.div-td {
			display: flex;
			height: 54px;
			align-items: center;
			overflow: hidden;

			.span-overview {
				display: flex;
				align-items: center;
				flex-shrink: 0;
				height: 100%;
				width: 100%;
				cursor: pointer;

				.connector-lines {
					display: flex;
				}

				.span-overview-content {
					display: flex;
					flex-shrink: 0;
					flex-direction: column;
					align-items: flex-start;
					gap: 5px;
					width: 100%;
					background-color: var(--l1-background);
					height: 100%;
					justify-content: center;
					&:not(:first-child) {
						.first-row {
							width: calc(100% - 28px);
						}
					}

					.first-row {
						display: flex;
						align-items: center;
						justify-content: space-between;
						height: 20px;
						width: 100%;

						.span-det {
							display: flex;
							gap: 6px;
							flex-shrink: 0;
							align-items: center;

							.collapse-uncollapse-button {
								display: flex;
								align-items: center;
								justify-content: center;
								padding: 4px 4px;
								gap: 4px;
								border-radius: 2px;
								border: 1px solid var(--l1-border);
								background: var(--l1-border);
								box-shadow: none;
								height: 20px;

								.children-count {
									color: var(--l2-foreground);
									font-family: 'Space Mono';
									font-size: 14px;
									font-style: normal;
									font-weight: 400;
									line-height: 20px; /* 142.857% */
									letter-spacing: 0.28px;
								}
							}

							.span-name {
								color: var(--l1-foreground);
								font-family: 'Inter';
								font-size: 14px;
								font-style: normal;
								font-weight: 400;
								line-height: 20px; /* 142.857% */
								letter-spacing: 0.28px;
							}
						}

						.status-code-container {
							display: flex;
							padding-right: 10px;

							.status-code {
								display: flex;
								height: 20px;
								padding: 3px;
								align-items: center;
								border-radius: 3px;
							}

							.success {
								border: 1px solid var(--primary-background);
								background: var(--primary-background);
							}

							.error {
								border: 1px solid var(--danger-background);
								background: var(--danger-background);
							}
						}
					}

					.second-row {
						display: flex;
						align-items: center;
						gap: 8px;
						height: 18px;
						width: 100%;
						.service-name {
							color: var(--l2-foreground);
							font-family: Inter;
							font-size: 14px;
							font-style: normal;
							font-weight: 400;
							line-height: 18px; /* 128.571% */
							letter-spacing: -0.07px;
						}
						.add-funnel-button {
							position: relative;
							z-index: 1;
							opacity: 0;
							display: flex;
							align-items: center;
							gap: 6px;
							transition: opacity 0.1s ease-in-out;

							&__separator {
								color: var(--l2-foreground);
							}
							&__button {
								display: flex;
								align-items: center;
								justify-content: center;
							}
						}
					}
				}
			}

			.span-duration {
				display: flex;
				flex-direction: column;
				height: 54px;
				position: relative;
				width: 100%;
				padding-left: 15px;
				cursor: pointer;

				.span-line {
					position: relative;
					height: 12px;
					top: 35%;
					border-radius: 6px;
				}

				.event-dot {
					position: absolute;
					top: 50%;
					transform: translate(-50%, -50%) rotate(45deg);
					width: 6px;
					height: 6px;
					background-color: var(--primary-background);
					border: 1px solid var(--bg-robin-600);
					cursor: pointer;
					z-index: 1;

					&.error {
						background-color: var(--danger-background);
						border-color: var(--bg-cherry-600);
					}

					&:hover {
						transform: translate(-50%, -50%) rotate(45deg) scale(1.5);
					}
				}

				.span-line-text {
					position: relative;
					top: 40%;
					font-variant-numeric: lining-nums tabular-nums stacked-fractions
						slashed-zero;
					font-feature-settings:
						'case' on,
						'cpsp' on,
						'dlig' on,
						'salt' on;
					font-family: Inter;
					font-size: 14px;
					font-style: normal;
					font-weight: 400;
					line-height: 18px; /* 128.571% */
					letter-spacing: -0.07px;
				}
			}

			.interested-span,
			.selected-non-matching-span {
				border-radius: 4px;
				background: color-mix(
					in srgb,
					var(--bg-robin-200) 6%,
					transparent
				) !important;

				.span-overview-content {
					background: unset;
				}
			}

			.dimmed-span {
				opacity: 0.4;
			}
			.highlighted-span {
				opacity: 1;
			}

			.selected-non-matching-span {
				.span-overview-content,
				.span-line-text {
					opacity: 0.5;
				}
			}
		}

		.div-td + .div-td {
			border-left: 1px solid var(--l1-border);
		}

		.div-th + .div-th {
			border-left: 1px solid var(--l1-border);
		}

		.div-tr .div-th:nth-child(2) {
			width: calc(100% - var(--header-span-name-size) * 1px) !important;
		}
		.div-tr .div-td:nth-child(2) {
			width: calc(100% - var(--header-span-name-size) * 1px) !important;
		}
		.resizer {
			width: 10px !important;
			position: absolute;
			top: 0;
			height: calc(70vh - 236px);
			right: 0;
			width: 2px;
			background: color-mix(in srgb, var(--bg-aqua-500) 20%, transparent);
			cursor: col-resize;
			user-select: none;
			touch-action: none;
		}

		.resizer.isResizing {
			background: color-mix(in srgb, var(--bg-aqua-500) 20%, transparent);
			opacity: 1;
		}

		@media (hover: hover) {
			.resizer {
				opacity: 0;
			}

			*:hover > .resizer {
				opacity: 1;
			}
		}
	}

	.missing-spans-waterfall-table {
		height: calc(70vh - 312px);
	}
}

.span-dets {
	.related-logs {
		display: flex;
		width: 160px;
		padding: 4px 8px;
		justify-content: center;
		align-items: center;
		gap: 8px;
		border-radius: 2px;
		border: 1px solid var(--l1-border);
		background: var(--l1-border);
		box-shadow: none;
	}
}
