/* Wrapper */
* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

  
  /* Dash (react-select v1) dropdown menu layers — force on top */
  .Select-menu-outer,
  .VirtualizedSelectFocused .Select-menu-outer {
    z-index: 9999 !important;
  }
  
  /* DatePicker popup layering (AirBnB picker) */
  .DateRangePicker_picker {
    z-index: 9999 !important;
  }

.filters {
    background-color: #fff;
    border-radius: 10px;
    color: #000;
    padding: 0; /* header has its own padding; body too */
    box-shadow: 0 2px 5px #808080;
    position: relative;
    z-index: 5;       /* sits above surrounding content */
  }
  
  /* Header */
  .filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
  }
  
  .filters-title {
    font-weight: 600;
    font-size: 16px;
  }
  
  /* Toggle button */
  .filters-toggle {
    background: #3DC6C3;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
  }
  .filters-toggle:hover {
    background-color: #3DC6C3 !important; /* bright yellow on hover */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-2px); /* subtle lift on hover */
  }
  .filters-toggle:active {
    transform: translateY(1px);
  }
  
  /* Body (collapsible target) — rows stack vertically in ALL sections */
  .filters-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    max-height: 500px;
    transition: max-height 0.25s ease, padding 0.25s ease;
    overflow: visible;
    font-weight: 600;
  }
  /* Row wrappers inside filters-body */
  .filters-row {
    display: flex;
    align-items: end;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }
  .filters-row--right { justify-content: flex-end; }

  /* Collapsed state */
  .filters-body.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }
  
  /* Label */
  .filters-label {
    font-weight: 600;
  }
  
  /* Date picker */
  .filters-date-range {
    color: #000 !important;
    background-color: #fff !important;
    border-radius: 20px !important;
  }
  
  /* Shared dropdown styles */
  .filters-dropdown {
    color: #000 !important;
    background-color: #fff !important;
    border-radius: 20px !important;
  }
  
  /* Specific widths */
  .site-dropdown   { width: 220px !important; }
  .bu-dropdown     { width: 200px !important; }
  .ntn-dropdown    { width: 180px !important; }
  
  /* Reset button */
  .filters-reset-btn {
    margin-left: auto;
    background: #3DC6C3;
    color: #fff;
    height: 40px;
    width: 100px;
    border: none;
    border-radius: 20px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
  }
  .filters-reset-btn:hover {
    background-color: #3DC6C3 !important; /* bright yellow on hover */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-2px); /* subtle lift on hover */
  }
  .filters-reset-btn:active {
    transform: translateY(1px);
  }
  .filters-reset-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
  }

  /* Refresh button */
  .filters-refresh-btn {
    margin-left: auto;
    background: #3DC6C3;
    color: #fff;
    height: 40px;
    border: none;
    border-radius: 20px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
  }
  .filters-refresh-btn:hover {
    background-color: #3DC6C3 !important; /* bright yellow on hover */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-2px); /* subtle lift on hover */
  }
  .filters-refresh-btn:active {
    transform: translateY(1px);
  }
  .filters-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
  }

  /* Responsive tweak: stack filters on narrow screens */
  @media (max-width: 1024px) {
    .filters-body { flex-wrap: nowrap; }
    .filters-row { gap: 10px; }
    .filters-label {
      width: 100%;
      margin-bottom: 6px;
    }
  }