html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
}

body {
  overflow: hidden;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  background-color: #f8fafc;
  color: #333;
}

.form-input {
  border-radius: 50px;
  padding: 15px 20px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.25);
  outline: none;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  border-radius: 5px;
  font-size: 16px;
  padding: 10px;
  transition: background-color 0.3s, border-color 0.3s;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-small {
  padding: 5px 10px !important;
  font-size: 12px !important;

}


h1 {
  margin: 30px 0 30px 0;
  text-align: left;
}

h2 {
  font-size: 20px;
  color: #004990;
}

a {
  color: #004990;
}

.select2 {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  border: 1px solid #ccc !important;
  border-radius: 4px;
  /* Zaoblené rohy */
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid #ccc !important;
  border-radius: 4px;
}

/* Změna rámečku při zaostření (focus) */
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus {
  border: 1px solid #333 !important;
  outline: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin-top: 4px !important;
  background-color: #004990 !important;
  border: none !important;
  color: #fff !important;
}


/* Nastavení výšky multi-selektivního pole */
.select2-container--default .select2-selection--multiple {
  min-height: 30px;
  /* Výška pole */
  padding: 0;
  /* Odstranění vnitřního odsazení */
  line-height: 13px;
  /* Zarovnání textu ve středu */
  overflow: hidden;
  /* Skrytí přetékajících prvků */
}

.select2-container--default .select2-selection--multiple .select2-search--inline {
  /* display: none !important; */
}

/* Zmenšení výšky tagů (vybraných hodnot) uvnitř multi-select */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  height: 20px;
  /* Výška každého tagu */
  line-height: 20px;
  /* Zarovnání textu ve středu tagu */
  font-size: 12px;
  /* Velikost písma v tagu */
  margin: 2px;
  /* Mezera mezi tagy */
}

/* Odstranění vnitřního odsazení pro textový vstup (pokud je potřeba) */
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  height: 24px;
  line-height: 24px;
  margin-top: 3px;
  /* Vertikální zarovnání */
  font-size: 12px;
  /* Velikost písma */
}

img {
  max-width: 100%;
}

.container-narrow {
  max-width: 800px !important;
}



header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  height: 50px;
  padding: 0px 0;
  background: #fff;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  z-index: 10;
}




header .logo-img {
  height: 40px;
  margin: 5px 10px;
}


#left-bar {
  background: #203960;
  color: #fff;
  height: calc(100vh - 50px);
  width: 200px;
  position: fixed;
  top: 50px;
  left: 0;
  font-size: 14px;
}

#left-bar .nav-link {
  color: #fff;
}

#navigace .nav-item {
  position: relative;
}

#navigace .nav-item .badge {
  position: absolute;
  top: 5px;
  right: 10px;
  display: block;
  width: 24px;
  height: 24px;
  line-height: 20px;
  text-align: center;
  border-radius: 20px;
  background: #e4142d !important;
  color: #fff !important;
  box-shadow: 0px 0px 10px #ffffff50;
}


#content {
  margin-left: 200px;
  width: calc(100vw - 220px);
  min-height: calc(100vh - 50px);
  margin-top: 70px;
}

.block {
  background: #fff;
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}


.form-control {
  padding: 4px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.controls .fas {
  position: absolute;
  right: 0;
  top: 0;
}

.form-group {
  padding: 5px 0;
}

#list-filter .form-control {
  font-size: 13px;
}



/* Hlavní nadpisy */
table.dataTable thead th,
.table thead th {
  background-color: transparent;
  color: #004990;
  text-align: left;
  font-weight: bold;
  border-bottom: 2px solid #004990;
}

/* Obarvení řádků */
table.dataTable tbody tr:nth-child(odd) td,
.table tbody tr:nth-child(odd) td {
  background-color: #fff;
}

table.dataTable tbody tr:nth-child(even) td,
.table tbody tr:nth-child(even) td {
  background-color: #f0f0f0;
}

/* Zvýraznění při najetí */
table.dataTable tbody tr:hover td,
.table tbody tr:hover td {
  background-color: #ddd;
}

table.dataTable tbody tr:hover td,
.table.tableHover tbody tr:hover td {
  cursor: pointer;
}

/* Buňky v tabulce */
table.dataTable tbody td,
.table tbody tr:hover td {
  color: #111;
}

/* Poslední řádek bez spodní linky */
table.dataTable tbody tr:last-child td,
table.table tbody tr:last-child td {
  border-bottom: none;
}

