
:root {
	--main-background-color: rgb(46, 63, 80);
}

.accordion {
	-webkit-box-shadow: 0px 75px 35px -55px rgba(10, 30, 65, 0.6);
	-moz-box-shadow: 0px 75px 35px -55px rgba(10, 30, 65, 0.6);
	box-shadow: 0px 75px 35px -55px rgba(10, 30, 65, 0.6);
	/*font-family: Arial, Helvetica, sans-serif;*/
	border-color: #a12a2a;
	border-style: solid;
	border-width: 0px;
	margin: 0 auto;
	width: 100%;
	flex-grow: 1;
}

.accordion>ul>li, .accordion-title, .accordion-content,
.accordion-separator {
	float: none;
}

.accordion>ul>li {
	margin-right: -0px;
	display: flex;
	flex-flow: column;
	flex-grow: 1;
	color:black;
	font-weight:normal;
	flex-shrink: 1;
	flex-grow:1;
	max-height:100%;
    background: white;
    z-index: 1;
}

.accordion>ul>li:nth-child(1) {
    z-index: 2;
    background: #28a745;
}

.accordion.test>ul>li {
	max-height:calc(100vh - 20px);
}

.accordion>ul>li>.accordion-title {
	/*background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(255,255,0,255)), to(rgb(255,172,0,144));
    background-image: -webkit-linear-gradient(top, rgb(255,255,0,255), rgb(255,172,0,.56));
    background-image: -moz-linear-gradient(top, rgb(255,255,0,255), rgb(255,172,0,.56));
    background-image: -ms-linear-gradient(top, rgb(255,255,0,255), rgb(255,172,0,.56));
    background-image: -o-linear-gradient(top, rgb(255,255,0,255), rgb(255,172,0,.56));
    background-color: antiquewhite;*/
}

/*
.accordion>ul>li>.accordion-select:checked ~ .accordion-title {
	background-image: -webkit-gradient(linear, left top, left bottom, from(#ffff00ff), to(#ffac0090));
    background-image: -webkit-linear-gradient(top, #ffac00ff, #ffac0090);
    background-image: -moz-linear-gradient(top, #ffff00ff, #ffac0090);
    background-image: -ms-linear-gradient(top, #ffff00ff, #ffac0090);
    background-image: -o-linear-gradient(top, #ffff00ff, #ffac0090);
}
*/

.accordion-select:checked:not(:disabled) ~ .accordion-separator {
	margin-right: 0px;
}

.accordion-title > div {
	margin-bottom: 16px;
	margin-left: 4px;
}



.accordion-select:not(:disabled):hover ~ .accordion-title,
.accordion-select:not(:disabled):checked ~ .accordion-title {
	background-color: var(--main-background-color);
	color:white;
}

.accordion-select:not(:disabled):hover ~ .accordion-title .bg,
.accordion-select:not(:disabled):checked ~ .accordion-title .bg {
	/*background-color:var(--main-background-color);*/
	/*background-image: url("../img/n/2_bg Frame@2x.png");*/
	-webkit-filter: blur(1px);
	-moz-filter: blur(1px);
	-o-filter: blur(1px);
	-ms-filter: blur(1px);
	filter: brightness(0.4) opacity(.8);
	width: 100%;
    height: 100%;
    z-index: 0;
    position:absolute;
    margin: 0;
   	margin-left: -7px;
    width: calc(100% + 14px);
}

.accordion-content #order-selector .dropdown-menu.show {
	width:100%;
	justify-content: center;
	left:5px !important;
}
.accordion-content #order-selector .dropdown-item {
	width:100%;
	justify-content: center;
	border-bottom: .5px solid lightgray;
}

.accordion-select:disabled ~ .accordion-title {
	color: gray;
}

.accordion-title > div {
	transform: rotate(0deg);
	-o-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-webkit-transform: rotate(0deg);
	-ms-writing-mode: lr-tb;
	filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0);
	margin-bottom: 0px;
	align-items:center;
	flex-shrink:0;
}

