* {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;

	-webkit-touch-callout: none;
	/* -webkit-user-select: none; En iOS no hay que poner esto porque los input text dejan de funcionar */
	user-select: none;

	font-family: Segoe UI, Tahoma, Roboto, Sans-Serif;
}

::-webkit-scrollbar {
	height: 8px;
	width: 8px;
}

::-webkit-scrollbar-track {
	border-radius: 10px;
}

::-webkit-scrollbar-thumb {
	border-radius: 10px;
	background-color: #FF922F;
	width: 30px;
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.text-truncate {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
/* Layout */

body, #content {
	position: fixed;
	width: 100%;
	height: 100%;
}

.app {
	position: fixed;
	width: 100%;
	height: 100%;
}

.app > .main {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 64px;

	background-color: #ffffff;
}

.app > .footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 64px;

	background-color: #fafafa;

	border-top: 1px solid #ddd;
	box-shadow: 0 -6px 6px -6px rgba(0,0,0,.8);

	padding-left: 4px;
	padding-right: 4px;
}

.app > .status {
	position: fixed;
	z-index: 1;
	right: 0;
	top: 0;
	width: 36px;
	height: 36px;
	padding: 2px;

}

.app > .status img{
	width: 100%;
	height: 100%;
	padding: 2px;
}

.pager {
	display: inline-block;
	margin-left: 2px;
}

.pull-right {
	float: right;
}

/*** Grid ***/

.row {
	width: 100%;
}

[class*="col"] {
	display: inline-block;
	vertical-align: top;
}

.col10 { width: 10% }
.col20 { width: 20% }
.col30 { width: 30% }
.col40 { width: 40% }
.col50 { width: 50% }
.col60 { width: 60% }
.col70 { width: 70% }
.col80 { width: 80% }

.horizontal-separator {
	border-bottom: 1px solid #cccccc;
	padding-bottom: 2px;
}

/* Columnas */

.horizontal-columns {
	/* Este valor está medido para que quepan 4 columnas en
	   una pantalla de 1024px y 5 en una de 1280px */
	-webkit-column-width : 245px;
	-webkit-column-gap : 10px;

	-moz-column-width: 245px;
	-moz-column-gap: 10px;

	-webkit-overflow-scrolling: touch;
	-webkit-column-fill: auto;

	/* En Chrome 50 ya no funcionan los prefijos */
	column-width: 245px;
	column-gap: 10px;
	column-fill: auto;

	overflow-x: scroll;

	padding-left: 10px;

	height: 100%;
	width: 100%;
}
.app > .footer * {
	vertical-align: top;
}

.app > .footer select {
	font-size: 20px;
	height: 60px;
	width: auto;
	max-width: 220px;
	border-radius: 5px;
	border-color: #ccc #aaa #aaa #ccc;
	margin-top: 2px;
	margin-right: 2px;
	padding-left: 10px;
	padding-right: 20px;
	background: url("../images/Down.png");
	background-color: white;
	background-repeat: no-repeat;
	background-position: 100% 50%;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	color: #4C566A;
}

.app > .footer button {
	display: inline-block;
	width: auto;
	min-width: 60px;
	margin-right: 2px;
	margin-top: 2px;
	height: 60px;
	border: 1px solid;
	border-color: #ccc #aaa #aaa #ccc;
	border-radius: 5px;
	background: white;
	color: #333;
	font-size: 15px;
	text-shadow: 1px 1px #ddd;
	text-align: center;
}

.app > .footer button:active {
	background: #eee;
}

.app > .footer button:active img {
	padding: 2px 2px 2px 2px;
}