/* Zaoblené rohy pro první a poslední buňku */
table.dataTable tbody tr:first-child td:first-child,
table.table tbody tr:first-child td:first-child {
  border-top-left-radius: 0px;
}

table.dataTable tbody tr:first-child td:last-child,
table.table tbody tr:first-child td:last-child {
  border-top-right-radius: 0px;
}

table.dataTable tbody tr:last-child td:first-child,
table.table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 0px;
}

table.dataTable tbody tr:last-child td:last-child,
table.table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 0px;
}

tr.inactive {
  opacity: 0.5;
}

table img {
  max-height: 40px;
}

/* Paginace */
.dataTables_wrapper .dataTables_paginate {
  padding: 10px;
  display: flex;
  justify-content: flex-end;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background-color: #e2e8f0;
  /* Světle modrošedá */
  color: #1e293b;
  /* Tmavší text */
  border-radius: 4px;
  padding: 5px 10px;
  margin: 0 2px;
  text-decoration: none;
  border: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: #d1d5db;
  /* Trochu tmavší šedá */
}

/* Aktivní tlačítko */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background-color: #3b82f6;
  /* Modrá */
  color: #ffffff;
  /* Bílý text */
}

/* Input a vyhledávání */
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 5px;
}

.dataTables_wrapper .dataTables_filter input:focus {
  outline: none;
  border-color: #3b82f6;
  /* Modrá */
}

/* Shrnutí tabulky */
.dataTables_wrapper .dataTables_info {
  color: #4b5563;
  /* Jemný text */
  padding: 10px 0;
}

div.dt-container div.dt-paging ul.pagination {
  justify-content: center;
}

.dt-paging .pagination .page-item {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  height: auto;
  line-height: 1;
}

.dt-paging .pagination .page-item .page-link {
  padding: 2px 8px;
  border: none !important;
  color: #333;
}

.dt-paging .pagination .page-item.active .page-link {
  background: none;
  font-weight: bold;
}

.dt-paging .pagination .page-item.disabled .page-link {
  background: none;
  color: #aaa;
}

.fa-male {
  color: #004990;
}

.fa-female {
  color: #e4142d;
}


#persons-table td[data-column="state"] {
  background: #004990;
  padding: 0 !important;
  width: 10px !important;
  max-width: 10px !important;
}

#persons-table tr.state-insafe td[data-column="state"] {
  background: #000 !important;
}

#persons-table tr.state-archived td[data-column="state"] {
  background: #888 !important;
}


#persons-table tr.state-inactive td[data-column="state"] {
  background: #e4142d !important;
}

#persons-table tr.state-active td[data-column="state"] {
  background: #3dbd6b !important;
}


#persons-table tr.state-carence td[data-column="state"] {
  background: #ffa74a !important;
}


span.state-insafe {
  color: #000 !important;
  font-weight: bold;
}

span.state-archived {
  color: #4b4b4b !important;
  font-weight: bold;
}


span.state-inactive {
  color: #e4142d !important;
  font-weight: bold;
}

span.state- {
  color: #3dbd6b !important;
  font-weight: bold;
}

span.state-active {
  color: #3dbd6b !important;
  font-weight: bold;
}


span.state-carence {
  color: #d47f23 !important;
  font-weight: bold;
}

[data-loading] {
  background: transparent;
  margin: 10px;
  aanimation: blink 1s infinite;
  padding: 20px 0;
  text-align: center;
}

@keyframes blink {
  0% {
    background-color: transparent;
  }

  50% {
    background-color: rgba(0, 0, 0, 0.05);
  }

  100% {
    background-color: transparent;
  }
}

.lds-ripple {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ripple div {
  position: absolute;
  border: 4px solid #888;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 0;
  }


  4.9% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 0;
  }

  5% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}


#block-progress {
  margin: 10px 0;
  width: 350px;
  position: relative;
  background: rgba(200, 200, 200, 0.6);
  display: none;
}

#block-progress div {
  height: 3px;
  line-height: 3px;
  width: 0;
  max-width: 100%;
  background: #aaa;
  color: #fff;

}

.blocker {
  z-index: 100;
}

