.form {
  /* display: block;
  
  margin-top: 0em; */
  display: grid;
  place-content: center;
  min-height: 100vh;
}

.formGroup {
  margin-bottom: 5px;
}

label {
  display: inline-block;
  margin-bottom: .3rem;
  font-weight: 500;
  font-size:14px;
}

.text-muted {
  color: #6c757d!important;
}

.form-text {
  display: block;
  margin-top: .25rem;
}


.form-control {
  display: block;
  width: 100%;
  /* height: 32px; */
  padding: 0.1rem 0.1rem;
  font-size: .875rem;
    /* line-height: 1.5; */
    line-height: 24px;
  font-weight: 400;
  
  color: var(--field-color);
  background-color: var(--field-bg);
  background-clip: padding-box;
  border:1px solid #a6a6a6;
  border-radius: 3px;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}


.form-check-label {
  margin-bottom: 0;
}

.form-check {
    position: relative;
    display: block;
    padding-left: 1.25rem;
}

.form-check-input {
  position: absolute;
  margin-top: .3rem;
  margin-left: -1.25rem;
  
}

textarea {
    overflow: auto;
    resize: vertical;
}

button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.form-control-l {
    height: calc(1.5em + 1rem + 2px);
    padding: .5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: .3rem;
}

select[readonly]
{
    pointer-events: none;
}

.form-control-s {
    height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

.invalid-feedback::before {
  content: "* ";
}

.invalid-feedback {
  width: 100%;
  margin-top: .25rem;
  font-size: 80%;
  color: #dc3545;
  display: none;
}

.is-invalid {
  border-color: #dc3545!important;
  padding-right: calc(1.5em + .75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) center;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.is-valid {
  border-color: #28a745;
  padding-right: calc(1.5em + .75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) center;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}


input[type="text"] {
  border:1px solid #a6a6a6;
  border-radius: 3px;
  padding: 0.1rem 0.1rem;
  font-size: .875rem;
  /* line-height: 1.5; */
  line-height: 24px;
  width: 100%;
}




/*
.rowForm {
  margin-bottom: 10px;
}

.rowForm .label {
  font-weight: 500;
  text-align: right;
  padding-right: 5px;
  line-height: 31px;
}

input[type=select] {
  width:100%;
  border: 1px solid #949494;
  padding:5px;
  border-radius: 5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1em;
}
  
input[type=text] {
    background-color: #f1f1f1;
    width: calc(100%);

    border: 1px solid #949494;
    padding:5px;
    border-radius: 5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  	font-size: 1em;

} 

input[type=number] {
  background-color: #f1f1f1;
  width: calc(100%);

  border: 1px solid #949494;
  padding:5px;
  border-radius: 5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1em;

} 

input[type=date] {
    background-color: #f1f1f1;
    width: calc(100%);     border: 1px solid #949494;
    padding:5px;
    border-radius: 5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1em;
} 

input[type=password] {
    background-color: #f1f1f1;
    width: calc(100%);
    border: 1px solid #949494;
    padding:5px;
    border-radius: 5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1em;
}*/










:root {
  --form-control-chk-color: rebeccapurple;
  --form-control-chk-disabled: #959495;
}

.align-chk {
  align-self: self-end;
}

.form-control-chk {
  /* font-family: system-ui, sans-serif; */
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  display: grid;
  grid-template-columns: 1em auto;
  gap: 0.5em;
}

.form-control-chk + .form-control-chk {
  margin-top: 1em;
}

.form-control-chk--disabled {
  color: var(--form-control-chk-disabled);
  cursor: not-allowed;
}






input[type="checkbox"] {
  /* Add if not using autoprefixer */
  -webkit-appearance: none;
  /* Remove most all native input styles */
  appearance: none;
  /* For iOS < 15 */
  background-color: var(--form-background);
  /* Not removed via appearance */
  margin: 0;

  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid currentColor;
  border-radius: 0.15em;
  transform: translateY(-0.075em);

  display: grid;
  place-content: center;
}

input[type="checkbox"]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--form-control-color);
  /* Windows High Contrast Mode */
  background-color: CanvasText;
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* input[type="checkbox"]:focus {
  outline: max(2px, 0.15em) solid currentColor;
  outline-offset: max(2px, 0.15em);
} */

input[type="checkbox"]:disabled {
  --form-control-color: var(--form-control-chk-disabled);

  color: var(--form-control-chk-disabled);
  cursor: not-allowed;
}
