body {
  background-color: #f2f2f2;
}

/* Bootstrap 4.6 added a focus box-shadow; the old 4.0-beta site had none on inputs. */
.form-control:focus,
.custom-select:focus,
.btn:focus,
.btn.focus,
.btn-success:focus,
.btn-success.focus,
.btn-link:focus,
.btn-link.focus,
.btn:not(:disabled):not(.disabled):active:focus,
.btn-success:not(:disabled):not(.disabled):active:focus {
  outline: none;
  box-shadow: none;
}
.p-relative {
  position: relative;
}
.p-absolute {
  position: absolute;
}
.font-size-none {
  font-size: 0;
}
#additionalSearchBtn {
  padding: 0;
  margin: 0;
  padding-bottom: 5px;
}
#additionalSearchFilters {
  padding-bottom: 23px;
  overscroll-behavior: contain;
}
#additionalSearchFilters .form-row > [class*="col-"] {
  min-width: 0;
}
#additionalSearchFilters .form-control,
#additionalSearchFilters .custom-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#searchInputGroup {
  display: inline-flex;
  align-items: stretch;
}
#searchInputGroup .form-control {
  height: 42px;
}
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #ffffff;
  border-bottom: 3px solid #2b77a1;
}
header .header-info.simple {
  padding-bottom: 23px;
}
header .header-info .logo {
  width: 100%;
  height: 70px;
  background-image: url(images/logo_small.png);
  background-position: center left;
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
  text-decoration: none;
  padding-left: 150px;
  padding-top: 30px;
  color: #5a5a5a;
  font-weight: 500;
  font-size: 1.5rem;
}
header .main-search-line {
  width: 100%;
  padding-top: 20px;
  background-color: #ffffff;
  z-index: 5;
}
header .main-search-line .btn.search {
  width: 50px;
  height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  border: none;
  background-image: url(images/search_icon.svg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 24px;
}
header .main-search-line .sub-search {
  top: calc(100% - 2px);
  left: 0;
  width: calc(100% - 49px);
  height: 240px;
  background-color: #ffffff;
  z-index: 5;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}
header .main-search-line .sub-search .sub-search-line {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  background-color: #ffffff;
  transition: 0.1s;
  padding: 5px 30px;
  overflow: hidden;
  z-index: 6;
  cursor: pointer;
}
header .main-search-line .sub-search .sub-search-line:hover {
  background-color: #f1f8ff;
}
header .main-search-line .sub-search .sub-search-line:last-child {
  border-bottom: none;
}
header .main-search-line .sub-search .sub-search-line p {
  margin: 0;
}
header .main-search-line .sub-search .sub-search-line .partner {
  font-size: 0.9rem;
  font-weight: 600;
}
header .main-search-line .sub-search .sub-search-line .contract {
  font-size: 0.8rem;
}
header .main-search-line .sub-search .sub-search-line .subdivision {
  font-size: 0.7rem;
  color: #808080;
  font-style: italic;
}
@keyframes search-loader-spin {
  to {
    transform: rotate(360deg);
  }
}
.loader::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 3px solid rgba(43, 119, 161, 0.18);
  border-top-color: #2b77a1;
  border-radius: 50%;
  animation: search-loader-spin 0.7s linear infinite;
}
header .main-search-line .sub-search.load {
  overflow: hidden !important;
}
header .main-search-line .sub-search.load > .loader,
.body-content .docs.load > .loader {
  display: flex;
  align-items: center;
  justify-content: center;
}
header .main-search-line .sub-search .loader {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: none;
  background-color: rgba(0, 0, 0, 0.05);
}
.body-content .docs {
  margin: 20px 0;
}
.body-content .docs.load {
  min-height: 180px;
}
.body-content .docs .loader {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 180px;
  display: none;
}
.body-content .docs .doc-search-line {
  margin: 8px 0;
}
.body-content .docs .doc-search-line p {
  margin: 0;
}
.body-content .docs .doc-search-line .datetime {
  width: 95px;
  display: inline-block;
  vertical-align: top;
  line-height: 1.2;
  text-align: right;
  padding-right: 15px;
}
.body-content .docs .doc-search-line .datetime .date {
  font-size: 0.9rem;
  color: #323538;
  font-weight: 500;
}
.body-content .docs .doc-search-line .datetime .time {
  font-size: 0.8rem;
  color: #47494c;
}
.body-content .docs .doc-search-line .doc {
  width: calc(100% - 95px);
  display: inline-block;
  vertical-align: top;
  background-color: #fff;
  padding: 5px 10px;
  font-size: 1rem;
  border-left: 3px solid #a75a5a;
  border-radius: 0.25rem;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  transition: 0.1s;
  text-decoration: none;
  color: #000;
}
.body-content .docs .doc-search-line .doc:hover {
  background-color: #f1f8ff;
}
.body-content .docs .doc-search-line .doc.non-result {
  width: 100%;
  color: #4c4c4c;
  padding: 15px 10px;
  border-left-color: #42a742;
}
.body-content .docs .doc-search-line.custom .doc {
  width: 100%;
}
.body-content .docs .doc-search-line.custom .doc:hover,
.body-content .docs .doc-search-line .doc.non-result:hover {
  background-color: #fff;
}
.body-content .docs .doc-search-line .doc .doc-name {
  font-weight: 600;
  font-size: 1.03rem;
  margin-bottom: 3px;
}
.body-content .docs .doc-search-line .doc .contract-partner {
  font-size: 0.8rem;
}
.body-content .docs .doc-search-line .doc .subdivision {
  font-size: 0.75rem;
  font-style: italic;
  color: #808080;
}
.body-content .docs .doc-search-line .download-link {
  margin-top: 20px;
  font-size: 0.95rem;
  display: inline-block;
  padding-left: 25px;
  background-image: url(images/download.svg);
  background-size: 18px;
  background-position: center left;
  background-repeat: no-repeat;
  font-weight: 500;
  color: #0f75f0;
}

@media (max-width: 767.98px) {
  #additionalSearchFilters .card-body {
    padding: 0.75rem;
  }

  #additionalSearchFilters .form-group {
    margin-bottom: 0.65rem;
  }

  #additionalSearchFilters .col-form-label {
    padding-bottom: 0.1rem;
  }

  #additionalSearchFilters.show {
    max-height: calc(100vh - 150px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}
