/* Default styles for the table and textareas */
.form-control {
  width: 100%; /* Ensure inputs take full width within table cells */
}

.form-control {
  resize: vertical; /* Allow vertical resizing */
  overflow-y: auto; /* Allow scrolling when text exceeds height */
  min-height: 40px; /* Minimum height for the textareas */
  max-height: 150px; /* Maximum height before scrolling */
}

.table-responsive {
  overflow-x: auto; /* Add horizontal scroll for smaller screens */
}

/* Media query for smaller screens like mobile phones */
@media (max-width: 768px) {
  .form-control {
    padding: 12px; /* Increase padding for mobile inputs */
    font-size: 16px; /* Increase font size */
  }

  .table-responsive {
    overflow-x: scroll;
  }

  /* Make table rows display as blocks */
  .table thead {
    display: none; /* Hide the table header */
  }

  .table tbody tr {
    display: block; /* Display rows as blocks */
    margin-bottom: 20px; /* Add spacing between rows */
  }

  .table tbody td {
    display: block; /* Display cells as blocks */
    width: 100%; /* Make cells full width */
    text-align: left; /* Align text to the left */
  }

  /* Add label for each cell for clarity on mobile */
  .table tbody td::before {
    content: attr(data-label); /* Use data-label attribute as the label */
    font-weight: bold; /* Make label bold */
    display: block; /* Display label above input */
  }
}

.auto-expand-div {
  width: 100%; /* Full width */
  min-height: 40px; /* Minimum height */
  max-height: 400px; /* Optional: maximum height */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow-y: auto; /* Enable scrolling if content overflows */
  white-space: pre-wrap; /* Wrap text */
  word-wrap: break-word;
  resize: none; /* Disable resizing */
  outline: none; /* Remove focus outline */
}

.auto-expand-div[placeholder]:empty:before {
  content: attr(placeholder); /* Show placeholder text */
  color: #aaa; /* Placeholder color */
}

/*--------select2-css----*/
.select2Part .floating-label {
  opacity: 0;
}
.select2Part.focused .floating-label {
  opacity: 1;
}
.select2multiple .floating-label {
  opacity: 1;
}
.select2Part.focused .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-top: 13px;
}
.select2-container--default .select2-selection--single {
  border: 1px solid #dfe3e7;
  height: 55px;
}
.select2-container--focus.select2-container--default .select2-selection--single {
  border: 1px solid #5a8dee;
  background-color: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
  transition: 240ms;
  padding-right: 40px;
  font-size: 16px;
  font-weight: 400;
  color: #475f7b;
  padding-top: 7px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 53px;
  right: 15px;
  transition: 240ms;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: rgb(236 238 241);
  color: #4a494a;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border: none;
  width: 12px;
  height: 8px;
  background-size: 100% 100%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  margin: auto;
}
.select2-container--default .select2-results__option[aria-selected='true'] {
  background-color: #5a8dee;
  color: #fff;
}
.select2-container--default .select2-results__option:last-child {
  border-radius: 0px 0px 4px 4px;
}
.select2-container--default .select2-selection--single {
  border-radius: 0.267rem;
}
.select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 19px;
}
.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
.select2-results__option {
  padding: 8px 18px;
  user-select: none;
  -webkit-user-select: none;
  color: #4f4f4f;
  font-size: 15px;
  font-weight: 400;
}
.select2-container--open .select2-dropdown--above {
  box-shadow: 0px 6px 32px rgb(0 0 0 / 10%);
  border-radius: 0px;
  border: none;
  top: 8px;
  border-radius: 6px;
  overflow: hidden;
}

.select2-container--open .select2-dropdown--below {
  box-shadow: 0px 2px 18px rgb(0 0 0 / 16%);
  border-radius: 0px;
  border: none;
  top: -8px;
  border-radius: 6px;
  overflow: hidden;
}
.select2Part.w-100 > .select2-container {
  width: 100% !important;
}
.select2-search--dropdown {
  padding: 12px 15px;
  position: relative;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  font-size: 14px;
  border: 1px solid #dfe3e7;
  border-radius: 4px;
  color: #757575;
  padding: 10px 15px;
  background-color: #fff;
  position: relative;
  padding-right: 45px;
}

.select2-container--default .select2-selection--multiple {
  background-color: #fff;
  border: 1px solid #dfe3e7;
  min-height: 50px;
  border-radius: 6px;
  position: relative;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border: 1px solid #5a8dee;
  background-color: #fff;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  color: #757575;
  line-height: 55px;
  padding-right: 40px;
  display: block;
  height: 100%;
  padding-bottom: 7px;
  padding-top: 17px;
  padding-left: 17px;
  transition: 240ms;
}
.select2-container--default .select2-selection--multiple .select2-selection__arrow {
  height: 48px;
  right: 15px;
}
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  line-height: initial;
  padding: 0;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered:before {
  border: none;
  content: '';
  width: 12px;
  height: 8px;
  background-size: 100% 100%;
  transform: translateY(-50%);
  position: absolute;
  right: 18px;
  top: 26px;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
  list-style: none;
  line-height: initial;
  padding: 5px;
  font-size: 14px;
  position: relative;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #f1f1f1;
  border: 1px solid #f1f1f1;
  border-radius: 4px;
  cursor: default;
  float: left;
  color: #1f1f1f;
  margin-right: 5px;
  margin-top: 5px;
  width: initial !important;
  padding: 5px 10px;
  padding-right: 24px !important;
  font-size: 13px !important;
  letter-spacing: 0.3px;
}
.select2-container--default .select2-search--inline .select2-search__field {
  width: 100% !important;
  font-size: 16px;
  margin-top: 0px;
  padding: 0;
  padding-left: 5px;
  line-height: 27px;
  padding-top: 6px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  position: absolute;
  font-size: 17px;
  width: 20px;
  height: 20px;
  top: 3px;
  text-align: center;
  color: #e45555;
  right: 0px;
}
.floating-group.focused .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  padding-bottom: 7px;
  padding-top: 17px;
  padding-left: 17px;
}
