.offers__head .offers__row{
  justify-content: flex-start;
}
.offers__row .btn{
  margin-bottom: 0;
  padding: 12px 20px;
}
.offers__row .tabs__nav .list .option{
  padding-top: 10px;
  padding-bottom: 10px;
}
.filter-btn.filter-challenges{
  display: none;
}
.offers__row .tabs__nav{
  border-left: 1px solid #D4D6D9 !important;
  padding-left: 20px;
}
.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
    display: flex;
  }

.table-wrapper{
  overflow-x: auto;
  height: fit-content;
}  
.table-wrapper::-webkit-scrollbar {
  height: 6px;
  width: 220px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 11px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #a6a6a6;
}
.table-wrapper table{
  border-spacing: 0 20px;
}
.table-wrapper table td:nth-child(1),
.table-wrapper table th:nth-child(1){
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.table-wrapper table td:last-child,
.table-wrapper table th:last-child{
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.table-wrapper table.challenges-table td:last-child{
  position: sticky;
  right: 0;
  z-index: 1;
  background: linear-gradient(270deg, #F6F6F6 65.83%, rgba(246, 246, 246, 0.00) 111.52%);
}
.table-wrapper table.challenges-table td:last-child > div{border-left:0;}
.table-wrapper table td > div{
  padding:20px;
  display: flex;
    min-height: 115px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.table-wrapper table td:not(:first-child) > div{
  border-left: 1px solid rgba(0, 0, 0, 0.12);
}
.table-wrapper table th .th-container{
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.table-wrapper table th:not(:first-child) > .th-container{
  border-left: 1px solid #757A85;
  padding-left: 20px;
  padding-right: 20px;
 
}
.table-wrapper table th[data-sort="years-operation"] > .th-container{
  line-height: 1;
  text-align: left;
}
.table-wrapper table thead{
  border-radius: 8px;
  background: #333;
}
td.assets-cell,
td.platform-cell{
  width: 16%;
}
td.trust-pilot-cell,
td.country-cell{
  width: 10%;
}
.firms-table,
.challenges-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}


.table-wrapper table th,
.table-wrapper table th {
  padding: 10px 0;
  text-align: center;
  font-weight: 600;
  color: #fff;
  position: relative;
  white-space: nowrap;
  height: 74px;
  font-size: 14px;
}

.table-wrapper table th.sortable,
.table-wrapper table th.sortable {
  cursor: pointer;
  user-select: none;
}

.table-wrapper table th.sortable:hover,
.table-wrapper table th.sortable:hover {
  color: var(--orange);
}

.sort-arrows {
  display: inline-flex;
    flex-direction: column;
    margin-left: 10px;
}

.arrow {
  border-style: solid;
  border-width: 0 1px 1px 0;
  display: inline-block;
  padding: 2px;
  width: 2px;
  height: 2px;
}

.arrow.up {
  transform: rotate(-135deg);
  margin-bottom: 1px;
}

.arrow.down {
  transform: rotate(45deg);
}
th.sortable.asc .arrow.up {
  border-bottom-color: #ff6b00;
}

th.sortable.desc .arrow.down {
  border-top-color: #ff6b00;
}

.firms-table td,
.challenges-table td {
  vertical-align: middle;
  text-align: center;
  background: #F5F5F5;
  padding: 10px 0;
}

.firms-table tbody tr:last-child td,
.challenges-table tbody tr:last-child td {
  border-bottom: none;
}

.firms-table tbody tr:hover,
.challenges-table tbody tr:hover {
  background-color: #f9f9f9;
}
.platform-logo-list{
  padding: 0;
  list-style: none;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
}
.platform-logo-list img{
  width:25px;
  height:25px;
}
/* Specific cell styling */
.firm-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.firm-info h6 {
  margin: 10px 0 0 0;
  font-weight: 600;
  background: none;
  line-height: 1;
  font-size: 16px;
}

.firm-logo {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.firm-logo img {
  max-width: 100%;
  max-height: 100%;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.tag {
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 8px;
  background: #EDEDED;
  font-weight: 600;
  line-height: 1.1;
}

.action-btn {
  padding: 8px 16px;
  white-space: nowrap;
}
.trust-pilot-rating{
  border-radius: 16px;
  border: 1px solid #D4D6D9;
  background: #fff;
  padding: 3px 8px;
  min-width: 40px;
}

.years-circle-container {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

.years-circle-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.years-circle-bg svg {
  transform: rotate(-90deg);
}

.years-circle-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.years-number {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.country-with-flag{
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}


.allocation-container {
  position: relative;
  width: 100%;
}

.allocation-value {
  font-weight: bold;
  margin-bottom: 5px;
}

.allocation-bar-container {
  height: 6px;
  background-color: #C0C2C7;
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
}

.allocation-bar {
  height: 100%;
  border-radius: 3px;
  background-color: #FF6B00; /* Changed to single color #FF6B00 */
}

/* Target list styling */
.target-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.target-item {
  font-size: 13px;
}

/* Price styling */
.price-block {
  display: flex;
  flex-direction: column;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
}

.new-price {
  color: #e74c3c;
  font-weight: bold;
}



.filter-btn{
  margin-bottom: 30px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.filter-section {
    margin-bottom: 20px;
    border-radius: 8px;
    width: 0;
    padding: 0;
    visibility: hidden;
}

.filter-section.show{
    min-width: 300px;
    visibility: visible;
    padding-right: 20px;
}
.filter-section form{
  border-right: 1px solid rgba(51, 51, 51, 0.12);
  padding-right: 20px;
}
.filter-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: block;
    
    font-weight: 600;
    border-bottom: 1px solid rgba(51, 51, 51, 0.12);
    padding-bottom: 15px;
}
.filter-group p{
  font-weight: normal;
    font-size: 13px;
    line-height: 20.924px;
}
.filter-group > label {
  margin-bottom: 10px;
  display: block;
}

.filter-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
}

.reset-group {
  display: flex;
      justify-content: center;
      border: 0;
}
.reset-group .btn{
  color: #FF6B00;
  padding: 0;
}

/* Custom multiselect styling */
.custom-multiselect-wrapper {
    position: relative;
    width: 100%;
}

.multiselect-display {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multiselect-display:after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
}

.multiselect-dropdown {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.multiselect-dropdown.show {
    display: block;
}

.multiselect-item {
    padding: 6px 10px;
}

.multiselect-item:hover {
    background-color: #f5f5f5;
}

.multiselect-item label {
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.multiselect-item input {
    margin-right: 8px;
}

/* Slider styles */
.slider-group {
    min-width: 250px;
}
.filter-section .range{
  padding: 0;
  background: none;
}
.range__labels{
  font-weight: normal;
}

#daily-loss-min, #max-loss-min, #profit-split-min {
    top: 0;
}

/* Loading spinner */
.filter-loading {
    margin-left: 10px;
    align-self: center;
}

.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 3px solid #3498db;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsiveness */
@media (max-width: 768px) {
    .filter-group {
        flex: 100%;
    }
}






.checkbox-group {
    flex-wrap: wrap;
    display: flex;
    gap: 6px;
    padding: 8px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item:last-child {
    margin-bottom: 0;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
}

.checkbox-item label {
  cursor: pointer;
  margin-bottom: 0;
  padding: 4px 6px;
  line-height: 1;
  font-size: 14px;
  border-radius: 8px;
  background: #F5F5F5;
  font-weight: 500;
  transition: all 0.2s ease;
}
.checkbox-item label:hover,
.checkbox-item input[type="checkbox"]:checked + label {
    background: #ff6b00;
    color: #fff;
}

.lucide-arrow-left-to-line{
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .checkbox-group {
        max-height: 120px;
    }
}
@media (max-width: 640px) {
  .offers__row .btn{
    padding: 12px;
    font-size: 14px;
  }
  .offers__row .tabs__nav{
    padding-left: 15px;
  }
  .tabs__nav .list .option{
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
  }
  .offers__head .offers__row svg{
    min-width: 20px;
    width: 20px;
  }
}