.accordion-title {
	justify-content: center;
	font-size:12px;
	margin-right: 1px;
	margin-bottom: 0px;
	padding-left: 20px;
	display: flex;
	flex-flow: column;
	overflow:hidden;
	padding-right:0px;
	padding-left:0px;
    border:none;
    width: 100%;
    flex-shrink: 0;	
    overflow: visible;
}

.accordion-select:checked:not(:disabled) ~ .accordion-content {
	margin-right: -1px;
	padding: 0px;
	width:calc(100% + 2px);
    display: flex;
	flex-flow: column;
}

/*
.accordion[status = 'joined'] .accordion-content,
.accordion[status = 'joined_not_authorized'] .accordion-content,
.accordion[status = 'locked'] .accordion-content {
	height: calc(100vh - 85px);
}
*/


.accordion-select:not(:checked) ~ .accordion-content {
	display:none;
}
.accordion-select:not(:checked) ~ .accordion-title-button,
.accordion-select:not(:checked) ~ .accordion-title .accordion-title-button {
	display:none
}

.accordion #tab_restaurant.accordion-select ~ .accordion-title .accordion-title-button {
	transition: opacity 2s ease-in-out;
	opacity:1;
}
.accordion #tab_restaurant.accordion-select.unhide ~ .accordion-title .accordion-title-button {
	opacity:0;
}
/*
.accordion #tab_restaurant.accordion-select ~ .accordion-title div:not(.autocomplete) span {
    flex-grow: 1;
    text-align: center;
    padding-right: 4rem;
}

.accordion #tab_restaurant.accordion-select ~ .accordion-title .autocomplete) span {
	
}
*/

/* Do not change following properties, they aren't 
generated automatically and are common for each slider. */
.accordion {
	overflow: hidden;
	display: flex;
	flex-flow: column;
}

.accordion>ul {
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
	flex-grow: 1;
	display: flex;
	flex-flow: column;
	overflow:hidden;
	height: 90%
}

.accordion>ul>li, .accordion-title {
	position: relative;
}

.accordion-select {
	cursor: pointer;
	position: absolute;
	opacity: 0;
	top: 0;
	left: 0;
	margin: 0;
	z-index: 3;
	width: 100%;
}

.accordion-title > div {
	display: block;
	bottom: 0px;
	white-space: nowrap;
	align-items:center;
}

.accordion-content {
	position: relative;
	overflow-x:hidden;
	overflow-y:auto;
	height: 0;
	width: 0;
	padding: 0px;
	flex-grow:1;
	height: calc(100vh - 80px);
}

li input#tab_orders ~ .accordion-content {
	overflow: hidden;
	background: white;
}

li input#tab_orders ~ .accordion-content .tab-pane {
	overflow:hidden;
	flex-direction: column;
}

li input#tab_orders ~ .accordion-content > #orders {
	width:100%;
	flex-grow:1;
	overflow:hidden;
}

li input#tab_orders ~ .accordion-content > #orders #mainLayer {
	height:100%;
	overflow:hidden;
}

/*
.accordion-separator {
	transition: margin 0.3s ease 0.1s;
	-o-transition: margin 0.3s ease 0.1s;
	-moz-transition: margin 0.3s ease 0.1s;
	-webkit-transition: margin 0.3s ease 0.1s;
}
*/
.accordion-select ~ .accordion-title .icon-table {
	height:20px;
	width:20px;
	padding-left:0px;
	margin-top:-6px;
}


#bar:not(.unhide):not(:checked) {
	-webkit-animation: barslowlyhide 1s forwards;
    -moz-animation: barslowlyhide 1s forwards;
    -o-animation: barslowlyhide 1s forwards;
    animation: barslowlyhide 1s forwards;
}

