/* ***************************************
	Widgets
*************************************** */
.elgg-widgets-grid {
	display: flex;
	flex-direction: column;
}

.elgg-widgets {
	flex-grow: 1;
	flex-basis: 100%;
}

@media $(media-desktop-up) {
	.elgg-widgets-grid {
		flex-direction: row-reverse;
		align-items: stretch;
		margin: 0 -0.5rem;
	}

	.elgg-widgets {
		padding: 0 0.5rem;
	}
}

.elgg-menu-title-widgets-container {
	justify-content: flex-end;
	flex-direction: row;
	padding: 0.5rem;
}

.elgg-widgets-add-panel ul {
	border-top: 1px solid $(border-color-soft);
	margin-top: 0.5rem;
}

.elgg-widgets-add-panel ul > li {
	padding: 0.5rem;
	transition: background 0.2s linear;
	border-bottom: 1px solid $(border-color-soft);
}

.elgg-widgets-add-panel ul > li:hover {
	background: $(background-color-mild);
}

.elgg-widgets-add-actions {
	max-width: 8rem;
	text-align: right;
}

.elgg-widget-single.elgg-state-available .elgg-widgets-add-actions > span,
.elgg-widget-single.elgg-state-unavailable .elgg-widgets-add-actions .elgg-button-submit {
	display: none;
}

.elgg-module-widget {
	border: 1px solid $(border-color-soft);
	margin: 0 0 1rem 0;
	position: relative;
}

.elgg-module-widget.elgg-state-draggable:hover {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.elgg-module-widget > .elgg-head {
	background-color: $(background-color-mild);
	padding: 0.5rem 1rem;
	height: auto;
	overflow: hidden;
}

.elgg-module-widget.elgg-state-draggable .elgg-widget-handle {
	cursor: move;
	flex-grow: 1;
}

.elgg-module-widget > .elgg-body {
	background-color: #ffffff;
	width: 100%;
}

.elgg-module-widget .elgg-menu-widget-container {
	display: none;
}

.elgg-module-widget:hover .elgg-menu-widget-container {
	display: inline-block;
}

.elgg-widget-edit {
	display: none;
	width: auto;
	padding: 10px;
	border-bottom: 1px solid $(border-color-soft);
	background-color: $(background-color-mild);
}

.elgg-widget-content {
	padding: 1rem;
}

.elgg-widget-placeholder {
	border: 1px dashed #a1a1a3;
	margin-bottom: 1rem;
}

