/* Created for POL-11576 - Feature Selection Re-design */

#ranking_variable_div {
  /* Searchbox styling */
  .ranking_variable_searchbox{
    padding: 5px 5px 5px 10px;
    width: 201px;
    height: 26px;
    box-sizing: border-box;
    display: inline-block;
    margin: 0px 0px 0px 0.2em;
    border-radius: 4px;
    border: 1px solid grey;
  }

  /* Source Container Styling */
  .ranking_variable_tabcontent {
    border: 1px solid grey;
    border-top: none;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    height: calc(100% - 40px);
    overflow-y: auto;
  }

  /* Source Specific Styling (Pre-defined Market) */
  #ranking_variable_predefined_market_nav, #ranking_variable-geography-div {
    padding: 5px;
  }
  #ranking_variable-geography-div #treeview {
    padding-left: 5px;
  }
  #ranking_variable_predefined_market_nav {
    display: flex;
    flex-direction:row;
    justify-content: space-between;
    border-bottom: 1px solid gray;
    position: sticky;
    top: 0;
    background-color: white;
  }

  /* Responsive Design */
  #input_container {
    flex-direction:row;
  }
  #input_container > td:first-child {
    width: 40%;
  }
  #input_container > td:last-child {
    width: 60%;
  }
  #ranking_variable_first_page_div #container-inside{
    min-width: 1000px;
    min-height: 400px;
    height: calc(100% - 40px); /* Leave 40px space for the bottom buttons */
  }
  #ranking_variable_variables_div {
    height:calc(100% - 30px);
  }
  #ranking_benchmark_input_text, #myfavourite_select{
    width: 250px;
  }
  #ranking_variable_first_page_buttons input[type='button']{
    width: 150px;
  }

  @media (max-width: 1300px) {
    #input_container {
      /* Switch to vertical layout */
      flex-direction:column;
    }
    #input_container > td:first-child, #input_container > td:last-child {
      width: 100%;
    }
    #ranking_variable_first_page_div #container-inside{
      min-width: 450px;
    }
    #ranking_variable_variables_div {
      /* Set containers at fixed heights */
      height: 200px;
    }
    .ranking_variable_tabcontent {
      /* Set containers at fixed heights */
      height: 360px;
    }
    #ranking_variable_first_page_buttons input[type='button']{
      width: 75px;
    }
  }
  @media (max-width: 750px){
    #ranking_benchmark_input_text, #myfavourite_select{
      width: 150px;
    }
  }
}
