:root {
  --border-gray: #cdcdcd;
  --input-border-radius: 0.4rem;
  --checkbox-size: 2.4rem;
}

div.bootstrap-datetimepicker-widget {
  background-color: var(--white);
}

td.day.disabled button {
  cursor: not-allowed;
  opacity: 0.3;
  pointer-events: none;
}

.datetimepicker {
  position: relative;
  width: 100%;
}

.input-group.datetimepicker input[type='text'].form-control {
  border-radius: var(--input-border-radius);
  position: absolute;
  z-index: 0;
}

.datetimepicker .input-group-addon {
  background-color: transparent;
  border: 0;
  display: flex;
  justify-content: end;
  padding: 1rem 2rem 1rem 1rem;
  position: relative;
  width: 100%;
  z-index: 1;
}

form {
  color: var(--brand-navy);
}

.form-buttons--right {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding-top: 1rem;
}

.form-buttons--right button.button--secondary {
  width: 100%;
  max-width: 38rem;
}

.form__error-list:not(:empty) {
  color: var(--text-danger);
  padding: 2rem;
}

a.form__link {
  color: var(--brand-green);
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 0.5rem 0;
}

div.msos-selecteditems-container {
  align-items: center;
  min-height: 43px;
}

div.msos-container:not(.msos-disabled),
input[type='search'],
input.input-text-box,
input.text,
input[type='email'].form-control,
input[type='number'].form-control,
input[type='password'].form-control,
input[type='phone'].form-control,
input[type='text'].form-control,
select.form-control,
textarea.form-control {
  background: var(--white);
  border-radius: var(--input-border-radius);
  border: 1px solid var(--border-gray);
  box-shadow: none;
  color: var(--brand-navy);
  height: auto;
  padding: 1rem 2rem 1rem 1rem;
}

input::placeholder {
  opacity: 0.4;
}

input.query.form-control {
  border-radius: var(--input-border-radius);
  border: 1px solid var(--border-gray);
  box-shadow: none;
  color: var(--brand-navy);
}

.entitylist-filter-option .checkbox label {
  align-items: center;
  display: flex;
  padding: 0;
}

label:has(input[type='checkbox']),
label:has(input[type='radio']) {
  cursor: pointer;
}

.checkbox input[type='checkbox'],
input[type='checkbox'],
input[type='radio'] {
  height: var(--checkbox-size);
  margin: 0.5rem 1.5rem 0.5rem 0;
  position: relative;
  width: var(--checkbox-size);
}

input[type='radio'] {
  appearance: none;
  background: var(--border-gray);
  border: 2px solid var(--white);
  border-radius: 50%;
}

input[type='radio']::before {
  position: absolute;
  background: var(--border-gray);
  content: '';
  display: block;
  border: 3px solid var(--border-gray);
  border-radius: 50%;
  bottom: 3px;
  left: 3px;
  right: 3px;
  top: 3px;
  z-index: 1;
}

input[type='radio']:checked::before,
input[type='radio']:checked {
  background: var(--brand-navy);
  border-color: var(--white);
}

.checkbox-cell div.control {
  max-width: 20%;
}

html[dir=ltr] .crmEntityFormView .cell.checkbox-cell div.info {
  display: inline-flex;
  padding-left: 0;
  max-width: 80%;
}

html[dir=ltr] .crmEntityFormView .cell.checkbox-cell div.info label {
  padding: 0.25rem 1rem 0 0;
}

input[type='checkbox']::before {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--brand-navy);
  border-radius: 0.4rem;
  color: var(--white);
  content: '✓';
  display: flex;
  justify-content: center;
  padding-bottom: 0.25rem;
  position: absolute;
  height: 100%;
  width: 100%;
}

input[type='checkbox']:checked::before {
  background: var(--brand-navy);
}

input.input-text-box:focus,
input.text:focus,
select.form-control:focus,
textarea.form-control:focus {
  border: 1px solid var(--brand-green);
  box-shadow: none;
}

input[type='file'] {
  display: inline-flex;
}

input[type='file']:focus {
  outline: none;
}

input[type='file']:focus::before {
  border-color: var(--brand-navy);
}

input[type='file']::-webkit-file-upload-button {
  visibility: hidden;
}