.app > .footer .separator {
	width: 1px;
	height: 100%;
	display: inline-block;
	margin: 0px 10px 0px 10px;
}
.control-group label {
	width: 110px;
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.control-group select {
	width: 220px;
	margin-bottom: 10px;
}

input[type="checkbox"] {
	margin-right: 10px;
    width: 24px;
    height: 24px;
    vertical-align: text-bottom;
}

input[type="radio"] {
	margin-right: 10px;
    width: 24px;
    height: 24px;
    vertical-align: text-bottom;
}

input {
	height: 35px;
	vertical-align: bottom;
	padding: 0.2em; 
}

.dialog {
	position: fixed;
	z-index: 101;

	left: 50%;
	width: 600px;
	margin-left: -300px;
	top: 5%;
	max-height: 90%;
	min-height: 180px;

	background: white;
	border-radius: 5px;
}

.dialog.large {
	width: 80%;
	margin-left: -40%;
}

.dialog.small {
	width: 50%;
	margin-left: -25%;
}

.dialog header {
	height: 50px;
	background-color: #fafafa;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	padding: 10px;
	box-shadow: 0 2px 2px -2px rgba(0,0,0,.8);
}

.dialog header h1 {
	margin: 0;
	font-size: 22px;
	line-height: 30px;
	vertical-align: middle;
}

.dialog section {
	padding: 10px;
	font-size: 20px;
	max-height: 320px;
	overflow-y: scroll;
}

@media (min-height: 600px) {
	.dialog section {
		max-height: 460px;
	}
}

@media (min-height: 800px) {
	.dialog section {
		max-height: 580px;
	}
}

.dialog footer {
	height: 50px;
	text-align: right;

	background-color: #fafafa;
	padding: 5px 10px 5px 10px;
	box-shadow: 0 -2px 2px -2px rgba(0,0,0,.8);
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}

.dialog footer button {
	display: inline-block;
	width: auto;
	min-width: 100px;
	margin-right: 2px;
	margin-left: 20px;
	min-height: 40px;
	border: 1px solid;
	border-color: #ccc #aaa #aaa #ccc;
	border-radius: 5px;
	background: white;
	color: #333;
	font-size: 20px;
	text-shadow: 1px 1px #ddd;
	text-align: center;
}

.dialog footer button img {
	vertical-align: middle;
	margin-right: 10px;
}

.dialog footer button:active {
	background: #eee;
}

.backdrop {
	position: fixed;
	z-index: 100;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	background: rgba(0, 0, 0, 0.7);
}
.m-b-sm {
	margin-bottom: 12px;
}

.m-b-md {
	margin-bottom: 16px;
}

.m-b-lg {
	margin-bottom: 24px;
}

.m-b-xl {
	margin-bottom: 32px;
}

.m-b-xxl {
	margin-bottom: 40px;
}

.m-r-sm {
	margin-right: 12px;
}

.m-t-md {
	margin-top: 16px;
}

.m-t-xl {
	margin-top: 32px;
}

.m-h-sm {
	margin: auto 12px;
}

.m-h-md {
	margin: auto 16px;
}

.m-h-lg {
	margin: auto 20px;
}

.m-v-sm {
	margin: 12px auto;
}
.m-v-md {
	margin: 16px auto;
}

.m-v-lg {
	margin: 20px auto;
}
table.audit-table {
	width: 100%;
	font-size: 16px;
}

table.audit-table td {
	padding: 10px;
	border: 1px solid #ccc;
}

table.audit-table tr.kds-event {
	color: #666;
}

table.audit-table tr.prepare-event {
	background: rgba(0, 255, 0, 0.3);
}

table.audit-table tr.cancel-line-event {
	background: rgba(255, 0, 0, 0.3);
}

table.audit-table tr.request-courses-event {
	background: rgba(255, 255, 0, 0.3);
}

table.audit-table th {
	padding: 10px;
	border: 1px solid #ccc;
	background: #556DA2;
	color: white;
}

.ticket-summary {
	width: 100%;
	font-size: 16px;
}

.ticket-summary header {
    height: 40px;
    font-weight: bold;
    margin-right: 10px;
    margin-top: 10px;
}

.ticket-summary header:first-child {
    margin-top: 0px;
}
.cfg-options {
	width: 500px;
	background: url("../images/LogoAgora.png") no-repeat center top;
	padding-top: 165px;
	padding-left: 100px;
	padding-right: 50px;

	display: block;
	margin:4% auto auto auto;
}
.command-bar button {
	display: inline-block;
	width: auto;
	height: 44px;
	border: 1px solid;
	border-color: #ccc #aaa #aaa #ccc;
	border-radius: 5px;
	background: white;
	color: #333;
	font-size: 15px;
	text-shadow: 1px 1px #ddd;
	text-align: center;
	margin-right: 4px;
}

.command-bar button:active {
	background: #eee;
	border: 1px solid black,
}


/* Layout interno del preparation-item */

.preparation-item {
	-webkit-column-break-inside: avoid;
	cursor: pointer;
	line-height: 44px;
	padding-left: 10px;
	padding-right: 10px;
	overflow: hidden;
	/* Necesario para que funcione bien en Safari iOS. Sin esto, a veces no repinta bien
	   los items y se queda el hueco, pero no se ve el item (aunque existe por debajo) */
	transform: translate3d(0, 0, 0);
}

.preparation-item.top-separator {
	border-top: 2px dashed #666;
}

.preparation-info-dialog .preparation-item {
	cursor: default;
}

.preparation-item [class*="col"] {
	white-space: nowrap;
	vertical-align: top;
}

.preparation-item .command-bar {
	height: 44px;
	margin-right: -5px;
}

/* Configuración de añadidos, notas, etc. */

.preparation-item ul {
	margin: 0;
	list-style: none;
	line-height: 22px;
}

.preparation-item li:first-child {
	margin-top: -8px;
}

.preparation-item li.notes {
	margin-left: -8px;
	font-style: italic;
}

.preparation-item li+li.notes {
	margin-top: 8px;
}

.preparation-item a {
	text-decoration: none;
	color: black;

}

.preparation-item .total-pending-quantity {
	margin-right: 4px;
	border: 1px solid #999;
	/* aseguro que queda un círculo */
	border-radius: 50px;
	padding: 0px 8px 3px 8px;
	background-color: white;
}

/* Configuración de estado de los items */
.preparation-item.done,
.preparation-item.done * {
	color: #666;
	text-decoration: line-through;
	font-style: italic;
}

.preparation-item.in-progress,
.preparation-item.in-progress * {
	color: #0a0;
	font-style: italic;
}

.preparation-item.cancelled,
.preparation-item.cancelled * {
	color: #a00;
	text-decoration: line-through;
	font-style: italic;
}

.preparation-item .not-prepared-here {
	color: #999;
}

.preparation-item .request-status-icon {
	display: 'inline-block';
	margin-left: -5px;
	margin-right: 5px;
	color: #FF922F;
}
.recipe-summary {
	width: 100%;
	font-size: 16px;
}

.recipe-summary header {
    height: 40px;
    font-weight: bold;
    margin-right: 10px;
    margin-top: 10px;
}

.recipe-summary header:first-child {
    margin-top: 0px;
}
/* Layout interno del recipe-item */

.recipe-item {
	-webkit-column-break-inside: avoid;
	cursor: pointer;
	line-height: 44px;
	padding-left: 10px;
	padding-right: 10px;
}

.recipe-info-dialog .recipe-item {
	cursor: default;
}

.recipe-item [class*="col"] {
	white-space: nowrap;
	vertical-align: top;
}

.recipe-item a {
	text-decoration: none;
	color: black;

}
.recipe-item a::after {
	content: url('../../images/Recipe16x16.png');
	padding-left: 5px;
}

.preparation-group>header {
	background: #4C566A;
	color: #FFF;
	font-weight: bold;
	text-align: center;
	padding-top: 10px;
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom-right-radius: 3px;
	border-bottom-left-radius: 3px;
	font-size: larger;
	box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, 0.5);
	border: 1px solid #5C5C5C;
	border-top: none;
	-webkit-column-break-before: always;
	overflow-x: hidden;
}

