.companies-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 40px;
}

.companies-list.grid-view {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
}

.company-item {
	display: flex;
	flex-direction: column;
	border: 1px solid #ccc;
	padding: 1rem;
	border-radius: 8px;
	transition: all 0.3s ease;
	width: 100%;
	background-color: white;
}

.grid-view .company-item {
	width: calc(33.333% - 1rem);
}

.company-header {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
	gap: 1rem;
}

.company-logo {
	width: 64px;
	height: 64px;
	object-fit: contain;
}

.company-name {
	font-weight: bold;
	font-size: 1.2rem;
}

.company-details {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 1rem;
}

.company-detail {
	font-size: 14px;
}

.company-detail span {
	font-weight: bold;
	margin-right: 0.5rem;
	display: inline-block;
	min-width: 90px;
}
.company-detail img{
	width: 32px;
	max-height: 32px;
	margin-right: 5px;
}

.companies-list.list-view{
	gap: 0;
}
.companies-list.list-view .company-details {
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	text-align: center;
}
.companies-list.list-view .base{
	display:block;
}
.companies-list.list-view .extended{
	display:none;
}
.companies-list.list-view .company-item{
	flex-direction: row;
	padding: 5px 10px;
	border-radius: unset;
	border: unset;
	border-bottom: 1px solid #ccc;
}
.companies-list.list-view .company-details{
	display: flex;
}
.companies-list.list-view .company-detail{
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 0;
	min-width: 50px;
}

.companies-list.list-view .company-item:nth-child(odd) {
	background-color: #f0f0f0;
}

.companies-list.list-view .company-item:nth-child(even) {
	background-color: #ffffff;
}
.companies-list.list-view .company-item:hover{
	background-color: #c0e2ec;
}
.companies-list.list-view .companies-list-header{
	height: 60px;
	font-size: 16px;
	font-weight: bold;
}
.companies-list.list-view .companies-list-header .company-detail{
	font-size: 16px;

}
.companies-list.list-view .companies-list-header:nth-child(odd) {
	background-color: #ffffff;
}

.companies-list.list-view .companies-list-header:nth-child(even) {
	background-color: #ffffff;
}
.companies-list.list-view .companies-list-header:hover{
	background-color: #ffffff;
}
.companies-list.grid-view .company-logo{
	width: 128px;
	height: 128px;
}

.companies-list.list-view .company-item .company-header{
	width: 40%;
	margin-bottom:unset;
}
.companies-list.list-view .company-item .company-details{
	width: 70%;
	align-items: center;
}
.companies-list.list-view .company-item .company-detail span{
	display:none;
}

.companies-list.grid-view .company-details {
	grid-template-columns: 1fr 1fr;
}
.companies-list.grid-view .base{
	display:block;
}
.companies-list.grid-view .extended{
	display:block;
}
.companies-list.grid-view i.extended{
	display: inline;
}
.companies-sort{
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}
.companies-sort-list{
	display: flex;
	flex-wrap:wrap;
	gap: 1rem;
}
.companies-sort-item {
	cursor: pointer;
	padding: 0.5rem 1rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
	background-color: #f9f9f9;
	transition: background-color 0.2s;
}

.companies-sort-item:hover {
	background-color: #eee;
}

.companies-sort-item.active {
	background-color: #368aa4;
	color: white;
	border-color: #368aa4;
}

.companies-sort-item span::before {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	border-style: solid;
}

.companies-sort-item.asc span::before {
	border-width: 0 5px 6px 5px;
	border-color: transparent transparent #000 transparent;
}

.companies-sort-item.desc span::before {
	border-width: 6px 5px 0 5px;
	border-color: #000 transparent transparent transparent;
}

.companies-sort-item.active.asc span::before {
	border-color: transparent transparent white transparent;
}

.companies-sort-item.active.desc span::before {
	border-color: white transparent transparent transparent;
}

