/* Attribute Filters */
/*********************/

.filters.table {
  position: relative;
	width: auto;
	border-collapse: separate;
	margin-bottom: 2px;

	td .token {
		margin-right:0;
	}
}

#variableFilters {
	.dropdown_reports li.group-header span {
		font-size:14px;
	}
}

.filterTree .btn.dropdown-toggle span {

	&.filter-label {
		min-width: 150px;
		display: inline-block;
		text-align: left;
	}
}

.inventoryfilter {
	.btn.dropdown-toggle {
		font-weight: 500;
		font-size: 14px;
		line-height: 16px;
		padding-top: 8px;
		padding-bottom: 8px;
		border: 1px solid #E5E5E5;
		&.disabled, .disabled  {
			color: #7C7C7C;
			opacity: 1;
		}
	}

	input[type="text"] {
		padding: 5px 5px 5px 8px;
		border-radius: 4px;
	}

	.trackerDelete i {
		font-size: 25px;
		color: @MP_gray_base;
		line-height: 37px;
	}

	&_title {
		font-weight: 700;
		font-size: 16px;
		line-height: 20px;
	}

	&_subtitle {
		font-weight: 500;
		font-size: 12px;
		line-height: 110%;
		color: @textColor;
		margin-bottom: 12px;
		display: inline-block;
		&:hover {
			color: @textColor;
		}
	}

	&_main {
		background: @Gray100;
		padding: 12px 0px 8px 6px;
	}

	.btn-link_noline {
		background: none;
		color: @CFE_dark_blue;
		i {
			color: @CFE_dark_blue;
		}
	}

	td {
		padding: 4px 10px 4px 0 !important;
	}
	.top-group {
		font-weight: 700;
		font-size: 16px;
		line-height: 120%;
		background: #F2F2F2;
		padding: 10px 0 6px 8px;
		margin: 8px 0;
	}
	.definedCondition {
		font-weight: 500;
		font-size: 14px;
		line-height: 150%;
		font-style: italic;
	}

	input[disabled], input[readonly] {
		background: @Gray50;
	}
}

.filter-condition .filterTree .btn.dropdown-toggle span:first-child {
	min-width: 75px;
	display: inline-block;
	text-align: left;
}

.filter-condition {
	.dropdown-menu {
		border: 1px solid rgba(173, 186, 205, 0.2);
		box-sizing: border-box;
		box-shadow: 1px 2px 10px 2px #D4D4D4;
		border-radius: 0px 0px 4px 4px;
		li > a {
			padding: 8px 10px;
		}
	}
}


/* In alerts/condition view */
/******************/
.form-horizontal .filters.table {
	.control-group {
		margin-bottom: 0;
	}
}

.control-group .filters.table td {
	border-top:none;
	padding:0;
}


/* Dropdowns from column headers in results table */
/**************************************************/
.column-dropdown {

	a.dropdown-toggle {
		margin-top: -16px;
		padding: 7px;
		&:hover {
			background: #EFEFF1;
			border-radius: 4px;
		}
	}

	a.dropdown-toggle:hover {
		text-decoration: none;
	}

	#dropdown-container > .dropdown-menu {
		margin-right: 0;
		top: 19px;
		border: 1px solid rgba(173, 186, 205, 0.2);
		box-sizing: border-box;
		box-shadow: 1px 2px 10px 2px #d4d4d4;
		border-radius: 0px 0px 4px 4px;
		right: -5px;
		width: 161px;
	}

	a {
		i {
			color: @textColor;

			&:hover {
				color: @textColor;
			}
		}
	}


	.dropdown-submenu {
		> a:after {
			display: none;
		}
	}

	&.last .dropdown-menu .dropdown-submenu .dropdown-menu {
		left:-294px;
	}

	.addColumn {
		margin-bottom: 5px;
	}

	.dropdown-submenu:hover, .dropdown-submenu:focus {
		> a {
			background: #EFEFF1;
		}
		> .dropdown-menu {
			display: none;
		}
	}

	.dropdown-menu .dropdown-submenu .dropdown-menu {
		padding: 10px 20px;

		input {
			width:180px;
		}

		b {
			color: @textColor;
		}
	}
}


// hidden icon to keep space in th
.placeholder-icon {
	position:absolute;
	right:0;
	top:2px;
	visibility:hidden;
}


/* container for chart data in popup */
/********************************/
#reportChart {
	overflow:hidden;
	position:relative;
}

.chart_dropdown {
	position:absolute;
	top:0;
	right:10px;
}

