.compact-filter {
  display: inline-block;
  min-width: 120px;
  max-width: 200px;
  margin: 5px;
  padding: 5px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  font-size: 12px;
  
  .filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    
    .filter-label, .filter-key {
      font-weight: bold;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex-grow: 1;
    }
    
    .filter-type {
      font-size: 10px;
      color: #6c757d;
      margin-left: 5px;
    }
    
    .btn-icon {
      padding: 2px;
      min-width: auto;
    }
  }
  
  .filter-control {
    display: flex;
    align-items: center;
    gap: 5px;
    
    &.date-range {
      flex-direction: column;
    }
    
    &.toggle {
      justify-content: center;
    }
  }
  
  .compact-input,
  .compact-select,
  .compact-multiselect,
  .compact-date {
    width: 100%;
    padding: 4px 6px;
    font-size: 12px;
    border-radius: 3px;
    min-height: 24px;
  }
  
  .compact-select,
  .compact-multiselect {
    height: 24px;
  }
  
  .compact-multiselect {
    height: auto;
    min-height: 24px;
  }
  
  .multiselect-container {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background: white;
  }
  
  .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .checkbox-label {
    font-size: 12px;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .clr-checkbox {
    margin: 0;
    cursor: pointer;
  }
  
  .toggle-label {
    margin: 0;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
  }
  
  .clr-toggle {
    margin: 0 5px 0 0;
  }
  
  /* Responsive design */
  @media (max-width: 768px) {
    min-width: 100px;
    max-width: 150px;
    
    .compact-input,
    .compact-select,
    .compact-multiselect,
    .compact-date {
      font-size: 11px;
      padding: 3px 5px;
    }
    
    .toggle-label {
      font-size: 11px;
      max-width: 80px;
    }
  }
  
  @media (max-width: 480px) {
    min-width: 80px;
    max-width: 120px;
    
    .compact-input,
    .compact-select,
    .compact-multiselect,
    .compact-date {
      font-size: 10px;
      padding: 2px 4px;
    }
    
    .toggle-label {
      font-size: 10px;
      max-width: 60px;
    }
  }
}

.compact-filter-config {
  min-width: 200px;
  max-width: 300px;
  padding: 10px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  
  .config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    
    h5 {
      margin: 0;
    }
    
    .btn-link {
      padding: 2px;
      min-width: auto;
    }
  }
  
  .config-form {
    .clr-form-control {
      margin-bottom: 8px;
      
      .clr-control-label {
        font-size: 12px;
      }
      
      .clr-input,
      .clr-select,
      .clr-textarea {
        font-size: 12px;
        padding: 4px 6px;
      }
      
      .clr-textarea {
        min-height: 60px;
      }
      
      .available-values {
        background: #e9ecef;
        border-radius: 3px;
        padding: 6px;
        font-size: 11px;
        margin-top: 4px;
        word-break: break-all;
      }
    }
    
    .config-actions {
      display: flex;
      justify-content: flex-end;
      gap: 5px;
      margin-top: 10px;
      
      .btn {
        font-size: 12px;
        padding: 4px 8px;
      }
    }
  }
}