html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  font-family: 'Open Sans', sans-serif;
}

body {
  margin: 0;
}

.header {
  padding: 4px;
  text-align: center;
  background: #222;
  color: #eee;
}

.settings {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mode-selected {
  font-weight: 600;
}

.field {
  margin: auto;
}

.section-header {
  text-align: center;
}

.searchbar {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.addCRLSToInput {
  position: relative;
}
  
.addCRLSToInput::after {
  position: absolute;
  left: 9px;
  top: 18px;
  content: attr(data-placeholder);
  pointer-events: none;
}

.form-control-crls {
  padding-left: 52px;
}

label {
  display: inline-block;
  width: 200px;
  text-align: right;
  margin-right: 8px;
}

input {
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #222;
  border-radius:10px;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

select {
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #222;
  border-radius:10px;
}

input, select {
  box-sizing: border-box;
  width: 16em;
}

.optional {
  border: 1px solid #888;
}

.disabled-label {
  color: #ddd !important;
}

.disabled {
  color: #ddd !important;
  border: 2px solid #ddd;
  background-color: #fff;
}
.disabled::placeholder {
  color: #ddd !important;
}
.disabled:-ms-input-placeholder {
  color: #ddd !important;
}
.disabled::-ms-input-placeholder {
  color: #ddd !important;
}



button {
  border: none;
  background-color: #555555;
  color: white;
  padding: 12px 24px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 0 4px;
  cursor: pointer;
}

#generate-output {
  background-color: #555555;
  margin-bottom: 1em;
}

#reset {
  background-color: #e7e7e7; 
  color: black;
  margin-bottom: 1em;
}

#download-btn {
  background-color: #2196F3;
}

#qrcode {
  display: none;
}

.pdf-output {
  width: 100%;
  height: 0;
  margin: 0;
}

#pdf {
  height: 100%;
  width: calc(100vw - 22px);
}

.hidden {
  display: none !important;
}

.center {
  display: flex;
  justify-content: center;
}

#error-msg {
  color: #900
}

.optional-fields-btn {
  color: black;
  background-color: #fff;
  border: none;
}

.units-input {
  width: calc(16em - 22px);
}

.units-input-cm {
  width: calc(16em - 28px);
}

.units-input-in {
  width: calc(16em - 19px);
}


.date-input {
  width: 16em;
}


.year  {
  width: 8.8em;
}

#month {
  width: 6.8em;
}

.manu-date-display {
  text-align: center;
  margin-top: -0.5em;
  margin-bottom: 0.5em;
}

/* The container */
.check-container {
  display: block;
  position: relative;
  margin: 1em 0;
  padding-left: 25px;
  width: 380px;
  text-align: right;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}


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

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.check-container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.check-container input:checked ~ .checkmark {
  background-color: #217425;
}

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

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

/* Style the checkmark/indicator */
.check-container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}


/* Slider Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 26px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196F3;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.switch-label {
  margin-top: 16px;
}

@media screen {
  @media only screen and (max-width: 484px) {
    input, select {
      width: 12em;
    }
    label {
      width: 120px;
    }
    .check-container {
      width: 240px;
      padding-left: 42px;
      text-align: left;
    }
    .units-input {
      width: 10.4em;
    }
    .units-input-cm {
      width: 10em;
    }
    .units-input-in {
      width: 10.7em;
    }
    .year  {
      width: 6em;
    }
    #month {
      width: 5.7em;
    }
  }
}

.label-mode-only.mode-not-selected {
  display: none !important;
}