@charset "UTF-8";

input,
select {
  height: auto;
  font-size: 0.85em;
  font-weight: 600;
  font-family: inherit;
  box-sizing: border-box;
}

input[type=checkbox],
select[type=checkbox] {
  height: 20px;
  width: 20px;
}
input[type=checkbox]::before,
select[type=checkbox]::before {
  content: " ";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--jra-background);
  transition: background-color 0.3s;
  border: 1px solid var(--jra-input-color);
  border-radius: 2px;
}
input[type=checkbox]:checked::before,
select[type=checkbox]:checked::before {
  content: "✔";
  font-size: 1.2em;
  color: var(--jra-background);
  background-color: var(--jra-fontcolor);
}

.form-input {
  display: flex;
  width: 100%;
  max-width: 90vw;
  flex-direction: column;
  justify-content: flex-start;
  margin: 2vh auto;
}

@media screen and (min-width: 605px) {
  .form-input {
    max-width: 480px;
  }
}

.form-input:has(input[type=button]) {
  margin: 4vh auto 2vh;
}

.form-input input,
.form-input select {
  width: 100%;
  max-width: 100%;
  height: 44px; 
  line-height: 44px;
  border-radius: 5px;
  padding: 0 14px;
  border: 2px solid var(--jra-lightgrey);
  background-color: var(--jra-lightgrey);
  box-sizing: border-box;
  text-indent: 0;
}

.form-input select option {
  padding: 8px 10px;
  background-color: #ffffff;
  color: #141415;
  text-indent: 0;
}

.form-input input.error,
.form-input select.error {
  border: 2px solid var(--jra-red);
}

.form-input.searchbar {
  justify-content: flex-end;
}
.form-input.searchbar #search {
  width: 300px;
  padding-left: 40px;
}
.form-input.searchbar #search::after {
  left: 15px;
}
.form-input input::-moz-placeholder {
  color: var(--jra-input-color);
}
.form-input input::placeholder,
.form-input input:-moz-placeholder,
.form-input input::-ms-input-placeholder,
.form-input select {
  color: var(--jra-input-color);
}
.form-input select {
  color: initial;
}
.form-input input[type=button],
.form-input button {
  background-color: var(--jra-blue);
  color: var(--jra-white);
  border: none;
  transition: 250ms;
  padding-inline: 15px;
}
.form-input input[type=button]:hover,
.form-input button:hover {
  background-color: var(--jra-blue-hover);
  transition: 250ms;
}
.form-input.outline input[type=button], .form-input.outline button {
  background-color: transparent;
  border: 1px solid var(--jra-fontcolor);
  color: var(--jra-fontcolor);
}
.form-input.searchbar {
  position: relative;
}
.form-input.searchbar::after {
  content: url("https://dev2.jra.tools/inventaire/img/loupe.svg");
  display: inline-block;
  height: 60%;
  width: -moz-max-content;
  width: max-content;
  min-width: 15px;
  min-height: 15px;
  left: 10px;
  top: 12px;
  position: absolute;
}

.form-checklist {
  display: flex;
  width: 100%;
  max-width: 90vw;
  flex-direction: column;
  justify-content: flex-start;
  margin: 20px 10px;
}
.form-checklist .checklist {
  max-height: 400px;
  overflow-y: scroll;
}
.form-checklist .checklist.error {
  border: 2px solid var(--jra-red);
  border-radius: 5px;
}
.form-checklist .form-checkbox {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  width: auto;
}
.form-checklist .form-checkbox input {
  min-height: 10px;
  min-width: 18px;
}

.vin-switch {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  text-transform: uppercase;
}
.vin-switch span:first-child:not(:has(+ label > input:checked)),
.vin-switch label:has(> input:checked) + span:last-child {
  color: var(--jra-lightblue-hover);
  text-decoration: underline;
}
.vin-switch .label-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.vin-switch .label-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.vin-switch .label-switch .slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--jra-lightblue);
  -webkit-transition: 0.4s;
  border-radius: 34px;
}
.vin-switch .label-switch .slider-round:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--jra-white);
  transition: 0.4s;
  border-radius: 50%;
}
.vin-switch .label-switch input:focus + .slider-round {
  box-shadow: 0 0 1px var(--jra-lightblue);
}
.vin-switch .label-switch input:checked + .slider-round:before {
  transform: translateX(26px);
}