form.aui {
  margin: 20px 0 0 0;
  position: relative;
}
form.aui:first-child {
  margin-top: 0;
}
/* Field styles */
form.aui .text,
form.aui .password,
form.aui .upfile,
form.aui .textarea,
form.aui .select,
form.aui .multi-select,
form.aui .aui-select2-container {
  background: #ffffff;
  color: #172b4d;
  font-family: inherit;
  font-size: 14px;
}
form.aui .text,
form.aui .password,
form.aui .textarea,
form.aui .select,
form.aui .multi-select,
form.aui .aui-select2-container .select2-choices {
  border: 1px solid #c1c7d0;
  border-radius: 3.01px;
  box-sizing: border-box;
  font-size: inherit;
  margin: 0;
  max-width: 250px;
  vertical-align: baseline;
  width: 100%;
}
form.aui .text,
form.aui .password,
form.aui .select,
form.aui .aui-select2-container .select2-choices {
  height: 2.14285714em;
  line-height: 1.4285714285714;
  padding: 4px 5px;
}
form.aui .select {
  padding: 6px 5px 5px 5px;
  /* Firefox doesn't allow line-height to be adjusted and selects break horribly when the font-family is changed. Using padding instead */
  vertical-align: top;
}
form.aui .textarea,
form.aui .select[size],
form.aui .multi-select {
  height: auto;
  line-height: 1.4285714285714;
  margin: 0;
  padding: 4px 5px;
}
form.aui .textarea {
  overflow-y: auto;
}
/* Ensure AUI Select2's do not show as regular text fields */
form.aui .aui-select2-container {
  border: 0;
  height: auto;
  max-width: 250px;
  padding: 0;
  vertical-align: baseline;
  width: 100%;
}
form.aui .aui-select2-container .select2-choices {
  height: auto;
  max-width: none;
}
/* Do not give file inputs a height or width because they break horribly in certain browsers. */
form.aui .upfile {
  box-sizing: border-box;
  font-family: inherit;
  font-size: inherit;
  margin: 5px 0;
  padding: 0;
}
form.aui optgroup {
  background-color: #f4f5f7;
  color: #6b778c;
  font-style: normal;
  font-weight: normal;
}
form.aui option,
form.aui optgroup option {
  background-color: #ffffff;
  color: #172b4d;
}
/* Disabled form element styles */
form.aui .text[disabled],
form.aui .password[disabled],
form.aui .textarea[disabled],
form.aui .select[disabled],
form.aui .multi-select[disabled],
form.aui .select[disabled] option,
form.aui .select[disabled] optgroup,
form.aui .multi-select[disabled] option,
form.aui .multi-select[disabled] optgroup {
  background-color: #f4f5f7;
  color: #97a0af;
}
form.aui .text[disabled],
form.aui .password[disabled],
form.aui .textarea[disabled],
form.aui .select[disabled],
form.aui .multi-select[disabled] {
  color: #97a0af;
}
form.aui .text[disabled],
form.aui .password[disabled],
form.aui .textarea[disabled],
form.aui .select[disabled],
form.aui .multi-select[disabled],
form.aui .radio[disabled],
form.aui .checkbox[disabled] {
  cursor: not-allowed;
}
form.aui .text::-webkit-input-placeholder,
form.aui .password::-webkit-input-placeholder,
form.aui .textarea::-webkit-input-placeholder {
  color: #97a0af;
  opacity: 1;
}
form.aui .text::-moz-placeholder,
form.aui .password::-moz-placeholder,
form.aui .textarea::-moz-placeholder {
  color: #97a0af;
  opacity: 1;
}
form.aui .text:-ms-input-placeholder,
form.aui .password:-ms-input-placeholder,
form.aui .textarea:-ms-input-placeholder {
  color: #97a0af;
}
form.aui .text::placeholder,
form.aui .password::placeholder,
form.aui .textarea::placeholder {
  color: #97a0af;
}
form.aui .text.aui-placeholder-shown,
form.aui .password.aui-placeholder-shown,
form.aui .textarea.aui-placeholder-shown,
form.aui .text.placeholder-shown,
form.aui .password.placeholder-shown,
form.aui .textarea.placeholder-shown {
  color: #97a0af;
}
form.aui .text[type=search] {
  -webkit-appearance: textfield;
  outline-width: 5px;
  outline-offset: -2px;
}
form.aui .text[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}
/* Field widths
 * - don't add widths to file inputs - they break horribly
 */
