* {
	margin: 0;
	padding: 0;
	border: none;
	outline: none;
	font-family: Roboto, Arial;
	font-size: 16px;
	line-height: 20px;
	font-weight: normal;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html {
	background-color: #ddd;
}
input::placeholder,
textarea::placeholder {
    color: #aaa;
}
strong {
	font-weight: bold;
}
textarea {
	resize: none;
}
table {
	table-layout: fixed;
	border-spacing: 0;
	width: 100%;
}
body:not([class]),
#descargas {
	display: none;
}
#contenido {
	position: absolute;
	top: 46px;
	left: 0;
	right: 0;
	bottom: 0;
	overflow-y: auto;
}

div.listado h1 {
	margin: 30px 0 10px 0;
	font-size: 22px;
	line-height: 24px;
}
div.listado table {
	background-color: #fff;
	box-shadow: 0 1px 4px #888;
}
div.listado th {
	width: 100px;
	font-weight: bold;
	background-color: #eee;
	padding: 5px 10px;
	cursor: pointer;
	border-left: solid 1px #ddd;
	text-align: center;
	line-height: 20px;
}
div.listado th.asc {
	background: #eee url("images/abajo.svg") no-repeat;
	background-position: calc(100% - 4px) center;
	background-size: 24px 24px;
}
div.listado th.desc {
	background: #eee url("images/arriba.svg") no-repeat;
	background-position: calc(100% - 4px) center;
	background-size: 24px 24px;
}
div.listado td {
	padding: 5px 10px;
	border-left: solid 1px #ddd;
	border-top: solid 1px #ddd;
	text-align: left;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	cursor: pointer;
	line-height: 20px;
}
div.listado th:first-child,
div.listado td:first-child {
	border-left: none;
}
div.listado tr:hover td {
	background-color: #f5f5f5;
}
div.listado img {
	display: block;
	width: 18px;
	opacity: 0.6;
	margin: 0 auto;
}
div.listado tfoot th {
	border-top: solid 1px #ddd;
	text-align: right;
	cursor: auto;
}

#albaran {
	display: none;
}
body.albaran #albaran {
	display: block;
	margin: 30px 30px 300px 30px;
	box-shadow: 0 1px 4px #888;
	background-color: #ccc;
}
#albaran h1 {
	position: relative;
	background-color: #eee;
	color: #333;
	padding: 10px 30px;
	border-bottom: solid 1px #888;
}
#albaran h1 figure {
	position: absolute;
	top: 0;
	right: 22px;
}
#albaran h1 figure img {
	width: 24px;
	height: 24px;
	padding: 8px;
	opacity: 0.6;
	cursor: pointer;
	float: right;
}
#albaran input,
#albaran textarea {
	width: 100%;
	padding: 8px 10px;
	background-color: transparent;
	box-sizing: border-box;
}
#albaran textarea {
	height: 56px;
}
#albaran section {
	display: none;
	position: absolute;
	left: 0;
	top: 32px;
	background-color: #fff;
	color: #333;
	box-shadow: 0 0 4px #555;
	z-index: 1;
	cursor: pointer;
	text-align: left;
}
#albaran section.listar {
	display: block;
}
#albaran section article {
	padding: 6px 10px;
	white-space: nowrap;
}
#albaran section article.cursor {
	background-color: #ddd;
}
#albaran section p {
	padding: 5px 9px;
}
#albaran table {
	margin: 30px 0 0 30px;
	width: calc(100% - 60px);
	border-collapse: collapse;
	background-color: #fff;
	color: #000;
	box-shadow: 0 1px 4px #888;
}
#albaran table th {
	background-color: #eee;
	padding: 8px 0;
	font-weight: bold;
	border: solid 1px #ddd;
	border-top: none;
}
#albaran table td {
	border: solid 1px #ddd;
	padding: 8px 10px;
	text-align: right;
}
#albaran table th:first-child,
#albaran table td:first-child {
	border-left: none;
}
#albaran table th:last-child,
#albaran table td:last-child {
	border-right: none;
}
#albaran table:nth-of-type(1) td:nth-child(n+2) {
	width: 16.66%;
}
#albaran thead th {
	text-align: center;
}
#albaran thead th:nth-child(1) {
	width: 50%;
}
#albaran tbody td {
	position: relative;
	padding: 0;
}
#albaran table:nth-of-type(2) td:nth-child(n+2) input {
	text-align: right;
}
#albaran table:nth-of-type(2) tbody td:nth-child(3) {
	padding: 0 10px;
}
#albaran tbody input.buscando {
	background-color: #eee;
}
#albaran table:nth-of-type(1) tr:last-child td,
#albaran tfoot td {
	border-bottom: none;
}
#albaran input[type="submit"] {
	width: 100%;
	border-top: solid 1px #888;
	background-color: transparent;
	text-align: center;
	padding: 14px 0;
	margin-top: 30px;
	cursor: pointer;
}