.preparation {
	margin-bottom: 20px;
	background-color: #fafafa;
	border: 1px solid #999;
	border-radius: 3px;
}

.preparation.recent {
	border: 3px solid #FF922F;
}

.preparation header {
	-webkit-column-break-inside: avoid;
	padding: 5px 5px 0 5px;
	background-color: #FFFC82;
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
	/* Necesario para poder posicionar con absolute cosas */
	position: relative;
}

.preparation header .command-bar {
	position: absolute;
	right: 5px;
	bottom: 2px;
}

.preparation.ready header {
	background-color: #8BE2A3;
}

.preparation.done header {
	background-color: #FF98A2;
}

.preparation .order {
	line-height: 44px;
	vertical-align: top;
	white-space: nowrap;
}

.preparation .order.requested {
	color: #FF922F;
	font-style: normal;
	font-weight: bold;
}

.preparation-item .requested {
	color: #FF922F;
	font-style: normal;
}

.preparation-completed .order i {
	color: black;
}

.preparation section>div:last-child {
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
}

.preparation section>div:nth-of-type(2n) {
	background-color: rgb(235, 235, 235);
}

.preparation section>div:nth-of-type(2n+1) {
	background-color: #ffffff;
}

#restaurant .preparation-item .recent::before {
	content: '\25B6  ';
}
.ticket-preparation {
	margin-top: 20px;
	border-radius: 3px;
	border: 1px solid #999;
	background-color: #fafafa;
}

.ticket-preparation:first-child {
	margin-top: 0px;
}

.ticket-preparation>header {
	background: #4C566A;
	padding: 5px 5px 0 5px;
	color: #FFF;
	-webkit-column-break-inside: avoid;
	position: relative;
	overflow-x: hidden;
}

.ticket-preparation header .command-bar {
	position: absolute;
	right: 5px;
	bottom: 2px;
}

.ticket-preparation .order {
	line-height: 44px;
	vertical-align: top;
	white-space: nowrap;
}

