.chart-container {
  position: relative;
  height: 100%;
  width: 100%;
  padding: 10px;
}

.drilldown-back {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  
  .drilldown-level {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
  }
}

.chart-title {
  text-align: center;
  margin-bottom: 15px;
  
  h4 {
    margin: 0;
    color: #333;
  }
}

.chart-wrapper {
  position: relative;
  height: calc(100% - 100px);
  min-height: 400px;
  padding: 10px;
}

.chart-canvas-container {
  position: relative;
  height: 100%;
  width: 100%;
  padding: 15px;
  box-sizing: border-box;
  
  canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
  }
}

.filter-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 5px;
  cursor: pointer;
  
  clr-icon {
    transition: color 0.3s ease;
    
    &:hover {
      color: #007cba !important;
    }
  }
  
  span {
    margin-left: 5px;
    font-size: 12px;
    color: #666;
    transition: color 0.3s ease;
  }
  
  &:hover span {
    color: #007cba;
  }
}

.filters-section {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #f9f9f9;
  
  h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
  }
}

.filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-item {
  flex: 1 1 200px;
  min-width: 150px;
  
  label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
  }
  
  .form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
  }
}

.filter-text,
.filter-dropdown,
.filter-date-range {
  .form-control {
    height: 36px;
  }
}

.date-range-inputs {
  display: flex;
  gap: 10px;
  
  .form-control {
    flex: 1;
  }
}

.filter-multiselect {
  position: relative;
  
  .multiselect-container {
    position: relative;
  }
  
  .multiselect-display {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    min-height: 36px;
    display: flex;
    align-items: center;
  }
  
  .multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
  }
  
  .multiselect-option {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    
    &:last-child {
      border-bottom: none;
    }
    
    &:hover {
      background-color: #f5f5f5;
    }
    
    input[type="checkbox"] {
      margin-right: 8px;
    }
    
    label {
      margin: 0;
      font-weight: normal;
      cursor: pointer;
    }
  }
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  
  .toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
  }
  
  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
  }
  
  .toggle-slider {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  input:checked + .toggle-label {
    background-color: #2196F3;
  }
  
  input:checked + .toggle-label .toggle-slider {
    transform: translateX(26px);
  }
}

.clear-filters {
  margin-top: 15px;
  text-align: center;
}

.no-data-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  text-align: center;
  color: #666;
  
  p {
    margin-bottom: 15px;
    font-size: 16px;
  }
}

.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  
  .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
  }
  
  p {
    margin: 0;
    color: #666;
  }
}

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

@media (max-width: 768px) {
  .filters-container {
    flex-direction: column;
  }
  
  .filter-item {
    min-width: 100%;
  }
  
  .chart-wrapper {
    min-height: 250px;
  }
  
  .chart-canvas-container {
    padding: 10px;
  }
}