/*
* Comon structure styles
*/
.flex-row{
  display: flex;
  flex-direction: row;
}
.flex-column{
  display: flex;
  flex-direction: column;
}
.flex-wrap{
  flex-wrap: wrap;
}
.flex-justify-space-between{
  justify-content: space-between;
}
.flex-justify-space-around{
  justify-content: space-around;
}
.flex-justify-space-evenly{
  justify-content: space-evenly;
}
@media screen and (max-width: 39.9375em) {
  .hide-for-small-only {
    display: none !important; 
  }
}
@media screen and (max-width: 0em), screen and (min-width: 40em) {
  .show-for-small-only {
    display: none !important; 
  }
}

/*
* Generic flex grid styles
*/
.flex-grid {
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.flex-grid > .row {
  flex-grow: 1;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5em 0 -0.5em;
}
.row > * {
  box-sizing: border-box;
  padding: 0 0.5em 1em;
  flex-basis: 100%;
}
.row:last-child {
  margin-bottom: -1em;
}
.no-gutters > .row {
  margin: 0;
}
.no-gutters > .row > * {
  padding: 0;
}
.no-gutters > .row:last-child {
  margin-bottom: 0;
}
.cell {
  /*flex: 1 0 auto;*/
  flex-basis: 100%;
  max-width: 100%;
}
/* Default view */
.row-equal > * {
  display: flex;
}
.row-equal > * > * {
  width: 100%;
}
/* Small viewport (mobile) */
@media (min-width: 0px) {
  .small-1 {
    flex-basis: 8.3333333333%;
    max-width: 8.3333333333%;
  }
  .small-2 {
    flex-basis: 16.6666666666%;
    max-width: 16.6666666666%;
  }
  .small-3 {
    flex-basis: 25%;
    max-width: 25%;
  }
  .small-4 {
    flex-basis: 33.3333333333%;
    max-width: 33.3333333333%;
  }
  .small-5 {
    flex-basis: 41.6666666666%;
    max-width: 41.6666666666%;
  }
  .small-6 {
    flex-basis: 50%;
    max-width: 50%;
  }
  .small-7 {
    flex-basis: 58.3333333333%;
    max-width: 58.3333333333%;
  }
  .small-8 {
    flex-basis: 66.6666666666%;
    max-width: 66.6666666666%;
  }
  .small-9 {
    flex-basis: 75%;
    max-width: 75%;
  }
  .small-10 {
    flex-basis: 83.3333333333%;
    max-width: 83.3333333333%;
  }
  .small-11 {
    flex-basis: 91.6666666666%;
    max-width: 91.6666666666%;
  }
  .small-12 {
    flex-basis: 100%;
    max-width: 100%;
  }
  .hide-small {
    display: none;
  }
}

/* Medium viewport (tablets) */
@media (min-width: 640px) {
  .medium-1 {
    flex-basis: 8.3333333333%;
    max-width: 8.3333333333%;
  }
  .medium-2 {
    flex-basis: 16.6666666666%;
    max-width: 16.6666666666%;
  }
  .medium-3 {
    flex-basis: 25%;
    max-width: 25%;
  }
  .medium-4 {
    flex-basis: 33.3333333333%;
    max-width: 33.3333333333%;
  }
  .medium-5 {
    flex-basis: 41.6666666666%;
    max-width: 41.6666666666%;
  }
  .medium-6 {
    flex-basis: 50%;
    max-width: 50%;
  }
  .medium-7 {
    flex-basis: 58.3333333333%;
    max-width: 58.3333333333%;
  }
  .medium-8 {
    flex-basis: 66.6666666666%;
    max-width: 66.6666666666%;
  }
  .medium-9 {
    flex-basis: 75%;
    max-width: 75%;
  }
  .medium-10 {
    flex-basis: 83.3333333333%;
    max-width: 83.3333333333%;
  }
  .medium-11 {
    flex-basis: 91.6666666666%;
    max-width: 91.6666666666%;
  }
  .medium-12 {
    flex-basis: 100%;
    max-width: 100%;
  }
  .hide-medium {
    display: none;
  }
}
/* Large viewport (desktop) */
@media (min-width: 1024px) {
  .large-1 {
    flex-basis: 8.3333333333%;
    max-width: 8.3333333333%;
  }
  .large-2 {
    flex-basis: 16.6666666666%;
    max-width: 16.6666666666%;
  }
  .large-3 {
    flex-basis: 25%;
    max-width: 25%;
  }
  .large-4 {
    flex-basis: 33.3333333333%;
    max-width: 33.3333333333%;
  }
  .large-5 {
    flex-basis: 41.6666666666%;
    max-width: 41.6666666666%;
  }
  .large-6 {
    flex-basis: 50%;
    max-width: 50%;
  }
  .large-7 {
    flex-basis: 58.3333333333%;
    max-width: 58.3333333333%;
  }
  .large-8 {
    flex-basis: 66.6666666666%;
    max-width: 66.6666666666%;
  }
  .large-9 {
    flex-basis: 75%;
    max-width: 75%;
  }
  .large-10 {
    flex-basis: 83.3333333333%;
    max-width: 83.3333333333%;
  }
  .large-11 {
    flex-basis: 91.6666666666%;
    max-width: 91.6666666666%;
  }
  .large-12 {
    flex-basis: 100%;
    max-width: 100%;
  }
  .hide-large {
    display: none;
  }
}

/*
* Cell form fields
*/
.cell label,
.cell legend{
  display: block;
  font-weight: normal;
  line-height: 1.8;
  color: #212529;
}
.cell [type='checkbox'] + label, 
.cell [type='radio'] + label{
  display: inline-block;
  vertical-align: baseline;
  margin-left: 0.5rem;
  margin-right: 1rem;
  margin-bottom: 0;
  padding: 0.6rem 0;
}

/*
* Form validation feedback
*/
form .invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 90%;
  color: #dc3545;
}
form.was-validated :invalid ~ .invalid-feedback,
form.was-validated .is-invalid ~ .invalid-feedback,
form.was-validated .is-invalid .invalid-feedback{
  display: block;
}

