/* All search bars*/
.search_bar {
  display: inline-flex;
  justify-content: end;

  position: relative;
  float:right;

  padding: 0 5px;
  height: 2.5rem;
  width: fit-content;

  #search_variables_text {
    width: 250px;
    border: 1px solid grey;
    border-radius: 4px;
    padding-right: 18px; /* padding for the X Clear button*/
    margin-right: 5px; /* margin for the Search button*/
  }
  #search_text_clear_button {
    color: #999999;
    cursor: pointer;
    position: absolute;
    margin:0;
    top: 5px;
    right: 102.5px; /* places the X in the padding on the right side of the #search_variables_text*/
  }
  button.search_variables {
      /* styling mainly handled by the .btn .btn-small-grey classes it has*/
  }
  button.search_settings {
      width: 26px;
  }

  .search_settings_menu {
    position: absolute;
    top: calc(2.5rem + 6px); /* match the height of the search_bar, plus some extra space*/
    right: 9px; /* match the offset of the search_bar's paddings and the .btn-small-grey margin*/
    z-index: 99;

    padding: 8px;
    border: 1px solid darkgray;
    border-radius: 4px;
    background-color: gainsboro;

    .setting_title {
      font-size: 14px;
      font-weight: bold;
      text-align: left;
    }
    .setting {
      display: flex;
      flex-direction: row;
      white-space: nowrap;
    }
    .setting:not(:last-child) {
      border-bottom: 1px solid #a4a4a4;
      margin-bottom: 5px;
      padding-bottom: 5px
    }
    label {
      font-weight: normal;
      margin: 0;
      flex: 1 1 0;
      cursor: pointer;
      input {
        cursor: pointer;
      }
    }

  }
}

/* POL-13245*/
@media screen and (max-width: 1663px) and (min-width: 1200px) {
  .search_bar {
    margin: 5px 0;

    #search_variables_text {
      width: 275px;
    }
  }
}

/* ************************************************************************************************************************** //*/

/* All variable list "active searches" lists*/
#variables_search_section {
  text-align:left;
  padding:2px;
  border-bottom:1px solid gainsboro;

  #variables_search_section_inner_div {
    padding: 5px 4px 5px 10px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    row-gap: 6px;

    button.variables_search_clear_all {
      margin-right: 5px;
      height: 20px;
      width: 20px;
      padding: 1px;
      color: red;
      i {
        display: block;
      }
    }

    .search_result {
      border-radius: 4px;
      border: 1px solid #d3d3d3;
      padding: 2px 5px;
      margin-left: 5px;
      margin-top: -2.5px;
    }

    .search_result_text {
      margin-right: 5px;
    }

    i.fa-times.search_result_clear_button {
      color: #999999;
      cursor: pointer;
      vertical-align: bottom;
      margin: 0 0 2.5px;
    }
  }
}

/* ************************************************************************************************************************** //*/

/* Customize My Report*/
#report_variables_tree_pane_ {
  display: flex;
  flex-direction: column;
  height: 100%;
}