body{
	background-color:#fff;
	font-family:sans-serif;
	font-size:120%;
	margin:0 auto;
	max-width:1024px;
}
a{
	display:block;
	text-decoration:none;
	color:#333;
}
img {vertical-align: bottom;}
input{
	display:block;
	width:calc(100% - 1em);
	padding:0 .5rem;
	line-height:3rem;
	border:0;
	font-size:100%;
	margin:0;
}
#wrap {position:relative;}
.button{
	background-color:#685b83;
	width:100%;
	cursor:pointer;
	color:#fff;
	font-weight:bold;
}
.button:hover{background-color:#7b6f95}
.logo{
	margin:30px auto 1rem;
	width:330px;
}
.button.logout {margin-top:1rem}
.logo img{width:330px}
.center{
	text-align:center;
	margin-top:1rem;
}
.red{
	margin:1rem 5% 0;
	color:red;
}
.fauth{
	background-color:#fde9d9!important;
	margin-bottom:1rem;
}
.power{
	display:flex;
	justify-content:center;
	font-size:80%;
	margin:1rem;
}
.power span{padding-right:.5rem}

.line{
	display:flex;
	align-items:center;
	margin:0;
}

.over{
	background-color:#685b83;
	font-weight:bold;
	color:#fff;
	font-size:120%;
	height:3rem;
	position: relative;
}
.over div:first-child{
	width:50%;
	text-align:right;
	padding-right:.5rem;
}

.thead{
	background-color:#9482bb;
	color:#fff;
	font-size:80%;
}
.thead div{
	line-height: calc(2rem - 2px);
	border: solid 1px;
	border-left: none;
	border-color: #c1b5de;
	align-content: center;
	text-align: center;
}
.thead div:nth-child(1){width:35vw;}
.thead div:nth-child(2){width:15vw;}
.thead div:nth-child(3){width:25vw;}
.thead div:nth-child(4){width:25vw; border-right:none;}

.shop{
	height: 3rem;
	padding: 0 .5rem;
	font-style: italic;
	border-bottom:1px solid #ccc;
	position: relative;
}
.shop input {font-style: italic;}
.shop img {
	width: 32px;
	height: 32px;
	padding: 0 .5rem 0 0;
}
.shop-sum {
	position: absolute;
	right: 3rem;
	top: 0;
	line-height: 3rem;
	align-content: center;
	font-style: normal;
}

.order-new {
	padding: 0 1rem;
	position: absolute;
	right: 0;
	top: 0;
	line-height: 3rem;
	align-content: center;
	font-style: normal;
	cursor: pointer;
}

.order {font-size: 80%; position: relative;}
.order input, .order .curr, .order .sum {background-color: #fde9d9; border-bottom:1px solid #ccc;}
.order .name {width:calc(35% - 1rem);}
.order .qty {width:calc(15% - 1rem); text-align:center;}
.order .price, .order .sum {width:calc(20% - 1rem); text-align:right;}
.order .curr {
	width:5%;
	line-height:3rem;
	align-content: center;
	text-align: left;
}
.order .curr:last-child {font-weight:bold}
.order .sum {font-weight:bold; padding:0 .5rem;	line-height:3rem}
.order.false input, .order.false .curr, .order.false .sum {
	background-color:#eee;
	color:#aaa;
}

.op-menu {
	height:3rem;
	cursor:pointer;
	display: grid;
	align-content: center;
}
.order-menu.close {display:none}
.order-menu.open {
	display: grid;
	grid-template-columns: calc(100% / 3) calc(100% / 3) calc(100% / 3);
	align-items: center;
	border-bottom: 1px solid #ccc;
}
.order-menu .order-remove, .order-menu .order-add, .order-menu .order-delete, .order-menu .mark-remove {
	line-height: 2.5rem;
	display: grid;
	align-content: center;
	text-align: center;
	font-size: 90%;
	color: #fff;
}
.order-menu .order-remove, .order-menu .order-add {
	background-color: #5f9ea0;
	cursor:pointer;
}
.order-menu .order-remove: hover, .order-menu .order-add:hover {
	background-color: #81b9bb;
}
.order-menu .order-delete {
	background-color: #ec4235;
	cursor:pointer;
}
.order-menu .order-delete: hover {
	background-color: #f56c62;
}
.order-menu .mark-remove {
	background-color: #685b83;
	cursor: pointer;
}
.order-menu .mark-remove: hover {
	background-color: #7b6f95;
}
.order-move, .order-moves {
	display: grid;
	grid-column: span 3;
	align-content: center;
	text-align: center;
	font-size: 90%;
	cursor: pointer;
}
.order-move {
	line-height: 2.5rem;
	color: #fff;
	background-color: #ff7a10;
}
.order-move-to {
	align-content: center;
	text-align: left;
	line-height: 2rem;
	padding-left: .5rem;
	color: #424242;
	background-color: #fff;
	border-bottom: 1px solid #ccc;
}
.order-move-to:last-child {border-bottom: none;}
.order-moves.closed {display:none;}

.mark {
	width:32px;
	height:37px;
	position: absolute;
	left: 74%;
	top: calc(-.5rem);
	background-image: url(../img/mark.png);
}
.mark.set {}
.mark.unset {display:none;}

.hide {display: none;}
.show {}

.eye-show {
	width: 32px;
	height: 32px;
	position: absolute;
	left: .5rem;
	top: .5rem;
	cursor: pointer;
}
.eye-show.on {content: url(../img/eye-show.svg);}
.eye-show.off {content: url(../img/eye-hide.svg);}

.shops {
	width:32px;
	height:32px;
	position: absolute;
	right: .5rem;
	top: .5rem;
	cursor:pointer;
	content: url(../img/shops.svg);
}

.shops-over{
	background-color: #685b83;
	color: #fff;
	font-size: 120%;
	height: 3rem;
	justify-content: space-between;
}
.shop-new {
	padding:0 1rem;
	cursor: pointer;
}
.cross {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: .15em;
	width: 32px;
	height: 32px;
	font-size: 48px;
	transform: rotate(45deg);
	cursor: pointer;
}

.shop-menu {
	font-size: 80%;
	display: grid;
	grid-template-columns: auto calc(195px + 1rem);
	grid-template-rows: auto;
	border-bottom: 1px solid #ccc;
}
.shop-menu.close {display:none}
.shop-menu .items {padding: .5rem;}
.shop-menu .picker {padding: .5rem .5rem .5rem}
.form-item input {
	border: 1px solid #ccc;
	margin: .5rem 0;
}
.shop-delete {
	line-height: 2.5rem;
	display: grid;
	grid-column: span 2;
	align-content: center;
	text-align: center;
	font-size: 110%;
	color: #fff;
	background-color: #ec4235;
	cursor: pointer;
}

.images-wrap {
  display: block;
  background: #000;
  opacity: .7;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 991;
}
.images {
  background: #fff;
  opacity: 1;
  position: fixed;
	display: grid;
	grid-template-columns: auto auto auto auto auto;
  top: 20vh;
  left: calc(50vw - (160px + 3rem) / 2);
  z-index: 992;
	padding: .5rem 0 0 .5rem;
}
.images img {
	padding: 0 .5rem .5rem 0;
	cursor: pointer;
}
.images-wrap.close, .images.close {display:none;}
.shops-wrap .line.shop img,
.images.open img {
	width: 32px;
	height: 32px;
	cursor: pointer;
}

@media (max-width:360px){
	.logo{width:290px}
	.logo img{width:290px}
}