@import "mcx-colors.less";
@import "mcx-instancebrowser.less";

html
{
	margin: 0px;
}
body
{
	/*
	background-color: #f3f3f4;
	color: #676a6c;
	*/
	display: flex;
	flex-direction: column;

	//font-family: "Source Sans 3";
	margin: 0px;
	/* overflow: hidden; */
}

body.mcx-loginpage
{
	justify-content: center;
	form
	{
		margin-top: 64px;
		align-items: flex-start;
	
		width: 640px;
		margin-left: auto;
		margin-right: auto;
		
		background-color: #ffffff;
		padding: 15px 20px 20px 20px;
		border: 1px solid #e7eaec;
		
		&> table.uwt-formview
		{
			margin-top: 32px;
		}
	}
}

img.header-image
{
	width: 128px;
}

@media (min-width: 1000px)
{
	div.login-container
	{
		width: 800px;
		margin-left: auto;
		margin-right: auto;
		padding-top: 100px;
	}
}

h1, h2, h3, h4, h5, h6
{
	font-weight: 100;
}
button:focus, input:focus, select:focus
{
    outline-style:solid;
    outline-color: #1ab394;
}

.uwt-expand
{
	flex-grow: 1;
}

div.mocha-ams-spot-popup
{
	margin-left: auto;
	margin-right: auto;
	position: absolute;
	opacity: 0.5;
	right: 25%;
	width: 120px;
	text-align: center;
	z-index: 5000;

	position: fixed;
	top: 0px;

	&> h1
	{
		font-weight: 600;
		background-color: #fff;
		margin: 0px;
		padding: 8px;
		display: block;
		margin-left: auto;
		margin-right: auto;
	}
	&> h3
	{
		font-weight: 600;
		margin: 0px;
		padding: 4px;
		display: block;
		margin-left: auto;
		margin-right: auto;
	}
}

a
{
	color: #007bff;
	text-underline-offset: 4px;
	text-decoration: none;
	
	&:hover
	{
		color: #0056b3;
		text-decoration: underline;
	}
}

a.uwt-user-menu-button
{
	margin-left: auto;
}
div.login-container input[type="submit"]
{
	margin-top: 32px;
}

div.mcx-element > label, div.mcx-elementcontent > label
{
	margin: 8px;
	font-weight: bold;
}
div.mcx-element.uwt-listview
{
	margin: 8px;
}

div.mcx-element
{
	display: grid;
}
div.uwt-listview.mcx-element
{
	&> div.uwt-content
	{
		&> div.uwt-listview-column-headers
		{
			display: grid;
			grid-auto-flow: column;
			grid-auto-columns: minmax(0, 1fr);
			&> div.uwt-listview-column-header
			{
				margin: 0px;
				padding: 8px;
			}
		}
		&> div.uwt-listview-items > div.uwt-listview-item
		{
			display: grid;
			grid-auto-flow: column;
			grid-auto-columns: minmax(0, 1fr);
			&> div.mcx-elementcontent
			{
				padding: 8px;
			}
		}
	}
}
div.mcx-elementcontent
{
	display: grid;

	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;

	&> *
	{
		// display: table-cell;
		margin: 8px;
		vertical-align: middle;
	}
	&> div:last-child
	{
		&:first-child
		{
			// do not show label
			grid-column-start: 1;
			grid-column-end: 2;
		}
		&> input
		{
			width: 100%;
			box-sizing: border-box;
		}
	}
}
div.mcx-element
{
	&.mcx-display-subelements-vertically
	{
		display: flex;
		flex-direction: column;
	}
}

.mcx-required label::after
{
	content: '*';
	float: right;
	color: #f00;
	font-size: 24pt;
	font-weight: normal;
}



// these styles override the previous ones earlier defined
div.mcx-element
{
	display: block;
}
div.mcx-element > label, div.mcx-elementcontent > label
{
	display: table-cell;
	padding: 8px;
	padding-right: 32px;
}

div.mcx-elementcontent
{
	&:not(.uwt-listview-item-column)
	{
		display: table-row;
	}
	&.uwt-listview-item-column
	{
		display: table-cell;
	}
	&.mcx-hidden-label
	{
		display: block;
		&> label
		{
			display: none;
		}
	}
}

div.mcx-moniker > span.apb-text:empty::after
{
	display: inline-block;
	font-weight: bold;
	content: "\f002";
	font-family: var(--fa-style-family,"Font Awesome 6 Pro");
}