.Form {
  position: relative;
  border: 1px solid #DDDDDD;
  line-height: 1.5em;
  padding: 6px;
  background-color: #FFFFFF;
}

.Form .section:first-child .header {
  margin-top: 0;
}

.Form .header {
  background-color: transparent;
  border-bottom: 1px solid #F0F0F0;
  font-size: 1.25em;
  padding-left: 6px;
  padding-right: 6px;
  margin-top: 0.5em;
  margin-bottom: 0.25em;
}

.Form .body {
  padding-bottom: 6px;
}

.Form .Toolbar > input {
  line-height: 2em;
  height: 2em;
  margin-right: 6px;
  box-shadow: 1px 1px 2px #666666;
}

.Form .Toolbar > .button {
  margin-right: 6px;
  box-shadow: 1px 1px 2px #666666;
}

.Form .Toolbar > .button > .caption {
  line-height: 2em;
  height: 2em;
}

.Form .Toolbar .button .contents {
  top: 2em;
}

.Form .Toolbar .button .contents > input {
  margin-bottom: 8px;
}

.Form .Toolbar .button .contents .field .Field {
  width: 150px;
}

.ButtonPanel {
  margin-top: 6px;
}

.ObjectActionComponent > form > table > tbody > tr > td.value {
	border: none;
}

.ObjectActionComponent > form > table > tbody > tr > td.caption {
  font-weight: bold;
  max-width: 20em;
  white-space: normal;
  line-height: 1.5em;
  vertical-align: middle;
}

*:focus {
  outline: none;
}

.Form .body > div > textarea.StructuredDocument {
  width: 100%;
  height: 300px;
  overflow: auto;
}

.Form td {
  padding-top: 0px;
  padding-bottom: 0px;
}

.Form td.value textarea.StructuredDocument,
.Form td.value textarea.StructuredDocument:focus {
  position: relative;
  display: block;
  height: 350px;
  width: 100%;
  font-family: courier;
}

.read-only {
  background-color: #F6F6F6;
}

input[type="checkbox"] {
  height: 1.2em;
  width: 1.2em;
  border: none;
  vertical-align: middle;
  margin: 0px;
}

input[type="submit"],
input[type="button"],
.button {
  position: relative;
  display: inline-block;
  min-width: 80px;
  width: auto;
  margin-right: 4px;
  padding-left: 6px;
  padding-right: 6px;
  border: none;
  background-color: #DDDDDD;
  vertical-align: middle;
  font-size: 1em;
  line-height: 1.5em;
  text-align: center;
}

.button.download {
  padding: .25em 2em;
}

input[type="button"]:hover,
.button:hover {
  background-color: #FFDD8A;
  cursor: pointer;
}

.button:disabled:hover {
  background-color: #DDDDDD;
  cursor: auto;
}

input.button {
  border: none;
}

/* Error styling */

.section.error {
  margin: 8px 8px 12px 8px;
  padding-left: 4px;
  border-left: 8px solid #FFD8C0;
}

.section.error .body p {
    margin-top: 0;
    margin-bottom: 0;
}

.section.error .header {
  display: none;
  background-color: #FFD8C0;
}

.section.error .body {
  padding: 6px;
}

.section.error .body table {
  margin: 4px;
}

.section.error .body table th,
.section.error .body table td {
  padding-left: 6px;
  padding-right: 6px;
  border: 1px solid #FFC8B0;
}

.section.error .body table th {
  background-color: #FFE8D0;
  font-weight: normal;
}

tr.error > .caption:first-child {
  color: #DD7417;
}

/* End error styling */

.formButtonSection {
  position: relative;
  display: block;
}

.button > .caption {
  position: relative;
  display: block;
  cursor: pointer;
  padding-right: 16px;
  background-image: url("CollapseArrowBlack.png");
  background-repeat: no-repeat;
  background-position: center right;
  line-height: 1.5em;
}

.button .contents {
  position: absolute;
  display: block;
  top: 1.5em;
  left: 0;
  padding: 8px;
  background-color: #FFFFFF;
  border: 1px solid #DDDDDD;
  z-index: 4;
  text-align: left;
}

.button .contents .field {
  border: 1px solid #DDDDDD;
}

