/* Dashboard page styling. Extracted from dashboard-content.html so all
   CSS lives under css/. Currently only mobile-responsive overrides. */

@media (max-width: 768px) {
  .section-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .header-left {
    display: flex;
    align-items: center;
    flex: 1;
  }

  .header-left h2 {
    margin: 0;
    font-size: 1.2rem;
  }

  .install-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
  }

  .filter-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .search-input,
  .category-filter {
    width: 100%;
    margin-bottom: 10px;
  }

  /* Remove the bottom flex-stretch on the dashboard page only.
     Scoped to .dashboard-main (added in dashboard-content.html) so
     this never leaks onto Config / Tasks / Apps, where their inner
     .main needs flex: 1 to fill the column next to the sidebar. */
  .dashboard-main {
    flex: none !important;
    margin-bottom: 0 !important;
  }

  .dashboard-content {
    margin-bottom: 0;
    padding-bottom: 0;
  }
}