#albaranes {
	display: none;
}
body.albaranes #albaranes {
	display: block;
	margin: 30px;
}
#albaranes th:nth-child(1) {
	width: 140px;
}
#albaranes th:nth-child(3) {
	width: 120px;
}
#albaranes th:nth-child(4) {
	width: auto;
}
#albaranes td:nth-child(-n+2) {
	text-align: center;
}
#albaranes td:nth-child(5) {
	text-align: right;
}

#alertas {
	display: none;
}
body.entregas #alertas {
	display: block;
	position: fixed;
	left: 30px;
	bottom: 30px;
	z-index: 3;
}
#alertas article {
	box-shadow: 0 1px 4px #888;
	float: left;
	box-sizing: border-box;
	padding: 15px;
	margin-right: 5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: bold;
}
#alertas article {
	text-align: center;
	width: 60px;
	padding: 15px 0;
	border-radius: 12px;
}
#alertas article.aviso1 {  /* Llamando */
	background-color: red;
	color: #fff;
}
#alertas article.aviso2 {  /* Cobro en efectivo */
	background-color: fuchsia;
	color: #fff;
}
#alertas article.aviso3 {  /* Cobro con tarjeta*/
	background-color: deepskyblue;
	color: #fff;
}
#alertas article.aviso4 { /* Cobrado */
	background-color: orange;
	color: #fff;
}
#alertas article.aviso5 {   /* Impagado */
	background-color: white;
	color: #000;
}


#caja {
	display: none;
	background: transparent;
	background-color: rgba(0, 0, 0, 0.6);
}
#caja * {
	font-size: 16px;
	line-height: 18px;
}
#caja.mostrar {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}
#caja form {
	width: 500px;
	background-color: #ccc;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
#caja form > h1 {
	background-color: #eee;
	color: #333;
	padding: 14px 30px;
	border-bottom: solid 1px #888;
	box-sizing: border-box;
}
#caja section {
	padding: 20px 30px;
}
#caja article {
	position: relative;
	padding: 10px 0;
	text-align: right;
}
#caja article h1 {
	position: absolute;
	top: 20px;
	left: 0;
	font-weight: normal;
}
#caja article input {
	width: 30%;
	box-sizing: border-box;
	padding: 10px;
	text-align: right;
	background-color: #fff;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}
#caja article:nth-child(2) input {
	width: 70%;
	text-align: left;
}
#caja ul {
	display: table;
	table-layout: fixed;
	width: 100%;
	border-top: solid 1px #888;
}
#caja li {
	display: table-cell;
	text-align: center;
	padding: 16px 0;
	cursor: pointer;
}
#caja li:nth-child(n+2) {
	border-left: solid 1px #888;
}
#caja li:hover {
	background-color: #eee;
}

#cajas {
	display: none;
}
body.cajas #cajas {
	display: block;
	margin: 30px;
}
#cajas td {
	cursor: auto;
}
#cajas th:nth-child(1) {
	width: 160px;
}
#cajas th:nth-child(2) {
	width: auto;
}
#cajas td:nth-child(1) {
	text-align: center;
}
#cajas td:nth-child(4) {
	text-align: right;
}


#cierre {
	display: none;
	background: transparent;
	background-color: rgba(0, 0, 0, 0.6);
}
#cierre * {
	font-size: 16px;
	line-height: 18px;
}
#cierre.mostrar {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}
#cierre form {
	width: 500px;
	background-color: #ccc;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
#cierre form > h1 {
	background-color: #eee;
	color: #333;
	padding: 14px 30px;
	border-bottom: solid 1px #888;
	box-sizing: border-box;
}
#cierre section {
	padding: 10px 30px;
}
#cierre article {
	position: relative;
	padding: 10px 0;
	text-align: right;
}
#cierre article h1 {
	position: absolute;
	top: 20px;
	left: 0;
	font-weight: normal;
}
#cierre article input {
	width: 30%;
	box-sizing: border-box;
	padding: 10px;
	text-align: right;
	background-color: #fff;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}
#cierre ul {
	display: table;
	table-layout: fixed;
	width: 100%;
	border-top: solid 1px #888;
}
#cierre li {
	display: table-cell;
	text-align: center;
	padding: 16px 0;
	cursor: pointer;
}
#cierre li:nth-child(n+2) {
	border-left: solid 1px #888;
}
#cierre li:hover {
	background-color: #eee;
}

#cierres {
	display: none;
}
body.cierres #cierres {
	display: block;
	margin: 30px;
}
#cierres th:nth-child(1) {
	width: 160px;
}
#cierres th:nth-child(2) {
	width: 80px;
}
#cierres th:nth-child(n+3) {
	width: auto;
}
#cierres td:nth-child(1) {
	text-align: center;
}
#cierres td:nth-child(n+3) {
	text-align: right;
}