.attr {
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

.attr:last-child {
  padding: 10px 0 0 0;
  border-bottom: none;
}


.attr i {
  display: inline-block;
  width: 20px;
  margin-right: 5px;
  color: #004990;
}

.attr {
  display: flex;
}

.attr label {
  display: inline-block;
  width: 160px;
  margin-right: 5px;
  color: #004990;
  font-weight: bold;
}

.attr span {
  display: inline-block;
  width: calc(100% - 165px);
  margin-left: auto;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
}

.dataForCheck label {
  display: block;
  color: #004990;
  font-weight: bold;
}



.detailFrontend .attr {
  display: flex;
}

.detailFrontend .attr label {
  display: inline-block !important;
  width: 180px !important;
  margin-right: 5px !important;
}

.detailFrontend .attr span {
  display: inline-block !important;
  width: calc(100% - 185px) !important;
  margin-left: auto !important;
}

.detailFrontend .attr .fas {
  margin-top: 3px;
}

.regstate-inactive {
  color: #8d0d1c !important;
  font-weight: bold;
  /*  cursor: help; */
}

.regstate-active {
  color: #066b2b !important;
  font-weight: bold;
  cursor: help;
}

.regstate-carence {
  color: #c76700 !important;
  font-weight: bold;
  cursor: help;
}

#bottom {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 10px 10px;
  background: #fff;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  color: #333;
  z-index: 5;
  text-align: center;
}

#bottom input {
  padding: 2px 5px !important;
  border: none;
  margin: 0;
  background: #fff;
  color: #333;
}

#bottom .btn {
  margin: 5px 5px;
  background: #ddd;
}

.btn-green {
  background: #3dbd6b !important;
  color: #fff !important;
}

.btn-red {
  background: #e4142d !important;
  color: #fff !important;
}


.btn-blue {
  background: #203960 !important;
  color: #fff !important;
}

.btn-black {
  background: #333 !important;
  color: #fff !important;
}





.btn-yellow {
  background: #f7c600 !important;
  color: #333 !important;
}

.btn-purple {
  background: #6a1b9a !important;
  color: #fff !important;
}

.btn-teal {
  background: #008080 !important;
  color: #fff !important;
}

.btn:hover {
  filter: contrast(150%);
}

.back {
  position: absolute;
}


.nav-pills .nav-link {
  color: #004990;
}

.nav-pills .nav-link.active {
  background: #004990;
  color: #fff;
}

.nav-pills .nav-item {
  color: #004990;
}

.nav-pills .nav-item {
  background: #004990;
  color: #fff !important;
}

.nav-pills .nav-item.active .nav-link {
  color: #fff !important;
}

#fulltext {
  margin-top: 8px;
  border: 1px solid #ccc;
  max-width: 400px;
}

#info2 .modal-dialog {
  width: auto;
  max-width: 80%;
}

#info2 .modal-header h2 {
  margin: 0;
}


label.checkbox {
  cursor: pointer;
}

label.checkbox input {
  display: none;
}

label.checkbox span {
  display: inline-block;
  margin-left: 25px;

}


label.checkbox span::before {
  content: '\f00c';
  /* Font Awesome ikonka (fa-check) */
  font-family: 'Font Awesome 5 Free';
  /* Nutné pro Font Awesome */
  font-weight: 900;
  /* Nastavíme tučnost ikon */
  display: inline-block;
  color: #004990;
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin: 0 0 0 -25px;
  position: absolute;
  content: '';
  transition: all 0.2s ease;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

label.checkbox input:checked+span::before {
  content: '\f00c';
  background: #004990;
  color: #fff;
}

#unloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f8fafc;
  z-index: 99999999;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

#unloader.active {
  opacity: 1;
  visibility: visible;

}



#unloader .lds-ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.text-red {
  color: #e4142d !important;
}

.pointer {
  cursor: pointer;
}


.nav.nav-pills li {
  margin: 10px 5px;
  padding: 10px 15px;
  background: #f0f0f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all ease 0.5s;
}

.nav.nav-pills li:first-child {
  margin-left: 0;
}

.nav.nav-pills li:hover {
  background: #ddd;
}

.nav.nav-pills li.active {
  background: #203960;
  color: #fff;
}


.input-wrapper {
  position: relative;
  display: block;
}

.clear-input {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  color: #999;
  user-select: none;
  z-index: 10;
}

.select-2+.clear-input {
  margin-top: 15px;
  margin-right: 10px;

}

.clear-input:hover {
  color: red;
}

input[type="text"],
input[type="date"],
select {
  padding-right: 20px;
}

select {
  visibility: visible;
}

.box-info {
  background-color: #d2e2f3 !important;
  border-color: #2f3e4e;
}

.box-alert {
  background-color: #f0dbaf !important;
  border-color: #866a1c;
}