﻿.mud-menu-item.mud-disabled {
	opacity: 0.7;
}

.mud-icon-button:disabled {
	opacity: 0.7;
}

.mud-expand-panel .mud-expand-panel-header {
	padding: 4px 4px 4px 16px;
	min-height: 0px;
}

.mud-list-gutters {
	padding-left: 16px;
	padding-right: 4px;
}

.mud-list-item-gutters {
	padding-left: 16px;
	padding-right: 4px;
}

.mud-list-item-icon {
	min-width: 2rem;
}

.mud-list-item-text {
	margin-top: 0;
	margin-bottom: 0;
}

.mud-divider {
	background-color: lightgray;
}

.mud-divider-fullwidth {
	flex-grow: 0;
	width: 100%;
}


/* Generell tab slider workaround because of mud blazor resizing bug */
.mud-tab-active {
	border-bottom: 2px solid var(--mud-palette-primary) !important;
}

/* Generell tab slider workaround because of mud blazor resizing bug */
.mud-tab-slider{
	display: none !important;
}

.ecm-list-item:hover,
.ecm-list-item:focus:not(.mud-selected-item) {
	background-color: var(--mud-palette-action-default-hover);
}

@keyframes ecm-blink-animation {
	0%, 100% {
		color: var(--mud-palette-info);
		background-color: var(--mud-palette-primary-hover);
	}
	50% {
		color: var(--mud-palette-text-primary);
		background-color: transparent;
	}
}

.ecm-blink {
	animation: ecm-blink-animation 1s ease-in-out infinite;
}

::-webkit-scrollbar {
	width: 5px !important;
	height: 5px !important;
	z-index: 1 !important;
}

::-webkit-scrollbar-track {
	background: transparent !important;
	border-radius: 2px !important;
	border: solid 1px #c4c4c4 !important;
}

::-webkit-scrollbar-thumb {
	background: #c4c4c4 !important;
	border-radius: 2px !important;
}

@media (orientation: landscape) {

	.entity-detail-dashboard-container {
		flex-direction: row !important;
	}

	.entity-detail-dashboard-content {
		flex-direction: row !important;
		overflow: auto;
		padding-bottom: 0.5rem;
		max-height: 100%;
	}

		.entity-detail-dashboard-content > div {
			flex: 1 1 0px;
			max-width: 600px;
			max-height: 600px;
		}
}

.entity-detail-dashboard-container-horizontal {
	flex-direction: row !important;
}

.entity-detail-dashboard-content-horizontal {
	flex-direction: row !important;
	overflow: auto;
	padding-bottom: 0.5rem;
	max-height: 100%;
}

	.entity-detail-dashboard-content-horizontal > div {
		flex: 1 1 0px;
		max-width: 600px;
		max-height: 600px;
	}

@media (orientation: portrait) {
	.entity-detail-dashboard-container {
		flex-direction: column-reverse !important;
		justify-content: flex-end !important;
	}

	.entity-detail-dashboard-content {
		flex-direction: column !important;
		align-items: center;
		overflow: auto;
		padding-bottom: 1rem;
	}

		.entity-detail-dashboard-content > div {
			flex-shrink: 1;
			width: 100%;
			max-height: 350px;
		}

	.entity-detail-dashboard-settings {
		flex-direction: row-reverse !important;
	}

	.entity-details-dashboard-renditions {
		flex-direction: row !important;
	}

	.entity-detail-dashboard-drawer {
		max-width: 80% !important;
	}
}

.entity-detail-dashboard-container-vertical {
	flex-direction: column-reverse !important;
	justify-content: flex-end !important;
}

.entity-detail-dashboard-content-vertical {
	flex-direction: column !important;
	align-items: center;
	overflow: auto;
	padding-bottom: 1rem;
}

	.entity-detail-dashboard-content-vertical > div {
		flex-shrink: 1;
		width: 100%;
		max-height: 350px;
	}

.entity-detail-dashboard-settings-vertical {
	flex-direction: row-reverse !important;
}

.entity-details-dashboard-renditions-vertical {
	flex-direction: row !important;
}

.entity-detail-dashboard-drawer-vertical {
	max-width: 80% !important;
}