.ticket-preparation-item-group {
	background-color: #fafafa;
	/* Para un bug de chrome 101 */
	position: relative;
}

.ticket-preparation.recent {
	border: 3px solid #FF922F;
}

.ticket-preparation-item-group header {
	-webkit-column-break-inside: avoid;
	padding: 5px;
	background-color: #FFFC82;
	border-top: 1px solid #999;
	border-bottom: 1px solid #999;
	overflow-x: hidden;
	font-weight: 600;
	/* Necesario por bug de chrome 63 con el position: relative en las columnas segunda y siguientes */
	transform: translate3d(0px, 0px, 0px);
	/* Necesario para poder posicionar con absolute cosas */
	position: relative;
}

.ticket-preparation-item-group header .command-bar {
	position: absolute;
	right: 5px;
	bottom: 2px;
}

.ticket-preparation-item-group.ready header {
	background-color: #8BE2A3;
}

.ticket-preparation-item-group.done header {
	background-color: #FF98A2;
}

/* Cuando el grupo está completado, sólo muestro los items cuando está seleccionado */
.ticket-preparation-item-group.done section {
	display: none;
}

.ticket-preparation-item-group.done.selected section {
	display: block;
}

.ticket-preparation-item-group .order {
	line-height: 38px;
	vertical-align: top;
	white-space: nowrap;
}

.ticket-preparation-item-group .order.requested {
	color: #FF922F;
	font-style: normal;
	font-weight: bold;
}

.ticket-preparation-item-group-completed .order i {
	color: black;
}

.ticket-preparation-item-group section>div:nth-of-type(2n) {
	background-color: rgb(235, 235, 235);
}

.ticket-preparation-item-group section>div:nth-of-type(2n+1) {
	background-color: #ffffff;
}
#fast-food .preparation-item {
	margin-bottom: 5px;
	background-color: #fafafa;
	border: 1px solid #999;
	border-radius: 3px;
}
.orders {
	height: 100%;
}

.orders ::-webkit-scrollbar-thumb {
	background-color: rgba(0, 0, 0, 0);
}

.orders:after {
	pointer-events: none;
	content: "";
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 200px;
	background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
}

.orders-column {
	float: left;
	text-align: center;
	height: 100%;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.orders-column ul {
	padding: 0;
}

.orders-column h6 {
	margin: 10px 30px;
	font-size: 36px;
	font-weight: normal;
	text-align: left;
}

.orders-in-progress-column {
	width: 25%;
	font-size: 70px;
	background-color: #E4EBED;
}

.use-long-identifiers .orders-in-progress-column {
	width: 20%;
}

.orders-in-progress-column li {
	display: block;
	float: left;
	width: 50%;
}

.use-long-identifiers .orders-in-progress-column li {
	width: 100%;
	font-size: 65%;
}

.orders-ready-column {
	width: 30%;
	font-size: 70px;
	font-weight: bold;
}

.use-long-identifiers .orders-ready-column {
	width: 20%;
}

.use-long-identifiers .orders-ready-column li {
	font-size: 65%;
}

.orders-ready-column .new-ready {
	text-decoration: underline;
}

.orders-last-column {
	width: 45%;
	font-size: 300px;
	font-weight: bold;
	overflow-y: hidden;
}

.use-long-identifiers .orders-last-column {
	width: 60%;
}

.orders-last-column p {
	position: relative;
	margin-top: -220px;
	top: 50%;
	text-decoration: underline;
}

.use-long-identifiers .orders-last-column p {
	font-size: 96px;
}

.orders-column ul {
	list-style: none;
}

.orders-config {
	position: fixed;
	top: 0;
	right: 0;
	width: 150px;
	height: 150px;
}

/* Si se oculta la columna de pedidos en preparación ajustamos los tamaños de las otras 2 */

.orders.hide-in-progress .orders-in-progress-column {
	display: none;
}

.orders.hide-in-progress .orders-ready-column {
	width: 35%;
}

.orders.hide-in-progress .orders-last-column {
	width: 65%;
}

/* Reglas para tablets */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
	.orders-column h6 {
		font-size: 24px;
	}

	.orders-in-progress-column {
		font-size: 48px;
	}

	.orders-ready-column {
		font-size: 48px;
	}

	.orders-last-column {
		font-size: 236px;
	}
}
.settings-dialog section.content {
	padding: 40px 80px ;
}

.settings-dialog .content select {
	margin-left: 12px;
}

.settings-dialog .content input {
	margin-top: 20px;
}

.settings-dialog .content small {
	display: block;
	margin-top: 48px;
}

.settings-dialog {
	width: 800px;
	margin-left: -400px;
}