#cobro {
	display: none;
	background: transparent;
	background-color: rgba(0, 0, 0, 0.6);
}
#cobro.mostrar {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}
#cobro form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	width: 800px;
	background-color: #ccc;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
#cobro form > h1 {
	position: relative;
	background-color: #eee;
	padding: 14px 40px;
	border-bottom: solid 1px #888;
	box-sizing: border-box;
	grid-column: 1 / 3;
}
#cobro form > h1 span {
	font-weight: bold;
	color: #000;
}
#cobro form > h1 span:last-child {
	position: absolute;
	top: 14px;
	right: 40px;
}
#cobro header {
	margin-left: 20px;
}
#cobro footer {
	margin-right: 20px;
}
#cobro header article {
	cursor: pointer;
}
#cobro header article:last-of-type {
	cursor: auto;
}
#cobro article {
	position: relative;
}
#cobro article h1 {
	padding: 20px;
	font-weight: normal;
}
#cobro article h2 {
	position: absolute;
	top: 20px;
	right: 20px;
	font-weight: normal;
}
#cobro article input {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40%;
	padding: 10px;
	text-align: right;
	background-color: #fff;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}
#cobro article.activo {
	background-color: #bbb;
}
#cobro footer article h1 {
	padding-left: 10px;
}
#cobro textarea {
	margin: 10px 10px 0 10px;
	padding: 10px;
	width: calc(100% - 30px);
	height: 160px;
	resize: none;
	box-sizing: border-box;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}
#cobro textarea::-webkit-scrollbar {
	width: 10px;
}
#cobro textarea::-webkit-scrollbar-track {
	background-color: #eee;
}
#cobro textarea::-webkit-scrollbar-thumb {
	background-color: #bbb;
}
#cobro textarea::-webkit-scrollbar-thumb:hover {
	background-color: #888;
}
#cobro footer h1,
#cobro footer h2 {
	font-weight: bold;
}
#cobro ul {
	display: table;
	table-layout: fixed;
	width: 100%;
	border-top: solid 1px #888;
	grid-column: 1 / 3;
}
#cobro li {
	display: table-cell;
	text-align: center;
	padding: 16px 0;
	cursor: pointer;
}
#cobro li:nth-child(n+2) {
	border-left: solid 1px #888;
}
#cobro li:hover {
	background-color: #eee;
}

#descanso {
	display: none;
}
#descanso.mostrar {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	z-index: 10;
}

#dialogo {
	display: none;
}
#dialogo.aceptar,
#dialogo.confirmar {
	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: 5;
}
#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 p {
	color: #222;
	margin: 0.5rem 0 1.5rem 0;
}
#dialogo article {
	background-color: #ff9e1b;
	color: #fff;
	text-align: center;
	border-radius: 0.4rem;
	padding: 1rem 0;
	font-weight: bold;
	cursor: pointer;
}
#dialogo:not(.confirmar) article:last-child {
	display: none;
}
#dialogo.confirmar article {
	display: inline-block;
	width: calc(50% - 0.75rem);
}
#dialogo.confirmar article:last-child {
	margin-left: 1.5rem;
}

#empleados {
	display: none;
}
body.empleados #empleados {
	display: flex;
	flex-wrap: wrap;	
	padding-top: 20px;
	user-select: none;
}
#empleados article {
	float: left;
	background-color: #bbb;
	color: #000;
	box-sizing: border-box;
	padding: 15px;
	width: calc(100% / 3 - 80px / 3);
	margin: 0 0 20px 20px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	border-radius: 12px;
}
#empleados article.activo {
	background-color: #ff8;
	color: #000;
}

