@charset "utf-8";
/* CSS Document */
html, body {
  background-color: #fff;
  color: var(--cerna);
	font-variant-ligatures: none;
}

body *{
  box-sizing: border-box;
}

body{
	height: 100vh;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
}

.middle{
	position: relative;
	width: var(--middle-width);
	margin: 0px auto;
}

.flex {
	display: flex;
	justify-content: flex-start;
	align-content: flex-start; align-items: flex-start;
	flex-wrap: wrap;
}

article.show { display: block !important; }

body:not(.istiles) article:nth-of-type(n+1) { margin-top: 3rem; }

article .preheader {
	margin-bottom: 0.5rem;
}

article.main .preheader {
	font-size: 1rem; line-height: 120%;
	font-weight: bold;
	text-transform: uppercase;
	color: var(--zelena);
}
article:not(.main) .preheader {
	display: none;
}

article .heading {
	margin-bottom: 1rem;
	line-height: 100%; font-size: 1.75rem;
}

article.main .heading {
	margin-bottom: 1rem;
	line-height: 100%; font-size: 2.5rem;
}

article h1, h2 {
	font-weight: normal;
	position: relative;
	font-size: 1em;
}

article.main .heading h2{
	font-size: 1.75rem;
	margin-top: 1rem;
}

article .act .heading{
	margin-bottom: .5rem;
}

article .act .heading h2{
	font-size: .75em;
	margin-bottom: 0;
}

article .heading h1, h2 {
	margin-right: 0.5rem;
}

article .heading .icon,  article .tabs .icon, article .attachments .icon{
	width: 0.75em; height: 0.75em;
	margin-right: 0.5rem; margin-top: 0.125em;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

article .tabs .icon, article .attachments .icon{
	display: inline-block;
	width: 1.25em; height: 1.25em;
	margin-right: 0.5rem; margin-top: -0.125em;
	margin-left: 1rem;
}

article .tabs .icon.copy, article .attachments .icon.copy, article .heading .icon.copy{
	margin-top: 0;
	cursor: pointer;
}

article{
	margin-bottom: 1rem;
}

.act{
	margin-bottom: 3rem;
}
#prilohy .act {
  margin-bottom: 1rem;
}
#sislozky .heading h2, #sipolozky .heading h2 {
  margin-top: 0;
}

.act:nth-last-of-type(1) {
	margin-bottom: 1rem;
}

article:nth-last-of-type(1) {
	margin-bottom: 5rem;
}

p{
	line-height: 150%;
	margin-bottom: 1rem;
}

.userbar{
	padding-bottom: 2rem;
	position: relative;
	margin-top: var(--header-height);
	background: -webkit-linear-gradient(bottom, rgba(255,255,255,1) 0%, var(--zelena-gray) 200%);
	background: -o-linear-gradient(bottom, rgba(255,255,255,1) 0%, var(--zelena-gray) 200%);
	background: linear-gradient(to top, rgba(255,255,255,1) 0%, var(--zelena-gray) 200%);
}

.userbar .middle{
	display: flex;
	flex-wrap: nowrap;
	flex-direction: row;
	justify-content: space-between;
	align-content: center;
	align-items: center;
	padding-top: 0;
}

.userbar .middle > * { padding: 0.5rem 0; }
#user{ font-weight: 800; }
#user a.nob{ font-weight: normal; }
#logout{ padding: 0.5rem; margin-right: -0.5rem; }
#logout:hover{ text-decoration: none; color: #fff; background-color: var(--zelena-dark); }

.statusrow{
	justify-content: flex-start;
	align-content: center;
	align-items: center;
	width: auto;
	padding-bottom: 1rem;
}

.statusrow a, .addrow a.showall{
	margin-right: 0.25rem;
	position: relative;
	display: block;
	width: 4rem; height: 4rem;
	border-radius: 50%;
	text-align: center;
	line-height: 4rem;
	font-weight: 800;
	color: var(--bila);
}

/*.statuspoint:focus{border: var(--form-border-highlited);}*/

