
#ag_grid_knowledge_base_container {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 5px;
  padding-left: 1vw;
  padding-right: 1vw;
}


/* 
#ag_grid_knowledge_base_container_loading {
  padding-left: 0vw;
  padding-right: 0vw;
  margin-bottom: 0vh;

} */
/* .ag_grid_knowledge_base_container_loading {
  background-color: red;
  margin: 0rem;
  display: flex;
  flex-direction: column;
  height: 50vh !important;
} */
#sidebar_knowledge_manager_contents_chat_loading {
  color: var(--purple-dark) !important;
  margin-top: 10vh !important;

}



#ag_grid_knowledge_base {
  height: 100% !important;
  min-height: 0vh !important;
  opacity: 0; /* Start fully transparent */
  animation: fadeInAnimation 1s forwards; /* Apply the animation */

}
#added_docs_multiple {
  background-color: inherit;
  width: 100% !important;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0rem !important;
  height: 100% !important;
  background-color: transparent;
  overflow-y: auto;
  overflow-x: hidden;

  margin: 0rem !important;
  width: 100% !important;
  max-height: 25vh !important;
  /* min-height: var(--button-height) !important; */
  width: calc(40vw - 2vw) !important;
  padding-bottom: 15px !important;

  background-color: var(--auth-background);

  /* min-height: calc(1.2*var(--button-height)) !important; */
}

#header_row_upload {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.default_message_no_filenames_display {
  padding-top: 15px;
  text-align: center;
}


/* #added_docs_multiple {
  display: inline-block;
  overflow: hidden;
  margin: 0rem !important;
  padding: 0rem !important;
  height: 30.85vw !important;
} */

#add_to_knowledge_base_popover, #add_weblinks_to_knowledge_base_popover {
  font-family: 'Manrope-Regular';
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-width: 40vw !important;
  max-width: 40vw !important;
  /* overflow: hidden; */

  padding: 1vw !important;
  background-color: var(--auth-background);
  box-shadow:
  0 2.8px 2.2px rgba(0, 0, 0, 0.034),
  0 6.7px 5.3px rgba(0, 0, 0, 0.048),
  0 12.5px 10px rgba(0, 0, 0, 0.06),
  0 22.3px 17.9px rgba(0, 0, 0, 0.072),
  0 41.8px 33.4px rgba(0, 0, 0, 0.086),
  0 100px 80px rgba(0, 0, 0, 0.12)
  !important;
  max-height:95vh;

}

#add_weblinks_to_knowledge_base_popover {
  padding: 1vw 2vw !important;
}





#upload_field_knowledge_base {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100% !important;
  border: calc(2*var(--border-width)) solid var(--purple-dark);
  border-radius: var(--border-radius);
  font-size: var(--font-size-body);
  border-style: dotted;
  padding: 1vw;
  text-align: center;
  justify-content: center;
  align-items: center;
  color: black;
  height: 14vh !important;
  width: 100% !important;
  width: calc(40vw - 2vw) !important;
  padding-top: 3vh !important;
  font-size: calc(0.8*var(--font-size-body)) !important;
  border: var(--border-width) dashed var(--border-color);
  color: var(--border-color);


  
}
#upload_field_knowledge_base:hover {
  background-color: var(--purple-light) !important;
  color: var(--purple-dark) !important;
}

#upload_field_knowledge_base_show {

  padding: 0vw !important;

  display: flex;
  flex: row;
  justify-content: center;
  min-width: calc(40vw - 4vw - 15px) !important;
  max-width: calc(40vw - 4vw - 15px) !important;
  background-color: transparent !important;
  margin-top: 0px;
  margin: 0px !important;
  height: 100% !important;
  margin-left: 0vw !important;


}

.filenames_displayed_rows {
  max-width: 100% !important;
  width: calc(40vw - 2vw - 15px) !important;
  margin-top: 15px !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr); 
  row-gap: 15px;
  column-gap: 15px;



  /* display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; */
}
.filename_row_upload {

  padding-right: 0px !important;
  padding: 0px !important;
  margin: 0px !important;
}


.inner_textfield {
  display: flex;
  justify-content: space-between !important; 
}
.inner_textfield > .cutom {
  background-color: transparent !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  border-radius: 0px !important;
  margin-right: 3px !important;
}