body.entregas #menu,
#entregas {
	display: none;
}
body.entregas #entregas {
	display: flex;
	justify-content: space-between;
	padding: 15px;
}
#entregas p {
	margin: 15px;
	font-size: 22px;
	line-height: 24px;
}
#entregas section {
	flex: 1 1 0;
	margin: 15px;
}
#entregas section div {
	box-shadow: 0 1px 4px #888;
	border-radius: 12px;
	margin-bottom: 30px;
}
#entregas header {
	position: relative;
	background-color: #777;
	color: #fff;
	cursor: pointer;
	border-radius: 12px 12px 0 0;
	padding: 12px;
	box-sizing: border-box;
	user-select: none;
}
#entregas header.preventa {
	background-color: #f94;
}
#entregas header.prioritario {
	background-color: deepskyblue;
}
#entregas header h1 {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
#entregas header h2 {
	position: absolute;
	top: 12px;
	right: 12px;
}
#entregas article {
	position: relative;
	background-color: #fff;
	padding: 10px 12px;
	cursor: pointer;
	user-select: none;
}
#entregas article.nuevo {
	border-top: solid 1px #ccc;
}
#entregas article.negativo {
	color: #f00;
}
#entregas article.preparado,
#entregas article.enviado {
	color: #aaa;
}
#entregas article h1 {
	font-weight: bold;
}
#entregas article h1:nth-child(n+2) {
	padding-left: 15px;
}
#entregas article.preparado h1 {
	font-weight: normal;
}
#entregas article.enviado h1 {
	font-weight: normal;
	text-decoration: line-through;
}
#entregas pre {
	padding: 12px;
	background-color: #ffff88;
	font-style: italic;
	white-space: pre-line;
	border-top: solid 1px #ccc;
}
#entregas footer {
	position: relative;
	background-color: #f5f5f5;
	color: #000;
	cursor: pointer;
	border-radius: 0 0 12px 12px;
	padding: 12px;
	box-sizing: border-box;
	font-weight: bold;
	border-top: solid 1px #ccc;
}
#entregas footer span {
	position: absolute;
	top: 12px;
	right: 12px;
	font-weight: bold;
}

#historico {
	display: none;
}
body.historico #historico {
	display: block;
	margin: 30px;
	box-shadow: 0 1px 4px #888;
	background-color: #ccc;
}
#historico header {
	position: relative;
	background-color: #eee;
	color: #333;
	padding: 10px 30px;
	border-bottom: solid 1px #888;
}
#historico header figure {
	position: absolute;
	top: 0;
	right: 20px;
}
#historico header img {
	display: block;
	width: 24px;
	height: 24px;
	padding: 8px;
	cursor: pointer;
	opacity: 0.7;
}
#historico footer {
	padding: 30px;
}
#historico th {
	width: 100px;
}
#historico th:nth-child(2),
#historico th:nth-child(3) {
	width: auto;
}
#historico td {
	padding: 6px 10px;
	white-space: nowrap;
	overflow: hidden;
	cursor: auto;
}
#historico td:nth-child(1) {
	text-align: center;
}
#historico td:nth-child(n+4) {
	text-align: right;
}


#informe_empleados {
	display: none;
}
#informes.informe_empleados #informe_empleados {
	display: block;
}
#informe_empleados td {
	cursor: auto;
}
#informe_empleados th {
	width: 15%;
}
#informe_empleados th:nth-child(1) {
	width: auto;
}
#informe_empleados td:nth-child(n+2) {
	text-align: right;
}

#informe_familias {
	display: none;
}
#informes.informe_familias #informe_familias {
	display: block;
}
#informe_familias td {
	cursor: auto;
}
#informe_familias th {
	width: 15%;
}
#informe_familias th:nth-child(1) {
	width: auto;
}
#informe_familias td:nth-child(n+2) {
	text-align: right;
}


#informe_horas {
	display: none;
}
#informes.informe_horas #informe_horas {
	display: block;
}
#informe_horas td {
	cursor: auto;
}
#informe_horas th {
	width: 10%;
}
#informe_horas th:nth-child(1) {
	width: 100px;
}
#informe_horas th:nth-child(2) {
	width: auto;
}
#informe_horas td:nth-child(1) {
	text-align: center;
}
#informe_horas td:nth-child(n+3) {
	text-align: right;
}
#informe_horas td span {
	display: block;
	height: 18px;
	background: linear-gradient(90deg, #5cb810, #a1df6e);
	border: solid 1px #5cb810;
}

#informe_mesas {
	display: none;
}
#informes.informe_mesas #informe_mesas {
	display: block;
}
#informe_mesas td {
	cursor: auto;
}
#informe_mesas th {
	width: 15%;
}
#informe_mesas th:nth-child(1) {
	width: auto;
}
#informe_mesas td:nth-child(n+2) {
	text-align: right;
}


#informe_presencias {
	display: none;
}
#informes.informe_presencias #informe_presencias {
	display: block;
}
#informe_presencias td {
	cursor: auto;
}
#informe_presencias th {
	width: 180px;
}
#informe_presencias th:nth-child(1) {
	width: auto;
}
#informe_presencias td:nth-child(n+2) {
	text-align: center;
}

#informe_productos {
	display: none;
}
#informes.informe_productos #informe_productos {
	display: block;
}
#informe_productos td {
	cursor: auto;
}
#informe_productos th {
	width: 15%;
}
#informe_productos th:nth-child(2) {
	width: auto;
}
#informe_productos td:nth-child(n+3) {
	text-align: right;
}

#informe_servicios {
	display: none;
}
#informes.informe_servicios #informe_servicios {
	display: block;
}
#informe_servicios th,
#informe_servicios td {
	cursor: auto;
}
#informe_servicios th:nth-child(n+2) {
	width: auto;
}
#informe_servicios td:nth-child(1) {
	text-align: center;
}
#informe_servicios td:nth-child(n+2) {
	text-align: right;
}

