/**
 *
 * Copyright (c) 2024 Analog Devices, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
@use '@common/styles/colors';

.sortable-title {
	display: flex;
	gap: 4px;
	align-items: center;
	cursor: pointer;

	.label {
		flex: 0 1 auto;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.icon {
		flex-shrink: 0;
	}
}


.sortable-title.rightAlignForHeader {
	.label {
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		right: 14px;
		text-align: right;
		line-height: 30px;
	}
	.icon {
		position: absolute;
		right: 0;
		top: 8px;
	}
}

.asc,
.desc {
	font-weight: bolder;
}

.desc {
	svg {
		transform: rotate(180deg);
	}
}