#upload_field_knowledge_base:hover {
  background-color: var(--purple-light);
}

#upload_field_knowledge_base > Img{
  animation: bounce 1s infinite !important;
  filter: brightness(0) saturate(100%) invert(91%) sepia(0%) saturate(1%) hue-rotate(181deg) brightness(79%) contrast(91%);
  margin-bottom: 5px;
}

#upload_field_knowledge_base:hover > Img {
  filter: none !important;
}

#upload_field_knowledge_base > Img {
  height: min(2vw, 30px);
}



#top_row_buttons_above_table {
  padding-left: 1vw;
  display: flex;
  flex-direction: row;
  padding-bottom: 1vh;
  align-items: flex-start;
  /* min-width: var(--page-content-width) !important;
  max-width: var(--page-content-width) !important; */
  background-color: transparent  !important;
  padding-right: 1vw;
  width: 100% !important;
}


#remove_warning_message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 1vw;
  padding-right: 1vw;
  white-space: nowrap;
  font-size: var(--font-size-body);
  height: var(--button-height) !important;
}

#remove_button_container {
  display: flex;
  flex-direction: row;
}


#modalbody_preview_document {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: var(--auth-background) !important;
  align-items: center;
}
/* 






/* Add this CSS to your stylesheet */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner_small_load {
    border: 4px solid rgba(0, 0, 0, 0.1); /* Light grey */
    border-top: 4px solid var(--purple-dark); /* Blue */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
}

.spinner_parent {
  display: flex !important;
  flex-direction: row !important;
  background-color: inherit;
  width: 100% !important;
  height: 100% !important;
  justify-content: center;
  align-items: center;
}


#progress_bar_upload {
  display: flex;
  flex-direction: row;
  width: 100% !important;
  width: var(--page-content-width) !important;
  justify-content: center;
  align-items: center;
  background-color: inherit;
  position: absolute;
  margin-top: calc(-1*var(--page-header-buttons)) !important;

  margin-left: 0vw;
  background-color: transparent;

  transition: width 0.3s ease-in-out !important; /* Smooth width transition */



}
#new_role_definition_demo {
  margin-top: 2vh !important;
}

.progress_bar_container {
  display: flex;
  flex-direction: column;
  align-items: center;

  background-color: var(--grey-background);
  max-width: 30vw;
  min-width: 30vw;
  overflow: hidden;
  padding: 0.5vh 0.5vw;
  border-radius: var(--border-radius);
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  z-index: 1000;
  white-space: nowrap;
  box-shadow:
  0 2.8px 2.2px rgba(0, 0, 0, 0.034),
  0 6.7px 5.3px rgba(0, 0, 0, 0.048),
  0 12.5px 10px rgba(0, 0, 0, 0.06),
  0 22.3px 17.9px rgba(0, 0, 0, 0.072),
  0 41.8px 33.4px rgba(0, 0, 0, 0.086),
  0 100px 80px rgba(0, 0, 0, 0.12)
  !important;
  height: 100% !important;


}

#progress_bar_upload_header {
  background-color: transparent;
  padding: 0rem 1vw;
  font-size: calc(0.9*var(--font-size-body)) !important; 
}
#progress_bar_upload_bar_container {
  padding-top: 1vh;
  width: 83.3%;
  background-color: transparent;
  padding-left:1vw;
  padding-right: 1vw;
  background-color: transparent;
  padding-bottom: 1vh;

}


#roles_documents_dropdown > .Select--multi {
  width: 100%;

}

#roles_documents_dropdown > .Select--multi > .Select-control {
  height: var(--input-field-height-multi) !important;
}
#roles_documents_dropdown > .Select--multi > .Select-control >.Select-multi-value-wrapper {
  height: var(--input-field-height-multi) !important;
}

#roles_documents_dropdown > .Select--multi > .Select-control >.Select-multi-value-wrapper > .Select-value {
  width: 95% !important;
  margin-right: 20px !important;
}


#roles_documents_dropdown {
  margin-top: 2vh;
  margin-bottom: 2vh;
}


#button_rows_new_categories {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: inherit;

}


#category_dropdown {
  margin-top: 2vh;
  margin-bottom: 2vh;
}


#panel_categories {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: var(--grey-background) !important;
  border-radius: var(--border-radius);
  padding: 1vw;
}