#informes {
	display: none;
}
body.informes #informes {
	display: block;
	margin: 30px;
}
#informes form {
	position: relative;
	box-shadow: 0 1px 4px #888;
	background-color: #ccc;
}
#informes form h1 {
	position: absolute;
	top: 0;
	right: 0;
	width: 84px;
	height: 38px;
	background-color: #eee;
	border-bottom: solid 1px #aaa;
	cursor: pointer;
}
#informes form h1 img {
	padding: 4px 4px 4px 8px;
	width: 30px;
	opacity: 0.6;
}
#informes form h1 img:last-child {
	padding: 4px 8px 4px 4px;
}
#informes form header {
	position: relative;
	background-color: #eee;
	color: #333;
	display: table;
	table-layout: fixed;
	width: calc(100% - 84px);
}
#informes form header label {
	display: table-cell;
	border-right: solid 1px #aaa;
}
#informes form header input {
	display: none;
}
#informes form header span {
	display: block;
	text-align: center;
	line-height: 38px;
	border-bottom: solid 1px #aaa;
	cursor: pointer;
	user-select: none;
}
#informes form header input:checked + span {
	background-color: #ccc;
	border-bottom: solid 1px #ccc;
	font-weight: bold;
}
#informes form footer {
	height: 70px;
}
#informes input {
	float: left;
	width: 120px;
	font-size: 16px;
	line-height: 20px;
	margin: 20px 0 20px 2%;
	padding: 5px 10px;
	border-radius: 8px;
	box-sizing: border-box;
	color: white;
	background-color: #555;
	box-shadow: inset 0 0 8px #000;
}
#informes input[type="text"]:nth-child(n+3) {
	width: calc(90% - 440px);
}
#informes form input[type="submit"] {
	width: 200px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(0, 0, 0, 0.1));
	background-color: #6c1;
	border: solid 1px #4a0;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
	font-weight: bold;
	color: #222;
	text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
	text-align: center;
	cursor: pointer;
	line-height: 17px;
}
#informes form.enviando input[type="submit"] {
	background-color: #ddd;
	border: solid 1px #bbb;
	text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7);
	color: #555;
}


#ingredientes {
	display: none;
}
body.ingredientes #ingredientes {
	display: block;
	margin: 30px;
}
#ingredientes th {
	width: 100px;
}
#ingredientes th:nth-child(1) {
	width: 140px;
}
#ingredientes th:nth-child(2) {
	width: auto;
}
#ingredientes td:nth-child(n+3) {
	text-align: right;
}


body.oculto #menu {
	display: none;
}
body.mesas #menu td.mesas,
body.entregas #menu td.mesas,
body.tickets #menu td.tickets,
body.productos #menu td.productos,
body.ingredientes #menu td.ingredientes,
body.historico #menu td.ingredientes,
body.albaranes #menu td.albaranes,
body.albaran #menu td.albaranes,
body.cajas #menu td.cajas,
body.cierres #menu td.cierres,
body.informes #menu td.informes {
	background-color: #eee;
	font-weight: bold;
}
#menu {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	box-shadow: 0 0 5px #222;
	z-index: 1;
	cursor: pointer;
	user-select: none;
}
#menu td {
	background-color: #ccc;
	color: #333;
	text-align: center;
	padding: 13px 10px;
}
#menu td:nth-child(n+2) {
	border-left: solid 1px #aaa;
}
#menu td:nth-last-child(2) {
	line-height: 0;
	padding: 0;
	width: 50px;
}
#menu img {
	width: 26px;
	opacity: 0.6;
}
#menu td:last-child {
	padding: 0 15px;
	width: 250px;
	cursor: auto;
}
#menu input {
	width: 100%;
	font-size: 16px;
	line-height: 18px;
	padding: 4px 10px;
	border-radius: 8px;
	color: #fff;
	background-color: #555;
	box-shadow: inset 0 0 6px #000;
	box-sizing: border-box;
}
@media screen and (max-width: 1024px) {
	#menu td:nth-child(1) {
		width: 7.3%
	}
	#menu td:nth-child(2) {
		width: 7.73%
	}
	#menu td:nth-child(3) {
		width: 10.01%
	}
	#menu td:nth-child(4) {
		width: 11.59%
	}
	#menu td:nth-child(5) {
		width: 9.82%
	}
	#menu td:nth-child(6) {
		width: 6.47%
	}
	#menu td:nth-child(7) {
		width: 7.57%
	}
	#menu td:nth-child(8) {
		width: 9.04%
	}
	#menu td:last-child {
		width: 180px;
	}
}