#bar ~ iframe {
	opacity:0
}
#bar:not(.unhide):not(:checked) ~ iframe {
	-webkit-animation: barslowlyshow 1s forwards;
    -moz-animation: barslowlyshow 1s forwards;
    -o-animation: barslowlyshow 1s forwards;
    animation: barslowlyshow 1s forwards;
}


#bar.unhide:not(.unhidden) {
	-webkit-animation: barslowlyshow 1s forwards;
    -moz-animation: barslowlyshow 1s forwards;
    -o-animation: barslowlyshow 1s forwards;
    animation: barslowlyshow 1s forwards;
}

.accordion-title #dropdownTableButton {
	flex-flow:row;
	display: flex;
	align-items: center;
	background-color:transparent;
	font-size:20px;
	box-shadow: unset;
	margin:0px;
	border-radius: 5px;
	width: unset;
	padding:0;
	padding-left: 7px;
	padding-right: 7px;
}

.accordion-title #dropdownMateButton {
	flex-flow:row;
	display: flex;
	align-items: center;
	background-color:transparent;
	font-size:20px;
	box-shadow: unset;
	margin:0px;
	border-radius: 5px;
	width: unset;
	padding:0;
	padding-left: 7px;
	padding-right: 7px;
}

@keyframes barslowlyhide {
	0% {
        height:45px;
    }
    100% {
        height:0px;
    }
}

@keyframes barslowlyshow {
	0% {
        height:0px;
    }
    100% {
        height:45px;
    }
}

.accordion #new-order.not-approved,
.accordion #new-order.approval-needed {
	-webkit-animation: approval-needed 1s infinite;
    -moz-animation: approval-needed 1s infinite;
    -o-animation: approval-needed 1s infinite;
    animation: approval-needed 1s infinite;
}

@keyframes approval-needed {to {filter: invert(20%);}}

/*
.accordion-select:not(.unhide):not(:checked) ~ .accordion-title {
	-webkit-animation: slowlyhide 1s forwards;
    -moz-animation: slowlyhide 1s forwards;
    -o-animation: slowlyhide 1s forwards;
    animation: slowlyhide 1s forwards;
}

.accordion-select:not(.unhide):not(:checked) ~ .accordion-title > div {
	-webkit-animation: slowlyhide2 1s forwards;
    -moz-animation: slowlyhide2 1s forwards;
    -o-animation: slowlyhide2 1s forwards;
    animation: slowlyhide2 1s forwards;
}

.accordion-select:not(.unhide):not(:checked) ~ .accordion-title .icon-table {
	-webkit-animation: slowlyhide3 1s forwards;
    -moz-animation: slowlyhide3 1s forwards;
    -o-animation: slowlyhide3 1s forwards;
    animation: slowlyhide3 1s forwards;
}

.accordion-select.unhide:not(.unhidden):not(:checked),
.accordion-select.unhide:not(.unhidden):not(:checked) ~ .accordion-title {
	-webkit-animation: slowlyshow 1s forwards;
    -moz-animation: slowlyshow 1s forwards;
    -o-animation: slowlyshow 1s forwards;
    animation: slowlyshow 1s forwards;
}

.accordion-select.unhide:not(.unhidden):not(:checked) ~ .accordion-title > div {
	-webkit-animation: slowlyshow2 1s forwards;
    -moz-animation: slowlyshow2 1s forwards;
    -o-animation: slowlyshow2 1s forwards;
    animation: slowlyshow2 1s forwards;
}

*/

/*
.accordion[status = 'joined_not_authorized'] .accordion-select:checked:not(.unhide):not(:disabled) ~ .accordion-content,
.accordion[status = 'joined'] .accordion-select:checked:not(.unhide):not(:disabled) ~ .accordion-content,
.accordion[status = 'locked'] .accordion-select:checked:not(.unhide):not(:disabled) ~ .accordion-content {
	-webkit-animation: slowlyexpand 1s forwards;
    -moz-animation: slowlyexpand 1s forwards;
    -o-animation: slowlyexpand 1s forwards;
	animation: slowlyexpand 1s forwards;
}*/

