@charset "UTF-8";

/* --Dropdown Menu-- */
#dropdown-preset-menu {
  border-radius: 5px;
  box-shadow: 3px 4px 10px 1px rgba(0, 0, 0, 0.3);
  overflow: visible;
  z-index: 998;
  padding: 0px;
}

#dropdown-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse farthest-corner at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 997;  
}

/* For the edit popup */
#dropdown-preset-menu ul {
  overflow: visible;
}

/* The basic styling for all the preset li */
#dropdown-preset-menu ul li a, .dropdown-colvis li a {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: normal;
  line-height: 1.42857143;
  color: #333333 !important;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  width: 100%;  
}

/* Extra padding to avoid the checkmark overlapping */
#dropdown-preset-menu ul li a, .dropdown-colvis li a {
  padding-right: 35px;
}

.dropdown-item:hover {
  background-color: #ddd !important;
}

.dropdown-item-active:after{
  position: absolute;
  top: 50%;
  margin-top: -10px;
  right: 1em;
  display: inline-block;
  content: "✓";
  color: inherit;
}

/* -----ColVis----- */
/* Drag and drop */
.placeholder {
  opacity: 0.25;
  border: 2px dashed #000;
}

.dropdown-colvis {
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* -----Footer Elements----- */
.dropdown-footer {
  padding: 15px;
  display: flex;
  justify-content: end;
}

.dropdown-footer .btn + .btn {
  margin-left: 5px;
}

/* -----New Preset Buttons----- */
.new-dropdown-item {
  min-width: 200px;
  list-style-type: none;
}

.new-dropdown-item:first child {
  padding-top: 10px;
}

.new-preset-btn {
  font-weight: bold !important;
}

/* -----Preset Section----- */
.preset-section {
  padding: 10px 0px;
  margin-bottom: 0px;
}

#user-preset-section {
  border-bottom: 1px solid #e5e5e5;
}

.preset-section-header {
  padding-left: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 18px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
}

/* -----Input Field----- */
#dropdown-preset-header {
  padding: 15px;
  display: flex;
  gap: 20px;
}

.is-invalid {
  border: 1px solid red;
}

.invalid-feedback {
  color: red;
}

/* -----Edit button----- */

/* Dropdown Content (Hidden by Default) */
#dropdown-preset-menu .dropdown-edit-btn {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 100px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 999;
  left: 50px;
}

/* Links inside the dropdown */
#dropdown-preset-menu .dropdown-edit-btn a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

/* Change color of dropdown links on hover */
#dropdown-preset-menu .dropdown-edit-btn a:hover {
  background-color: #ddd
}

/* The container <div> - needed to position the dropdown content */
.dropdown-edit-icon {
  position: relative;
  display: flex;
  align-items: center;
}

/* Show the dropdown menu on hover */
#dropdown-preset-menu .dropdown-edit-icon:hover .dropdown-edit-btn {
  display: inline-block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
#dropdown-preset-menu .dropdown-edit-icon:hover .dropbtn {
  color:orange;
}

#dropdown-preset-menu .dropbtn {
  padding: 0 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: inline-block;
  color: #777;
}

/* Preset Select All */
#preset-select-all {
  margin-top: 8px;
}

#preset-select-all label {
  position: relative !important;
}

#preset-select-all {
  height: 16px;
}