.field-label {
  display: inline !important;
}

.fb-input {
  height: calc(1.5em + 0.75rem + 2px) !important;
}

/* Hiding elements when creating forms */
.value-wrap,
.option-value {
  display: none !important;
}

label.form-status:after {
  /* position: fixed;
    top: 10px;
    right: 10px; */
  text-align: right !important;
  color: var(--neutral-color) !important;
}

.form-wrap.form-builder.controls-left {
  flex-direction: column !important;
}

.form-wrap.form-builder .frmb-control {
  display: flex;
  justify-content: center !important;
  gap: 5px !important;
}

.form-wrap.form-builder .stage-wrap {
  width: unset !important;
}

.form-wrap.form-builder .cb-wrap {
  max-width: unset !important;
  width: 100% !important;
}

.form-wrap.form-builder .cb-wrap.sticky-controls {
  padding-bottom: 10px !important;
  padding-top: 20px !important;
}

.form-wrap.form-builder .frmb-control li,
.form-wrap.form-builder .frmb-control li:first-child,
.form-wrap.form-builder .frmb-control li:last-child {
  align-content: center !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  height: 48px !important;
  text-align: center !important;
  width: 130px !important;
}

.form-wrap.form-builder .frmb-control li::before,
.form-wrap.form-builder .frmb-control li .control-icon {
  color: var(--good-color) !important;
}

.form-control:focus {
  background-color: var(--input-background) !important;
  box-shadow: none !important;
  outline: -webkit-focus-ring-color auto 1px !important;
}

.formbuilder-select-label,
.formbuilder-radio-group-label,
.formbuilder-checkbox-group-label,
.formbuilder-date-label,
.formbuilder-text-label,
.formbuilder-textarea-label {
  font-weight: bold !important;
  padding-bottom: 2px !important;
}

.formbuilder-checkbox {
  display: flex !important;
  align-items: center !important;
  margin: 8px 0 !important;
}

.formbuilder-radio {
  display: flex !important;
  align-items: center !important;
  margin: 8px 0 !important;
}

/* RA Forms */
.sms-response-parameter-pill {
  align-items: center;
  border-radius: 25px;
  display: flex;
  justify-content: center;
  height: 30px;
  width: 100%;
}

.sms-response-parameter-pill.low {
  border: 3px solid var(--table-row-good);
  background-color: var(--table-row-good);
}

.sms-response-parameter-pill.moderate {
  border: 3px solid var(--table-row-tolerance);
  background-color: var(--table-row-tolerance);
}

.sms-response-parameter-pill.high {
  border: 3px solid var(--table-row-expired);
  background-color: var(--table-row-expired);
}

/* RA Form Building */
.sms-threshold-box {
  align-items: center;
  display: flex;
  justify-content: center;
  height: 35px;
  background-color: var(--input-border);
  margin-left: 7px; /*needed because the pills spill over to the right*/
}
.sms-threshold-box-items {
  padding-left: 10px;
  padding-right: 10px;
}

/* Responses */
.sms-response-score-container {
  align-items: center;
  text-align: center;
}

.sms-response-score {
  margin-block-start: 0;
  margin-block-end: 0;
}

.sms-response-score-label {
  margin-block-start: 2;
  margin-block-end: 0;
}

/* assessment matrix */
.sms-table-container th {
  background: white !important;
  color: black !important;
  font-style: bold;
  font-size: 12px;
  text-align: center;
  border: 1px solid;
  padding: 8px 3px;
}

.sms-table-container td,
.sms-table-container tr {
  text-align: center;
  border: 1px solid;
  padding: 8px 3px;
}

.sms-table-container .edit {
  cursor: pointer;
}

.sms-table-container .edit:hover {
  outline: 5px solid var(--good-color);
  outline-offset: -3px;

  position: relative;
  transform: scale(1.01);
  font-weight: bold;
}

.sms-table-container .highlight {
  outline: 5px solid var(--good-color);
  outline-offset: -3px;

  position: relative;
  transform: scale(1.01);
  font-weight: bold;
}

.sms-table-container td.green {
  background: var(--table-row-good) !important;
}

.sms-table-container td.yellow {
  background: var(--table-row-close) !important;
}

.sms-table-container td.red {
  background: var(--table-row-expired) !important;
}

/* Error Checking Formatting */
.invalid {
  border-color: red !important;
}

input[type='radio']:not(:checked).invalid {
  outline: 1px solid red !important;
}
input[type='checkbox']:not(:checked).invalid {
  outline: 1px solid red !important;
}

/* Response Log - Cards */
.mh-smsresponse-card {
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgb(34 49 63 / 25%);
  display: block;
  margin: 10px;
  padding: 16px 30px;
  width: 100%;
}

/* Bottom Section - Most of Data */
.mh-smsresponse-card > hr {
  background: unset !important;
  color: unset !important;
  height: unset !important;
  overflow: hidden !important;
}

.mh-smsresponse-card .section {
  float: left;
}

