/* Searching Filter Box */
.filtering_container {
  font-size: 14px;
  margin: 20px 0;
  width: 100%;
  font-weight: 700;
  border-radius: var(--beomho-border-radius);
  background-color: #fff;
  padding: 20px;
  display: inline-flex;
  flex-wrap: wrap;
  color: var(--black);
}

.filtering_container input::placeholder {
  color: #c4c4c4;
}

/* Main Filtering Box */
.main_filter {
  width: 1000px;
}

.mainfilter_container {
  display: flex;
  align-items: center;
}

.during_container {
  display: flex;
  gap: 12px;
}

/* Dates (Radio Button) */
.date_period input[type="radio"] {
  display: none;
}

.date_period input[type="radio"] + span {
  width: 4%;
  display: inline-block;
  margin: 0% 0.5% 0% 0%;
  padding: 0.5% 1% 0.5% 1%;
  border-radius: 3px;
  border: 1px solid #d9d9d9;
  background-color: #f1f1f1;
  text-align: center;
  cursor: pointer;
  font-size: 0.8em;
  font-weight: bold;
}

.date_period input[type="radio"]:checked + span {
  background-color: #382828;
  color: #ffffff;
}

/* All the button */
.buttons {
  min-width: 95px;
}

.period-btn {
  color: var(--primary-500);
  min-width: 85px;
  background-color: var(--white);
  border: 1px solid var(--primary-500);
}

button.primary.fill.period-btn:hover {
  background-color: var(--neutral-200);
}

.period-btn.activate {
  /* background-color: var(--primary-500);
  color: var(--white); */
  background-color: var(--primary-500);
  color: var(--white);
}

.filtering {
  border: var(--bor-empty-btn) !important;
  height: 38px;
}

/* Filtering(Button) */
/* .filtering {
  border: var(--pri) !important;
  height: 38px;
} */

/* .filtering:hover {
  filter: brightness(90%);
} */

/* Filtering(Button - clicked) */
.effect {
  background-color: var(--primary-500);
  color: var(--white);
}

.dtps {
  gap: 12px;
}

/* Datetimepicker - frame */
.dtp_board {
  display: flex;
  gap: 0px;
  align-items: center;
}

.dtp_board:last-child .dtp_input {
  margin-left: 12px;
}

/* Datetimepicker - input */
.dtp_input {
  width: 140px;
  cursor: pointer;
  border: 1px solid var(--neutral-300) !important;
}

.dtp_input:focus {
  outline: 1px solid var(--col-focus) !important;
}

/* Datetimepicker - button */
.dtp_button {
  display: inline;
  min-width: 0px;
  /* background-color: var(--primary-500); */
  background-color: var(--primary-500);
  border-radius: 3px;
  font-size: 0.8em;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: white;
  padding: 0.5% 0.5% 0.5% 0.5%;
  border: none;
  background-image: url(../resources/icon/statis_calender.svg);
  background-repeat: no-repeat;
  background-size: 100%;
  text-indent: -9999px;
}

.search_box {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

/* search window */
.text_search {
  width: 20%;
}

/* search button */
.button_search {
  border: none;
}

/* .button_reset {
  border: var(--primary-500);
  background: var(--bg-empty-btn);
  color: var(--primary-500);
} */

/* Panel All */
#subfilter_container {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  display: none;
  width: 100%;
}

/* Created Type bar */
.types {
  align-items: center;
  display: flex;
  width: 100%;
  height: 32px;
  overflow: hidden;
  background-color: var(--neutral-100);
  margin-top: 8px;
  text-align: left;
  border-radius: 2px;
  gap: 12px;
}

/* Detail Filtering - Type menu */
.type_name {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 8%;
  text-align: center;
  font-weight: 600;
  display: flex;
  padding: 0.5% 1%;
  background-color: var(--neutral-300);
  font-size: 14px;
  color: var(--black);
}

/* Detail Filtering - All Type elements */
/* .filter_elements {
  line-height: 1;
} */

.types .custom-radio {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Detail Filtering - All Type elements text */
.filtering_text {
  color: var(--black);
  font-weight: 400;
}

.custom-radio input:checked ~ .filtering_text {
  font-weight: 500;
}

/* Select CSS */
.select_index {
  margin-left: 1.2%;
}

.filter_selection {
  width: 10%;
  margin-left: 20px;
}

/* [END] Select CSS */

/* Time Ranged (Input) */
.ranged_input {
  margin-left: 1.2%;
}

/* ///////// CUSTOME FILTERING\\\\\\\\\\\\\\\\\\\\ */
/* for checbok not bg */
.custom-checkbox {
  position: relative;
  display: inline-block;
  padding-left: 20px;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}

/* Hide the browser's default checkbox */
.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.check-mark {
  position: absolute;
  top: -2px;
  left: 0px;
  height: 20px;
  width: 20px;
  border-radius: 2px;
  background: #ffffff;
  border: 1px solid #c4c4c4;
}

/* On mouse-over, add a grey background color */
.custom-checkbox:hover input ~ .check-mark {
}

/* When the checkbox is checked, add a blue background */
.custom-checkbox input:checked ~ .check-mark {
  /*   background-color: transparent; */
  border-radius: 2px;
  background: #ffffff;
  border: 1px solid #c4c4c4;
}

/* Create the checkmark/indicator (hidden when not checked) */
.check-mark:after {
  content: "";
  position: relative;
  display: none;
}

/* Show the checkmark when checked */
.custom-checkbox input:checked ~ .check-mark:after {
  display: block;
}

/* Style the checkmark/indicator */
.custom-checkbox .check-mark:after {
  left: 6px;
  top: 0px;
  width: 3px;
  height: 15px;
  border: 1.5px solid #000000;
  border-radius: 0px 2px 2px 2px;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* [Radio] Custom CSS */

/* Customize the label (the container) */
.custom-radio {
  position: relative;
  display: inline-block;
  /* padding-left: 1.6rem; */
  padding-left: 10px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}

/* Hide the browser's default radio button */
.custom-radio input {
  display: none;
}

/* Create a custom radio button */
.radio-mark {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid var(--neutral-800);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.radio-mark:after {
  content: "";
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.custom-radio input:checked ~ .radio-mark:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.custom-radio .radio-mark:after {
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-500);
}

/* style border color when radio is checked */
.custom-radio input:checked ~ .radio-mark {
  border: 1px solid var(--primary-500);
}

/* end for checkbox not bg */

.dtps {
  display: flex;
}

.spinner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
}

.spinner-button.loading {
  pointer-events: none;
}

.spinner-button.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  user-select: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