.statusrow > a:nth-of-type(1) { background-color: var(--stav1); }
.statusrow > a:nth-of-type(2) { background-color: var(--stav2); }
.statusrow > a:nth-of-type(3) { background-color: var(--stav3); }
.statusrow > a:nth-of-type(4) { background-color: var(--stav4); }
.statusrow > a:nth-of-type(5) { background-color: var(--stav5); }
.statusrow > a:nth-of-type(6) { background-color: var(--stav6); }
.statusrow > a:nth-of-type(7) { background-color: var(--stav10); }
.statusrow > a:nth-of-type(8) { background-color: var(--zelena-n); }

.addrow {
	width: 50%;
	padding-bottom: 1rem;
}

.addrow a{
	position: relative;
	display: block;
	width: 4rem; height: 4rem;
	border-radius: 50%;
	background-color: var(--orange);
	margin-left: 1rem;
}
.addrow a:not(.showall)::before {
	content: '';
	position: absolute; background-color: #fff;
	width: 0.3rem; height: 2rem;
	left: 1.85rem; top: 1rem;
	border-radius: 0.15rem;
}
.addrow a:not(.showall)::after {
	content: '';
	position: absolute; background-color: #fff;
	height: 0.3rem; width: 2rem;
	top: 1.85rem; left: 1rem;
}

.addrow a.showall { background-color: var(--zelena-n); }

.statusrow .statuspoint.zluta {background-color: var(--zluta);}
.statusrow .statuspoint.orange {background-color: var(--orange);}
.statusrow .statuspoint.cervena {background-color: var(--cervena);}
.statusrow .statuspoint.fialova {background-color: var(--fialova);}
.statusrow .statuspoint.modra {background-color: var(--modra);}
.statusrow .statuspoint.zelena {background-color: var(--zelena-dark);}
.statusrow .statuspoint.sediva {background-color: var(--sediva);}


.littlecontact{
	font-size: .8rem;
	padding-bottom: .25rem;
}
.littlecontact a{
	margin-right: .5rem;
}

/* vicesloupcovy layout */

.multicol.c2 > * {
	width: calc((100% - 2.5rem - 1px) / 2);
}
.multicol.c2 > *:nth-of-type(2n+1) {
	margin-left: 0;
}

.multicol.c3 > * {
	width: calc((100% - 5rem - 1px) / 3);
}
.multicol.list.c3 > * {
	width: calc((100% - 2rem - 1px) / 3);
}
.multicol.c3 > *:nth-of-type(3n+1) {
	margin-left: 0;
}

.multicol.c4 > * {
	width: calc((100% - 7.5rem - 1px) / 4);
}
.multicol.list.c4 > * {
	width: calc((100% - 3rem - 1px) / 4);
}
.multicol.c4 > *:nth-of-type(4n+1) {
	margin-left: 0;
}

.multicol.c5 > * {
	width: calc((100% - 10rem - 1px) / 5);
}
.multicol.list.c5 > * {
	width: calc((100% - 4rem) / 5);
}
.multicol.c5 > *:nth-of-type(5n+1) {
	margin-left: 0;
}


.multigrid.c3 > * {
	width: calc((100% - 2rem - 1px) / 3);
}
.multigrid.c3 > *:nth-of-type(3n+1) {
	margin-left: 0;
}
.multigrid.c3 > *:nth-of-type(3n) {
	margin-right: 0;
}

.multigrid.c4 > * {
	width: calc((100% - 3rem - 1px) / 4);
}
.multigrid.c4 > *:nth-of-type(4n+1) {
	margin-left: 0;
}
.multigrid.c4 > *:nth-of-type(4n) {
	margin-right: 0;
}

.multigrid.c5 > * {
	width: calc((100% - 4rem - 1px) / 5);
}
.multigrid.c5 > *:nth-of-type(5n+1) {
	margin-left: 0;
}
.multigrid.c5 > *:nth-of-type(5n) {
	margin-right: 0;
}

.multigrid > *:last-of-type {
	margin-right: 0;
}

.multicol > * {
	margin-left: 2.5rem;
	margin-bottom: 0.5rem;
}

