/**
 * Base layer: form-element defaults (Drupal form, webform, tabledrag).
 *
 * Ported (DRUP-3910, Phase 1) from wms-style-guide's Fractal-compiled SCSS:
 *   - bits/02-general/forms/forms.scss
 *
 * Per 00-migration-map.md, forms.scss is theme-global in full (confirmed
 * live against real webform-submission-form/tabledrag-handle/webform-scale
 * selectors during Task 10's review) -- the whole file is ported, not a
 * subset, despite the module also containing doc-only Twig mockups.
 *
 * SCSS resolved to literal values (cross-checked against the compiled
 * public/css/global.css -- output matches exactly): the @include
 * reset-list-nav mixin call expands to `margin: 0; padding: 0;
 * list-style: none;` (assets/scss/_mixins.scss), and $spacer resolves to
 * 1rem (assets/scss/_variables.scss); nesting flattened.
 */

.checkbox-list,
.radiobutton-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.form-item {
  margin: 1rem 0;
}

.form-item__select,
input[type=text],
input[type=password],
input[type=url],
input[type=email],
input[type=number],
textarea {
  font-size: 1rem;
}

.search-name {
  position: relative;
}

.search-name .search-name-box {
  min-width: 300px;
  background: transparent url(../images/search-icon.jpg) no-repeat 98% center;
  background-size: 25px auto;
  height: 30px;
}

.search-name #search-name-submit {
  -webkit-appearance: none;
  box-sizing: inherit;
  padding: 0;
  border-width: 0;
  border-style: none;
  border-color: inherit;
  border-image: none;
  color: transparent;
  position: absolute;
  left: 250px;
  top: 1px;
  width: 55px;
  height: 30px;
  background-color: transparent;
}

form .hidden {
  visibility: hidden;
}

.webform-scale .form-type-radio {
  border-top: 0;
}

.webform-scale .form-type-radio:last-of-type {
  border-bottom: 0;
  padding: 0 !important;
}

.webform-button--submit {
  margin: 1rem 0 0 0;
}

.draggable a.tabledrag-handle {
  border-bottom: none;
}

.draggable a.tabledrag-handle .handle {
  width: 25px;
  height: 25px;
}

.custom-range {
  height: unset;
}

.form-type-range .form-type-number {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

.form-wrapper summary::before {
  content: unset;
}

.webform-submission-form .webform-custom label {
  font-weight: bold;
}

.webform-submission-form .webform-custom .form-control {
  width: unset;
}

.webform-submission-form .webform-custom .webform-multiple-table td .form-type-textfield input {
  width: 100%;
}

.webform-submission-form .webform-table#edit-reallocation-transfer-form td .form-type-textfield input {
  width: 100%;
}
