﻿/* Lista */
[ML_PageControl_Type^=SEARCH] {
}

	[ML_PageControl_Type^=SEARCH] [ML_PageControl_Key=tblPreFilters]:has(*) {
		margin-top: 5px;
	}


	[ML_PageControl_Type^=SEARCH] [ML_PageControl_Key=tblFilters]:has(input) {
		width: 100%;
		padding: 4px 5px;
	}

	[ML_PageControl_Type^=SEARCH] [ML_PageControl_Key=tblFilters] [ML_PageControl_Key=searchableListRowFilter] {
		display: flex;
		flex-wrap: nowrap;
		width: 100%;
		position: relative;
		margin: 7px 0px 2px 0px;
		align-items: center;
	}

	[ML_PageControl_Type^=SEARCH] [ML_PageControl_Key=tblFilters] div[ML_PageControl_Key=EntityField_Container]:has(input[ML_PageControl_Key=SearchTextBox]) {
		padding-inline: 0px !important;
	}

	/*Bottoni filtri*/
	[ML_PageControl_Type^=SEARCH] [ML_PageControl_Key=tblFilters] [ML_PageControl_Key=searchableListRowFilterPanelExt] {
		overflow: hidden;
		width: 100%;
		padding: 3px;
	}

		[ML_PageControl_Type^=SEARCH] [ML_PageControl_Key=tblFilters] [ML_PageControl_Key=searchableListRowFilterPanelExt] [ML_PageControl_Key=searchableListRowFilterPanel] {
			white-space: nowrap;
			display: flex;
			gap: 5px;
		}

			[ML_PageControl_Type^=SEARCH] [ML_PageControl_Key=tblFilters] [ML_PageControl_Key=searchableListRowFilterPanelExt] [ML_PageControl_Key=searchableListRowFilterPanel] .Button[ml_pagecontrol_attributes=FilterAction] {
				border-color: var(--button-text-color);
			}

				[ML_PageControl_Type^=SEARCH] [ML_PageControl_Key=tblFilters] [ML_PageControl_Key=searchableListRowFilterPanelExt] [ML_PageControl_Key=searchableListRowFilterPanel] .Button[ml_pagecontrol_attributes=FilterAction][ML_Status=Selected] {
					--button-primary-color: var(--primary);
					--button-text-color: var(--text-50);
				}

			[ML_PageControl_Type^=SEARCH] [ML_PageControl_Key=tblFilters] [ML_PageControl_Key=searchableListRowFilterPanelExt] [ML_PageControl_Key=searchableListRowFilterPanel] span:not(:empty) + [ml_pagecontrol_key=FilterRowCount] {
				font-style: italic;
				font-size: 10px;
				padding-left: 7px;
			}

	/*Multiselect*/
	[ML_PageControl_Type^=SEARCH] [ML_PageControl_Key=tblFilters] [ML_PageControl_Key=searchableListRowButton] {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		/*padding: 5px;*/
	}

		[ML_PageControl_Type^=SEARCH] [ML_PageControl_Key=tblFilters] [ML_PageControl_Key=searchableListRowButton] .Button {
			margin-left: 0px !important;
		}
	/*-----------------------Multiselect---------------------------*/
	[ML_PageControl_Type^=SEARCH][ML_List_Type=Multiselect][ML_PageControl_Type_Status=EDIT] [ML_PageControl_Key=searchableListRowButton] {
		display: flex !important;
	}

	[ML_PageControl_Type^=SEARCH][ML_List_Type=Multiselect]:not([ML_PageControl_Type_Status=EDIT]) [ML_PageControl_Type=trContainer] {
		cursor: default !important;
	}

		[ML_PageControl_Type^=SEARCH][ML_List_Type=Multiselect]:not([ML_PageControl_Type_Status=EDIT]) [ML_PageControl_Type=trContainer] span {
			cursor: default !important;
		}

	[ML_PageControl_Type^=SEARCH] > div:last-child {
		padding-inline: 5px;
	}

[ML_PageControl_Key=noDataTable] {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 5px;
	padding: 5px;
	margin: 20px;
	gap: 5px;
	border: 1px solid var(--border-color);
}

/*Bottini su lista*/
[ml_pagecontrol_type=SEARCHABLE_LIST] div[ml_pagecontrol_type=CommandsContainer] > .Button {
	min-width: 40px;
	min-height: 26px;
	justify-content: center;
	padding: 14px;
}

	[ml_pagecontrol_type=SEARCHABLE_LIST] div[ml_pagecontrol_type=CommandsContainer] > .Button.OnlyIcon {
		padding: 0;
		gap: 0;
	}