/*************** FOLDS ******************/
section.widget {
	box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, .1);
	height: 44px;
	min-height: 44px;
	/* overflow: hidden; (clipping barmenu empty taggroup) */
	transition: all ease-in-out .20s;
	gap: 0;
	position: relative;
	display: flex;
	flex-direction: column;
	background: white;
	width: 100%;
}

section.widget header,
section.widget main h1{
	border-bottom: 2px solid #e5e5e5;
	display: flex;
	padding: 10px;
	margin-bottom: 0px;
	flex-wrap: nowrap;
}

section.widget header h1,
section.widget main h1{
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

section.widget header h1 i,
section.widget main h1 i{
	margin-right: 15px;
}

section.widget main h1{
	margin-left: -10px;
	width:calc(100% + 20px);
}


section.widget main {
	min-height: 10px;
	flex: 1 1 auto;
	padding-left: 10px;
	overflow: auto;
	max-height: 100%;
	padding-top: 0;
}

section.widget.transparent main {
	min-height: 0px;
}

.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 {
	height: auto;
}

section.widget header div.tags {
	margin: 0 0 0 auto;
}

section.widget header div.tags + ul {
	margin-left: 0;
}

section.widget footer{
    border-top: 2px solid #e5e5e5;
    padding: 10px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    flex:0 0 auto;
}

section.widget main footer {
	margin-left: -10px;
	margin-top: 10px;
	width: calc(100% + 10px);
}

section.widget footer button {
	margin-top: 0;
}

div.widgetSizer {
	text-align: center;
	background: rgb(230, 230, 230);
	padding-top: 2px;
	line-height: 0;
	position: relative;
	margin-top: auto;
	border-top: 2px solid #e5e5e5;
}

div.widgetSizer i {
	opacity: .3;
	padding: 0 10px 2px;
	cursor: row-resize;
}


section.widget footer {
	margin-top: auto;

}

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;
}

div.addWidget 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;
}

div.addWidget i.fa-plus-circle:before {
	background: #fff;
	border-radius: 50%;
}

div.addWidget:hover i {
	transform: rotate(45deg);
}

div.addWidget 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;
}

div.addWidget ul {
	visibility: hidden;
	opacity: 0;
}

div.addWidget:hover ul {
	visibility: visible;
	opacity: 1;
}

div.addWidget ul li {
	white-space: nowrap;
}


/*************** FOLDS SEARCH******************/
section.widget.transparent {
	background: none;
	border-bottom: 2px solid black;
	box-shadow: none;
}


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;
}

section.widget header {
	flex: 0 1 auto;
	flex-wrap: nowrap;
	background: transparent;
}


section.widget.transparent header {
	flex-wrap: wrap;

}
section.widget.transparent header{
	border-bottom:none;
}

.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;
}