.collapsed .contents {
  display: none;
}

.feedback {
  position: relative;
  padding: 6px;
  margin-bottom: 2px;
  background-color: #CDEBCD;
}

.feedback.collapsed {
  display: none;
}

.feedback > div {
  display: inline-block;
  font-size: 13px;
  line-height: 13px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.feedback > div.reset {
  position: absolute;
  top: 0px;
  right: 36px;
  cursor: pointer;
  padding-left: 10px;
  padding-right: 10px;
  background-color: #DDDDDD;
}

.feedback > div.close {
  position: absolute;
  top: 0px;
  right: 4px;
  cursor: pointer;
  font-weight: bold;
  padding-left: 10px;
  padding-right: 10px;
  background-color: #DDDDDD;
}

.BankAccount > input {
  width: 300px;
}

.BankAccount div {
  display: inline;
}

.BankAccount input[type="radio"] {
  display: inline-block;
  vertical-align: middle;
}

.TypeField {
  min-width: 360px;
}

.TypeField textarea {
  display: none;
}

.TypeField .Header {
  margin-top: 3px;
  margin-bottom: 3px;
  height: 20px;
}

.TypeField .Add,
.TypeField .Remove {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  cursor: pointer;
  border: 1px solid #D0D0D0;
  background-repeat: no-repeat;
  background-position: center center;
}

.TypeField .Add {
  vertical-align: middle;
  background-image: url("Plus.png");
  background-color: #F6F6F6;
}

.TypeField .Remove {
  vertical-align: middle;
  background-image: url("Minus.png");
  background-color: #F6F6F6;
}

.TypeField .Header div.Value,
.TypeField .Header div.Text {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  height: 20px;
  border-top: 1px solid #D0D0D0;
  border-bottom: 1px solid #D0D0D0;
  border-right: 1px solid #D0D0D0;
  background-color: #F6F6F6;
}

.TypeField .Row {
  margin-bottom: 1px;
}

.TypeField .Value {
  vertical-align: middle;
  width: 50px;
  padding-left: 4px;
  padding-right: 4px;
}

.TypeField .Text {
  vertical-align: middle;
  width: 250px;
  padding-left: 4px;
  padding-right: 4px;
}

.TypeField .Choices input {
  border-top: 1px solid #D0D0D0;
  border-bottom: 1px solid #D0D0D0;
  border-right: 1px solid #D0D0D0;
  height: 20px;
}

.TypeField .Choices,
.TypeField .Modes {
  font-size: 0.8em;
  line-height: 1.5em;
}

.TypeField .Mode {
  display: inline-block;
  width: 75px;
  text-align: center;
  background-color: #F6F6F6;
  border-top: 1px solid #CCCCCC;
  border-bottom: 1px solid #CCCCCC;
  border-right: 1px solid #CCCCCC;
  cursor: pointer;
}

.TypeField .Mode:first-child {
  border-left: 1px solid #CCCCCC;
}

.TypeField .Mode.Selected {
  background-color: #DDDDDD;
}

.TypeField .Optional,
.TypeField .TextLength {
  font-size: 0.8em;
}

.TypeField .TextLength {
  margin-top: 4px;
}

.TypeField .TextLength > *
 {
  display: inline-block;
  margin-left: 4px;
  vertical-align: top;
}

.TypeField .Optional input {
  margin-left: 4px;
}

.TypeField .TextLength,
.TypeField .Optional,
.TypeField .Choices {
  display: none;
}

.TypeField .TextLength.Expanded,
.TypeField .Optional.Expanded,
.TypeField .Choices.Expanded {
  display: block;
}

.TypeField .TextLength input {
  width: 50px;
  border: 1px solid #CCCCCC;
  text-align: center;
}

#login a {
  display: block;
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 10px;
}

.Inline > * {
  display: inline-block;
  vertical-align: middle;
  border: none;
  margin-right: 1em;
  line-height: 1.5em;
}

.Inline .header {
  display: none;
}

.Inline td.value {
  width: auto;
}

.section.Collapsed {
  display: none;
}

.Inline .section {
  margin-top: 0;
  margin-bottom: 0;
}

.MultipleLine {
  white-space: normal;
}
