/* Dynamic Visibility of Dropdowns Options
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* DEFAULT: SINGLE PORTFOLIO - NO BENCHMARK (i.e., no extra class on #portfolio_controlpanel) */
[id$="_controlpanel"] .portfolio_selection_dropdown {
    display: block;
}
[id$="_controlpanel"] .target_allocation_selection_dropdown,
[id$="_controlpanel"] .portfolio_aggregation_dropdowns,
[id$="_controlpanel"] .target_allocation_aggregation_dropdowns,
[id$="_controlpanel"] .portfolio_filter_dropdown,
[id$="_controlpanel"] .benchmark_filter_dropdown{
    display: none;
}

/* SINGLE PORTFOLIO - SINGLE BENCHMARK */
[id$="_controlpanel"].single-portfolio-single-target-allocation .portfolio_selection_dropdown,
[id$="_controlpanel"].single-portfolio-single-target-allocation .target_allocation_selection_dropdown {
    display: block;
}
[id$="_controlpanel"].single-portfolio-single-target-allocation .portfolio_aggregation_dropdowns,
[id$="_controlpanel"].single-portfolio-single-target-allocation .target_allocation_aggregation_dropdowns,
[id$="_controlpanel"].single-portfolio-single-target-allocation .portfolio_filter_dropdown,
[id$="_controlpanel"].single-portfolio-single-target-allocation .benchmark_filter_dropdown {
    display: none;
}

/* SINGLE PORTFOLIO - AGGREGATE BENCHMARK */
[id$="_controlpanel"].single-portfolio-aggregate-target-allocation .portfolio_selection_dropdown {
    display: block;
}
[id$="_controlpanel"].single-portfolio-aggregate-target-allocation .target_allocation_selection_dropdown {
    display: none;
}
[id$="_controlpanel"].single-portfolio-aggregate-target-allocation .portfolio_aggregation_dropdowns {
    display: none;
}
[id$="_controlpanel"].single-portfolio-aggregate-target-allocation .target_allocation_aggregation_dropdowns {
    display: block;
}
[id$="_controlpanel"].single-portfolio-aggregate-target-allocation .portfolio_filter_dropdown {
    display: none;
}
[id$="_controlpanel"].single-portfolio-aggregate-target-allocation .benchmark_filter_dropdown {
    display: block;
}

/* AGGREGATE PORTFOLIO - NO BENCHMARK */
[id$="_controlpanel"].aggregate-portfolio-calculation .portfolio_selection_dropdown,
[id$="_controlpanel"].aggregate-portfolio-calculation .target_allocation_selection_dropdown {
    display: none;
}
[id$="_controlpanel"].aggregate-portfolio-calculation .portfolio_aggregation_dropdowns {
    display: block;
}
[id$="_controlpanel"].aggregate-portfolio-calculation .target_allocation_aggregation_dropdowns {
    display: none;
}
[id$="_controlpanel"].aggregate-portfolio-calculation .portfolio_filter_dropdown {
    display: block;
}
[id$="_controlpanel"].aggregate-portfolio-calculation .benchmark_filter_dropdown {
    display: none;
}

/* AGGREGATE PORTFOLIO - SINGLE BENCHMARK */
[id$="_controlpanel"].aggregate-portfolio-single-target-allocation .portfolio_selection_dropdown {
    display: none;
}
[id$="_controlpanel"].aggregate-portfolio-single-target-allocation .target_allocation_selection_dropdown {
    display: block;
}
[id$="_controlpanel"].aggregate-portfolio-single-target-allocation .portfolio_aggregation_dropdowns {
    display: block;
}
[id$="_controlpanel"].aggregate-portfolio-single-target-allocation .target_allocation_aggregation_dropdowns {
    display: none;
}
[id$="_controlpanel"].aggregate-portfolio-single-target-allocation .portfolio_filter_dropdown {
    display: block;
}
[id$="_controlpanel"].aggregate-portfolio-single-target-allocation .benchmark_filter_dropdown {
    display: none;
}

/* AGGREGATE PORTFOLIO - AGGREGATE BENCHMARK */
[id$="_controlpanel"].aggregate-portfolio-aggregate-target-allocation .portfolio_selection_dropdown,
[id$="_controlpanel"].aggregate-portfolio-aggregate-target-allocation .target_allocation_selection_dropdown {
    display: none;
}
[id$="_controlpanel"].aggregate-portfolio-aggregate-target-allocation .portfolio_aggregation_dropdowns,
[id$="_controlpanel"].aggregate-portfolio-aggregate-target-allocation .target_allocation_aggregation_dropdowns {
    display: block;
}
[id$="_controlpanel"].aggregate-portfolio-aggregate-target-allocation .portfolio_filter_dropdown,
[id$="_controlpanel"].aggregate-portfolio-aggregate-target-allocation .benchmark_filter_dropdown {
  display: block;
}
