* {
	padding: 0;
	margin: 0;
	border: none;
	outline: none;
	font: normal 1rem/1.2rem Roboto, Helvetica, sans-serif;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html {
	background-color: #eee;
}
body {
	padding-top: 3.6rem;
}
input {
	user-select: auto;
}
input::placeholder {
    color: #aaa;
}
body:not([class]),
#descargas {
	display: none;
}


#bolsa {
	display: none;
}
body.bolsa #bolsa {
	position: relative;
	display: block;
	background-color: #fff;
	margin-bottom: 10rem;
	border-bottom-left-radius: 4rem;
	padding: 0 1.5rem 6rem 1.5rem;
}
#bolsa section {
	text-align: center;
	padding: 0 1.5rem;
}
#bolsa h1 {
	text-align: center;
	color: #7c4d3a;
	padding: 2rem 0 1.5rem 0;
	font: bold 1.3rem/1.5rem Poppins;
	text-transform: uppercase;
}
#bolsa img {
	width: 50%;
}
#bolsa h2 {
	margin: 1rem 0 3rem 0;
	font: bold 1.4rem/1.6rem Poppins;
	color: #7c4d3a;
}
#bolsa button {
	border-radius: 1.8rem;
	padding: 0.9rem 1.5rem;
	width: 100%;
	text-align: center;
	font: bold 0.9rem/1.2rem Poppins;
	background-color: #ff9e1b;
	color: #7c4d3a;
}
#bolsa button:active {
	background-color: #eee;
	color: #999;
}


#cambios {
	display: none;
}
body.cambios #cambios {
	display: block;
	background-color: #fff;
	margin-bottom: 10rem;
	border-bottom-left-radius: 4rem;
	padding: 1rem 1.5rem 6rem 1.5rem;
}
#cambios h1 {
	font-weight: bold;
	font-size: 1.2rem;
	line-height: 1.4rem;
	padding: 1.5rem 0 1rem 0;
	color: #7c4d3a;
}
#cambios p {
	margin-bottom: 1rem;
	color: #777;
}
#cambios ol {
	margin-bottom: 1rem;
	padding-left: 2.5rem;
	color: #777;
}


#dialogo {
	display: none;
}
#dialogo.elegir,
#dialogo.mostrar {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 2;
}
#dialogo section {
	position: relative;
	width: 85%;
	max-width: 25rem;
	margin: 0 auto;
	box-shadow: 0 0 2rem rgba(0, 0, 0, 0.5);
	background-color: #fff;
	border-radius: 0.4rem;
	padding: 1.5rem;
	box-sizing: border-box;
}
#dialogo h1 {
	font-weight: bold;
	color: #ff9e1b;
}
#dialogo p {
	color: #222;
	margin: 1.5rem 0;
}
#dialogo article {
	background-color: #ff9e1b;
	color: #fff;
	text-align: center;
	border-radius: 0.4rem;
	padding: 1rem 0;
	font-weight: bold;
}
#dialogo:not(.elegir) article:first-of-type {
	display: none;
}
#dialogo.elegir article {
	display: inline-block;
	width: calc(50% - 0.75rem);
}
#dialogo.elegir article:last-child {
	margin-left: 1.5rem;
}


#empleados {
	display: none;
}
body.mesas #empleados {
	display: block;
	position: relative;
	background-color: #eee;
	height: 2.8rem;
	transition: height 0.4s;
	overflow: hidden;
}
body.mesas #empleados.abrir {
	height: calc(var(--empleados) * 2.8rem + (var(--empleados) - 1) * 1px);
}
#empleados header {
	padding: 0.8rem 1.5rem;
}
#empleados header h1 {
	font-size: 0.9rem;
	color: #666;
}
#empleados img {
	display: none;
}
#empleados.disponibles img {
	display: block;
	position: absolute;
	right: 1.5rem;
	top: 1.15rem;
	height: 0.5rem;
	opacity: 0.4;
	transition: transform 0.4s;
}
#empleados.disponibles.abrir img {
	transform: rotate(180deg);
}
#empleados article {
	position: relative;
	padding: 0.8rem 1.5rem;
	border-top: solid 1px #ccc;
	color: #666;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	font-size: 0.9rem;
}


