html, body{
	width: 100%;
	height: 100%;
	margin: 0;
}

body{
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100vh;
	width: 100vw;
	margin: 0;
	height: max-content;
}

header{
	min-width: 100vw;
	position: fixed;
	z-index: 1000;
}

.vlastni-text-nav{
  font-weight: bold;
}

.nav-item{
  transition: 200ms;
}

.navbar-nav > li > .dropdown-menu > li > a{
	font-size: medium;
	font-weight:600;
}

.dropdown:hover .dropdown-menu {
	display: block;
}

.bg-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: url("../images/favicon_zpx.webp") no-repeat fixed center center;
	background-size: auto;
	width: 100vw;
	height: 100%;
	min-height: 100vh;
}

@media (max-width: 700px) {
	.bg-content {
		background-size: contain;
	}
}

.content {
	flex: 1;
	width: 80%;
	padding-top: 200px;
	padding-bottom: 70px;
	min-width: 200px;
	min-height: min-content;
	height: fit-content;
}

@media screen and (max-width: 768px) {
	.content {
		width: 92%;
	}
}


#logout-button::before {
	content: "Odhlásit se";
  }

@media (max-width: 768px) {
  #logout-button::before {
	  content: "";
	}
  
  #logout-button::after {
	content: "\f2f5";
	font: var(--fa-font-solid);
  }
}

.alert {
	z-index: 998 !important;
	width: 70% !important;
	margin: auto;
}

@media screen and (max-width: 768px) {
	.alert {
		width: 100% !important;
	}
}

footer{
	min-width: 100vw;
	margin-top: auto;
	bottom: 0;
	width: 100%;
	height: 70px;
	text-align: center;
	line-height: 70px;
	vertical-align: middle;
}

.typ-PRCH {
	background-color: #459c1d;
}

.typ-ODCH {
	background-color: #7e4a19;
}

.typ-PRE {
	background-color: #b69f20;
}

.typ-LEK {
	background-color: red;
}

.typ-DOV {
	background-color: #1f85c0;
}

.typ-NEM {
	background-color: black;
}

.typ-ABS {
	background-color: #8f8f8f;
}

.typ-OCR {
	background-color: #17bcc2;
}

.typ-NAH {
	background-color: #3c1fc0;
}

.typ-NEP {
	background-color: #921fc0;
}

.stav-PRAC {
	color: #459c1d;
}

.stav-PRE {
	color: #459c1d;
}

.stav-LEK {
	color: rgba(0,0,0,0);
}

.stav-DOV {
	color: rgba(0,0,0,0);
}

.stav-NEM {
	color: rgba(0,0,0,0);
}

.stav-ABS {
	color: rgba(0,0,0,0);
}

.stav-OCR {
	color: rgba(0,0,0,0);
}

.stav-NAH {
	color: rgba(0,0,0,0);
}

.stav-NEP {
	color: rgba(0,0,0,0);
}

.stav- {
	color: rgba(0,0,0,0);
}

#div_id_projekt {
	margin-bottom: 20px;
}

.stav-background-PRAC {
	background-color: #459c1d;
}

.stav-background-PRE {
	background-color: #b69f20;
}

.stav-background-LEK {
	background-color: red;
}

.stav-background-DOV {
	background-color: #1f85c0;
}

.stav-background-NEM {
	background-color: black;
}

.stav-background-ABS {
	background-color: #8f8f8f;
}

.stav-background-OCR {
	background-color: #17bcc2;
}

.stav-background-NAH {
	background-color: #3c1fc0;
}

.stav-background-NEP {
	background-color: #921fc0;
}

.button {
	border: none;
	border-radius: 5px;
	padding: .5em 1em;
	transition: all 0.2s ease-in;
}

.button:hover {
	filter: brightness(1.3);
}

.button-create {
	background-color: #4d8640;
	color: white;
}

.button-delete {
	background-color: #a84f4f;
	color: white;
}

.zaloha-btn {
	padding: .8em 1.3em;
	border: none;
	border-radius: 8px;
	background-color: transparent;
	transition: all 0.2s ease-in-out;
}

.vykaz-detail-table {
	overflow-x: scroll !important;
}

