﻿
.ML-DATATABLE-Container {
	display: inline-block;
	/*margin: 0 0 5px;*/
	margin: 0px;
	width: 100%;
}

	/* Tabella contenitore esterno*/
	.ML-DATATABLE-Container > table {
		width: 100%;
		border-collapse: collapse;
	}

		/* La prima riga con il titolo */
		.ML-DATATABLE-Container > table > tbody > tr:first-of-type {
			border-bottom: 1px solid var(--border-color-container);
		}

		/* Cella dell'haeder con il titolo della tabella */
		.ML-DATATABLE-Container > table > tbody > tr > th {
			text-align: left;
			vertical-align: middle;
			height: 30px;
		}

			/* testo del titolo della tabella */
			.ML-DATATABLE-Container > table > tbody > tr > th > span {
				padding: 0px;
				font-size: 14px;
			}

			.ML-DATATABLE-Container > table > tbody > tr > th[ML_PageControl_Key=RowNumbering] {
				text-align: right;
			}

	/*******************************************************/

	.ML-DATATABLE-Container div[ML_PageControl_Key=DATATABLE_Container] {
		overflow: hidden;
		margin: 0;
	}

		.ML-DATATABLE-Container div[ML_PageControl_Key=DATATABLE_Container] div[ML_PageControl_Key=FieldsContainer] {
			border-bottom: 1px solid var(--border-color-container);
			border-right: 1px solid var(--border-color-container);
			-webkit-box-sizing: border-box;
			-moz-box-sizing: border-box;
			box-sizing: border-box;
			display: block;
			float: left;
			margin: 0px;
		}

			.ML-DATATABLE-Container div[ML_PageControl_Key=DATATABLE_Container] div[ML_PageControl_Key=FieldsContainer] > table {
				width: 100%;
				height: 100%;
			}

				.ML-DATATABLE-Container div[ML_PageControl_Key=DATATABLE_Container] div[ML_PageControl_Key=FieldsContainer] > table > tbody > tr {
					vertical-align: top;
				}

					.ML-DATATABLE-Container div[ML_PageControl_Key=DATATABLE_Container] div[ML_PageControl_Key=FieldsContainer] > table > tbody > tr > td {
						overflow: hidden;
						/*padding-right: 30px;*/
						padding: 10px 35px 10px 10px;
						border-right: 1px solid var(--border-color-container);
					}

						.ML-DATATABLE-Container div[ML_PageControl_Key=DATATABLE_Container] div[ML_PageControl_Key=FieldsContainer] > table > tbody > tr > td:last-of-type {
							border-right: none;
						}

			.ML-DATATABLE-Container div[ML_PageControl_Key=DATATABLE_Container] div[ML_PageControl_Key=FieldsContainer] span {
				display: block;
			}

td[ML_PageControl_Attribute_ByEntityField=Flag_Left_RED] {
	border-left: 2px solid red;
}

td[ML_PageControl_Attribute_ByEntityField=Flag_Left_GREEN] {
	border-left: 2px solid green;
}

td[ML_PageControl_Attribute_ByEntityField=Flag_Left_LIGHTGREEN] {
	border-left: 2px solid lightgreen;
}

td[ML_PageControl_Attribute_ByEntityField=Flag_Left_LIGHTBLUE] {
	border-left: 2px solid #23AFF5;
}

td[ML_PageControl_Attribute_ByEntityField=Flag_Left_ORANGE] {
	border-left: 2px solid orange;
}
td[ML_PageControl_Attribute_ByEntityField=Flag_Left_GREY] {
	border-left: 2px solid grey;
}