.multicol.list > * {
	margin-left: 1rem;
	margin-bottom: 0.75rem;
}

.multigrid > * {
	margin-left: 0.5rem;
	margin-right: 0.5rem;
	margin-bottom: 0.75rem;
}

.multicol {
	justify-content: flex-start;
}

.multigrid {
	justify-content: center;
}

.multicol::after {
	content: '';
	flex: auto;
}

.frametext{
	width: 100%;
	border: var(--form-border);
	margin-bottom: 1rem;
	padding: .5rem 1rem;
}

.list > * {
	height: 2.5rem;
	background-color: var(--zelena);
	color: var(--bila);
	padding: 0 0.5rem;
	border-radius: 0.5rem;
	overflow: hidden;
	display: flex;
	justify-content: flex-start;
	align-content: center; align-items: center;
}

.list > *:hover { text-decoration: none; }

.list.zakazka > * p,
.list > * > p {
	font-size: 1rem;
	white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
	margin-bottom: 0;
	line-height: 110%;
}

.list.grey > *, .list > .grey {
	background-color: var(--zelena-gray);
	color: var(--cerna);
}

.list > .inactive {
	opacity: 0.5;
}

.list > .highlight {
	background-color: var(--cervena);
	color: var(--bila);
}

.list > * > i {
	display: block;
	width: 1.25rem; height: 1.25rem;
	border-radius: 50%;
	margin-right: 0.5rem;
}
.list.zakazka > * p:nth-of-type(1) {
	font-weight: bold;
}

.list.zakazka > * > div {
	width: calc(100% - 1.75rem);
}

.list.zakazka > a.stav1 i { 	background-color: var(--stav1); }
.list.zakazka > a.stav2 i { 	background-color: var(--stav2); }
.list.zakazka > a.stav3 i { 	background-color: var(--stav3); }
.list.zakazka > a.stav4 i { 	background-color: var(--stav4); }
.list.zakazka > a.stav5 i { 	background-color: var(--stav5); }
.list.zakazka > a.stav6 i { 	background-color: var(--stav6); }
.list.zakazka > a.stav10 i { 	background-color: var(--stav10); }

.list.zakazka.large > * {
	height: 3.75rem;
	padding: 0.625rem 0.5rem;
	align-content: flex-start; align-items: flex-start;
}

.list.zakazka.large > * p:nth-of-type(1) {
	margin-top: 0;
}
.list.zakazka.large > * p:nth-of-type(2) {
	margin-top: 0.25rem;
	font-size: 0.85rem;
}

.list.klient > * {
	height: 4.25rem;
	padding: 0.625rem 0.5rem;
	align-content: flex-start; align-items: flex-start;
	flex-wrap: wrap;
}

.list.klient.large > * {
	height: 5.25rem;
}

.list.klient > * p:nth-of-type(1) {
	font-weight: bold;
	width: 100%;
	margin-bottom: 0.5rem;
}

.list.klient.large > * p:nth-of-type(1) {
	margin-bottom: 0rem;
}
.list.klient.large > * p:nth-of-type(2) {
	font-size: 0.85rem;
	margin-bottom: 0.5rem;
	width: 100%;
}

.list.klient > * > i {
	line-height: 1.25rem;
	font-size: 0.75rem;
	font-weight: bold;
	color: #fff;
	text-align: center;
	font-style: normal;
}

.list.klient > a i:nth-of-type(1) { 	background-color: var(--stav1); }
.list.klient > a i:nth-of-type(2) { 	background-color: var(--stav2); }
.list.klient > a i:nth-of-type(3) { 	background-color: var(--stav3); }
.list.klient > a i:nth-of-type(4) { 	background-color: var(--stav4); }
.list.klient > a i:nth-of-type(5) { 	background-color: var(--stav5); }
.list.klient > a i:nth-of-type(6) { 	background-color: var(--stav6); }
.list.klient > a i:nth-of-type(7) { 	background-color: var(--stav10); }

.list a.blue {
  background-color: var(--blue);
  color: var(--bila);
}

.chapters div{
	margin-bottom: .4rem;
	width: 100%;
	margin-left: 1rem;
}

