@media (max-width: 1240px) {
	table[width="1200"],
	table[style*="width:1200"] {
		width: auto !important;
		max-width: 100%;
	  }
  }

@media (max-width: 1040px) {
	table {
		width: auto !important;
		max-width: 100%;
		height: auto !important;
	  }

	td, th {
		width: auto !important;
		height: auto !important;
	  }

	img {
		max-width: 100% !important;
		height: auto !important;
	  }
  }

@media (max-width: 760px) {
	body {
		margin: 0 !important;
		padding: 0 8px !important;
		overflow-wrap: anywhere;
	  }

	blockquote {
		margin: 0 !important;
	  }

	.jen-pocitac {
		display: none !important;
	  }

	tr.hlavicka {
		display: flex !important;
	  }

	tr.hlavicka > td {
		display: flex !important;
		align-items: center;
		justify-content: center;
		flex: 1 1 auto;
		min-width: 0;
	  }

	tr.hlavicka > td:first-child {
		flex: 0 0 auto;
		width: 25% !important;
	  }

	tr.hlavicka > td.jen-pocitac {
		display: none !important;
	  }

	table:not(:has(th)),
	table:not(:has(th)) > tbody,
	table:not(:has(th)) > tbody > tr,
	table:not(:has(th)) > tbody > tr > td {
		display: block;
		width: auto !important;
	  }

	table:not(:has(th)) {
		border-bottom-width: 0 !important;
	  }

	table:not(:has(th)) > tbody > tr > td {
		border-top-width: 0 !important;
		border-left-width: 0 !important;
		border-right-width: 0 !important;
	  }

	table:not(:has(th)) td > p {
		margin-top: 0.2em;
		margin-bottom: 0.2em;
	  }

	table:has(th) {
		width: 100% !important;
	  }

	table:has(th) th {
		overflow-wrap: normal;
	  }

	table:has(th) td:last-child {
		white-space: nowrap !important;
	  }

	td, th {
		padding: 4px 8px !important;
		white-space: normal !important;
	  }

	body > h1:not(.odstavec),
	body > div > h1:not(.odstavec),
	blockquote h1,
	td > h1:not(.odstavec):not(.titulek),
	td > h2.pruh {
		margin-left: -8px !important;
		margin-right: -8px !important;
	  }

	div.paticka {
		margin-left: -8px !important;
		margin-right: -8px !important;
	  }

	a img[src$="ikona_PDF.bmp"] {
		width: 36px !important;
		max-width: none !important;
	  }

	a:has(> img[src$="ikona_PDF.bmp"]) {
		padding: 4px;
	  }

	ul.archiv a {
		padding: 9px 12px;
	  }

	h1.titulek {
		font-size: 2.4em;
	  }

	ul.menu {
		display: block;
		margin: 4px 0;
	  }

	ul.menu-modra {
		flex-direction: column;
	  }

	ul.menu a {
		padding: 6px 12px;
		white-space: normal;
	  }
  }
