.user-page-with-menu{
  margin-top: 25px;
}

.user-page-without-menu{
  margin-top: 60px;
}

.user-page-block-img,
.agent-list-block-img{
  box-shadow: 0 0 0 1px #DBDBDB !important;
  border-radius: 50% !important;
  display: inline-block !important;
  overflow: hidden !important;
  vertical-align: middle !important;
  position: relative!important;
  float: left;
  margin-right: 15px;
  margin-bottom: 15px;
}

.agent-list-block-img{
  width: 120px !important;
  height: 120px !important;
}

.agent-list-block-img > a {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: pointer;
}

.user-page-block-img{
  width: 200px !important;
  height: 200px !important;
}

.user-page-img,
.agent-list-img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.user-page-block-img .user-page-text-on-img{
  position: absolute;
  top: 45%;
  left: 10%;
  background-color: #ffffff;
  padding: 5px;
  display: none;
}

.user-page-block-img:hover .user-page-text-on-img{
  display: block;
}

.user-page-text-empty-img{
  position: absolute;
  top: 45%;
  left: 9%;
}

.user-page-text-on-img svg,
.user-page-text-empty-img svg{
  fill: #337ab7;
  margin-top: -7px;
}

.agent-list-block-text{
  display: table-cell;
  vertical-align: middle;
  height: 120px;
}

/* Agent catalogue: legacy proportions adapted to Bootstrap 5. */
.agent-page {
  /* The global main navigation is absolutely positioned and 50px high. */
  padding-top: 60px;
}

.agent-filter-button {
  padding: .375rem .75rem;
  color: #212529;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: .5rem;
  text-align: left;
}

.agent-mobile-filter-toggle {
  color: #337ab7;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: .5rem;
}

.agent-mobile-filter-toggle:hover,
.agent-mobile-filter-toggle:focus {
  color: #23527c;
  background: #f5f5f5;
  border-color: #d9d9d9;
}

.agent-mobile-filter-toggle svg {
  width: 24px;
  height: 24px;
  margin-right: 5px;
  fill: currentColor;
}

.agent-mobile-filter {
  position: fixed;
  inset: 0;
  z-index: 1100;
  width: 100%;
  height: 100%;
  max-height: 100%;
  color: #333;
  background: #fff;
}

.agent-mobile-filter.show {
  display: flex;
  flex-direction: column;
}

.agent-mobile-filter-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 18px;
}

.agent-mobile-filter-close {
  padding: 5px;
  color: #777;
  border: 0;
}

.agent-mobile-filter-close svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.agent-mobile-filter-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 16px 110px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.agent-mobile-filter-section {
  padding-bottom: 12px;
}

.agent-mobile-filter-section h2 {
  margin: 0;
  padding: 10px 0 5px;
  color: #6c757d;
  font-size: 14px;
  font-weight: 400;
}

.agent-mobile-filter-section ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-mobile-filter-section li {
  min-width: 0;
}

.agent-mobile-filter-section a {
  display: block;
  padding: 7px 10px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-mobile-filter-section a:hover,
.agent-mobile-filter-section a:focus {
  background: #e8e9ea;
}

.agent-mobile-filter-action {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 32px 16px calc(16px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .12);
}

.agent-filter-button:hover,
.agent-filter-button:focus,
.agent-filter-group.show .agent-filter-button {
  color: #212529;
  background: #fff;
  border-color: #333;
}

.agent-filter-menu {
  min-width: 220px;
  max-height: 420px;
  overflow-y: auto;
  padding: 5px 0;
  border: 0;
  border-radius: .5rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}

.agent-filter-menu .dropdown-item {
  padding: 5px 10px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-vip-list {
  padding-top: 15px;
  padding-bottom: 0;
}

.agent-vip-item {
  min-height: 150px;
}

.agent-result-item {
  min-height: 160px;
  padding-top: 20px;
  padding-bottom: 20px;
  align-items: center;
}

.agent-photo-column {
  position: relative;
}

.agent-photo-column .adv-hot-search {
  top: -8px;
  left: 12px;
  z-index: 2;
  pointer-events: none;
}

.agent-detail-arrow {
  display: inline-flex;
  padding: 12px;
}

.agent-detail-arrow svg {
  width: 28px;
  height: 28px;
  fill: #337ab7;
}

.agent-detail-arrow:hover svg {
  fill: #23527c;
}

.agent-pagination .pagination {
  flex-wrap: wrap;
  gap: 5px;
}

.agent-pagination .list__pagination-custom .page-link {
  margin-right: 0;
  color: #337ab7;
  background-color: #fff;
}

.agent-pagination .list__pagination-custom .page-link:hover,
.agent-pagination .list__pagination-custom .page-link:focus {
  color: #23527c;
  background-color: #f5f5f5;
}

.agent-pagination .list__pagination-custom .active .page-link {
  color: #337ab7;
  background-color: #fff;
  opacity: .55;
}

.agent-pagination .pagination-ellipsis {
  width: 28px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#application_userbundle_userimagetype_file{
  height: 33.6px;
}

@media (max-width: 768px) {
  .add-menu-agent-list.add-menu-obj-detail .nav.navbar-nav li{
    width: 22%;
  }

  .user-page-with-menu{
    margin-top: 75px;
  }

  .agent-result-item {
    padding-top: 15px;
    padding-bottom: 15px;
  }
}

@media (max-width: 575.98px) {
  .agent-page {
    padding-top: 65px;
  }

  .agent-result-item .agent-list-block-img,
  .agent-vip-item .agent-list-block-img {
    float: none;
  }

  .agent-result-item .agent-list-block-text,
  .agent-vip-item .agent-list-block-text {
    display: block;
    height: auto;
  }

  .agent-description-column {
    margin-top: 10px;
  }
}
