.filter-section.active .filter-section__body {
	display: block;
}
.filter-section .filter-close {
	display: none;
}

.flexColumns {
	display: none;
	position: fixed;
}
.flexColumns.shown {
	display: flex;
}
.flexColumns .ItemsCont {
	display: none;
}
.flexColumns.shown .ItemsCont:first-child {
	display: flex;
}

.flexColumns .ItemsCont.shown:last-child {
	display: flex;
}

.flexColumns .ItemsList-2-lvl {
	display: none;
}
.flexColumns .ItemsList-2-lvl.active {
	display: block;
}
.catalog__filter-clear {
	display: none;
}
.catalog__filter-clear.shown {
	display: block;
}
#btn_keyword_close {
	display: none;
}
table.grid_account th {
	cursor: inherit;
}
table.grid_account th.sortable {
	cursor: pointer;
}
.catalog__filter-list:not(.showAll) .catalog__filter-item:nth-child(n + 11) {
	display: none;
}
.catalog__filter-list li.showAll {
	cursor: pointer;
}

.filter-section-block .ItemsList .checkbox__text, .filter-section-block .ItemsList .checkbox__label {
	padding-top: 0px;
	padding-bottom: 0px;
}

.filter-section-block .flexColumns {
	margin: 0;
}


.filter-section-block .ItemsList li {
	height: auto;
}

.filter-section .added-checkers:not(.showAll) li:nth-child(n + 8) {
	display: none;
}

#grid_directory {
	position: relative;
	overflow-y: auto;
	height: calc(100vh - 220px);
	box-sizing: border-box;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
}

#grid_prod_table {
	position: relative;
}
#grid_prod_table thead {
	position: sticky;
	top: 0;
}
#grid_prod_table th {
	display: flex;
	position: sticky;
	top: 0;
}
/*#grid_prod_table thead tr {
	display: table-row;
}*/
.pagination {
	position: sticky;
    bottom: 0;
    z-index: 9;
    border-top: 1px solid #DADCE0;
}

#frm_filters {
	overflow-y: auto;
	overflow-x: hidden;
	height: calc(100vh - 220px);
}
.feature-icon-info {
	position: relative;
}
.feature-tooltip {
	position: fixed;
	top: 300px;
}


/* MOBILE MENU */

.filters-panel {
  display: none;
}
.filters-panel.shown {
  display: block;
}

/* Скрывать рейтинг, если НЕТ ни одной полной или половинной звезды */
.company-rating:not(:has(.star_f, .star_h)) {
    display: none;
}



@media (max-width: 768px) {
  .filters-panel {
    position: fixed;
    top: 60px; /* ниже хедера */
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 200;
    overflow-y: auto;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .directory-header {
  	display: none;
  }

  .directory-header-wrapper {
    padding: 0;
    margin: 0 auto 8px;
  }

  .directory-header-wrapper .chips-wrap {
    justify-content: center;
  }

  .directory-header-wrapper .chips-wrap .catalog__filter {
    gap: 0;
  }

  .catalog__filter-result {
    font-size: 18px;
    letter-spacing: .75px;
  }

  .filters-title {
  	display: none;
  }

  .filter-header-title {
    font-size: 18px;
  }

  .filter__btn-mob {
    display: inline-flex; /* поменяли с block */
    align-items: center;
    justify-content: center;
    gap: 8px; /* расстояние между текстом и стрелкой */
    padding: 16px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    width: 100%;
    font-size: 22px;
    line-height: 24px;
    color: #202124;
    background-color: #fff;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 8px;
    margin-top: 12px;
    text-align: center;
  }

  .filter__btn-mob::after {
    content: "▼";
    font-size: 16px;
    color: #202124;
    line-height: 1;
  }
  .flexColumns {
    position: fixed;
    top: 60px; /* или высота хедера */
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    flex-direction: column;
    background-color: #fff;
    box-sizing: border-box;
    z-index: 500;
    overflow: hidden;
    border-radius: 0;
  }

  .filters-panel__close {
    display: block;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 50%;
    cursor: pointer;
  }

   .filters-panel__close.filters-panel__close-main {
   		z-index: 500;
   	}

   	   .filters-panel__close.filters-panel__close-left {
   		z-index: 600;
   		top: 18px;
   		right: 18px;
   	}

   	   .filters-panel__close.filters-panel__close-right {
   		z-index: 700;
   		top: 10px;
   		right: 26px;
   	}


  .filters-panel__close::before,
  .filters-panel__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background-color: #676767;
    transform-origin: center;
  }

  	#list_right_filter, #list_left_filter, .ItemsCont {
  		position: relative;
	}

  	.filters-panel__close::before {
    	transform: translate(-50%, -50%) rotate(45deg);
  	}

  	.filters-panel__close::after {
    	transform: translate(-50%, -50%) rotate(-45deg);
  	}

  	.ItemsCont {
    	flex: 1;
    	padding: 8px;
  	}

  	#list_left_filter, #list_right_filter {
    	width: 100%;
    	min-width: 0;
    	box-sizing: border-box;
    	padding: 18px 0 36px;
    	max-height: 92vh;
    	background: #ffffff;
        z-index: 550;
  	}


	#list_right_filter:not(.shown) {
  		display: none !important;
	}

	#list_right_filter.shown {
  		display: block;
  		position: absolute;
        background: #ffffff;
        height: 100vh;
        z-index: 650;
	}

	#list_right_filter:not(.shown) .ItemsList-2-lvl {
 	 	display: none !important;
	}

	.flexColumns .ItemsCont:last-child {
    	border-top: none;
	}

	.directory-header-wrapper .chips-wrap .catalog__filter {
        padding: 10px;
    }

    .catalog__filter-item {
    	padding-right: 0;
    }

    .catalog__filter-item .closeBtn {
    	display: none;
    }

    .feature-tooltip {
	    left: 185px;
    	right: -145px;
    }

    .dv_popup {
	    z-index: 200 !important;
	    width: 312px !important;
	}
}


@media (min-width: 768px) {

  .filters-panel {
    display: block !important;
  }

}