.mh-smsresponse-card .section.left {
  display: grid;
  justify-items: center;
  width: 12%;
}

.mh-smsresponse-card .section.right {
  width: 88%;
}

.mh-smsresponse-card .section.right > .data {
  align-items: left;
  font-weight: 500;
  padding-bottom: 20px;
  white-space: pre-wrap;
}

.mh-smsresponse-card .section.right > .data.assessment {
  padding: 3px 6px; /* Top/bottom padding of 10px, left/right of 15px */
  border-radius: 5px; /* Rounded corners */
  display: inline-block;
  margin-bottom: 10px;
}

.mh-smsresponse-card .section.right > .data.green {
  border: 3px solid var(--table-row-good); /*green*/
  background-color: var(--table-row-good);
}

.mh-smsresponse-card .section.right > .data.yellow {
  border: 3px solid var(--table-row-close); /*yellow*/
  background-color: var(--table-row-close);
}

.mh-smsresponse-card .section.right > .data.red {
  border: 3px solid var(--table-row-expired);
  background-color: var(--table-row-expired);
}

.mh-smsresponse-card .section.right > label.header {
  display: block;
  align-items: left;
  font-size: 12px;
  color: #4a5568;
  font-weight: 200;
  text-transform: uppercase;
  padding-bottom: 10px;
}

/* Top Section - Title Row */
.mh-smsresponse-card .title {
  float: left;
  padding-bottom: 10px;
}

.mh-smsresponse-card .title.left {
  display: grid;
  justify-items: left;
  width: 90%;
}

.mh-smsresponse-card .title.left > label {
  font-size: 16px;
  font-weight: 500;
}

.mh-smsresponse-card .title.right {
  display: grid;
  justify-items: right;
  width: 10%;
}

/* Top Section of Card - Under Title */
.mh-smsresponse-card .title-header {
  float: left;
  padding-bottom: 15px;
}

.mh-smsresponse-card .title-header > .header {
  color: #4a5568;
  font-weight: 200;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
}

.mh-smsresponse-card .title-header > .data {
  color: var(--good-color);
  font-weight: 500;
  padding-bottom: 10px;
}

.mh-smsresponse-card .title-header > .red {
  color: var(--bad-color) !important;
}

.mh-smsresponse-card .title-header.left {
  display: grid;
  justify-items: center;
  width: 50%;
}

.mh-smsresponse-card .title-header.right {
  display: grid;
  justify-items: center;
  width: 50%;
}

/* creates a pill - used in risk assessment form response */
.mh-smsresponse-card .title-header.right > .risk-score {
  align-items: center;
  text-align: center;
  border-radius: 35px;
  display: flex;
  justify-content: center;
  height: 25px;
  width: 35%;
  font-weight: 500;
}

.mh-smsresponse-card .title-header.right > .risk-score.low {
  border: 3px solid var(--table-row-good);
  background-color: var(--table-row-good);
}

.mh-smsresponse-card .title-header.right > .risk-score.moderate {
  border: 3px solid var(--table-row-tolerance);
  background-color: var(--table-row-tolerance);
}

.mh-smsresponse-card .title-header.right > .risk-score.high {
  border: 3px solid var(--table-row-expired);
  background-color: var(--table-row-expired);
}

/* creates a pill - used in action items */
.mh-smsresponse-card .title-header.right > .status {
  align-items: center;
  text-align: center;
  border-radius: 35px;
  display: flex;
  justify-content: center;
  height: 25px;
  width: 50%;
  font-weight: 500;
}

.mh-smsresponse-card .title-header.right > .status.in-progress {
  border: 3px solid var(--table-row-tolerance); /*orange*/
  background-color: var(--table-row-tolerance);
}

.mh-smsresponse-card .title-header.right > .status.under-review {
  border: 3px solid var(--table-row-close); /*yellow*/
  background-color: var(--table-row-close);
}

.mh-smsresponse-card .title-header.right > .status.closed {
  border: 3px solid var(--input-border); /*light gray*/
  background-color: var(--input-border);
}

.mh-smsresponse-card .title-header.right > .status.complete {
  border: 3px solid var(--table-row-good); /*green*/
  background-color: var(--table-row-good);
}

.mh-smsicon {
  color: var(--good-color);
}

.mh-smsresponse-card .signature-block-container > div {
  margin-left: auto;
  margin-right: auto;
}

.mh-smssettings {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  width: 98%;
}

.mh-smssettings-card {
  background-color: white;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0px 4px 4px rgb(34 49 63 / 25%);
  display: block;
  flex: 0 0 24%;
  padding: 8px 15px;
  max-height: 600px;
  overflow: hidden;
}

.mh-settings-card-alerts {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
}

