/**
 * Miscellaneous spacing.
 */

/* Spacing above overview panel grid */
p + .row {
  margin-top: @grid-gutter-width;
}

/* Forms */
td .form-group {
  margin: 0;
  * {
    margin-bottom: 0;
  }
}

.form-file {
  margin-top:    0;
  margin-bottom: .px-rem(10px)[];
  padding-top:   0;
}

.form-inline .panel-body {
  display: block;
  padding: .px-rem(15px)[];
}

.alert {
  margin-top: @line-height-computed;
}
.alert > .glyphicon {
  float: left;
  padding-right: 1em;
}

.modal-body {
  overflow: auto;
  p:last-child {
    margin-bottom: 0;
  }
}

.container > p:last-child {
  margin-bottom: 0;
}

.form-control-static {
  min-height: (@font-size-base * (@line-height-base + 1));
  padding-top: (@padding-base-vertical + .px-rem(1px)[]);
  padding-bottom: (@padding-base-vertical + .px-rem(1px)[]);
}

.form-group-sm {
  .form-control-static {
    min-height: ((@font-size-base * @line-height-base) + @font-size-small);
    padding: (@padding-small-vertical + .px-rem(1px)[]) @padding-small-horizontal;
  }
}

.form-group-lg {
  .form-control-static {
    min-height: ((@font-size-base * @line-height-base) + @font-size-large);
    padding: (@padding-large-vertical + .px-rem(1px)[]) @padding-large-horizontal;
  }
}

.form-horizontal {
  .radio,
  .checkbox,
  .radio-inline,
  .checkbox-inline {
    padding-top: (@padding-base-vertical + .px-rem(1px)[]); // Default padding plus a border
  }
  .radio,
  .checkbox {
    min-height: ((@font-size-base * @line-height-base) + @padding-base-vertical + .px-rem(1px)[]);
  }

  @media (min-width: @screen-sm-min) {
    .control-label {
      padding-top: (@padding-base-vertical + .px-rem(1px)[]); // Default padding plus a border
    }
  }

  .form-group-lg {
    @media (min-width: @screen-sm-min) {
      .control-label {
        padding-top: (@padding-large-vertical + .px-rem(1px)[]);
      }
    }
  }
  .form-group-sm {
    @media (min-width: @screen-sm-min) {
      .control-label {
        padding-top: (@padding-small-vertical + .px-rem(1px)[]);
      }
    }
  }
}

.dl-horizontal {
  @media (min-width: @dl-horizontal-breakpoint) {
    dt {
      width: (@dl-horizontal-offset - .px-rem(20px)[]);
    }
  }
}