/*scrolovatelná tabulka detail výkazu

.vykaz-detail-table thead,
.vykaz-detail-table tfoot {
	display: table;
	width: 100%;
}

.vykaz-detail-table tbody {
	display: block;
	height: 60vh;
	overflow-y: auto;
	overflow-x: hidden;
}

.vykaz-detail-table tr {
	display: table;
	width: 100%;
	table-layout: fixed;
}

.vykaz-detail-table td,
.vykaz-detail-table th {
	display: table-cell;
	padding: 0.5rem;
}
*/
/*
<table class="table table-striped vykaz-detail-table">
	<thead>
		<tr>
			<th width="2%" style="text-align:center; width:8% !important;" class="text-nowrap">Den</th>
			<th width="15%" style="text-align:right;" class="text-nowrap">Odpracováno</th>
			<th width="15%" style="text-align:right;" class="text-nowrap">Hrubá mzda</th>
			<th width="15%" style="text-align:right;" class="text-nowrap">Zálohy</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
		{% csrf_token %}
		{% for data in context_object %}
		<tr class="filter-row" style="{% if data.1 == 'Saturday' or data.1 == 'Sunday' %}background-color:#c5e6be;{% endif %}">
			<td class="text-end text-nowrap" style="padding-right: 1em; width:8% !important;"><strong>{{data.0}}.</strong></td>
			<td class="text-end text-nowrap" style="padding-right: 1em;">{% if data.2 != '0:00' %}{{data.2}}{% endif %}</td>
			<td class="text-end text-nowrap" style="padding-right: 1em;">{% if data.3 != '0' %}{{data.3}} Kč{% endif %}</td>
			<td class="text-end text-nowrap" style="padding-right: 1em;">{% if data.4 != '0' %}{{data.4}} Kč{% endif %}</td>
			<td></td>
		</tr>
		{% endfor %}
	</tbody>
	<tfoot>
		<tr class="table-warning">
			<td style="padding-right: 1em; width:8% !important;"><strong>Celkem:</strong></td>
			<td class="text-end text-nowrap" style="padding-right: 1em;"><strong>{{ soucty.0 }}</strong></td>
			<td class="text-end text-nowrap" style="padding-right: 1em;"><strong>{{ soucty.1 }} Kč</strong></td>
			<td class="text-end text-nowrap" style="padding-right: 1em;"><strong>{{ soucty.2 }} Kč</strong></td>
			<td></td>
		</tr>
	</tfoot>
</table>
*/

.rotate {
	transform: rotate(180deg);
	transition: transform 0.3s ease-in-out;
}


#material-list,
#mechanizace-list {
	list-style: none;
	padding: 0;
}

.material-item,
.mechanizace-item {
	display: inline-block; /* nebo inline-flex */
	margin-right: 10px; /* volitelné: nastavuje mezery mezi položkami */
	line-height: 35px;
}

.material-item .my-badge,
.mechanizace-item .my-badge {
	display: inline-flex; /* nutné pouze pro inline-flex variantu */
	align-items: center; /* nutné pouze pro inline-flex variantu */
	padding: 1px 15px;
	background-color: #CCCCCC;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 450;
	margin: 10px 0 10px 0;
}

#material-item-delete,
#mechanizace-item-delete {
	cursor: pointer;
	font-size: 14px;
	padding-left: 7px;
	text-align: center;
	color: #000000;
	font-weight: 450;
}

#material-item-delete:hover,
#mechanizace-item-delete:hover {
	color: #ffffff;
	font-weight: bold;
}

.btn-odchod-color {
	background-color: #7e4a19 !important; 
	border-color: #7e4a19 !important;
	color: white !important;    

	&:hover {
		background-color: #5e3a18 !important; 
	}
}

.btn-prichod-color {
	background-color: #459c1d !important; 
	border-color: #459c1d !important;
	color: white !important;    

	&:hover {
		background-color: #367e15 !important; 
	}
}

#div_id_vydaj div:nth-child(1) {
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-left: 10px;
}

#div_id_vydaj div:nth-child(1) .form-check {
	align-items: start;
	margin-right: 40px;
}

#div_id_vydaj div:nth-child(1) .form-check #id_vydaj_0 {
	margin-right: 10px;
}

.inputfile {
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}

#file-list-edit,
#file-list {
	padding: 0;
}

#file-list-edit li,
#file-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
}

.file-delete-button {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 20px;
}

.file-info {
	display: flex;
	align-items: center;
}

