/*************** SECTION ******************/
section.widget {
	box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, .1);
	border-radius: 8px;
	min-height: 34px;
	transition: all ease-in-out .20s;
	gap: 0;
	position: relative;
	display: flex;
	flex-direction: column;
	background: rgb(65, 65, 65);
	width: 100%;
	height: auto;


	header {
		flex: 0 1 auto;
		flex-wrap: nowrap;
		background: transparent;
		border-radius: 8px 8px 0 0;
		color: rgba(255,255,255,0.8);
		h1{
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}
		div.tags {
			margin: 0 0 0 10px;
			div.tag {
				border-color: rgba(255,255,255,0.4);
				color:rgba(255,255,255,0.8);
				background: none;
				&.active {
					background: #5e1a81;
				}

			}
		}
		div.tags + ul {
			margin-left: 0;
		}
	}

	main {
		background: white;
		min-height: 10px;
		flex: 1 1 auto;
		padding-left: 10px;
		overflow: auto; /* required e.g for library widget */
		max-height: 100%;
		padding-top: 0;
		h1{
			margin-left: -10px;
			width:calc(100% + 20px);
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}
	}

	footer {
		background: white;
		margin-top: auto;
		padding: 10px;
		text-align: right;
		display: flex;
		justify-content: flex-end;
		flex:0 0 auto;
		button {
			margin-top: 0;
		}
	}

	div.widgetSizer {
		text-align: center;
		padding-top: 2px;
		line-height: 0;
		position: relative;
		margin-top: auto;
		i {
			color:white;
			opacity: .3;
			padding: 0 10px 2px;
			cursor: row-resize;
		}
	}

	&.transparent {
		background: none;
		box-shadow: none;
		header {
			flex-wrap: wrap;
			color: black;
			padding: 0;
			margin-bottom:3rem;
			div.tags {
				div.tag {
					border-color: rgba(0,0,0,0.4);
					color:rgba(0,0,0,0.8);
					background: none;
					&.active {
						background: rgba(255,255,255,0.8);
					}

				}
			}
		}
		main {
			background: none;
			min-height: 0px;
			padding-left: 0;
		}
	}
}

section.widget header,
section.widget main h1{
	display: flex;
	padding: 5px 10px;
	margin-bottom: 0px;
	flex-wrap: nowrap;
}



section.widget header h1 i,
section.widget main h1 i{
	margin-right: 15px;
}

.row.first,
section.widget main > div.row
{
	padding-top: 10px;
}

section.widget main > div.row p:last-child {
	margin-bottom: 0;
}

section.widget.scroll main {
	max-height: 100%;
}

section.widget main > div.row select + select{
	margin-left: 5px;
}

section.widget main > div.row label{
	flex:0 0 150px;
}

section.widget main footer {
	margin-left: -10px;
	margin-top: 10px;
	width: calc(100% + 10px);
}

div.widgetSizer.closed {
	background: none;
	margin-top: -27px;
	border-top-color: transparent;
}

div.widgetSizer.closed:before {
	content: '';
	height: 13px;
	background: #fff;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
}

div.widgetSizer.closed i {
	color: rgba(43, 43, 43, .5);
}

section.widget footer + div.widgetSizer {
	margin-top: 0;
}

/**************** ADD WIDGET *****************/
div.addWidget {
	position: fixed;
	z-index: 2;
	right: 0;
	bottom: 0;
	&:hover{
		ul {
			visibility: visible;
			opacity: 1;
		}
		i {
			transform: rotate(45deg);
		}
	}
	i {
		font-size: 3em;
		cursor: pointer;
		text-shadow: 7px 17px 17px 1px rgba(0, 0, 0, .07);
		padding: 20px;
		z-index: 1;
		display: block;
		position: relative;
		transition: transform ease-in-out .2s;
	}
	i.fa-plus-circle:before {
		background: #fff;
		border-radius: 50%;
	}
	ul {
		background: #fff;
		box-shadow: 7px 17px 17px 1px rgba(0, 0, 0, .07);
		position: absolute;
		bottom: 20px;
		right: 20px;
		transition: all ease-in-out .2s;
		overflow: hidden;
		padding: 10px 10px 60px 10px;
		list-style-type: none;
		margin: 0;
		border-radius: 4px 4px 26px 4px;
		visibility: hidden;
		opacity: 0;

	}
}

div.addWidget
div.addWidget ul li {
	white-space: nowrap;
}


/*************** FOLDS SEARCH******************/
section.widget.transparent {
	background: none;
	box-shadow: none;
}

section.widget header div.indent{
	margin-left: calc(14rem + 12px);

}
section.widget header div.searchInput input {
	border: none;
	background: rgba(229, 229, 229, .5);
	font-weight: 700;
	font-size: 2rem;
	margin: 0;
	padding: 0 0 0 10px;
	height: auto;
	font-family: 'Neue Haas Grotesk W01 Disp', Times, Arial, sans-serif, FontAwesome;
	flex: 1 0;
	border-radius: 20px;
}

section.widget.transparent header div.searchInput input{
	background:none;
}

section.widget.transparent header input {
	border: none;
}


section.widget header input::placeholder {
	opacity: 1;
	color: #000;
}

.layout.main section.widget{
	border-bottom: none;
}


/*************** READONLY ******************/
div.layout.main._readonly section.widget{
	background: none;
	box-shadow: none;
}
div.layout.main._readonly hr{
	border-top: 8px solid white;

}
div.layout.main._readonly section.widget header{
	margin:10px 10px 0 10px;
	padding:5px;
	background: white;
}

tr ._readonly {
	user-select: none;
	color: gray;
}

tr ._readonly i,
tr ._readonly a{
	pointer-events: none;
}
