/* Simple mobile fix for sort controls - make them stack vertically */
@media only screen and (max-width: 480px) {
  /* Force the heading container to not overflow */
  .heading-with-controls,
  .latest-appraisals-heading {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    overflow: hidden !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }
  
  /* Separate the title from controls */
  .heading-with-controls h2,
  .latest-appraisals-heading h2 {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 10px !important;
  }
  
  /* Make sort controls stack properly */
  .sort-controls {
    display: block !important;
    width: calc(100% - 20px) !important;
    margin: 0 10px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    position: relative !important;
    float: none !important;
  }
  
  .sort-controls .filters-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  
  /* Make label full width */
  .sort-by-label {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 5px !important;
  }
  
  /* Make dropdowns full width and stack */
  .sort-controls select,
  #filter-dropdown,
  #timerange-dropdown,
  .filter-dropdown,
  .timerange-dropdown {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
  }
  
  /* Hide separator */
  .filter-separator {
    display: none !important;
  }
  
  /* Remove any flex from wrappers */
  .filter-dropdown-wrapper,
  .timerange-dropdown-wrapper {
    width: 100% !important;
    display: block !important;
  }
}