/**
    CSS files for surcharging some code
**/
.text-justify {
  text-align: justify !important;
}
.select2-selection {
  text-align: center !important;
}

/** for file upload **/
/* Hide the default file input text */
.file-upload-wrapper input[type='file'] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

/* Style the visible label instead */
.file-upload-label {
  display: inline-block;
  background: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-upload-label:hover {
  background: #e9ecef;
}

/** checked value in pdf **/
/* Hide the default checkbox input */
.custom-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkmark placeholder */
.checkmark {
  display: inline-block;
  width: 1.5em; /* Adjust size as needed */
  height: 1.5em;
  border: 2px solid #ccc;
  border-radius: 4px; /* Optional: for rounded corners */
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  box-sizing: border-box;
}

/* Display the emoji when the checkbox is checked */
.custom-checkbox-container input:checked ~ .checkmark::after {
  content: '✔'; /* The emoji to display */
  display: block;
  font-size: 1em;
  color: #007bff; /* A color for the emoji */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/**  */
#elements-collecte-container .form-check,
#pieces-collecte-container .form-check {
  margin-bottom: 0;
}

#elements-collecte-container label,
#pieces-collecte-container label {
  margin-bottom: 0;
  font-size: 0.9rem;
}

#elements-collecte-container input[type='number'],
#pieces-collecte-container input[type='number'] {
  width: 80px;
}