.file-buttons {
	display: flex;
	align-items: end;
}

.file-info img {
	margin: 10px;
	width: 25px; /* Adjust the size as needed */
	height: 25px; /* Adjust the size as needed */
}


.file-name {
	white-space: nowrap;
	overflow-x: hidden;
	text-overflow: ellipsis;
	max-width: 600px;
}

@media screen and (max-width: 400px) {
	.file-name {
		max-width: 120px;
	}

	#file-list li {
		flex-direction: column;
	}

	#file-list .file-info {
		align-self: self-start;
	}

	#file-list .file-buttons {
		align-self: self-end;
	}
}

@media screen and (min-width: 401px) and (max-width: 600px) {
	.file-name {
		max-width: 100px;
	}
}

@media screen and (min-width: 601px) and (max-width: 700px) {
	.file-name {
		max-width: 200px;
	}
}

@media screen and (min-width: 701px) and (max-width: 800px) {
	.file-name {
		max-width: 300px;
	}
}

@media screen and (min-width: 801px) and (max-width: 900px) {
	.file-name {
		max-width: 400px;
	}
}

@media screen and (min-width: 901px) and (max-width: 1000px) {
	.file-name {
		max-width: 480px;
	}
}

@media screen and (min-width: 1200px) and (max-width: 1400px) {
	.file-name {
		max-width: 200px;
	}
}

@media screen and (min-width: 1401px) and (max-width: 1500px) {
	.file-name {
		max-width: 300px;
	}
}

@media screen and (min-width: 1501px) and (max-width: 1600px) {
	.file-name {
		max-width: 350px;
	}
}

@media screen and (min-width: 1601px) and (max-width: 1800px) {
	.file-name {
		max-width: 400px;
	}
}

@media screen and (min-width: 1801px) and (max-width: 1900px) {
	.file-name {
		max-width: 450px;
	}
}

@media screen and (min-width: 1901px) and (max-width: 2000px) {
	.file-name {
		max-width: 500px;
	}
}

@media screen and (min-width: 2001px) and (max-width: 2100px) {
	.file-name {
		max-width: 650px;
	}
}





.switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 26px;
	margin: 10px 10px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
	opacity: 0;
	width: 0;
	height: 0;
  }
  
  /* The slider */
  .slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: 0.4s;
	transition: 0.4s;
  }
  
  .slider:before {
	position: absolute;
	content: "";
	height: 30px;
	width: 30px;
	left: 0px;
	bottom: 4px;
	top: 0;
	bottom: 0;
	margin: auto 0;
	-webkit-transition: 0.4s;
	transition: 0.4s;
	box-shadow: 0 0px 15px #2020203d;
	background: rgb(0, 19, 71) url('https://i.ibb.co/FxzBYR9/night.png');
	background-repeat: no-repeat;
	background-position: center;
  }
  
  input:checked + .slider {
	background-color: #ffd255;
  }
  
  input:focus + .slider {
	box-shadow: 0 0 1px #ffd255;
  }
  
  input:checked + .slider:before {
	-webkit-transform: translateX(24px);
	-ms-transform: translateX(24px);
	transform: translateX(24px);
	background: white url('https://i.ibb.co/7JfqXxB/sunny.png');
	background-repeat: no-repeat;
	background-position: center;
  }
  
  /* Rounded sliders */
  .slider.round {
	border-radius: 34px;
  }
  
  .slider.round:before {
	border-radius: 50%;
  }


.row-overview-holidays-buttons .options-btns-column,
.row-overview-holidays-buttons .overviews-btns-column {
	flex: 0 0 100%;
	max-width: 100%;
	align-items: start;
}

@media screen and (min-width: 401px) {
	.row-overview-holidays-buttons .options-btns-column,
	.row-overview-holidays-buttons .overviews-btns-column {
		flex: 0 0 50%;
    	max-width: 50%;
	}

	.row-overview-holidays-buttons .overviews-btns-column {
		align-items: end;
	}
}

@media screen and (min-width: 601px) {
	.row-overview-holidays-buttons .options-btns-column {
		flex-direction: row !important;
		margin-top: 54px;
	}

	.row-overview-holidays-buttons .options-btns-column div:nth-child(2) button {
		margin-left: 13px;
		margin-right: 13px;
	}
}

