.search-field {
  display: none;
  position: absolute;
  width: 400px;
  background-color: #fff;
  z-index: 1000;
  margin-top: 5px;
  overflow-y: auto;
}
.dropdown-items {
  padding: 12px 0px 16px;
}
.show {
  display: block;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}
.overlay.active {
  display: block;
}
.bold {
  font-weight: bold;
}

.name {
  color: #a4a4a4;
  font-size: 13px;
  margin: 18px 0px 2px 15px;
  display: block;
  line-height: 15px;
}
.item {
  color: black;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 4px 10px 4px 16px;
  line-height: 17px;
}
.item:hover,
.item.active {
  text-decoration: underline;
  background-color: #f8f8f8;
  color: #ff0000;
}
.item.suggestion {
  white-space: pre;
}
.icon {
  margin-right: 8px;
  width: 15px;
  height: 15px;
  object-fit: contain;
}
.pr-photo {
  margin-right: 8px;
  margin-left: -2px;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
}

.nothing-found p {
  text-align: center;
  font-size: 22px;
}
.search-all {
  text-align: center;
  margin: 15px 0px;
  display: none;
}
.search-bar-button {
  width: 370px;
  height: 35px !important;
  line-height: 35px !important;
}
#head-bottom #search-input {
  outline: none;
}
/*Responziv*/
@media screen and (max-width: 721px) {
  .search-field {
    width: 100%;
    height: auto;
    margin-left: 0px;
    margin-top: 0px;
    line-height: 1 !important;
    border-width: 0px;
    border-radius: 0px;
    border-top: solid #eeeeee 1px;
    top: 100%;
    left: 0;
  }
  #search.open {
    background-color: #fff !important;
  }
  .item {
    line-height: 20px;
  }
  .name {
    margin-top: 18px;
  }
  .sugg-type {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .overlay.active {
    display: none;
  }
  .item.suggestion {
    white-space: pre;
    padding: 7px !important;
    border-radius: 5px;
    margin-bottom: 8px;
    border: 1px solid #dddddd;
    margin: 0px 10px 10px 0px;
  }
  .type.sugg-type {
    padding-left: 15px;
  }
  .item.suggestion:hover {
    background-color: white;
  }
  #head-bottom .search-button {
    /* display: none; */
    margin-right: 80px;
  }
  #head-bottom #search-input {
    margin-right: 45px;
  }
  .hledat-click.open {
    background-color: #fff;
  }
  span.close-search {
    background-color: white;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    text-decoration: underline;
  }
  #head-bottom #search.open {
    display: flex !important;
    align-items: center;
  }
  #head-bottom #search-input:focus {
    outline: none !important;
  }
  .dropdown-items {
    padding: 15px 0px 0px;
  }
  .search-bar-button {
    width: 100%;
  }
  .search-all {
    padding: 0px 15px;
    display: block;
  }
}


.uroven1, .uroven2, .uroven3, .uroven4 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid #d6d6d6;
  box-shadow: 0 2px 12px 0 #d6d6d6;
}

.uroven1 h1 { font-size: 24px; font-weight: normal;padding: 0px; }
.uroven2 h2 { font-size: 20px; font-weight: normal;padding: 0px; margin-top: 32px; margin-bottom: 16px; }
.uroven3 h3 { font-size: 18px; font-weight: normal;padding: 0px; margin-top:28px;}
.uroven4 h4 { font-size: 16px; font-weight: normal;padding: 0px; padding-left: 60px;}


.zam-uroven1 { border: none;box-shadow: none;}
.zam-uroven2 { width: 98%;border: none;box-shadow: none;}
.zam-uroven3 { width: 98%;margin-top:20px;}
.zam-uroven4 {
  width: 98%;
  border: none;
  box-shadow: none;
}
.zam-cont{
  width: 100%;
  display: flex;
  justify-content: center;
}

.zam-tymy {
  width: 950px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tym-skupina {
  width: 100%;
}

.tym-skupina .zamestnanci {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.tym-skupina h4 {
  margin: 0 0 15px 4px;
  font-weight: normal;
  font-size: 14px;
}

/*Vyhledávání*/
.search-results .results-column .results-list {
  list-style: none;
  padding-left: 15px;
  width: fit-content;
}
.search-results .search-suggestion {
  padding-left: 15px;
}
.results-list .result-item {
  padding: 2px 0;
  line-height: 1.4;
}

.results-list .result-item .result-link {
  display: flex;
  align-items: center;
  padding: 2px 0;
}

.results-list .result-item .result-link .icon{
  margin: 0px 8px 0px 4px;
  flex-shrink: 0;
}
.results-list .result-item .result-link .icon-folder{
  margin-bottom: 2px;
}


.results-list .result-item .result-link span {
  line-height: 1.4;
}

@media (max-width: 450px) {
  .zamestnanci, .uroven1, .uroven2, .uroven3, .uroven4, .uroven1 h1, .uroven2 h2, .uroven3 h3, .uroven4 h4 {
    padding: 0px!important;
  }

  .uroven3 {
    margin: 10px 6px!important;
  }
  .zamestnanci{
    width: 100%!important;
    justify-content: center!important;
  }
  
  .zam-uroven4 {
    margin: 0px!important;
    width: 100%!important;
  }
  .uroven4 h4 {
    padding: 0px!important;
  }
  .uroven1 h1, .uroven2 h2, .uroven3 h3, .uroven4 h4{
    margin-left: 8px!important;
  }
  .zam-tel{
    text-decoration: underline!important;
  }
  
  .zam-tymy {
    gap: 15px!important;
    padding-left: 8px!important;
  }
  
  .tym-skupina {
    margin: 0!important;
  }
  
  .tym-skupina h4 {
    margin: 0 0 10px 4px!important;
    font-size: 13px!important;
  }
}

.loading-overlay {
  position: relative;
}

.loading-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.loading-overlay::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 101;
}
