@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body
{
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	height: 100dvh;
	overflow: hidden;
}

h1:focus
{
	outline: none;
}

a, .btn-link
{
	color: #0071c1;
}

.btn-primary
{
	color: #fff;
	background-color: #1b6ec2;
	border-color: #1861ac;
}

.content
{
	padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox])
{
	outline: 1px solid #26b050;
}

.invalid
{
	outline: 1px solid red;
}

.validation-message
{
	font-size: 0.75rem ;
	color: var(--mud-palette-error) !important;
	font-weight: 400;
	line-height: 1.66;
	letter-spacing: 0.03333em;
}

#blazor-error-ui
{
	background: lightyellow;
	bottom: 0;
	box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
	display: none;
	left: 0;
	padding: 0.6rem 1.25rem 0.7rem 1.25rem;
	position: fixed;
	width: 100%;
	z-index: 1000;
}

	#blazor-error-ui .dismiss
	{
		cursor: pointer;
		position: absolute;
		right: 0.75rem;
		top: 0.5rem;
	}

.blazor-error-boundary
{
	background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4Ny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ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
	padding: 1rem 1rem 1rem 3.7rem;
	color: white;
}

	.blazor-error-boundary::after
	{
		content: "An error has occurred."
	}

.sidebar
{
	background-image: linear-gradient(180deg, #d16b1c 0%, #d16b1c 70%);
}

tr.selected
{
	background-color: var(--mud-palette-primary) !important;
	/*background-color: #1E88E5 !important;*/
}

.selected > td
{
	color: white !important;
}

.mud-table-cell.col-tiny {
	width: 5rem;
	max-width: 5rem;
}

.mud-table-cell.col-small
{
	width: 7.5rem;
	max-width: 7.5rem;
}

.mud-table-cell.col-medium
{
	width: 10rem;
	max-width: 10rem;
}

.mud-table-cell.col-large
{
	width: 15rem;
	max-width: 15rem;
}

.mud-table-cell.col-xlarge
{
	width: 20rem;
	max-width: 20rem;
}

.mud-table-cell.col-date
{
	width: 9rem;
	max-width: 9rem;
}

.column-filter-popup
{
	max-width: min(100%, 400px) !important;
}

/* grid layout helpers */
.span-two
{
	grid-column: span 2;
}
.span-three
{
	grid-column: span 3;
}
.span-four
{
	grid-column: span 4;
}
/* grid layout helpers */

.profile-menu-popover
{
	max-width: 90%;
}

.mud-dialog-title:empty
{
	display: none !important;
}

.text-overflow-ellipsis
{
	/* text truncate using ellipses, single line only */
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.filter-button.filtered {
	color: var(--mud-palette-primary);
}
.text-overflow-ellipsis
{
	/* text truncate using ellipses, single line only */
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.mud-select-extended-virtualized .mud-list-item-text-extended p
{
	/* text truncate using ellipses, single line only */
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.group-membership-container .mud-expand-panel-header
{
	padding: 16px 16px;
}

.group-membership-container .mud-list-subheader-extended.mud-list-subheader-gutters-extended
{
	padding: 0px;
	padding-right: 8px;
}

.group-membership-container .mud-list-item-text-extended > p
{
	/* text truncate using ellipses, single line only */
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.mud-dialog-fullscreen .outline-none
{
	overflow-y: auto;
}

.create-edit-wrapper-dialog
{
	color: var(--mud-palette-drawer-text) !important;
	background-color: var(--mud-palette-drawer-background) !important;
	max-width: 100% !important;
	max-height: 100% !important;
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	height: 100% !important;
}

	.create-edit-wrapper-dialog.full-width {
		width: 100% !important;
	}

	.create-edit-wrapper-dialog.mud-dialog-fullscreen {
		width: 100% !important;
	}

@media (max-width: 600px) 
{
	.create-edit-wrapper-dialog {
		width: 100% !important;
	}
}

/* QR Dialog - Some other styles within the component itself*/

.fullscreen-scrollable-dialog .mud-dialog-content
{
	padding: 0 !important;
}

.fullscreen-scrollable-dialog .mud-dialog-content
{
	padding: 0 !important;
	display: flex;
	flex-direction: column;
}

.fullscreen-scrollable-dialog .outline-none
{
	flex: 1;
}
    /* this is the div with tabindex*/
	.fullscreen-scrollable-dialog .outline-none > div
	{
		/*height: 100%;*/
		/*display: flex;*/
		/*flex-direction: column;*/
	}

		.fullscreen-scrollable-dialog .outline-none > div > .mud-dialog-content
		{
			/*flex: 1;*/
			flex-grow: 1;
			overflow: hidden;
		}

		.fullscreen-scrollable-dialog .outline-none > div > .mud-dialog-actions
		{
			/*flex: 1;*/
		}

/* QR Dialog*/

/* ############ Form Dense CSS ############## */

/* ==========================================
   GENERAL FORM STYLES
   ========================================== */

.form-asset-wrapper .mud-picker-calendar-content {
	justify-content: center;
}

.form-asset-wrapper .mud-input-slot:has(.image-grid) {
	padding: 5px;
}

/* ==========================================
   IMAGE GRID STYLES (Multiple Field Types)
   ========================================== */

.form-asset-wrapper .form-field-boolean-dense .image-grid,
.form-asset-wrapper .form-field-image-dense .image-grid,
.form-asset-wrapper .form-field-multichoice-dense .image-grid,
.form-asset-wrapper .form-field-multiselect-dense .image-grid,
.form-asset-wrapper .form-field-numeric-dense .image-grid {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

	.form-asset-wrapper .form-field-boolean-dense .image-grid img,
	.form-asset-wrapper .form-field-image-dense .image-grid img,
	.form-asset-wrapper .form-field-multichoice-dense .image-grid img,
	.form-asset-wrapper .form-field-multiselect-dense .image-grid img,
	.form-asset-wrapper .form-field-numeric-dense .image-grid img {
		width: 150px !important;
		height: 150px !important;
	}

	.form-asset-wrapper .form-field-boolean-dense .image-grid > div,
	.form-asset-wrapper .form-field-image-dense .image-grid > div,
	.form-asset-wrapper .form-field-multichoice-dense .image-grid > div,
	.form-asset-wrapper .form-field-multiselect-dense .image-grid > div,
	.form-asset-wrapper .form-field-numeric-dense .image-grid > div {
		width: 150px !important;
	}

/* ==========================================
   SHARED CARD HEADER STYLES
   ========================================== */

.form-field-contact-dense .mud-card-header,
.form-field-date-dense .mud-card-header,
.form-field-freetext-dense .mud-card-header,
.form-field-image-dense .mud-card-header,
.form-field-assetlocation-dense .mud-card-header,
.form-field-hourmeter-dense .mud-card-header,
.form-field-numeric-dense .mud-card-header,
.form-field-multichoice-dense .mud-card-header,
.form-field-multiselect-dense .mud-card-header,
.form-field-servicelog-dense .mud-card-header,
.form-field-unplanned-servicelog-dense .mud-card-header {
	padding: 5px;
	margin-left: 5px;
}

/* ==========================================
   SHARED H6 HEADING STYLES
   ========================================== */

.form-field-boolean-dense h6,
.form-field-contact-dense h6,
.form-field-date-dense h6,
.form-field-freetext-dense h6,
.form-field-image-dense h6,
.form-field-assetlocation-dense h6,
.form-field-hourmeter-dense h6,
.form-field-numeric-dense h6,
.form-field-multichoice-dense h6,
.form-field-multiselect-dense h6,
.form-field-servicelog-dense h6,
.form-field-unplanned-servicelog-dense h6 {
	font-size: 16px;
	font-weight: 400;
}

/* ==========================================
   SHARED CARD CONTENT STYLES (padding: 7px)
   ========================================== */

.form-field-contact-dense .mud-card-content,
.form-field-date-dense .mud-card-content,
.form-field-freetext-dense .mud-card-content,
.form-field-hourmeter-dense .mud-card-content,
.form-field-numeric-dense .mud-card-content,
.form-field-multichoice-dense .mud-card-content,
.form-field-multiselect-dense .mud-card-content {
	padding: 7px;
}

/* ==========================================
   SHARED INPUT SLOT STYLES
   ========================================== */

.form-field-freetext-dense .mud-input .mud-input-slot,
.form-field-numeric-dense .mud-input .mud-input-slot {
	padding: 5px;
	margin: 5px;
}

.form-field-contact-dense .mud-input .mud-input-slot {
	padding: 11.5px 14px;
}

/* ==========================================
   SHARED TEXTAREA STYLES
   ========================================== */

.form-field-hourmeter-dense .mud-input textarea,
.form-field-numeric-dense .mud-input textarea,
.form-field-multichoice-dense .mud-paper .mud-input-outlined-with-label > textarea,
.form-field-multiselect-dense .mud-paper .mud-input-outlined-with-label > textarea {
	padding: 5px;
	margin: 5px;
}

/* ==========================================
   SHARED PAPER & PARAGRAPH STYLES
   ========================================== */

.form-field-boolean-dense .mud-paper:first-of-type,
.form-field-multichoice-dense .mud-paper:first-of-type,
.form-field-multiselect-dense .mud-paper:first-of-type,
.form-field-numeric-dense .mud-paper:first-of-type {
	border: 0;
	margin-top: 0px !important;
}

.form-field-boolean-dense .flex-column > p:nth-of-type(1),
.form-field-multichoice-dense .flex-column > p:nth-of-type(1),
.form-field-multiselect-dense .flex-column > p:nth-of-type(1),
.form-field-numeric-dense .flex-column > p:nth-of-type(1) {
	margin-top: 5px !important;
}

/* ==========================================
   SHARED INPUT CONTROL STYLES
   ========================================== */

.form-field-contact-dense .mud-input-control {
	margin-top: 0px !important;
	margin-bottom: 0px !important;
}

/* ==========================================
   BOOLEAN FIELD SPECIFIC STYLES
   ========================================== */

.form-field-boolean-dense {
	flex-direction: row !important;
	align-items: center;
}

.form-field-boolean-dense > .mud-card-header {
	display: none;
}

	.form-field-boolean-dense .dense-header {
		padding: 5px;
		margin-left: 5px;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.form-field-boolean-dense.grouping {
		flex: 1;
	}

		.form-field-boolean-dense .dense-header.grouping {
			padding: 0px;
		}

		.form-field-boolean-dense .dense-header .mud-button-group-root {
			height: 35px;
			margin-left: 0px !important;
		}

	.form-field-boolean-dense .mud-card-content {
		padding: 5px;
	}

		.form-field-boolean-dense .mud-card-content > .mud-paper {
			margin-top: 0px !important;
		}

		.form-field-boolean-dense .mud-card-content .mud-paper .mud-card-header {
			padding: 5px;
			padding-top: 10px;
		}

			.form-field-boolean-dense .mud-card-content .mud-paper .mud-card-header h5 {
				font-size: 16px;
			}

	.form-field-boolean-dense .mud-input-outlined-with-label > .mud-input-slot {
		padding: 10px;
		margin-top: 5px;
	}

/* ==========================================
   DATE FIELD SPECIFIC STYLES
   ========================================== */

.form-field-date-dense .mud-picker-datepicker-toolbar {
	height: 40px;
	flex-direction: row-reverse;
	justify-content: center;
}

	.form-field-date-dense .mud-picker-datepicker-toolbar .mud-button-date {
		display: none;
		font-size: 1.5rem;
	}

	.form-field-date-dense .mud-picker-datepicker-toolbar .mud-button-date:has(span:not(:empty)) {
		display: flex;
	}

.form-field-servicelog-dense .date-time,
.form-field-unplanned-servicelog-dense .date-time {
	display: flex;
	gap: 15px
}

/* ==========================================
   ASSET LOCATION FIELD SPECIFIC STYLES
   ========================================== */

.form-field-assetlocation-dense {
	position: relative;
}

	.form-field-assetlocation-dense .mud-card-content form > button {
		position: absolute;
		top: 0;
		right: 0;
	}

	.form-field-assetlocation-dense .mud-paper:has(.mapComponent) {
		height: 270px !important;
	}

/* ########################## */


	@media (max-width: 600px) {
		.mud-xs-table .mud-table-cell-hide 
	{
		padding: 0 !important;
		display: none !important;
	}

	.mud-fab-size-small
	{
		min-height: 28px !important;
		min-width: 28px !important;
		height: 28px !important;
		width: 28px !important;
		align-self: center;
	}

	.mud-fab-size-small > span > svg
	{
		font-size: 1.2rem !important;
	}
} @media (max-width: 480px) {
	.notification-menu-popover.mud-popover-open 
	{
		width: 290px !important;
	}

	.notification-menu-popover .mud-badge-root .mud-typography.mud-typography-body1 
	{
		font-size: 0.8em;
	}

	.notification-menu-popover .mud-list > div:nth-of-type(1) 
	{
		min-width: auto !important;
		width: 100% !important;
	}
} @media (max-width: 355px) {
	.notification-menu-popover.mud-popover-open 
	{
		width: 210px !important;
	}

	.notification-menu-popover .mud-badge-root .mud-typography.mud-typography-body1 
	{
		font-size: 0.6em;
	}
}