#ruleHostFilter {
	.chosen-single {
		font-weight: 500;
		font-size: 14px;
		line-height: 16px;
		color: #7C7C7C;
		 div {
			 b {
				 background-image: none !important;
				 &:before {
					 display: inline-block;
					 font-family: bootstrap-icons;
					 content: "\f282"; // chevron-down
					 margin-top: 8px;
					 margin-left: -5px;
				 }
			 }
		 }
	}
	div.chosen-container-active.chosen-with-drop .chosen-single {
		background: white;
		background-image: none;
		box-shadow: none;
		div {
			b {
				background-image: none !important;
				&:before {
					content: "\f286"; // chevron-up
				}
			}
		}
	}
	div.chosen-container {
		width: 288px !important;
	}
	.host-filter {
		display: flex;
		align-items: center;
		form {
			margin: 9px 0;
		}
		.btn-link {
			color: @Blue600;
			text-decoration: none;
		}
	}
	.filter-title {
		font-weight: bold;
		font-size: 16px;
		line-height: 140%;
		color: #0B132A;
	}
	.filter-buttons {
		border-top: 1px solid #C5C5C5;
		position: relative;
		display: flex;
		padding-top: 11px;
		align-items: center;
		a {
			flex-grow: 1;
			font-weight: 500;
			font-size: 14px;
		}
		button {
			margin-left: 12px;
		}
	}
}

.inventory-dropdown {
	#dropdown-container >.dropdown-menu:before {
		display: none;
	}
	&.inventory-attributes-dropdown {
		.dropdown-menu {
			padding: 10px 20px;
			border: 1px solid rgba(173, 186, 205, 0.2);
			box-shadow: 1px 2px 10px 2px #D4D4D4;
			margin-left: 12px;
			margin-top: 10px;
			input {
				border: 1px solid #E7E7E7;
				width: 250px;
				border-radius: 4px;
				&::placeholder {
					font-weight: 500;
					font-size: 14px;
					line-height: 16px;
					color: #7C7C7C;
				}
			}
			b {
				font-weight: 500;
				font-size: 12px;
				line-height: 12px;
				letter-spacing: 0.03em;
				text-transform: uppercase;
				color: #7C7C7C;
			}

			a {
				color: @textColor;
				text-decoration: none;
				background: none;
				&:hover {
					text-decoration: none;
					background: #EFEFF1;
				}
			}
			span, a {
				display: block;
				padding: 8px 12px;
				border-bottom: 1px solid #E7E7E7;
				font-size: 14px;
				font-weight: 500;
				line-height: 16px;
			}
		}

		span.filterType {
			color: @Gray500;
			font-weight: 500;
			font-size: 14px;
			line-height: 16px;
		}
	}
	.dropdown-menu {
		>li {
			> a {
				padding: 12px;
			}
			>a, td > a {
				font-weight: 500;
				font-size: 14px;
				line-height: 16px;
			}
		}

		.dropdown-submenu, .inventory-attributes-dropdown  {
			.dropdown-menu {
				border: 1px solid rgba(173, 186, 205, 0.2);
				box-shadow: 1px 2px 10px 2px #D4D4D4;
				margin-left: 1px;
				input {
					border: 1px solid rgba(255, 255, 255, 0.12);
					width: 200px;
					border-radius: 4px;
					&::placeholder {
						font-weight: 500;
						font-size: 14px;
						line-height: 16px;
						color: #7C7C7C;
					}
				}
				b {
					font-weight: 500;
					font-size: 12px;
					line-height: 12px;
					letter-spacing: 0.03em;
					text-transform: uppercase;
					color: #7C7C7C;
				}

				a {
					color: @textColor;
					text-decoration: none;
					background: none;
					&:hover {
						text-decoration: none;
						background: #EFEFF1;
					}
				}
				span, a {
					display: block;
					padding: 8px 12px;
					border-bottom: 1px solid #E7E7E7;
					font-size: 14px;
					font-weight: 500;
					line-height: 16px;
				}
			}
		}
	}
	.filter-label {
		color: @textColor;
	}

	.filter-condition {
		a.dropdown-toggle {
			span {
				color: @textColor;
			}
		}
	}

	.dropdown-menu .search_item {
		a {
			border-bottom: none;
			padding: 20px 0;
		}
	}
}

.inv-filter.btn {
	padding: 5px 7px 5px 3px;
	position: relative;
	&.pressed {
		&::before {
			border: 4px solid #C1C9E2;
			content: "";
			position: absolute;
			z-index: -1;
			top: -4px;
			left: -4px;
			right: -4px;
			bottom: -4px;
			border-radius: 4px;
		}
	}
}

