:root {
  --lnx-form-label-color: #343434;
  --lnx-place-holder-color: #000000;
  --lnx-place-holder-opacity: 0.35;
}

[data-bs-theme=dark] {
  --lnx-form-label-color: #d8d8d8;
  --lnx-place-holder-color: #FFFFFF;
}

.linear-layout-form .form-row {
  gap: 0;
  padding-left: 10%;
  padding-right: 10%;
}
@media (max-width: 1200px) {
  .linear-layout-form .form-row {
    padding-left: 0;
    padding-right: 0;
  }
}
.linear-layout-form .form-section-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.linear-layout-form .form-group {
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
}
.linear-layout-form .form-group .form-col {
  width: 100%;
}
.linear-layout-form .form-group .form-label {
  padding: 5px;
  text-align: right;
  color: var(--lnx-form-label-color);
  white-space: nowrap;
  height: auto;
  position: relative;
  margin-top: 0;
}
.linear-layout-form .form-group .form-label:after {
  content: ":";
  margin-left: 5px;
}
.linear-layout-form .form-group .form-suffix-label {
  position: absolute;
  z-index: 100;
  top: 4px;
  right: 6px;
  padding: 5px;
  font-size: 90%;
  text-align: right;
  color: var(--lnx-form-label-color);
  white-space: nowrap;
  height: auto;
  margin-top: 0;
}
.linear-layout-form .form-group .form-control {
  padding: 5px;
  height: 40px;
  /*border-bottom-color: dodgerblue;*/
}
.linear-layout-form .form-group .form-control:focus {
  border-width: 2px;
  border-color: #FF9800;
  /*border-bottom-color: dodgerblue;*/
}
.linear-layout-form .form-group .form-control::placeholder {
  opacity: var(--lnx-place-holder-opacity);
  color: var(--lnx-place-holder-color);
}
.linear-layout-form .form-group .form-control[readonly], .linear-layout-form .form-group .form-control[readonly]:focus {
  border: 2px solid #bec3c6 !important;
}
.linear-layout-form .form-group textarea.form-control {
  margin-top: 0;
  padding: 5px;
  /*border-bottom-color: dodgerblue;*/
  resize: none;
}
.linear-layout-form .form-group fieldset.form-control {
  margin-top: 0;
  padding: 5px;
  height: auto;
  border: 2px solid #bec3c6;
}
.linear-layout-form .form-group input[type=file].form-control {
  margin-top: 0;
  padding: 5px;
  /*border-bottom-color: dodgerblue;*/
  resize: none;
}
.linear-layout-form .form-group .form-check-label {
  margin-top: 0;
  padding-left: 5px;
  font-size: 12px;
  font-weight: normal;
  position: absolute;
  top: 1px;
}
.linear-layout-form .form-group .suffix-box {
  position: absolute;
  top: -1px;
}
.linear-layout-form .form-group div.form-control {
  padding: 5px;
  min-height: 40px;
  height: auto;
}
.linear-layout-form .form-group div.form-control.sdk-date-range {
  /*height: 50px;*/
}
.linear-layout-form .form-group div.form-control label.suffix-box {
  top: 19px;
  left: 36px;
  font-size: 12px;
}
.linear-layout-form .form-group div.form-control input[type=checkbox],
.linear-layout-form .form-group div.form-control input[type=radio] {
  top: 1px;
  position: relative;
  left: 5px;
}
.linear-layout-form .form-group span.select2 {
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  /*border: 2px solid #bec3c6;*/
  border-radius: 8px;
  padding-top: 9px;
  margin-top: 0;
  padding-bottom: 2px;
  padding-left: 5px;
  height: 40px;
}
.linear-layout-form .form-group span.select2:focus, .linear-layout-form .form-group span.select2.select2-container--focus {
  border-width: 2px;
  border-color: #FF9800 !important;
}
.linear-layout-form .form-group .select2-required {
  border-right-color: red !important;
}
.linear-layout-form .form-group .select2-container--disabled {
  border-bottom: 2px solid #bec3c6 !important;
}
.linear-layout-form .form-group .select2-readonly {
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  border: 2px solid #bec3c6;
  border-radius: 4px;
  padding-top: 25px;
  margin-top: -20px;
  padding-bottom: 2px;
}
.linear-layout-form .form-group .select2-container .select2-selection--single {
  padding: 0 3px !important;
  border: none !important;
  margin-top: -2px;
  height: 20px !important;
  background-color: transparent;
}
.linear-layout-form .form-group .select2-container.select2-container--open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.linear-layout-form .form-group .select2-container.select2-container--open .select2-dropdown {
  left: 0;
  margin: 0;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}
.linear-layout-form .form-group .select2-selection__arrow {
  margin-top: 0px;
}
.linear-layout-form .form-group .date {
  max-width: 100%;
}
.linear-layout-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  margin-top: 3px;
  padding: 0;
  line-height: 1rem;
  color: var(--bs-body-color);
}
.linear-layout-form .btn.btn-editor {
  position: absolute;
  top: 6px;
  right: 4px;
  height: 25px;
  width: 25px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: none;
}
.linear-layout-form .btn.btn-editor:active:hover, .linear-layout-form .btn.btn-editor:active, .linear-layout-form .btn.btn-editor:hover, .linear-layout-form .btn.btn-editor:focus {
  position: absolute;
  box-shadow: none !important;
  /* border: 1px groove; */
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: var(--bs-highlight-bg);
  color: var(--bs-highlight-color);
}
