#compare-profiles {
  height: 100%;
  min-height: 500px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  padding: 15px;

  #source_items {
    margin-right: 5px;
    flex: 0 0 50%;
    width: 50%;
    height: 50%;
  }
  #favourite_items {
    margin-right: 5px;
    flex: 0 0 50%;
    width: 50%;
    height: 50%;
  }
  #selected_items {
    margin-left: 5px;
    flex: 0 0 100%;
    width: calc(50% - 10px); /* to account for the margins*/
    height: 100%;
  }

  .compare_box {

    .dataTables_wrapper {
      display: flex;
      flex-direction: column;

      .dataTables_filter {
        flex: 0 auto;
      }

      .dataTables_scroll {
        flex: 1 auto;
        min-height: 100px;
        display: flex;
        flex-direction: column;

        .dataTables_scrollHead {
          flex: 0 auto;
        }
        .dataTables_scrollBody {
          flex: 1 1 0%;
          overflow: auto;
          max-height: unset!important;

        }
      }

      .dataTables_paginate {
        flex: 0 auto;
      }
    }
  }
}

#compare-profiles #container-inside {
  display: flex;
  flex-direction: column;
  margin: 0;
  height: calc(100% - 40px);
}

#compare-profiles #container-inside {
  border: 1px solid gainsboro;
}

#compare-profiles #container-inside #customerfiles-list-div,
#compare-profiles #container-inside #tradeareas-list-div {
  /*overflow-y: hidden;*/
}

#compare-profiles #customerfiles-list-div,
#compare-profiles #tradeareas-list-div,
.predefined-list-div,
#tradeareas-uploadfile-list-div,
#compare-profiles .container-comparison {
  /*height: 200px;*/
}

#compare-profiles .container-comparison {
  height: calc(100% - 40px);
}

#compare-profiles #container-inside #customerfiles-list-div #customerfiles-list-table,
#compare-profiles #container-inside #heatmaps-list-div #heatmaps-list-table,
#compare-profiles #container-inside #tradeareas-list-div #tradeareas-list-table {
  width: 100%;
  table-layout: fixed;
}

#compare-profiles #container-inside #customerfiles-list-div #customerfiles-list-table .customerfiles-thead .customerfiles-tr,
#compare-profiles #container-inside #heatmaps-list-div #heatmaps-list-table .heatmaps-thead .heatmaps-tr,
#compare-profiles #container-inside #tradeareas-list-div #tradeareas-list-table .tradeareas-thead .tradeareas-tr {
  border-bottom: 1px dotted grey;
}

#compare-profiles #container-inside #customerfiles-list-div #customerfiles-list-table .customerfiles-thead .customerfiles-tr .customerfiles-th-name,
#compare-profiles #container-inside #heatmaps-list-div #heatmaps-list-table .heatmaps-thead .heatmaps-tr .heatmaps-th-name,
#compare-profiles #container-inside #tradeareas-list-div #tradeareas-list-table .tradeareas-thead .tradeareas-tr .tradeareas-th-name {
  text-align: left;
  margin-left: 10px;
  margin-right: 10px;
}

#compare-profiles
 #container-inside #customerfiles-list-div #customerfiles-list-table .customerfiles-thead .customerfiles-tr .customerfiles-th-date,
#compare-profiles
 #container-inside #heatmaps-list-div #heatmaps-list-table .heatmaps-thead .heatmaps-tr .heatmaps-th-date,
#compare-profiles
 #container-inside #tradeareas-list-div #tradeareas-list-table .tradeareas-thead .tradeareas-tr .tradeareas-th-date {
  text-align:left;
}

#compare-profiles #tradeareas-uploadfile-list-table_wrapper label {
  padding: 5px 5px 0;
  box-sizing: border-box;
  width: 50%;
  text-align: left;

  input {
    width: calc(100% - 70px)!important;
  }
}

#export_icons {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  height: 60px;
  padding-left: 10px;
  .export_icon {
    height: 60px;
    width: 60px;
    font-size: 60px;
    cursor: pointer;
  }
  .red {color: #a00;}
  .green {color: #036b09;}
  .black {color: #222;}
  .orange {color: #f37321;}
  .export_icon:hover {
    filter: drop-shadow(0 0 2px);
  }
}

/*#tradeareas-list-table_wrapper {*/
/*  .dataTables_scroll {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/**/
/*    .dataTables_scrollBody {*/
/*      flex: 1;*/
/*      //max-height: none!important;*/
/*    }*/
/*  }*/
/*}*/

div#customerfiles-list-div div#customerfiles-list-table_wrapper .dataTables_scroll .dataTables_scrollBody {
  overflow-y: scroll;
}

.container-inside {
  height: calc(100% - 40px);
}

#customerfiles-list-div, #tradeareas-list-div, #selected-tradeareas-list-div, #heatmaps-list-div, #favorites-list-div {
  height: 100%!important;
}

/* POL-13459 - Modal for selecting categories from a customer file with too many categories. */
#compare_profiles_select_categories_from_customer_file {
  ul {
    max-height: 40vh;
    overflow-y: scroll;
    border: 1px solid black;
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  li {
    cursor: pointer;
    border-bottom: 1px solid gainsboro;
    padding: 4px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  li:hover {
    background-color: gainsboro;
  }
  #select_remove_all {
    padding: 8px 0 8px 0;
  }
}

@media (max-width: 1250px) {
  #compare-profiles {

    min-height: 800px;
    flex-direction: row;

    #source_items, #favourite_items, #selected_items {
      margin: 3px 0px;
      flex: 1 1 100%;
      width: 100%;
      height: 33%;
    }
  }

}