.accordion .accordion-select:checked:not(.unhide):not(:disabled) ~ .accordion-content {
	-webkit-animation: slowlyexpand 1s forwards;
    -moz-animation: slowlyexpand 1s forwards;
    -o-animation: slowlyexpand 1s forwards;
	animation: slowlyexpand 1s forwards;
}

/*
.accordion[status = 'joined_not_authorized'] .accordion-select.unhide:checked:not(.unhidden):not(:disabled) ~ .accordion-content,
.accordion[status = 'joined'] .accordion-select.unhide:checked:not(.unhidden):not(:disabled) ~ .accordion-content,
.accordion[status = 'locked'] .accordion-select.unhide:checked:not(.unhidden):not(:disabled) ~ .accordion-content {
	-webkit-animation: slowlycollapse 1s forwards;
    -moz-animation: slowlycollapse 1s forwards;
    -o-animation: slowlycollapse 1s forwards;
	animation: slowlycollapse 1s forwards;
}*/

.accordion .accordion-select.unhide:checked:not(.unhidden):not(:disabled) ~ .accordion-content {
	-webkit-animation: slowlycollapse 1s forwards;
    -moz-animation: slowlycollapse 1s forwards;
    -o-animation: slowlycollapse 1s forwards;
	animation: slowlycollapse 1s forwards;
}


.accordion>ul>li span#amount {
    right: 50px;
}

.accordion .accordion-title div.state {
	position:unset;
	top: unset;
    transform: unset;
    text-align: center;
    text-shadow: 1px 1px 1px white, -1px 1px 1px white;
    flex-grow:0;
    display:none;
    flex-shrink:1;
	background-size: auto 100%;
    height: unset;
}
.accordion .accordion-title div.state.show {
	display:unset;
}

.accordion .accordion-title div.state span {
	position: relative;
    bottom: -35%;
    right: -12%;
}
.accordion .accordion-title div.states-count {
    display: flex;
    flex-flow: row-reverse;
    align-self: center;
    padding-right: 8px;
}