#mesas {
	display: none;
}
body.mesas #mesas {
	padding: 0 15px;
	display: block;
	user-select: none;
}
#mesas p {
	margin: 30px 0 0 15px;
	font-size: 22px;
	line-height: 24px;
}
#mesas header {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 2px;
	padding-top: 20px;
}
#mesas header article {
	background-color: #bbb;
	color: #000;
	padding: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	border-radius: 12px;
}
#mesas h1 {
	padding: 10px 0;
	font-weight: bold;
}
#mesas section {
	display: grid;
	grid-template-columns: repeat(16, 1fr);
	gap: 2px;
}
#mesas footer article {
	background-color: #777;
	color: #fff;
	border-radius: 12px;
	padding: 14px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
}
#mesas article.activo {
	background-color: lightskyblue;
}
#mesas article.aviso0 { /* Ticket creado */
	background-color: #d87;
	color: #fff;
}
#mesas article.aviso1 { /* Ticket preimpreso */
	background-color: #8c4;
	color: #fff;
}
#mesas article.aviso2,  /* Llamando */
#mesas article.aviso3 {
	background-color: red;
	color: #fff;
}
#mesas article.aviso4,  /* Cobro en efectivo */
#mesas article.aviso5 {
	background-color: fuchsia;
	color: #fff;
}
#mesas article.aviso6,  /* Cobro con tarjeta*/
#mesas article.aviso7 {
	background-color: deepskyblue;
	color: #fff;
}
#mesas article.aviso8,  /* Pagada */
#mesas article.aviso9 { /* Cobrando */
	background-color: orange;
	color: #fff;
}
#mesas article.aviso10, /* Impagada */
#mesas article.aviso11 {
	background-color: white;
	color: #000;
}
#mesas footer article:active {
	background-color: #ff8;
	color: #000;
}


#niveles {
	display: none;
}
#niveles.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: 4;
}
#niveles form {
	position: relative;
	margin: 0 auto;
	width: 900px;
	background-color: #ccc;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
#niveles h1 {
	position: relative;
	background-color: #eee;
	color: #333;
	padding: 14px 30px;
	border-bottom: solid 1px #888;
}
#niveles table {
	margin: 30px 0 30px 30px;
	width: calc(100% - 60px);
	background-color: #fff;
	box-shadow: 0 1px 4px #888;
}
#niveles th {
	color: #000;
	padding: 8px 10px;
	font-weight: bold;
	background-color: #eee;
	border-left: solid 1px #ddd;
	text-align: center;
}
#niveles td {
	position: relative;
	border-left: solid 1px #ddd;
	border-top: solid 1px #ddd;
	text-align: right;
	padding: 8px 10px;
}
#niveles th:first-child,
#niveles td:first-child {
	border-left: none;
}
#niveles td:nth-child(8) {
	padding: 0;
}
#niveles tfoot th {
	border-top: solid 1px #ddd;
	text-align: right;
}
#niveles input {
	background-color: transparent;
	padding: 8px 10px;
	text-align: right;
	width: 100%;
	box-sizing: border-box;
}
#niveles table tr:hover td {
	background-color: #f5f5f5;
}
#niveles table tr.avisar_minimo td {
	background-color: #ff8;
}
#niveles table tr.avisar_maximo td {
	background-color: #fcc;
}
#niveles ul {
	display: table;
	table-layout: fixed;
	width: 100%;
	border-top: solid 1px #888;
}
#niveles li {
	display: table-cell;
	text-align: center;
	padding: 16px 0;
	cursor: pointer;
}
#niveles li:nth-child(n+2) {
	border-left: solid 1px #888;
}
#niveles li:hover {
	background-color: #eee;
}






#notificacion {
	display: none;
}
#notificacion.notificar {
	display: block;
	position: fixed;
	bottom: 5%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	background-color: #333;
	color: #fff;
	font-size: 18px;
	line-height: 20px;
	padding: 10px 25px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
	border-radius: 12px;
}

#precierre {
	display: none;
	background: transparent;
	background-color: rgba(0, 0, 0, 0.6);
}
#precierre * {
	font-size: 16px;
	line-height: 18px;
	font-family: 'Roboto Mono', monospace;
}
body.cierres.imprimir #precierre {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}
#precierre pre {
	width: 460px;
	background-color: #fff;
	padding: 40px 20px;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
	cursor: pointer;
}


#preticket {
	display: none;
	background: transparent;
	background-color: rgba(0, 0, 0, 0.6);
}
#preticket * {
	font-size: 16px;
	line-height: 18px;
	font-family: 'Roboto Mono', monospace;
}
body.tickets.imprimir #preticket {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}
#preticket pre {
	width: 460px;
	background-color: #fff;
	padding: 40px 20px;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
	cursor: pointer;
}
#preticket strong:first-child {
	font-size: 32px;
	line-height: 36px;
}
#preticket span {
	display: block;
	transform: scaleY(2);
}
#preticket p {
	text-align: center;
}