#category_dropdown_number {
  width: 100% !important;
  left: 25% !important;
  right: 25% !important;
}

.dropdown_category_hidden {
  height: 0vh !important;
  display: none;
}

.ag-filter-body {
  width: 50px !important;
  
  width: 300px !important;

}
.ag-header-cell-resize::after {
  display: none;
  background-color: transparent !important;
}


#button_row_duplicate_files {
  height: var(--button-height);
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
  height: 100%;

/* 
  -webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.1) inset;
  -moz-box-shadow:0 1px 4px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.1) inset;
       box-shadow:0 1px 4px rgba(0, 0, 0, .6), 0 0 40px rgba(0, 0, 0, 0.1) inset;
  background-color: var(--auth-background);
  border-radius: var(--border-radius); */
  padding: 1vh 0vw 1vh 0vw !important;
  margin-bottom: 0vh; 
}



.button_container_error {
  padding-top:1vh;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-bottom: 1vh;
}

.toggle_row_duplicate {
  display: flex;
  flex-direction: row;

  align-items: center !important;
  justify-content: center !important;
  background-color: transparent;

}
.switch_container_dup {
  background-color: transparent;
  /* width: 7vw; */
  display: flex;
  flex-direction: row;
  align-items: left;
  padding: 0px;
  background-color: transparent;
}

.duplicate_text {
  /* width: 100% !important; */
  background-color: transparent;
  padding-right: 0.5vw;

  /* display: flex;
  flex-direction: row;
  align-items: end;
  justify-content: flex-start;
  text-align: end; */
  font-size: var(--font-size-body);
  background-color: transparent;

  background-color: transparent;
}

.hidden_div_display {
  display: none !important;
}
/* 
.hidden_div_display > div > dash-dropdown {
  display: none !important
} */
.daq-booleanswitch--light {
  height: var(--button-height) !important;
}

.button_row_centered_duplicates {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 1vh;
}

/* .button_text_fixed_with_dup {
  width: 5vw !important;
} */

.popover_upload_header {
  font-weight: bold;
  text-align: center;
}

#button_complex_popover_row_ai {
  display: flex;
  flex-direction: row;
}

#ai_assign_new_categories_button_allow_confirm, #ai_assign_new_categories_button_disallow_confirm {
  width: 4vw;
}

#button_row_table_toggle {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  margin-bottom: 0vh;
  width: 100%;
}


#button_row_consider_websites_toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

#websites_list {
  background-color: inherit;
  width: 100%;
  margin-top: 0vh;
  margin-bottom: 2vh;
}

#notice_websites, #notice_wav, #notice_table_toggle, #notice_duplicates {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100% !important;
    padding: 1vh 0.5vw !important;
}

#notice_duplicates {
  margin-top: 2vh !important;
  border-radius: var(--border-radius) !important;

}


#notice_table_toggle {
  margin-top: 1vh !important;
}

/* #notice_expalanations {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  display: none;
} */

#notice_websites_text, #notice_upload_text, #notice_wav_text, #notice_table_toggle_text,#notice_duplicates_text {
  word-wrap: break-word !important; /* Older property, but widely supported */
  overflow-wrap: break-word !important; /* Modern property */
  white-space: normal !important;
  overflow: visible;
  padding-left: 0.5vw;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

#notice_wav_text {
  background-color: inherit !important;
  align-items: flex-start;
}

.horizontal_line_sep_knowledge_base {
  display: flex;
  flex-direction: row;
  width: 100%;
  border-bottom: calc(2*var(--border-width)) dotted var(--border-color);
  padding-top: 2vh;
  margin-bottom: 2vh;
}

#notice_duplicates, #notice_websites, #notice_wav {
  background-color: rgb(211, 221, 255) !important;
  width: 100% !important;
}

#notice_duplicates {
  width: 100% !important;
}

#notice_duplicates_text, #notice_websites_text, #notice_wav_text, #notice_upload_text {
  color: black !important;
}
#notice_duplicates > button > Img, #notice_websites > button > Img, #notice_wav > button > Img{
  filter: brightness(0) saturate(100%) invert(11%) sepia(14%) saturate(7426%) hue-rotate(223deg) brightness(86%) contrast(100%);
}

