.formcontainer {
  display: table;
  width: 100%;
  clear: both;
  position: relative;
  margin: 0;
  padding: 0;
  overflow: visible;
}

#blockBody > .formcontainer {
  padding: 0.25em 0.5em 0.5em 0.5em;
}

.formitem {
  display: block;
  position: relative;
  float: left;
  width: 100%; 
  margin: 0;
  padding: 0;
  overflow: visible; 
}

.formbox {
  display: block;
  position: relative;
  margin: 0.25em;
  padding: 0;
  overflow: visible; 
}

.formbox > label {
  display: block;
  font: inherit;
  font-size: 0.75em;
  height: 1.25em;
  line-height: 1.25em;
  margin: 0;
  padding: 0;
  opacity: 0.5;
  overflow: hidden;
}

.formfield {
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 1.75em;
  background: white;
  color: black;
  border-top: 0.0625em solid #aaa;
  border-left: 0.0625em solid #aaa;
  border-right: 0.0625em solid #eee;
  border-bottom: 0.0625em solid #eee;
  border-radius: 5px;
  overflow: visible;
}

.formfield.disabled {
  background: #f4faf8;
}

.formfield.signaled {
  border-color: red;
}

.formfield label {
  display: block;
  position: relative;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 0.5em 0;
}

.formfield > div {
  display: block;
  position: relative;
  padding: 3px;
  min-height: 1.25em;
  overflow: hidden;
  background: inherit;
  border-radius: 5px;
}

.formfield input {
  margin: 0;
  padding: 0 0.25em;
  border: none;
  width: 100%;
  box-sizing: border-box;  
  font: inherit;
  height: 1.625em;
  line-height: 1.625em;
  outline: none;
  border-radius: 4px;
  background: inherit;
}

.formfield select {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
  box-sizing: border-box; 
  font: inherit;  
  height: 1.625em;
  line-height: 1.625em;
  outline: none;
  border-radius: 4px;
  background: inherit;
}

.formfield textarea {
  display: block;
  margin: 0.25em 0;     /* Esto devería estar en el padding pero asi evitamos */
  padding: 0 0.25em;    /* que la scrollbar corte el borde redondeado en IE11 */
  border: none;
  width: 100%;
  height: 4em;
  line-height: 1.25em;
  box-sizing: border-box;  
  outline: none;
  background: inherit;
  resize: none;
  font: inherit;
  border-radius: 5px;
}

.formfield input[disabled] {
  background: #f4faf8;
}

.formfield select[disabled] {
  background: #f4faf8;
}

.formfield textarea[disabled] {
  background: #f4faf8;
}

.formfield input[type=checkbox] {
  margin: 0 0.125em 0 0.125em;
  padding: 0;
  border: inherit;
  width: inherit;
  box-sizing: inherit;  
  outline: none;
  height: 1.25em;
  vertical-align: bottom;
  position: relative;
  top: -1px;
  left: -1px;
}

.formfield input[type=radio] {
  margin: 0 0.125em 0 0.125em;
  padding: 0;
  border: inherit;
  width: inherit;
  box-sizing: inherit;  
  outline: none;
  vertical-align: baseline;
}

.formfield > table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.1875em;
  table-layout: fixed;
}

.formfield > table td {
  text-align: center;
  cursor: pointer;
}

.formfield > div.flex-box {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-content: space-around;
}

.formfield > div.flex-box > div {
  padding: 0 0.25em;
  flex: 1 1 auto;
}

.formfield > div.flex-box > label {
  padding: 0 0.25em;
  flex: 1 1 auto;
}


.formfield > img {
  display: block; 
  margin: 0.1875em; 
  max-height: 8em;
  max-width: 85%; 
  float: left;
  border-radius: 5px;
}

.formfield > i {
  position: absolute;
  display: block;
  right: 0.1875em;
  top: 0.1875em;
  width: 1.25em;
  height: 1.25em;
  line-height: 1.25em;
  text-align: center;
  background: inherit;
  overflow: hidden;
  cursor: pointer;
}

.formfield > i.secondary {
  top: auto;
  bottom: 0.1875em;
}

.formselectpanel {
  display: none;
  position: absolute;
  top: 1.625em;
  left: 0;
  width: auto;
  min-width: 100%;
  max-height: 15em;
  padding: 4px;
  background: white;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-shadow: 1px 1px 6px 0 rgba(0,0,0,0.25);
  overflow: auto !important;
  z-index: 900;
}

.formselectpanel div {
  padding: 5px 5px 4px;
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
}

.formselectpanel div:hover {
  background: #eee;
}

input[type=checkbox] {
  position: relative;
  top: 2px;
}

input[type=radio] {
  position: relative;
  top: 2px;
}
