.wrapper {
	position: relative;
	height: 100%;
}

.segment {
	position: absolute;
	top: 4px;
	bottom: 4px;
	border-radius: variables.$radius-sm;
	background: color-mix(in srgb, variables.$color-primary 28%, transparent);
	border: 1px solid color-mix(in srgb, variables.$color-primary 62%, transparent);
	cursor: pointer;
	user-select: none;
	display: flex;
	align-items: center;
	overflow: hidden;
	transition: background 0.1s;

	&:hover {
		background: color-mix(in srgb, variables.$color-primary 42%, transparent);
	}

}

.tooltip {
	position: fixed;
	z-index: 9999;
	max-width: 320px;
	padding: 6px 10px;
	border-radius: variables.$radius-sm;
	background: variables.$bg-surface;
	color: variables.$text-primary;
	font-size: 12px;
	line-height: 1.4;
	white-space: normal;
	word-break: break-word;
	pointer-events: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.active {
	background: color-mix(in srgb, variables.$color-primary 56%, transparent);

	&:hover {
		background: color-mix(in srgb, variables.$color-primary 62%, transparent);
	}
}

.resizing {
	background: color-mix(in srgb, variables.$color-primary 48%, transparent);
	z-index: 2;
}

.segmentText {
	padding: 0 4px;
	font-size: 11px;
	line-height: 1.2;
	color: variables.$text-primary;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	flex: 1;
	min-width: 0;
}

.handleLeft,
.handleRight {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 6px;
	cursor: col-resize;
	z-index: 3;

	&:hover {
		background: color-mix(in srgb, variables.$color-primary 48%, transparent);
	}
}

.handleLeft {
	left: 0;
	border-radius: variables.$radius-sm 0 0 variables.$radius-sm;
}

.handleRight {
	right: 0;
	border-radius: 0 variables.$radius-sm variables.$radius-sm 0;
}