form.was-validated :valid,
form.was-validated .is-valid,
form.was-validated :valid input,
form.was-validated input:valid ~ .file-upload-input{
  border-color: #28a745;
}
form.was-validated input[type=file]:valid{
  color: #28a745;
}
form.was-validated :invalid,
form.was-validated .is-invalid,
form.was-validated .is-invalid input,
form.was-validated input:invalid,
form.was-validated input[type=file]:invalid ~ .file-upload-input{
  border-color: #dc3545;
}
form.was-validated input[type=file]:invalid{
  color: #dc3545;
}

/*
* Callouts
*/
.callout {
  position: relative;
  margin: 0 0 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(10, 10, 10, 0.25);
  border-radius: 0;
  background-color: white;
  color: #0a0a0a;
}
.callout.primary {
  background-color: #d7ecfa;
  color: #0a0a0a;
}
.callout.secondary {
  background-color: #eaeaea;
  color: #0a0a0a;
}
.callout.alert {
  background-color: #f7e4e1;
  color: #0a0a0a;
}
.callout.warning {
  background-color: #fff3d9;
  color: #0a0a0a;
}
.callout.success {
  background-color: #e1faea;
  color: #0a0a0a;
}
.callout > :last-child {
  margin-bottom: 0;
}
.callout .close-button{
  right: 1rem;
  top: 0.5rem;
  font-size: 2em;
  line-height: 1;
  position: absolute;
  z-index: 10;
  color: #8a8a8a;
  cursor: pointer;
  appearance: none;
  border-radius: 0;
  outline: 0;
}

/*
* Custom File Input
*/
.input-group {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  margin-bottom: 1rem;
  -webkit-align-items: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}
.input-group-button {
  padding-top: 0;
  padding-bottom: 0;
  text-align: center;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}
.input-group-button .button{
  background-color: #dedee5;
  color: #6d7680;
  align-self: stretch;
  height: auto;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 1rem;
  margin: 0;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
  padding: 0.85em 1em;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 0.25s ease-out, color 0.25s ease-out;
  font-family: inherit;
  font-size: 0.9rem;
  -webkit-appearance: none;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}
.custom-file-upload-hidden {
  display: none;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}
.custom-file-upload label {
  display: block;
  margin-bottom: 5px;
}
.file-upload-wrapper {
  position: relative; 
}
.file-upload-input,
input[readonly].file-upload-input {
  color: #495057;
  background-color: white;
  cursor: default;
}

/*
* Checkbox acceptance
*/
legend.acceptance{
  position: relative;
  display: block;
  padding-left: 1.25rem;
}
legend.acceptance input[type=checkbox]{
  position: absolute;
  margin-top: 1rem;
  margin-left: -1.25rem;
}

/*
* Ajustes formularios
*/
.custom-cell-input{
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  height:100%;
}
.custom-cell-input .title{
  font-weight: normal;
  line-height: 1.8;
  padding-bottom: 0.5rem;
}

.hidden {
  display: none;
  visibility: hidden;
}