#producto {
	display: none;
}
#producto.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: 3;
}
#producto form {
	position: relative;
	width: 900px;
	background-color: #ccc;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
#producto h1 {
	position: relative;
	background-color: #eee;
	color: #333;
	padding: 10px 30px;
	border-bottom: solid 1px #888;
}
#producto h1 label {
	position: absolute;
	top: 0;
	right: 20px;
}
#producto h1 img {
	width: 24px;
	height: 24px;
	padding: 8px;
	cursor: pointer;
	opacity: 0.7;
}
#producto h1 figure img {
	display: none;	
	float: right;
}
#producto h1 input[type="checkbox"],
#producto h1 input:not(:checked) + img + img,
#producto h1 input:checked + img {
	display: none;
}
#producto footer {
	max-height: calc(100vh - 260px);
	padding-bottom: 30px;
}
#producto.scroll footer {
	overflow-y: scroll;	
}
#producto table {
	margin: 30px 0 0 30px;
	width: calc(100% - 60px);
	background-color: #fff;
	box-shadow: 0 1px 4px #888;
}
#producto th {
	color: #000;
	padding: 6px 10px;
	font-weight: bold;
	background-color: #eee;
	border-left: solid 1px #ddd;
	text-align: center;
}
#producto td {
	position: relative;
	border-left: solid 1px #ddd;
	border-top: solid 1px #ddd;
	text-align: left;
	padding: 8px 10px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;	
}
#producto th:first-child,
#producto td:first-child {
	border-left: none;
}
#producto tbody:first-child tr:first-child td {
	border-top: none;
}
#producto th {
	width: 70px;	
}
#producto table:last-child td:nth-child(n+2) {
	text-align: right;
}

#producto input {
	width: 100%;
	background-color: transparent;
	box-sizing: border-box;
}
#producto input[type="checkbox"] {
	display: none;
}
#producto tr:first-child th:first-child {
	width: auto;
}
#producto table:last-of-type td:nth-child(n+2) input {
	text-align: right;
}
#producto table img {
	display: block;
	width: 18px;
	opacity: 0.6;
	margin: 0 auto;
}
#producto td input + img {
	display: none;
}
#producto td input:checked + img {
	display: block;
}
#producto td:last-child {
	cursor: pointer;
	user-select: none;
}
#producto input[type="submit"] {
	width: 100%;
	border-top: solid 1px #888;
	background-color: transparent;
	text-align: center;
	padding: 14px 0;
	margin-top: 0;
	cursor: pointer;
}
#producto input[type="submit"]:hover {
	background-color: #eee;
}








#productos {
	display: none;
}
body.productos #productos {
	display: block;
	margin: 30px;
}
#productos th {
	width: 80px;
}
#productos th:nth-child(1) {
	width: 90px;
}
#productos th:nth-child(2) {
	width: 120px;
}
#productos th:nth-child(3) {
	width: auto;
}
#productos td:nth-child(n+4) {
	text-align: right;
}
#productos tr:not(.activo) img {
	display: none;
}

body:not(.tpv) #ticket {
	display: none;
}
#ticket {
	position: absolute;
	position: fixed;
	top: 10px;
	left: 10px;
	bottom: 10px;
	width: 340px;
	user-select: none;
}
#ticket header {
	width: 100%;
	height: 60px;
	background-color: #777;
	cursor: pointer;
	border-radius: 12px 12px 0 0;
}
#ticket header h1 {
	padding: 10px 12px;
	color: white;
	white-space: nowrap;
	text-overflow: ellipsis;
}
#ticket section {
	position: absolute;
	top: 60px;
	bottom: 166px;
	width: 100%;
	background-color: #fff;
	overflow-y: auto;
}
#ticket section::-webkit-scrollbar {
	width: 10px;
}
#ticket section::-webkit-scrollbar-track {
	background-color: #eee;
}
#ticket section::-webkit-scrollbar-thumb {
	background-color: #bbb;
}
#ticket section::-webkit-scrollbar-thumb:hover {
	background-color: #888;
}
#ticket section article {
	position: relative;
	background-color: #fff;
	padding: 6px 12px;
	cursor: pointer;
	border-bottom: solid 1px #ccc;
}
#ticket section article.actual {
	background-color: #ff8;	
}
#ticket section article h1 {
	font-weight: bold;
}
#ticket section article h1:first-child {
	width: 260px;
}
#ticket section article h3 {
	position: absolute;
	font-weight: bold;
	top: 4px;
	right: 12px;
}
#ticket footer {
	position: absolute;
	width: 100%;
	bottom: 0;
	height: 48px;
	box-sizing: border-box;
	background-color: #777;
	color: white;
}
#ticket footer:nth-of-type(1) {
	bottom: 118px;
}
#ticket footer h1 {
	padding: 14px 12px;
}
#ticket footer h2 {
	position: absolute;
	top: 14px;
	right: 12px;
}
#ticket footer:nth-of-type(2) {
	height: 70px;
	bottom: 48px;
	border-top: solid 1px #555;
	border-bottom: solid 1px #555;
}
#ticket footer input {
	width: calc(100% - 20px);
	height: 48px;
	border: none;
	background-color: #a1bc8d;
	box-shadow: inset 0 0 6px #000;
	padding: 0 15px;
	font: bold 28px Courier;
	box-sizing: border-box;
	margin: 10px;
}
#ticket footer:nth-of-type(n+3) {
	border-radius: 0 0 12px 12px;
	width: 50%;
	padding: 14px 12px;
	cursor: pointer;
}
#ticket footer:nth-of-type(3) {
	border-radius: 0 0 0 12px;
}
#ticket footer:nth-of-type(4) {
	border-radius: 0 0 12px 0;
	border-left: solid 1px #555;
	right: 0;
}