.accordion .accordion-title div.state {
	background-repeat:no-repeat;
	width:30px;
}
/*
@media ( orientation : landscape) {

	.accordion-title {
		width:40px;
		height:100%;
		justify-content: center;
	}
	
	.accordion-select:not(:checked) ~ .accordion-title {
		width: 0px;
		overflow:hidden;
	}
	
	.accordion-select:not(.unhide):not(:checked) ~ .accordion-title .states-count > .state {
		-webkit-animation: slowlyhide4 1s forwards;
    	-moz-animation: slowlyhide4 1s forwards;
    	-o-animation: slowlyhide4 1s forwards;
    	animation: slowlyhide4 1s forwards;
	}
	
	.accordion {
		width:100%;
	}
	.accordion .accordion-content > #orders {
		width:100%;
		height: 100%;
	}
	.accordion>ul {
		width:100%;
	}
	.accordion>ul>li {
		flex-shrink: 0;
    	flex-grow: 0;
	}
	.accordion-title > div {
		margin: 0;
		justify-content: center;
		transform: translate(0%, 0%) rotate(-90deg);
	}
	.accordion .accordion-select:not(:checked) ~ .accordion-title div.states-count {
	    width: 300px;
	}
	
	.accordion-select:checked:not(:disabled) ~ .accordion-content {
		width: calc(100vw);
		height: 100%;
    }

	.accordion[status = 'none'] .accordion-select:checked:not(:disabled) ~ .accordion-content {
		width: calc(100vw);
	}
	
	.accordion-select:checked ~ .accordion-title {
		height:40px;
		width:100%;
		box-shadow:unset;
	}
	.accordion-select:checked {
	    height: 40px;
	    width: 100%;
	}
	.accordion-select:not(:checked) {
	    width: 40px;
	    height: 100%;
	}
	.accordion-select:checked ~ .accordion-title > div {
		transform: unset;
		margin-left: 20px;
		justify-content: unset;
		
	}
	#orderTabs1.orderTabs > div.tab-pane {
		width:31px;
	}
	#layout {
		width:100%;
	}
	ul#orderList1 {
		writing-mode: vertical-rl;
    	text-orientation: sideways;
    	white-space: nowrap;
    	flex-grow: 1;
    	padding: 0;
    	transform: rotate(-180deg);
	}
	
	ul#orderList1 .nav-link {
		width:31px;
		padding: 0;
		font-size: 15px;
		padding-right: 5px;
	}
	
	@keyframes slowlyhide2 {
		0% {
			transform: rotate(-90deg);
	    }
	
	    100% {
			transform: rotate(-90deg) scaleY(0.5);
	    }
	}
	@keyframes slowlyhide3 {
		0% {
	    }
	
	    100% {
		    height: 22px;
    		width: 16px;
    		padding-left: 0px;
	    	margin-top: -9px;
    		padding: 0;
	    }
	}

	@keyframes slowlyhide4 {
		0% {
	    }
	
	    100% {
	    	transform: scale(.5) translateY(-54px);
	    }
	}


	@keyframes slowlyhide {
		0% {
	        width:40px;
	        transform: scaleY(1);
	    }
	
	    100% {
	        width:10px;
	    }
	}
	
	@keyframes slowlyshow {
		0% {
	        width:10px;
	        transform: scaleX(0)
	    }
	
	    100% {
	        width:40px;
	        transform: scaleX(1);
	    }
	}
	@keyframes slowlyshow2 {
		0% {
			transform:  rotate(-90deg) scaleY(0.5);
	    }
	
	    100% {
	    	transform:  rotate(-90deg);
	    }
	}
	
}
*/


	.accordion-title {
	    height: 40px;
	}
	.accordion-select:not(:checked) ~ .accordion-title {
		height: 0px;
		overflow:hidden;
	}
	.accordion-title > div > * {
		flex-shrink:0;
		line-height: 16px;
	}

	.accordion-title > div > span {
		align-self:baseline;
	}

	#tab_restaurant.accordion-select ~ .accordion-title > div > span {
		align-self:center;
	}
	
	.accordion-select {
		height:0px;
	}

	.accordion-select.unhide,
	.accordion-select:checked {
		height:0px;
	}
	
	.accordion-select:not(:checked) ~ .accordion-title > div {
		height:20px;
	}
	
	@keyframes slowlyhide2 {
		0% {
	    }
	
	    100% {
			transform: scaleY(.5);
	    }
	}
	@keyframes slowlyhide3 {
		0% {
	    }
	
	    100% {
		    height: 22px;
    		width: 16px;
    		padding-left: 0px;
	    	margin-top: -9px;
    		padding: 0;
	    }
	}
	@keyframes slowlyhide {
		0% {
	        height:40px;
	    }
	
	    100% {
	        height:10px;
	    }
	}
	
	@keyframes slowlyshow {
		0% {
	        height:10px;
	    }
	
	    100% {
	        height:40px;
	    }
	}
	@keyframes slowlyshow2 {
		0% {
			transform: scaleY(.5);
	    }
	
	    100% {
	    }
	}
	
	
	@keyframes slowlyexpand {
		0% {
	        height: calc(100vh - 80px);
	    }
	
	    100% {
	        height: calc(100vh - 40px);
	    }
	}
	
	@keyframes slowlycollapse {
		0% {
			height: calc(100vh - 40px);
	    }
	
	    100% {
	        height: calc(100vh - 80px);
	    }
	}

	

    
/*
}
*/


.accordion #new-order-text {
    position: absolute;
    width: calc(100vw - 20px);
    white-space: normal;
    top: 100%;
    padding-top: 10px;
    font-size: min(30px, calc(100vmin/20))
}