.ML-REPEATERTABLE-table {
	border-collapse: collapse;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

	.ML-REPEATERTABLE-table td[ML_PageControl_Key=ColTitle] span {
		color: black !important;
	}


.ML-REPEATERTABLE-row,
.ML-REPEATERTABLE-rowNoDetail,
.ML-REPEATERTABLE-rowSelectable {
	border-bottom: 2px solid var(--border-color-container);
	background-color: var(--background-color-container-list);
}

	.ML-REPEATERTABLE-row span:not([ML_ControlType]),
	.ML-REPEATERTABLE-rowNoDetail span:not([ML_ControlType]),
	.ML-REPEATERTABLE-rowSelectable span:not([ML_ControlType]) {
		color: #8F908F !important;
	}

	.ML-REPEATERTABLE-rowNoDetail span:not([ML_ControlType]) {
		cursor: default !important;
	}

	.ML-REPEATERTABLE-row span[ML_PageControl_Attribute_ByEntityField=BackGround_GREEN],
	.ML-REPEATERTABLE-rowNoDetail span[ML_PageControl_Attribute_ByEntityField=BackGround_GREEN] {
		background-color: green;
	}

	.ML-REPEATERTABLE-row span[ML_PageControl_Attribute_ByEntityField=BackGround_ORANGE],
	.ML-REPEATERTABLE-rowNoDetail span[ML_PageControl_Attribute_ByEntityField=BackGround_ORANGE] {
		background-color: orange;
	}

	.ML-REPEATERTABLE-row span[ML_PageControl_Attribute_ByEntityField=BackGround_RED],
	.ML-REPEATERTABLE-rowNoDetail span[ML_PageControl_Attribute_ByEntityField=BackGround_RED] {
		background-color: red;
	}

	.ML-REPEATERTABLE-row td[ML_PageControl_Attribute_ByEntityField=Flag_GREEN],
	.ML-REPEATERTABLE-rowNoDetail td[ML_PageControl_Attribute_ByEntityField=Flag_GREEN] {
		border-left: 2px solid green;
	}

	.ML-REPEATERTABLE-row td[ML_PageControl_Attribute_ByEntityField=Flag_LIGHTGREEN],
	.ML-REPEATERTABLE-rowNoDetail td[ML_PageControl_Attribute_ByEntityField=Flag_LIGHTGREEN] {
		border-left: 2px solid lightgreen;
	}

	.ML-REPEATERTABLE-row td[ML_PageControl_Attribute_ByEntityField=Flag_ORANGE],
	.ML-REPEATERTABLE-rowNoDetail td[ML_PageControl_Attribute_ByEntityField=Flag_ORANGE] {
		border-left: 2px solid orange;
	}

	.ML-REPEATERTABLE-row:hover,
	.ML-REPEATERTABLE-rowSelectable:hover {
		background-color: VAR(--background-color-container-list-hover);
		cursor: pointer !important;
	}

	.ML-REPEATERTABLE-rowNoDetail:hover {
		background-color: VAR(--background-color-container-list-hover);
	}

	.ML-REPEATERTABLE-row span:hover {
		cursor: pointer !important;
	}

	.ML-REPEATERTABLE-rowSelectable[ML_Status=None] span:hover {
		cursor : pointer !important;
	}

	.ML-REPEATERTABLE-row[ML_Status=Selected],
	.ML-REPEATERTABLE-rowNoDetail[ML_Status=Selected]{
		background-color: var(--background-color-container-list-selected) !important;
	}

	.ML-REPEATERTABLE-rowSelectable[ML_Status=Selected] {
		background-color: var(--background-color-container-list-selected) !important;
		cursor : default !important;
	}

	.ML-REPEATERTABLE-row[ML_Status=Selected] span,
	.ML-REPEATERTABLE-rowNoDetail[ML_Status=Selected] span,
	.ML-REPEATERTABLE-rowSelectable[ML_Status=Selected] span{
		color: #323232 !important;
	}

	.ML-REPEATERTABLE-row[ML_Status=None] span[ML_PageControl_Key=Status] {
		display: none !important;
	}

	.ML-REPEATERTABLE-rowNoDetail [ML_PageControl_Key=tdREMOVE]:hover {
		cursor: pointer !important;
	}

		.ML-REPEATERTABLE-rowNoDetail [ML_PageControl_Key=tdREMOVE]:hover span {
			cursor: pointer !important;
		}


.ML-REPEATERTABLE-row-Commands {
	border-bottom: 2px solid #424242;
}


.ML-REPEATERTABLE-datatable {
	border-collapse: collapse;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

	.ML-REPEATERTABLE-datatable td {
		padding: 0px !important;
	}


/*
Tipo	: Azioni piccolo di livello 1
*******************************************************************************
*/
div[ML_PageControl_Type=CONTENT] div[ML_PageControl_Attributes="SmallActionLev1"] {
	background-color: transparent;
	border: 1px solid #2ECD99;
	height: 18px;
	cursor: pointer !important;
	text-align: center;
	border-radius: 2px;
	display: table-cell;
	vertical-align: middle;
	padding: 0px 5px;
	float: right;
	transition: all 0.3s ease;
}

	div[ML_PageControl_Type=CONTENT] div[ML_PageControl_Attributes="SmallActionLev1"] span {
		color: black !important;
		font-size: 12px;
		cursor: pointer;
		text-transform: uppercase;
		padding: 0px;
	}

	

td[ML_PageControl_Key=ColTitle] div[ML_PageControl_Attributes="SmallActionLev1"] {
	float: left;
	margin-right: 4px;
}

td[ML_PageControl_Key=ColTitle][ML_Status=Selected] div[ML_PageControl_Attributes="SmallActionLev1"] {
	background-color: #2CB387;
}

td[ML_PageControl_Key=ColTitle][ML_Status=Selected] div[ML_PageControl_Attributes="SmallActionLev1"] span {
	color:white !important;
}

/*
Tipo	: Azioni piccolo di livello 2
*******************************************************************************
*/
div[ML_PageControl_Attributes="SmallActionLev2"] {
	background-color: transparent;
	border: 1px solid #2ECD99;
	height: 18px;
	cursor: pointer !important;
	text-align: center;
	border-radius: 2px;
	display: table-cell;
	vertical-align: middle;
	padding: 0px 5px;
	float: right;
	transition: all 0.3s ease;
}

	div[ML_PageControl_Attributes="SmallActionLev2"] span {
		color: black !important;
		font-size: 12px;
		cursor: pointer;
		text-transform: uppercase;
		padding: 0px;
	}

	div[ML_PageControl_Attributes="SmallActionLev2"]:hover {
		background-color: #2CB387;
	}

	div[ML_PageControl_Attributes="SmallActionLev2"]:hover span {
		color: white !important;
	}

/* text box  */
.ML-REPEATERTABLE-row input[type=text],
.ML-REPEATERTABLE-rowNoDetail input[type=text] {
	border: 1px solid var(--border-color-container);
	background-color: var(--background-color-container-input-editing);
	height: 20px;
	width: 50px;
	border-radius: 0px;
	vertical-align: middle;
	text-align: right;
	font-size: 14px;
	color: black;
	padding-left: 4px;
	padding-right: 4px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
	/* mandatory */
	.ML-REPEATERTABLE-row input[type=text][ML_PageControl_Editable=Editable_ON][ML_PageControl_Attributes*=Mandatory],
	.ML-REPEATERTABLE-rowNoDetail input[type=text][ML_PageControl_Editable=Editable_ON][ML_PageControl_Attributes*=Mandatory] {
		border: 1px solid #887331 !important;
	}

.ML-REPEATERTABLE-rowNoDetail textarea {
	border: 1px solid var(--border-color-container);
	background-color: #212121;
	width: 100%;
	border-radius: 0px;
	vertical-align: middle;
	font-size: 14px;
	color: white;
	padding-right: 4px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}


.ML-REPEATERTABLE-row[ML_Status=None] [ML_PageControl_Key=ShowIfSelected],
.ML-REPEATERTABLE-rowNoDetail[ML_Status=None] [ML_PageControl_Key=ShowIfSelected],
.ML-REPEATERTABLE-rowSelectable[ML_Status=None] [ML_PageControl_Key=ShowIfSelected] {
	display: table-row;
	visibility: hidden;
}

.ML-REPEATERTABLE-row[ML_Status=Selected] [ML_PageControl_Key=ShowIfSelected],
.ML-REPEATERTABLE-rowNoDetail[ML_Status=Selected] [ML_PageControl_Key=ShowIfSelected],
.ML-REPEATERTABLE-rowSelectable[ML_Status=Selected] [ML_PageControl_Key=ShowIfSelected] {
	display: table-row;
	visibility: visible;
}


.ML-REPEATERTABLE-table div[ML_PageControl_Attribute_ByEntityField=MI] {
	height: 20px;
	width: 20px;
	background-color: #ff3333;
	border-radius: 50%;
	display: inline-block;
}

.ML-REPEATERTABLE-table div[ML_PageControl_Attribute_ByEntityField=LC] {
	height: 20px;
	width: 20px;
	background-color: #00cc44;
	border-radius: 50%;
	display: inline-block;
}