.chapters div:first-of-type{
	margin-left: 0;
}

.chapters div p{
	margin-bottom: 0;
}

.chapters div a{
	opacity: .75;
}

.chapters div a.active{
	opacity: 1;
	color: var(--zelena);
}

.chapters div a.blank::after{
	content: "!";
	margin-right: .25rem;
}

#foto .foto a img{
  max-width: 100%;
  max-height: 380px;
}

article.login{
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	align-content: center;
}

.login .middle{
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	align-content: center;
}

.login .middle > div{
	width: 50%;
}

.blur-layer{
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: var(--zelena-gray-rgb5);
	backdrop-filter: blur(5px);
}

.blur .blur-layer{display: block;}

footer{
	height: var(--header-height);
	text-align: right;
	margin-top: auto;
	background-color: var(--zelena-light-gray);
	display: flex;
	justify-content: center;
	align-items: center;
	align-content: center;
}

footer p{
	margin-bottom: 0;
	opacity: .7;
	line-height: var(--header-height);
}

@media (max-width: 1000px){
.statusrow {
  justify-content: space-between;
	width: 50%;
}
.statusrow a{
	margin-right: 0;
}



.multicol.c4 > *,
.multicol.c5 > * {
	width: calc((100% - 5rem - 1px) / 3);
}

.multicol.list.c4 > *,
.multicol.list.c5 > *,
.multigrid.c4 > *,
.multigrid.c5 > * {
	width: calc((100% - 2rem - 1px) / 3);
}
.multicol.c4 > *:nth-of-type(4n+1) {
	margin-left: 2.5rem;
}
.multicol.c5 > *:nth-of-type(5n+1) {
	margin-left: 2.5rem;
}

.multicol.list.c4 > *:nth-of-type(4n+1) {
	margin-left: 1rem;
}
.multicol.list.c5 > *:nth-of-type(5n+1) {
	margin-left: 1rem;
}

.multigrid.c4 > *:nth-of-type(4n+1) {
	margin-left: 0.5rem;
}
.multigrid.c4 > *:nth-of-type(4n) {
	margin-right: 0.5rem;
}
.multigrid.c5 > *:nth-of-type(5n+1) {
	margin-left: 0.5rem;
}
.multigrid.c5 > *:nth-of-type(5n) {
	margin-right: 0.5rem;
}

.multicol.c4 > *:nth-of-type(3n+1),
.multicol.c5 > *:nth-of-type(3n+1),
.multicol.list.c4 > *:nth-of-type(3n+1),
.multicol.list.c5 > *:nth-of-type(3n+1) {
	margin-left: 0;
}

.multigrid.c4 > *:nth-of-type(3n+1),
.multigrid.c5 > *:nth-of-type(3n+1) {
	margin-left: 0;
}
.multigrid.c4 > *:nth-of-type(3n),
.multigrid.c5 > *:nth-of-type(3n) {
	margin-right: 0;
}

}

@media (max-width: 500px){

	article { display: none; margin-top: 0 !important; }

	.statusrow, .addrow {width: 100%; }
	.statusrow { padding-bottom: 0; }
	.addrow a{
		margin-left: 0;
		margin-top: 0.5rem;
	}

	article:not(.main) .preheader {
    display: block;
		font-size: 1rem; line-height: 120%;
		font-weight: bold;
  }

	article.main .heading h1, h2 {
    margin-right: 0;
		width: 100%;
		margin-bottom: 0.5rem;
  }

	.heading h1, h2{margin-bottom: 0.5rem;}

	article .act .heading h2{
		margin-bottom: .25rem;
	}

	article .heading .icon {
	width: 1em; height: 1em;
	margin-right: 0.5rem;
	margin-top: -0.1em;
}

	.multicol > *, .multigrid > * {
    width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
  }

	.login .middle > div{
		width: 100%;
	}


}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .noprint {
    visibility: hidden;
  }

  .userbar {
    height: 0;
    margin: 0;
  }

  article, article:nth-last-of-type(1) {
    margin-bottom: 0;
  }
}