form.aui .short-field {
  max-width: 75px;
}
form.aui .medium-field {
  max-width: 165px;
}
form.aui .medium-long-field {
  max-width: 350px;
}
form.aui .long-field {
  max-width: 500px;
}
form.aui .full-width-field {
  max-width: none;
}
/* Structural elements */
form.aui fieldset {
  border: 0;
  clear: both;
  display: block;
  margin: 0;
  padding: 0;
  position: relative;
}
form.aui legend,
form.aui label {
  color: #6b778c;
}
form.aui .icon-required {
  left: 100%;
  position: absolute;
  top: 5px;
}
form.aui .icon-required::before {
  content: "*";
  position: absolute;
  left: 0;
  top: 0;
  text-indent: initial;
  color: #de350b;
  line-height: 1;
  font-size: 12px;
}
form.aui div.description {
  color: #6b778c;
  font-size: 12px;
  line-height: 1.66666666666667;
  margin: 5px 0 0 0;
}
form.aui div.description:first-child {
  margin-top: 0;
}
form.aui .field-value {
  display: inline-block;
  font-weight: bold;
  padding-top: 5px;
}
/* TODO: don't support this in AUI Forms 2 */
form.aui legend {
  display: none;
}
form.aui .field-group,
form.aui .group,
form.aui .date-select {
  box-sizing: border-box;
  clear: both;
  padding: 4px 0 4px 145px;
  position: relative;
  margin: 1px 0;
  width: 100%;
}
form.aui .group {
  padding-top: 0;
}
form.aui .field-group:before,
form.aui .field-group:after,
form.aui .group:before,
form.aui .group:after,
form.aui .date-select:before,
form.aui .date-select:after {
  content: " ";
  display: table;
}
form.aui .field-group:after,
form.aui .group:after,
form.aui .date-select:after {
  clear: both;
}
form.aui legend,
form.aui .field-group > label,
form.aui .field-group > aui-label {
  float: left;
  margin-left: -145px;
  padding: 5px 0 0 0;
  position: relative;
  text-align: right;
  width: 130px;
  word-wrap: break-word;
}
form.aui .checkbox > label,
form.aui .radio > label {
  color: #172b4d;
}
form.aui div.checkbox > .checkbox[disabled] + label,
form.aui div.radio > .radio[disabled] + label {
  color: #97a0af;
  cursor: not-allowed;
}
form.aui .field-group .error,
form.aui .group .error,
form.aui .checkbox .error,
form.aui .radio .error {
  clear: both;
  color: #de350b;
  display: block;
  margin: 5px 0 0 0;
}
form.aui .field-group .error:first-child,
form.aui .checkbox .error:first-child,
form.aui .radio .error:first-child {
  margin-top: 0;
}
form.aui .group legend,
form.aui .date-select legend {
  display: block;
}
form.aui .group .field-group,
form.aui .date-select .field-group {
  clear: none;
  padding-left: 0;
  padding-top: 0;
}
form.aui .date-select .field-group label {
  display: none;
}
form.aui div.checkbox,
form.aui div.radio {
  margin: 5px 0 0 0;
  padding: 0 0 0 20px;
  position: relative;
}
form.aui legend + .field-group,
form.aui legend + .checkbox,
form.aui legend + .radio {
  margin-top: 0;
  padding-top: 5px;
}
form.aui div.checkbox:first-child,
form.aui div.radio:first-child {
  margin-top: 0;
}
form.aui .matrix {
  padding-top: 5px;
}
form.aui div.radio input.radio,
form.aui div.checkbox input.checkbox {
  box-sizing: border-box;
  font-size: 14px;
  height: 1.4285714285714em;
  left: 0;
  margin: 0;
  padding: 2px;
  position: absolute;
  vertical-align: baseline;
}
/* Buttons */
form.aui .buttons-container {
  box-sizing: border-box;
  clear: both;
  margin: 1px 0 0 0;
  padding: 4px 0 4px 145px;
  position: relative;
  width: 100%;
}
/* Long Labels
 * add long-label class to form eg: <form class="aui long-label">
 */
form.aui.long-label .field-group,
form.aui.long-label .group,
form.aui.long-label .date-select,
form.aui.long-label .buttons-container {
  padding-left: 250px;
}
form.aui.long-label .field-group > label,
form.aui.long-label .field-group > aui-label,
form.aui.long-label .group > legend {
  margin-left: -250px;
  width: 235px;
}
form.aui.long-label .group .field-group,
form.aui.long-label .date-select .field-group {
  padding-left: 0;
}
/* End Long Labels */
/* Top Labels
 * add top-label class to form eg: <form class="aui top-label">
 * display all forms with top-labels for screen sizes < 768px
 */