#extra_info_bottom_popover_knowledge_base {
  padding: 1vh 1vw;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: transparent !important;

  max-height: 45vh !important;
  overflow-y: scroll;
  overflow-x: hidden;
  margin-bottom: 1vh;
  background-color: transparent !important;
  width: calc(40vw - 2vw);
}

.document > p > a {
  pointer-events: none;
}

#wav_container {
  display: flex;
  flex-direction: column;
  width: 100%;
}
#button_row_wav_toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}


.horizontal_line_sep_wav {
  display: flex;
  flex-direction: row;
  width: 100%;
  border-bottom: calc(2*var(--border-width)) dotted var(--border-color);
  padding-top: 2vh;
  margin-bottom: 2vh;
}

.duplicate_text_wav {

  background-color: transparent;
  padding-right: 0.5vw;

  /* display: flex;
  flex-direction: row;
  align-items: end;
  justify-content: end;
  text-align: end; */
  font-size: var(--font-size-body);
  background-color: transparent;

  background-color: transparent;
}
.switch_container_wav {
  /* background-color: transparent;
  width: 14vw;
  display: flex;
  flex-direction: row;
  align-items: left;
  padding: 0px;
  background-color: transparent; */
  background-color: transparent;
}

#language_selection_wav_container {
  margin-bottom: 3vh;
}

#role_filter_button_container {
  display: flex;
  flex-direction: row;
  width: 100%;
  background-color: transparent;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-right: 0vw;
}

#role_filter_button {
  background-color: transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;

  overflow-x: auto;
  white-space: nowrap;
}

#unselect_all_button_knowledge_base {
  display: flex;
  width: auto;
  flex-direction: row;
  padding-right: 1vw;
  display: inline-flex !important;
  flex-shrink: 0 !important;

}


#roles_filter_button_rows {
  display: flex;
  flex-direction: row;

  max-width: 700px !important;

  border-radius: var(--border-radius) !important;
  overflow-x: auto;
  background-color: transparent !important;
  background-color: transparent !important;

}

#roles_filter_button_rows > button {
  border: none;
  border-right: var(--border-width) solid white;
  padding: 0px 7px !important;
  height: var(--button-height) !important;
  margin: 0px !important;
  width: 100% !important;
  background-color: var(--purple-light);
  color: white


}


#roles_filter_button_rows > button:nth-last-of-type(1) {
  border: none !important;

  border-top-right-radius: var(--border-radius) !important;
  border-bottom-right-radius: var(--border-radius) !important;
}

#roles_filter_button_rows > button:first-child {


  border-top-left-radius: var(--border-radius) !important;
  border-bottom-left-radius: var(--border-radius) !important;
}

.button_filter_selected {
  background-color: var(--purple-dark) !important;
}


/* .button_filter_selected:hover {
  background-color: var(--purple-light) !important;
} */

.button_filter_unselected {
  background-color: var(--purple-light) !important;
}

/* .button_filter_unselected:hover {
  background-color: var(--purple-dark) !important;
} */


@media only screen and (max-width: 1600px) {


  #roles_filter_button_rows {
    max-width: 400px !important;
  }
}



@media only screen and (max-width: 1300px) {


  #roles_filter_button_rows {
    max-width: 200px !important;
  }
}

#roles_filter_button_rows.filter_rows_disabled > button {
  pointer-events: none;
}


#upload_field_knowledge_base_show > .filenames_displayed_rows > div {
  display: flex !important;
  justify-content: space-between !important; 
  background-color: var(--purple-medium) !important;
  width: 100% !important;
  max-width: calc(20vw - 1vw) !important;
  padding: 0px !important;
  margin: 0px !important;
}


.inner_textfield {
  display: flex !important;
  justify-content: space-between !important; 
}


.filenames_displayed_rows > .filename_row_upload > :nth-child(2) {
  background-color: transparent !important;
  text-align: left;
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: flex-start;
  text-overflow: ellipsis;
  overflow-x: hidden
}

.filenames_displayed_rows > div {
  padding: 0px !important;
  margin: 0px !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  background-color: purple !important;

}

.filenames_displayed_rows > div {
  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: center;    
  padding: 0px !important; 
  margin: 0px !important;
  min-width: 17vw !important;
  max-width: 17vw !important;
}