.elementForm {
  .labelInput, .labelCheck, .checkWrapper {
    font-size: 11px;
  }
  .labelInput {
    width: 70px;
    margin-bottom: $space/2;
    line-height: $inputHeight;
    vertical-align: top;
  }
  textarea {
    height: 150px;
    resize: none;
  }
  select {
    font-size: 12px;
    padding-left: 5px;
  }
  .input {
    width: 100%
  }
  .labelInput + .dropdown {
    display: inline-block;
  }
  .dropdown {
    min-width: 70%;
  }
  .inputWrapper, select, .choiceExpandedSortable, .collectionContainer {
    width: 70%;
  }
  .validationMsgBox{
    min-width: 28%;
  }
  .choiceExpandedSortable {
    &.input {
      // undo fixed pixel height on .input
      // @todo: .input should not have any height rule
      height: auto;
    }
    .checkWrapper.left {
      // undo redundant floats
      // @todo: unfloat checkboxes globally
      float: none;
    }
    .sortableItem {
      cursor: move;
      .checkWrapper, label {
        margin: 0;
      }
      label {
        cursor: inherit;
        width: 92%; // for browser without calc
        // Width taken by checkbox is exactly $fontSize
        // No immediate variable refs inside calc(): https://github.com/sass/sass/issues/818
        width: calc(100% - #{$fontSize} - 2px);  // subtract fontsize (=checkbox width) plus 2 extra pixels for safety
        padding-left: 0.2em;
      }
      &:hover {
        background-color: darken($inputBackgroundColor, 10%);
      }
    }
  }
  // add margin between consecutive "inline" checkboxes with .left
  .left .labelCheck {
    margin-right: $space;
  }
}

.wideLabelForm {
  $label: 100px;
  .labelInput {
    width: $label;
  }
  .inputWrapper, select, .choiceExpandedSortable, .collectionContainer {
    width: calc(100% - #{$label + $space});
  }
  .dropdown {
    min-width: calc(100% - #{$label + $space});
    width: calc(100% - #{$label + $space});
  }
}

.extraWideLabelForm {
  $label: 120px;
  .labelInput {
    width: 120px;
  }
  .inputWrapper, select, .choiceExpandedSortable, .collectionContainer {
    width: calc(100% - #{$label + $space});
  }
  .dropdown {
    min-width: calc(100% - #{$label + $space});
    width: calc(100% - #{$label + $space});
  }
}

.collectionItem {
  clear: both;
  position: relative;
  .labelInput {
    clear: both;
  }
  textarea {
    height: 100px;
    margin-bottom: $space;
  }
  .inputWrapper textarea {
    margin-bottom: 0;
  }
}

.collectionRemove {
  line-height: $inputHeight;
  position: absolute;
  right: 31px;
  z-index: 1;
}