form.aui.top-label .field-group {
  padding-left: 0;
}
form.aui.top-label .field-group > label,
form.aui.top-label .field-group > aui-label {
  display: block;
  float: none;
  margin: 0 0 5px 0;
  padding: 0;
  text-align: left;
  width: auto;
}
form.aui.top-label .icon-required {
  left: 0;
  position: relative;
  top: 0;
}
form.aui.top-label .group,
form.aui.top-label .date-select {
  padding-left: 0;
}
form.aui.top-label .group legend,
form.aui.top-label .date-select legend {
  float: none;
  margin: 0;
  text-align: left;
  width: auto;
}
form.aui.top-label .date-select label {
  display: none;
}
form.aui.top-label .buttons-container {
  padding-left: 0;
}
/* End Top Labels */
/* Deprecated button styling - use the new aui-button component */
/* Basic Button Style */
form.aui .button {
  box-sizing: border-box;
  transition: background-color 0.1s ease-out;
  border-radius: 3.01px;
  border-style: solid;
  border-width: 1px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-variant: normal;
  font-weight: 400;
  background-image: none;
  background-color: rgba(9, 30, 66, 0.08);
  border-color: transparent;
  color: #344563;
  height: 2.14285714em;
  line-height: 1.4285714285714;
  margin: 0;
  padding: 4px 10px;
  text-decoration: none;
  vertical-align: baseline;
  white-space: nowrap;
}
form.aui .button:focus,
form.aui .button:hover {
  background-color: rgba(9, 30, 66, 0.13);
  border-color: transparent;
  color: #344563;
  text-decoration: none;
}
form.aui .button:active,
form.aui .button.active {
  background-image: none;
  background-color: #deebff;
  border-color: transparent;
  color: #0052cc;
  text-decoration: none;
}
form.aui .button[disabled],
form.aui .button[disabled]:hover,
form.aui .button[disabled]:focus,
form.aui .button[disabled]:active {
  background-color: #f4f5f7;
  border-color: transparent;
  color: #a5adba;
  cursor: default;
}
form.aui .cancel {
  cursor: pointer;
  font-size: 14px;
  display: inline-block;
  padding: 5px 10px;
  vertical-align: baseline;
}
/* Create 10px effective gap; backwards compat for old and new buttons */
/* zero font size hack to stop 4px magic number problems. */
form.aui .buttons-container > .buttons {
  font-size: 0;
}
/* ensure zero font size hack doesn't kill other elements. */
form.aui .buttons-container > .buttons > * {
  font-size: 14px;
}
form.aui .buttons-container .button + .button,
form.aui .buttons-container .button + .aui-button,
form.aui .buttons-container .aui-button + .button,
form.aui .buttons-container .aui-button + .aui-button {
  margin-left: 10px;
}
form.aui .buttons-container .aui-button + .aui-button-link {
  margin-left: 9px;
  /* 1px diff due to border */
}
/* Message Interops */
form.aui .aui-message + .field-group,
form.aui .aui-message + .group,
form.aui .aui-message + .date-select {
  margin-top: 10px;
}
/* Deprecated */
form.aui span.content {
  left: -9999px;
  position: absolute;
  top: -9999px;
}
form.aui pre.aui-form {
  background-color: #f4f5f7;
  border: 1px solid #dfe1e6;
  font-family: "SFMono-Medium", "SF Mono", "Segoe UI Mono", "Roboto Mono", "Ubuntu Mono", Menlo, Courier, monospace;
  font-size: 12px;
  line-height: 1.66666667;
  overflow-x: auto;
  overflow-y: visible;
  padding: 15px;
}
@media screen and (max-width: 767px) {
  html.aui-responsive form.aui .field-group,
  html.aui-responsive form.aui.long-label .field-group {
    padding-left: 0;
  }
  html.aui-responsive form.aui .field-group > label,
  html.aui-responsive form.aui.long-label .field-group > label,
  html.aui-responsive form.aui .field-group > aui-label,
  html.aui-responsive form.aui.long-label .field-group > aui-label {
    display: block;
    float: none;
    margin: 0 0 5px 0;
    padding: 0;
    text-align: left;
    width: auto;
  }
  html.aui-responsive form.aui .icon-required,
  html.aui-responsive form.aui.long-label .icon-required {
    left: 0;
    position: relative;
    top: 0;
  }
  html.aui-responsive form.aui .group,
  html.aui-responsive form.aui.long-label .group,
  html.aui-responsive form.aui .date-select,
  html.aui-responsive form.aui.long-label .date-select {
    padding-left: 0;
  }
  html.aui-responsive form.aui .group legend,
  html.aui-responsive form.aui.long-label .group legend,
  html.aui-responsive form.aui .date-select legend,
  html.aui-responsive form.aui.long-label .date-select legend {
    float: none;
    margin: 0;
    text-align: left;
    width: auto;
  }
  html.aui-responsive form.aui .date-select label,
  html.aui-responsive form.aui.long-label .date-select label {
    display: none;
  }
  html.aui-responsive form.aui .buttons-container,
  html.aui-responsive form.aui.long-label .buttons-container {
    padding-left: 0;
  }
}