input[type='file']::before {
  background-image: url(/cloud-upload.png);
  background-position: 1.6rem center;
  background-repeat: no-repeat;
  background-size: 2.2rem 1.6rem;
  border: 1px solid var(--border-gray);
  border-radius: 0.4rem;
  content: 'Upload File';
  color: var(--brand-navy);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 24rem;
  padding: 1.6rem 2.4rem 1.6rem 5rem;
}

.form__note {
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0 1.6rem;
}

.form-control[disabled],
fieldset[disabled] .form-control {
  cursor: not-allowed;
  padding: 1rem 0;
  border: 0 none;
}

label.control-label.required {
  word-break: normal;
}

label.required:not(.control-label)::after {
  display: inline;
  content: ' *';
  color: var(--text-danger);
}

textarea.form-control:not([readonly]) {
  min-height: 10rem;
}

.field-label {
  align-items: center;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
}

div.crmEntityFormView {
  border: 0 none;
}

.crmEntityFormView .actions {
  border: 0 none;
  display: flex;
  justify-content: end;
  padding: 0 1rem 0 2rem;
  margin: 0;
}

.crmEntityFormView td.cell,
html[dir='ltr'] .crmEntityFormView .cell.checkbox-cell:first-child {
  padding: 0 0.8rem 2rem;
}

legend.section-title {
  padding: 3rem 1rem 1rem;
}

.modal .crmEntityFormView,
.entity-form {
  border: 0 none;
}

.form-list {
  color: var(--brand-navy);
  display: grid;
  grid-gap: 2rem;
  padding: 0 1.6rem;
}

.form-list__term {
  font-weight: 500;
}

.form-list__data {
  padding: 1.5rem 0 1rem;
}

.form__section {
  padding: 2rem 0;
}

.form__section-header {
  margin-bottom: 1.6rem;
}

fieldset.input-fieldset {
  margin-bottom: 1.6rem;
}

.input-legend {
  border: 0 none;
  color: var(--brand-navy);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.input-legend small {
  color: #687d8c;
  font-size: 1.6rem;
  font-weight: 500;
}

.input-group-wrapper {
  display: flex;
  flex-wrap: wrap;
  column-gap: 3rem;
}

.crmEntityFormView table.section > tbody > tr > td:empty,
td.cell:empty,
.hide_field {
  display: none;
}

.tab-title {
  display: none;
}

.checkbox-cell .field-label {
  font-size: 1.6rem;
  font-weight: 400;
  padding: 0.35rem 1rem 0;
}

.checkbox-cell input[type='checkbox'] {
  height: 2rem;
  width: 2rem;
}

.msos-viewmode-text {
  color: var(--brand-navy);
  font-size: 1.5rem;
}

/* Account email redemption page start */
.registration__main {
  align-items: center;
  display: flex;
  margin: 0 auto;
  max-width: 68rem;
  min-height: 80vh;
  padding: 2rem 2rem 8rem;
}

.registration__header {
  margin-bottom: 2rem;
}

.registration__main .nav-tabs {
  display: none;
}

.registration__main .login-heading-section {
  border-bottom: 0 none;
  margin-bottom: 0;
  padding-top: 2rem;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('/admin/caret-down-gray.png');
  background-repeat: no-repeat;
  background-position: calc(100% - 1rem) center;
  background-size: 1rem;
}

/* Account email redemption page end */
@media (min-width: 768px) {
  .crmEntityFormView td.cell:nth-child(1) {
    padding-left: 1.6rem;
  }

  .crmEntityFormView td.cell:nth-child(1)[colspan='2'],
  .crmEntityFormView td.cell:nth-child(2) {
    padding-right: 1.6rem;
  }

  .form-buttons--right {
    gap: 0;
    justify-content: end;
    padding-top: 4rem;
  }

  .form-buttons--right button.button--secondary {
    width: auto;
  }

  .form-list {
    grid-template-columns: 1fr 1fr;
  }

  html[dir='ltr'] .crmEntityFormView .cell.checkbox-cell:first-child {
    padding-left: 1.6rem;
  }

  legend.section-title {
    padding: 3rem 1.6rem 1rem;
  }
}