.change-data-type {
	font-weight: 500;
	font-size: 14px;
	line-height: 16px;
	color: #484E5F;
	&:hover, &:hover i {
		color: #484E5F;
	}
}

.inventory-top {
	display: flex;

	div.buttons {
		padding: 0;
	}

	.margin-top {
		margin-top: 0px;
	}
}

.CFE-context-help {
	min-width: 58px;
	font-weight: 500;
	font-size: 14px;
	line-height: 16px;
	color: @MP_gray_base;
	&:hover {
		color: @MP_gray_base;
	}
}

.pageTitle.inventory-title {
	display: flex;
	align-items: baseline;
	h1 {
		flex-grow: 1;
		margin-top: 0;
	}
}

.modal.insert-inventory-column-modal {
	width: 512px;
	height: 726px;

	.modal-body {
		padding: 16px 38px 16px 16px;
		height: 567px;
		max-height: 567px;
		overflow: auto;
	}

	.searchAttribute {
		position: relative;

		input {
			display: block;
			width: 400px;
			background: @Gray100;
			border-radius: 4px;
			color: @textColor;
			font-weight: 500;
			font-size: 14px;
			line-height: 24px;
			padding: 12px 36px;
			border: 2px solid transparent !important;
			box-shadow: none;

			&::placeholder {
				color: @Gray600;
			}

			&:focus {
				border: 2px solid @Blue500 !important;
				box-shadow: none !important;
			}
		}

		&:before {
			content: "\f52a"; // search icon
			font-family: bootstrap-icons;
			font-size: 16px;
			position: absolute;
			left: 12px;
			top: 50%;
			transform: translateY(-50%);
			color: @Gray600;
		}
	}

	h4 {
		margin-top: 16px;
		margin-bottom: 8px;
		color: @Gray600;
		font-weight: 500;
		font-size: 14px;
		line-height: 120%;
		display: inline-block;
	}
	.columns-container{
		display: flex;
		justify-content: space-between;
		align-items: baseline;
	}
	.reset-all{
		color: @CFE_light_blue;
		font-weight: 500;

		&:hover{
			text-decoration: underline;
			cursor:pointer
		}

	}

	.active-column {
		padding: 7px 12px;
		background: #E3E4E5;
		border-radius: 100px;
		font-weight: 500;
		font-size: 14px;
		line-height: 18px;
		margin-right: 8px;
		margin-bottom: 8px;
		display: flex;
		justify-content: space-between;

		span {
			cursor: move;
			display: flex;
			justify-content: space-between;
			align-items: center;

			i {
				box-sizing: initial;
			}
		}
	}

	.sortable {
		display: flex;
		flex-wrap: wrap;
	}

	.bi-x-circle-fill,.bi-x-circle-fill:hover {
		color: @Gray500;
		cursor: pointer;
		z-index: 2;
		margin-left: 8px;
		padding: 0;
	}

	.attributes-list {
		margin: 0;
		list-style: none;
		overflow: auto;
		max-height: 375px;

		ul {
			display: flex;
			flex-wrap: wrap;

			li {
				width: 44%;
				padding: 12px;
				font-weight: 500;
				color: @Gray900;

				> div > div {
					max-width: 155px;
				}

				a {
					visibility: hidden;
					font-weight: 500;
				}

				i {
					color: @linkColor;
					font-weight: bold;
				}

				&:hover {
					background-color: @Gray100;

					a {
						visibility: visible;
						text-decoration: none;
					}
				}

				&.selected {
					&:hover {
						background: none;
					}
				}

				span {
					color: @Gray500;
					font-style: italic;
				}
			}
		}
	}

	.warning {
		font-weight: 500;
		color: @Red600 !important;
	}

	hr {
		margin: 5px 0;
	}
}

.inventory-column-placeholder {
	background: #dcdcdc;
	box-shadow: inset 0 0 10px #969696;
	height: 32px;
	margin-right: 8px;
	border-radius: 100px;
}

#inventory-table {
    td {
        > div {
            max-height: 80px;
            overflow: auto;
            // by default scrollbar is transparent that allows ctr+f (search) to be used for
            // the content under the scroll what is not possible with overflow: hidden
            scrollbar-color: transparent transparent;
            scrollbar-width: thin;

            &:hover {
                scrollbar-color: @grayLight transparent;
            }
        }
    }

    th {
        min-width: 120px;
        white-space: nowrap;
    }

    tbody {
        tr {
            &:hover {
                background-color: @Gray50;
            }
        }
    }
}