#inicio {
	display: none;
}
body.inicio #inicio {
	display: block;
	padding: 1rem 1.5rem 7rem 1.5rem;
	margin-bottom: 10rem;
	border-bottom-left-radius: 4rem;
	background-color: #fff;
}
#inicio h1 {
	padding: 1.2rem 0 0.6rem 0;
	color: #7c4d3a;
	font-weight: bold;
}
#inicio input[type="text"],
#inicio input[type="password"] {
	border-bottom: solid 1px #ccc;
	margin: 1rem 0;
	width: 100%;
	padding: 0.5rem;
	box-sizing: border-box;
}
#inicio input[type="text"]:focus,
#inicio input[type="password"]:focus {
	background-color: #eee;
}

#inicio input[type="submit"] {
	border-radius: 1.8rem;
	margin: 1rem 0;
	padding: 0.9rem 1.5rem;
	text-align: center;
	background-color: #ff9e1b;
	color: #7c4d3a;
	font: bold 0.9rem/1.2rem Poppins;
	width: 100%;
}
#inicio input[type="submit"]:active {
	background-color: #eee;
	color: #999;
}


body.escaner #menu {
	display: none;
}
#menu {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	box-shadow: 0 1px 1px #ccc;
	background-color: #fff;
	z-index: 1;
}
#menu table {
	width: 100%;
	height: 3.6rem;
}
#menu td {
	position: relative;
	width: 3.6rem;
}
#menu td:nth-child(2) {
	width: auto;
}
#menu img {
	display: block;
	margin: 0 auto;
	height: 1.6rem;
}
#menu td:nth-child(2) img {
	max-width: 90%;
}
#menu span {
	display: block;
	position: absolute;
	border-radius: 50%;
	border: solid 0.05rem #7c4d3a;
	background-color: #7c4d3a;
	font-size: 0.7rem;
	line-height: 1.1rem;
	text-align: center;
	color: #fff;
	top: 0.4rem;
	right: 0.4rem;
	width: 1.1rem;
	height: 1.1rem;	
}


#mesas {
	display: none;
}
body.mesas #mesas {
	display: block;
	position: relative;
	padding: 1rem 1.5rem 6rem 1.5rem;
	margin-bottom: 10rem;
	border-bottom-left-radius: 4rem;
	box-shadow: 0 -1px 1px #ccc;
	background-color: #fff;
}
#mesas h1 {
	font-weight: bold;
	color: #7c4d3a;
}
#mesas section {
	display: grid;
	padding: 0.5rem 0.5rem 1rem 0.5rem;
	grid-template-columns: repeat(auto-fill, 3rem);
	justify-content: center;
	gap: 0.4rem;
}
#mesas article {
	background-color: #eee;
	color: #000;
	margin: 0 2px 2px 0;
	text-align: center;
	border-radius: 50%;
	width: 3rem;
	height: 3rem;
	line-height: 3rem;
}
#mesas article.aviso0 { /* Ticket creado */
	background-color: #d87;
	color: #fff;
}
#mesas article.aviso1 { /* Ticket preimpreso */
	background-color: #8c4;
	color: #fff;
}
#mesas article.aviso2,  /* Llamada para pedir más */
#mesas article.aviso3 {
	background-color: red;
	color: #fff;
}
#mesas article.aviso4,  /* Llamada para cobro en efectivo */
#mesas article.aviso5 {
	background-color: fuchsia;
	color: #fff;
}
#mesas article.aviso6,  /* Llamada para cobro con tarjeta*/
#mesas article.aviso7 {
	background-color: deepskyblue;
	color: #fff;
}
#mesas article.aviso8,  /* Ticket Pagado */
#mesas article.aviso9 { /* Ticket en proceso de cobro por máquina */
	background-color: orange;
	color: #fff;
}
#mesas article.aviso10,  /* Ticket en proceso de cobro por web */
#mesas article.aviso11 { /* Ticket en procedo de cobro por web */
	background-color: #fff;
	color: #000;
}
#mesas article:active {
	background-color: #ff8;
	color: #000;
}