.companies-filter {
	padding: 1rem;
	border: 1px solid #ccc;
	border-radius: 10px;
	margin-bottom: 2rem;
	background: #f9f9f9;
}
.filter-group-range{
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.filter-group {
	flex: 1 1 200px;
	display: flex;
	flex-direction: column;
}

.filter-group label {
	font-weight: bold;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

.filter-group select,
.filter-group input[type="number"] {
	padding: 0.4rem 0.6rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 0.95rem;
}
.filter-group input[type="number"] {
	width: 120px;
	text-align: center;
}
.filter-range {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.filter-range input[type="range"] {
	width: 177px;
	appearance: none;
	height: 4px;
	background: #ddd;
	border-radius: 2px;
	outline: none;
}

.filter-range input[type="range"]::-webkit-slider-thumb {
	appearance: none;
	width: 12px;
	height: 12px;
	background: #368aa4;
	border-radius: 50%;
	cursor: pointer;
}

.filter-actions {
	flex-basis: 100%;
	display: flex;
	justify-content: flex-end;
	margin-top: 1rem;
	gap:20px;
}



.companies-switch{
	display: flex;
	align-items: center;
}
.companies-switch-btn img{
	width:24px;
	height:24px;
}
.companies-switch-btn{
	padding: 8px 10px;
	cursor: pointer;
	display: inline-block;
	position: relative;
	border: 2px solid #368aa4;
	box-sizing: border-box;
	line-height: 28px;
	text-align: center;
	color: #368aa4;
	text-decoration: none;
}
.companies-switch-btn:hover{
	background-color: #368aa4;
}
.companies-switch-btn:first-child{
	border-radius: 16px 0px 0px 16px;
	border-right-width: unset;
	border-right-style: unset;
	border-right-color: unset;
}
.companies-switch-btn:last-child{
	border-radius: 0 16px 16px 0;
}
.companies-switch-btn.selected{
	background-color: #368aa4;
}
.company-header .sub-sector{
	font-size: 10px;
	font-weight: normal;
	display: none;
}
.companies-list.list-view .company-item .company-details.left{
	width: auto;
	margin-right: 20px;
}
.show-570{
	display: none;
}
.companies-list.list-view .company-item .company-header span.hide-570,
.companies-list.list-view .company-item .company-detail span.hide-570{
	display: inline;
}
.companies-list.grid-view .company-details.left{
	display: none;
}
.companies-list.grid-view .company-details{
	grid-template-columns: 1fr;
}
@media(max-width: 1400px){
	.filter-range input[type="range"] {
		width: 132px;
	}
}
@media(max-width: 1200px){
	.filter-range{
		justify-content: center;
	}
	.filter-range input[type="range"] {
		width: 114px;
	}
	.filter-group input[type="number"] {
		width: 100px;
	}

	.companies-list.grid-view .company-header{
		flex-direction: column;
		align-items: flex-start;
	}
	.companies-list.grid-view .company-logo-link{
		display: flex;
		justify-content: center;
		width: 100%;
	}
}

@media(max-width: 990px){
	.filter-range input[type="range"] {
		width: unset;
		flex:1;
	}
	.filter-group input[type="number"] {
		width: 120px;
	}
	.companies-list.list-view .companies-list-header .company-detail{
		font-size: 14px;
	}
	.companies-list.grid-view .company-item{
		width: calc(50% - 1rem);
	}
}

@media(max-width: 770px){
	.filter-range{
		flex-wrap: wrap;
	}
	.filter-range input[type="range"] {
		width: 48%;
		order:2;
	}
	.filter-group input[type="number"]{
		order:1;
		margin-bottom: 25px;
		width: 48%;
	}
	.companies-sort{
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
	.list-view .company-name{
		font-size: 14px;
	}
	.company-logo{
		width: 32px;
		height: 32px;
	}
	.list-view .company-detail{
		font-size: 12px;
	}
	.companies-list.list-view .companies-list-header .company-detail{
		font-size: 12px;
	}
	.companies-list.list-view .company-item .company-header{
		font-size: 14px;
	}

	.companies-list.list-view .base.hide-770,
	.companies-list.list-view .company-detail.hide{
		display: none;
	}
	.list-view .company-header .sub-sector{
		display: inline;
	}
}

@media(max-width: 570px){
	.filter-range{
		min-width: 265px;
	}
	.filter-range input[type="range"] {
		width: 49%;
	}
	.filter-group input[type="number"]{
		width: 49%;
	}
	.list-view .company-detail{
		font-size: 11px;
	}
	.companies-list.list-view .company-item .company-details.left{
		margin-right: 5px;
		min-width: 20px;
	}
	.companies-list.list-view .company-item .company-header{
		font-size: 11px;
		width:25%;
		min-width: 100px;
	}
	.companies-list.list-view .companies-list-header .company-detail{
		font-size: 11px;
	}
	.companies-list.list-view .company-detail.hide-570,
	.companies-list.list-view .company-item .company-header span.hide-570,
	.companies-list.list-view .company-item .company-detail span.hide-570{
		display:none;
	}
	.companies-list.list-view .company-item .company-detail span.show-570{
		display: inline;
	}
	.companies-list.list-view .company-details{
		gap: 0.1rem;
	}
	.companies-list.list-view  .company-logo-link{
		display:none;
	}
	.companies-list.grid-view .company-item{
		width: 100%;
	}
	.companies-list.grid-view .company-details{
		grid-template-columns: 1fr 1fr;
	}
	.companies-list.grid-view .company-header{
		flex-direction: row;
		align-items: center;
	}
	.companies-list.grid-view .company-logo-link{
		display: block;
		width: unset;
	}
	.companies-list.grid-view .company-logo{
		width: 96px;
		height: 96px;
	}
	.companies-list.grid-view .company-details{
		grid-template-columns: 1fr;
	}
}

@media(max-width: 480px){
	.filter-range input[type="range"] {
		width: 48%;
	}
	.filter-group input[type="number"]{
		width: 48%;
	}
}
@media(max-width: 410px){

}