#tickets {
	display: none;
}
body.tickets #tickets {
	display: block;
	margin: 30px;
}
#tickets tr.falta td {
	background-color: #ff8;
}
#tickets tr.falta:hover td {
	background-color: #f5f5f5;
}
#tickets th:nth-child(1) {
	width: 160px;
}
#tickets th:nth-child(4) {
	width: auto;
}
#tickets td:nth-child(2) {
	text-align: left;
}
#tickets td:nth-child(6) {
	text-align: right;
}


body.tpv #menu,
body.tpv #contenido,
#tpv {
	display: none;
}
body.tpv #tpv {
	display: block;
	padding: 10px 10px 0 360px;
	user-select: none;
}
#tpv h1 {
	font-weight: bold;
	margin-bottom: 10px;
}
#tpv section.familias {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2px;
	margin-bottom: 20px;
}
#tpv section.familias article {
	color: #fff;
	padding: 14px;
	border-radius: 12px;
	cursor: pointer;
}
#tpv section:nth-of-type(1) article {
	background-color: #18c;
}
#tpv section:nth-of-type(2) article {
	background-color: #f55;
}
#tpv section:nth-of-type(3) article {
	background-color: #794;
}
#tpv section:nth-of-type(4) article {
	background-color: #f94;
}
#tpv section.indice {
	display: grid;
	grid-template-columns: 1fr 1fr 2fr;
	gap: 2px;
	margin-bottom: 20px;
}
#tpv section.indice article {
	background-color: #18c;
	color: #fff;
	padding: 14px;
	border-radius: 12px;
	cursor: pointer;
}
#tpv section.indice article:nth-child(3) {
	position: relative;
	background-color: #f94;
}
#tpv section.productos {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2px;
	margin-bottom: 20px;
}
#tpv section.productos div.productos {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
	align-content: start;
}
#tpv section.productos article {
	position: relative;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	background-color: #f94;
	color: #fff;
	padding: 14px 70px 14px 14px;
	border-radius: 12px;
	cursor: pointer;
}
#tpv section.modificadores {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2px;
	margin-bottom: 10px;
}
#tpv section.modificadores section.modificadores {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
	align-content: start;
}
#tpv section.modificadores article {
	background-color: #f55;
	color: #fff;
	padding: 14px;
	border-radius: 12px;
	cursor: pointer;
}
#tpv section.modificadores article.activo {
	background-color: #ff8;
	color: #000;
}
#tpv section article:active,
#tpv section.indice article:active {
	background-color: #ff8;
	color: #000;
}
#tpv section.proporcion + section.ingredientes {
	display: none;
}
#tpv section.ingredientes {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2px;
	margin-top: 20px;
}
#tpv section.ingredientes div.ingredientes {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
	align-content: start;
}
#tpv section.ingredientes article {
	position: relative;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	background-color: #794;
	color: #fff;
	padding: 14px 70px 14px 14px;
	border-radius: 12px;
	cursor: pointer;
}
#tpv section.ingredientes article.activado {
	background-color: #ff8;
	color: #000;
}
#tpv article span,
#tpv article div {
	position: absolute;
	top: 0;
	right: 0;
	padding: 14px;
}


#zonas {
	display: none;
}
body.entregas #zonas {
	display: block;
	position: fixed;
	right: 30px;
	bottom: 30px;
	width: 80px;
	padding: 15px 20px;
	background-color: #fff;
	box-shadow: 0 1px 4px #888;
	border-radius: 12px;
	cursor: pointer;
	font-weight: bold;
	text-align: center;
	z-index: 3;
	user-select: none;
}