#notificacion {
	display: none;
}
#notificacion.notificar {
	display: block;
	position: fixed;
	bottom: 5%;
	left: 50%;
	white-space: nowrap;
	transform: translateX(-50%);
	z-index: 2;
	background-color: #7c4d3a;
	color: #ff9e1b;
	padding: 1rem 1.5rem;
	border-radius: 1.8rem;
	text-transform: uppercase;
	font: bold 0.9rem/1.2rem Poppins;
}


#opciones {
	visibility: hidden;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0);
	transition: visibility 0.6s, background-color 0.6s;
	z-index: 2;
}
#opciones.mostrar {
	visibility: visible;
	background-color: rgba(0, 0, 0, 0.4);
}
#opciones nav {
	position: fixed;
	top: 0;
	right: 100%;
	width: calc(100% - 3.6rem);
	height: 100%;
	background-color: #FFF;
	color: #7c4d3a;
	font-weight: bold;
	box-sizing: border-box;
	border-top-right-radius: 4rem;
	transition: right 0.6s;
	padding: 1rem;	
}
#opciones.mostrar nav {
	right: 3.6rem;
}
#opciones p {
	font-size: 1.2rem;
	line-height: 1.4rem;
	font-weight: bold;
}
#opciones p:last-child {
	position: absolute;
	color: #888;
	font-size: 1rem;
	line-height: 1.2rem;
	font-weight: normal;
	font-style: italic;
}
@media (orientation: portrait) {
	#opciones img {
		display: block;
		width: 3rem;
		padding: 2rem 1rem 2rem 1.5rem;
	}
	#opciones p {
		padding: 1rem 1.5rem;
	}
	#opciones p:last-child {
		left: 1rem;
		bottom: 1.5rem;
	}
}
@media (orientation: landscape) {
	#opciones img {
		display: block;
		width: 2.5rem;
		padding: 1.5rem 1.5rem 1rem 1.5rem;
	}
	#opciones p {
		padding: 0.5rem 1.5rem;
	}
	#opciones p:last-child {
		left: 1rem;
		bottom: 1.5rem;
	}
}


#pedido {
	display: none;
}
body.pedido #pedido {
	position: relative;
	display: block;
	background-color: #fff;
	margin-bottom: 10rem;
	border-bottom-left-radius: 4rem;
	padding: 0 1.5rem 6rem 1.5rem;
}
#pedido > h1 {
	text-align: center;
	color: #7c4d3a;
	padding: 2rem 0 1.5rem 0;
	font: bold 1.3rem/1.5rem Poppins;
	text-transform: uppercase;
}
#pedido article {
	position: relative;
	padding: 0.6rem 3.5rem 0.6rem 1.8rem;
	border-bottom: solid 1px #ccc;
}
#pedido article * {
	font-size: 0.9rem;
}
#pedido article h1 {
	position: absolute;
	top: 0.5rem;
	left: 0;
	background-color: #eee;
	width: 1.4rem;
	height: 1.4rem;
	line-height: 1.4rem;
	text-align: center;
}
#pedido article h3 {
	position: absolute;
	top: 0.6rem;
	right: 0;
}
#pedido article.activo {
	background-color: #eee;
}
#pedido footer {
	position: relative;
	padding: 1rem 0;
}
#pedido footer * {
	font-weight: bold;
}
#pedido footer h2 {
	position: absolute;
	top: 1rem;
	right: 0;
}
#pedido p {
	border-bottom: solid 1px #ccc;
	padding: 0.5rem 0.6rem;
	margin: 1rem 0 2rem 0;
	color: #666;
}
#pedido p:focus {
	background-color: #eee;
}
#pedido p[placeholder]:empty::before {
    content: attr(placeholder);
    color: #aaa; 
}
#pedido p[placeholder]:empty:focus::before {
    content: "";
}
#pedido button {
	border-radius: 1.8rem;
	padding: 0.9rem 1.5rem;
	width: 100%;
	text-align: center;
	font: bold 0.9rem/1.2rem Poppins;
	background-color: #ff9e1b;
	color: #7c4d3a;
}
#pedido button:active {
	background-color: #eee;
	color: #999;
}


