.fs-body {
  font-size: 0.875rem;
  /* line-height: 1.5; */
}

.open-modal {
  cursor: pointer;
}

body[data-topbar="dark"] .logo-dark {
  display: none !important;
}

body .logo-dark {
  display: flex !important;
}

body[data-topbar="dark"] .logo-light {
  display: flex !important;
}

body .logo-light {
  display: none !important;
}

body[data-sidebar-size="sm"] .logo span.logo-lg {
  display: none !important;
}

#datatable_wrapper #datatable_length > label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  gap: 4px;
}

.col-sm-8th {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 12.5%;
}

.wysiwyg-color-red {
  color: var(--bs-danger) !important;
}

.h-38 {
  height: 38px;
}

.h-fit {
  height: fit-content;
}

.choices {
  margin-bottom: 0 !important;
}

.choices__item.choices__item--choice.choices__item--selectable {
  padding-right: 10px !important;
}

#customModal .modal-dialog:not(.modal-fullscreen):not(.non-scrollable) {
  max-height: 90vh !important;
  height: auto !important;
}

  #customModal .modal-dialog:not(.modal-fullscreen):not(.non-scrollable) .modal-content {
    max-height: calc(90vh - 2px) !important;
    height: auto !important;
  }

    #customModal .modal-dialog:not(.modal-fullscreen):not(.non-scrollable) .modal-content .modal-body {
      max-height: calc(90vh - 2px - 60px) !important;
    }

      #customModal .modal-dialog:not(.modal-fullscreen):not(.non-scrollable) .modal-content .modal-body form {
        overflow-y: auto !important;
        overflow-x: hidden;
        max-height: calc(90vh - 2px - 60px - 32px) !important;
      }

        #customModal .modal-dialog:not(.modal-fullscreen):not(.non-scrollable) .modal-content .modal-body form .modal-footer {
          position: sticky;
          bottom: 0px;
          width: calc(var(--bs-modal-width) - 34px);
          padding: 8px 8px;
          background: white;
        }

#customModal .modal-dialog.modal-fullscreen {
  height: 100vh !important;
}

#customModal .modal-dialog.modal-full-screen .modal-content {
  max-height: calc(100vh - 2px) !important;
  height: auto !important;
}

#customModal .modal-dialog.modal-fullscreen .modal-content .modal-body {
  max-height: calc(100vh - 2px - 60px) !important;
}

#customModal .modal-dialog.modal-fullscreen .modal-content .modal-body form {
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - 2px - 60px - 32px) !important;
  max-height: calc(100vh - 2px - 60px - 32px) !important;
}

#customModal .modal-dialog.modal-fullscreen.non-scrollable .modal-content .modal-body form > div {
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - 2px - 60px - 32px) !important;
  max-height: calc(100vh - 2px - 60px - 32px) !important;
}

#customModal .modal-dialog.modal-fullscreen .modal-content .modal-body form .modal-footer {
  position: sticky;
  bottom: 0px;
  padding: 8px;
  background: white;
}

.choices__inner {
  padding-right: 1rem !important;
}

body[data-theme-color="modern"] {
  & .choices.is-focused:not(.is-open) {
    color: var(--bs-body-color);
    background-color: #fff;
    border-color: #92e6d5;
    outline: 0;
    -webkit-box-shadow: 0 0 0 .15rem rgba(var(--bs-primary-rgb), 0.25);
    box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), 0.25);
    border-radius: var(--bs-border-radius);
  }
}

.choices.is-focused:not(.is-open) {
  color: var(--bs-body-color);
  background-color: var(--bs-tertiary-bg);
  border-color: #a8abdf;
  outline: 0;
  -webkit-box-shadow: 0 0 0 .15rem rgba(81,86,190,.25);
  box-shadow: 0 0 0 .15rem rgba(81,86,190,.25);
  border-radius: var(--bs-border-radius);
}

  @media (min-width: 768px) {
    .modal-md {
      --bs-modal-width: 500px;
    }
  }
  /* Wider screens */
  @media (min-width: 1400px) {
    .modal-xl {
      --bs-modal-width: 1320px; /* Matches Bootstrap container max at xxl */
    }
  }

  @media (min-width: 1600px) {
    .modal-xl {
      --bs-modal-width: 1440px; /* Common desktop large width */
    }
  }

  @media (min-width: 1920px) {
    .modal-xl {
      --bs-modal-width: 1600px; /* Comfortable on 1080p */
    }
  }

  @media (min-width: 2560px) {
    .modal-xl {
      --bs-modal-width: 1920px; /* For 2K/Ultrawide */
    }
  }

  @media (min-width: 3200px) {
    .modal-xl {
      --bs-modal-width: 2240px; /* Very large displays */
    }
  }
  /* Optional: cap modal to avoid exceeding viewport */
  .modal-xl {
    max-width: min(var(--bs-modal-width), 95vw);
  }
  /* Make scrollbar borderless and background transparent for all browser */
  body::-webkit-scrollbar {
    width: 8px;
    background: transparent;
  }

  body::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: none;
  }

    body::-webkit-scrollbar-thumb:hover {
      background-color: rgba(0, 0, 0, 0.4);
    }

  body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  }
  /* disable arrow indicators on input with readonly attribute */
  input[readonly]::-webkit-outer-spin-button,
  input[readonly]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  input[type=number][readonly] {
    -moz-appearance: textfield;
  }

  input.form-control, textarea.form-control {
    background-color: white;
  }

  .column-10 .col-sm-2 {
    width: 20%;
  }
