@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {

	/* Force table to not be like tables anymore */
	table,
	thead,
	tbody,
	tfoot,
	th,
	td,
	tr {
		display: block;
	}

	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	tr {
		/*border-bottom: 1px solid #ccc;*/
	}

	td {
		/* Behave  like a "row" */
		border: none;
		/*border-bottom: 1px solid #ccc;*/
		position: relative;
		padding-left: 50%;
	}

	/*td:nth-child(even) {border: none; border-bottom: 1px solid #ddd;}*/
	td:before {
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%;
		padding-right: 10px;
		white-space: nowrap;
	}

	/*
  Label the data
  */
	tbody td:nth-of-type(1) {
		border-left: none;
		border-right: none;
		text-align: right !important;
	}

	tbody td:nth-of-type(1):before {
		text-align: left;
		font-size: 0.8em;
		content: "Název";
	}

	tbody td:nth-of-type(2) {
		border-left: none;
		border-right: none;
		padding-top: 2rem;
		text-align: right !important;
	}

	tbody td:nth-of-type(2):before {
		border-left: none;
		border-right: none;
		text-align: left;
		font-size: 0.8em;
		content: "Množství";
	}

	tbody td:nth-of-type(3) {
		border-left: none;
		border-right: none;
		text-align: right !important;
	}

	tbody td:nth-of-type(3):before {
		border-left: none;
		border-right: none;
		text-align: left;
		font-size: 0.8em;
		content: "Cena/ks";
	}

	tbody td:nth-of-type(4) {
		border-left: none;
		border-right: none;
		border-bottom-color: #777;
		text-align: right !important;
	}

	tbody td:nth-of-type(4):before {
		border-left: none;
		border-right: none;
		text-align: left;
		font-size: 0.8em;
		content: "Celkem";
	}

	tbody td:nth-of-type(5) {
		border-left: none;
		border-right: none;
		border-bottom-color: #999;
		text-align: right !important;
	}

	tbody td:nth-of-type(5):before {
		border-left: none;
		border-right: none;
		text-align: left;
		font-size: 0.8em;
		content: "Odstranit";
	}

	tbody td.zbozi-nazev {
		text-align: right;
	}

	.card {
		font-size: 0.8em;
	}

	.card h3 {
		font-size: 1em;
	}
}

td.zbozi-nazev {
	text-align: left;
}