/**
 *
 * 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';

.column {
	flex: 1;
	box-sizing: border-box;
	max-width: 30%;
}
.enabledRow {
	cursor: pointer;
}
.disabledRow {
	cursor: default;
}
.highlight {
	background-color: colors.$list-active-selection-background;
	vscode-data-grid-cell {
		color: colors.$list-active-selection-foreground;
	}
}
.right-align {
	justify-self: right;
}
.ellipsis {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	display: inline-block;
	max-width: calc(100% - 13px);
	vertical-align: middle;
	line-height: 1;
}
.cell-ellipsis {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.footer-container {
	height: 100%;
}

.min-height {
	min-height: calc(100% - 36px);
	& + vscode-data-grid-row {
		margin-top: -1px;
	}
}

.highligh-table {
	vscode-data-grid-row {
		&:hover {
			background-color: colors.$list-active-selection-background;
			vscode-data-grid-cell {
				color: colors.$list-active-selection-foreground;
			}
		}
		vscode-data-grid-cell {
			&:active,
			&:focus {
				background: transparent;
			}
		}
	}
}

.sticky-grid-footer {
	position: sticky;
	display: block;
	bottom: -40px;
	background: colors.$default-background;
	border-top: 1px solid colors.$default-border;
	padding: 10px;
	z-index: 1;
}