@media (orientation: landscape) and (min-height: 350px) and (max-width: 1060px) {
	.entity-detail-dashboard-content {
		flex-wrap: wrap;
		overflow: auto;
	}

		.entity-detail-dashboard-content > div {
			max-height: 350px;
			/*width: 300px;*/
			width: 100%;
		}
}

@media (orientation: landscape) and (min-height: 350px) and (max-width: 700px) {
	.entity-detail-dashboard-content > div {
		width: 100%;
		max-width: unset;
	}
}

.z-intex--1 {
	z-index: -1;
}

.warning > div > div.mud-input-control-helper-container > p > div > * {
	color: orange !important;
}

.too-long-text {
	text-overflow: ellipsis;
	overflow: hidden;
	width: auto;
	display: flex;
	align-items: center;
}

.icon-entry .hidden-child {
	display: none !important;
}

.icon-entry:hover .hidden-child {
	display: flex !important;
}

.icon-entry:hover .visible-child {
	display: none !important;
}

/* Wrapper alignment */
.list-link-state-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;

}

/* Actual badge sizing & positioning */
.list-link-state-badge {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 0.5 !important;
	top: 0px !important;
	left: 9px !important;
	max-width: 8px !important;
	max-height: 6px !important;
	width: 8px !important;
	height: 6px !important;
	font-size: 10px !important;
	min-width: 10px !important; /* overrides mud-badge's min-width: 20px */
	min-height: 6px !important;
	padding: 0 !important;
}

	/* Icon inside badge */
	.list-link-state-badge .mud-icon-root {
		width: 12px !important;
		height: 10px !important;
		font-size: 10px !important;
	}

.link-toggle-button {
	min-width: 22px;
	min-height: 22px;
}

/* Standard hidden-actions - ausgeblendet bei Multiselect */
.list-entry .hidden-actions {
    visibility: hidden !important;
}

.list-entry:hover .hidden-actions,
.ecm-list-item-selected .list-entry .hidden-actions,
.list-entry.ecm-list-item-selected .hidden-actions {
    visibility: visible !important;
}

.selection-active .list-entry:hover .hidden-actions,
.selection-active .ecm-list-item-selected .list-entry .hidden-actions,
.selection-active .list-entry.ecm-list-item-selected .hidden-actions,
.list-entry.selection-active:hover .hidden-actions,
.list-entry.ecm-list-item-selected.selection-active .hidden-actions {
    visibility: hidden !important;
}

/* Persistent hidden-actions - NICHT von Multiselect betroffen */
.list-entry .hidden-actions-persistent {
    visibility: hidden !important;
}

.list-entry:hover .hidden-actions-persistent,
.ecm-list-item-selected .list-entry .hidden-actions-persistent {
    visibility: visible !important;
}

.read-bar {
	min-width: 8px;
	max-width: 8px;
	flex-shrink: 0;
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
	padding: 0 !important;
	margin: 0;
}

.unread-item {
	background-color: var(--mud-palette-primary);
	opacity: 0.8;
	width: 4px;
	height: 100%;
	transition: width 0.2s ease;
}

.list-entry:hover .unread-item {
	width: 8px;
}

.read-item {
	background-color: var(--mud-palette-primary-lighten);
	opacity: 0;
	width: 0;
	height: 100%;
	transition: opacity 0.2s ease, width 0.2s ease;
}

.list-entry:hover .read-item {
	opacity: 0.3;
	width: 8px;
}

@keyframes background-flash {
	0% {
		background-color: var(--mud-palette-secondary-hover);
	}

	50% {
		background-color: var(--mud-palette-secondary-hover);
	}

	100% {
		background-color: transparent;
	}
}

.left-scroll-container {
	height: 100%;
	width: 100%;
	overflow: hidden;
	display: inline-flex;
	flex-direction: column;
}

.left-scroll-body {
	height: 100%;
	overflow-y: auto;
}

.document-list-scroll {
	flex-grow: 1;
	min-height: 0;
	max-height: 100%;
	overflow-y: auto;
	display: contents;
}

.upload-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.6);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}


.folder-menu-hover .folder-menu {
	opacity: 0;
	visibility: hidden;
	transition: opacity 150ms ease-in-out;
}

.folder-menu-hover:hover .folder-menu {
	opacity: 1;
	visibility: visible;
}

.item-hover .item{
	visibility: hidden
}

.item-hover:hover .item{
	visibility: visible
}