#productos {
	display: none;
}
body.productos #productos {
	position: relative;
	display: block;
	background-color: #fff;
	margin-bottom: 10rem;
	border-bottom-left-radius: 4rem;
	padding: 0 1.5rem 6rem 1.5rem;
}
#productos footer {
	position: relative;
}
#productos h1 {
	color: #7c4d3a;
	padding: 2rem 0 1rem 0;
	font: bold 1.3rem/1.5rem Poppins;
	text-align: center;
	text-transform: uppercase;
}
#productos h2 {
	padding: 1.2rem 0 0.6rem 0;
	color: #7c4d3a;
	font-weight: bold;
}
#productos h2:first-child {
	padding: 1.5rem 3rem 0.6rem 0;
}
#productos h3 {
	position: absolute;
	top: 1.5rem;
	right: 0;
	color: #7c4d3a;
	font-weight: bold;
}
#productos p {
	color: #aaa;
}
#productos section article {
	position: relative;
	color: #7c4d3a;
	padding: 0.5rem;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	border-bottom: solid 1px #ccc;
}
#productos section.productos article.activado {
	background-color: #eee;
	padding-right: 2.5rem;
}
#productos section.productos article.activado span {
	position: absolute;
	display: block;
	margin: 0.3rem 0.4rem;
	border-radius: 50%;
	top: 0;
	right: 0;
	width: 1.6rem;
	height: 1.6rem;
	line-height: 1.6rem;
	box-sizing: border-box;
	background-color: #ff9e1b;
	border: solid 1px #ff9e1b;
	text-align: center;
	color: #fff;
}
#productos section article.activo {
	background-color: #eee;
}
#productos section.modificadores article:after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: solid 1px #ccc;
	top: 0.3rem;
	right: 0.4rem;
	width: 1.6rem;
	height: 1.6rem;
	box-sizing: border-box;
}
#productos section.modificadores article.activo:after {
	background-color: #ff9e1b;
	border: solid 1px #ff9e1b;
}
#productos section.proporcion + div {
	display: none;
}
#productos section.ingredientes article {
	padding: 0.5rem;	
}
#productos section.ingredientes article:not(.activado) span,
#productos section.ingredientes article div {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
}
#productos section.ingredientes article.activado {
	background-color: #eee;
	padding-right: 2.5rem;
}
#productos section.ingredientes article.activado span {
	position: absolute;
	display: block;
	margin: 0.3rem 0.4rem;
	border-radius: 50%;
	top: 0;
	right: 0;
	width: 1.6rem;
	height: 1.6rem;
	line-height: 1.6rem;
	box-sizing: border-box;
	background-color: #ff9e1b;
	border: solid 1px #ff9e1b;
	text-align: center;
	color: #fff;
}
#productos section.unidades div {
	margin: 0 auto;
	padding-top: 0.5rem;
	position: relative;
	line-height: 2.8rem;
	width: 10rem;
}
#productos section.unidades div img {
	position: absolute;
	top: 0.5rem;
	width: 2.8rem;
}
#productos section.unidades div img:first-child {
	left: 0;
}
#productos section.unidades div span {
	display: block;
	text-align: center;
	font-size: 1.8rem;
	line-height: 2.8rem;
	color: #7c4d3a;
}	
#productos section.unidades div img:last-child {
	right: 0;
}