.mh-smssettings-card hr {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.mh-smssettings-card-header {
  font-size: 18px;
  font-weight: 500;
  text-align: center;

  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.mh-smssettings-card-header .sms-ralist-container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  box-sizing: border-box;
  padding: 1px;
  justify-content: end;
}

.sms-ralist-container .sms-ralist {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral-color);
  background: none;
  padding: 3px;
  float: right;
  line-height: 1;
  margin: 3px;
  transition: 0.25s;
  white-space: nowrap;
}

.sms-ralist-container .sms-ralist:hover {
  color: var(--good-color);
}

.sms-ralist-container .sms-ralist-break {
  height: 0;
  flex-basis: 100%;
}

.selection {
  color: var(--good-color) !important;
  border: 2px solid;
  border-radius: 5px;
}

.mh-smssettings-card-content {
  display: block;
  height: 100%;
  box-sizing: border-box;
  overflow: auto;
}

.mh-smssettings-card-content .right {
  float: right;
  padding-right: 5px;
  padding-left: 5px;
}

.mh-smssettings-card-content .card-input-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.card-input-container label.threshold {
  padding-left: 20px;
}

.mh-smssettings-card-content input {
  background-color: var(--input-background) !important;
  text-align: center;
  width: 50px;
}

.mh-smssettings-card-content input[type='checkbox' i] {
  max-height: 13px;
}

.mh-smssettings .mh-smssettings-alert-table td {
  flex: 1;
}

.mh-smssettings .mh-smssettings-alert-table .tablegroupheaders {
  text-align: center;
}

.mh-smssettings .mh-smssettings-alert-table .header {
  background-color: var(--good-color-dark);
  color: white;
}

.header th:first-child {
  width: 23%;
}

.header th {
  width: 11%;
}

.mh-smssettings .mh-smssettings-alert-table .rightborder {
  border-right: 1px solid;
}

.mh-smssettings .mh-smssettings-alert-table .right {
  float: right;
  padding-right: 5px;
  padding-left: 5px;
}

/* Attachment Thumbnail */
.sms-attachment-thumbnail-wrapper img {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  width: 150px;
}

.sms-attachment-thumbnail-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.sms-attachment-thumbnail-wrapper h1 {
  display: inline-block;
  font-size: var(--medbodyfont);
  font-weight: 500;
  color: var(--good-color-dark);
  width: 100%;
  margin-bottom: 0px;
}

.sms-attachment-thumbnail-item {
  padding: 5px;
  width: 200px;
  position: relative;
}

.sms-attachment-thumbnail-wrapper input[type='checkbox'] {
  width: 100%;
}

.sms-attachment-thumbnail-item .selected {
  border: 2px solid var(--good-color);
}

.sms-attachment-thumbnail-item::before {
  content: attr(data-imageorder);
  position: absolute;
  top: 0;
  left: 0;
}

.sms-attachment-thumbnail-item img {
  width: 95%;
  height: auto;
}

.sms-attachment-thumbnail-item .desc {
  padding: 15px;
  text-align: center;
}

.sms-printpreview-wrapper {
  height: calc(100vh - 225px);
}

/* Form Permissions Page */
.mh-smsformperm-table {
  table-layout: fixed;
}

.mh-smsformperm-table .header {
  background-color: var(--good-color-dark);
  color: white;
  height: 30px;
  font-size: 15px;
}

.mh-sms-switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 22px;
}
.mh-sms-switch input {
  display: none;
}

.mh-sms-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 22px;
  transition: 0.3s;
}
.mh-sms-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
input:checked + .mh-sms-slider {
  background-color: var(--good-color);
}
input:checked + .mh-sms-slider:before {
  transform: translateX(22px);
}

.spacer {
  flex: 1 1 0;
  padding: 2px;
}

@media screen and (max-width: 640px) {
  .mh-smssettings-card {
    flex: unset;
    width: 100%;
  }

  .sms-table-container th,
  .sms-table-container tr {
    font-size: 10px !important;
  }
}

@media screen and (max-width: 1080px) {
  .mh-smsresponse-card {
    box-sizing: border-box;
    box-shadow: 0px 2px 4px rgb(34 49 63 / 25%);
    margin: unset;
    padding: 10px;
  }

  .mh-smsresponse-card .title.left {
    display: grid;
    justify-items: left;
    width: 81%;
  }

  .mh-smsresponse-card .title-header.left {
    display: block;
    width: 100%;
    padding-bottom: unset;
  }
  .mh-smsresponse-card .title-header.right {
    display: block;
    width: 100%;
  }

  .mh-smsresponse-card .title-header > .header {
    display: block;
    color: #4a5568;
    font-weight: 200;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
  }

  .mh-smsresponse-card .title-header > .data {
    display: block;
    color: var(--good-color);
    font-weight: 500;
    padding-bottom: 10px;
    text-align: center;
  }

  .mh-smsresponse-card .title-header.right > .status {
    width: unset;
  }

  .mh-smssettings-alert-table-container {
    overflow-x: auto;
    width: 100%;
    border-collapse: separate;
  }

  .mh-smssettings-alert-table-container input[type='checkbox'] {
    transform: scale(0.5);
  }
}
