/* show-password */
.field-password {
  position: relative;
}

.show-password {
  position: absolute;
  color: #94a3b8;
  border: 0;
  outline: none;
  top: 0;
  right: 0;
  font-family: "FontAwesome";
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  background: transparent;
  padding: 0 16px;
}

.show-password:before {
  content: "\F06E";
}

.show-password.show:before {
  content: "\F070";
}

/* fileupload */
.fileupload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  position: relative;
  height: 200px;
  border: 1px solid #ced4da;
  padding: 1.5rem 1.75rem;
}

.fileupload .thumbnail {
  position: relative;
  max-width: 100%;
  max-height: 100%;
}

.fileupload .nofile {
  display: block;
  text-align: center;
}

.fileupload.preview .nofile {
  display: none;
}

.fileupload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  opacity: 0;
  filter: alpha(opacity=0);
  font-size: 0;
  direction: ltr;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.fileupload img {
  max-height: 100%;
  max-width: 100%;
  display: none;
}

.fileupload.preview img {
  display: block;
}

.fileupload .toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fileupload .browse {
  position: relative;
}

.fileupload .remove-file {
  cursor: pointer;
  display: none;
}

.fileupload.preview .remove-file {
  display: block;
}

.fileupload .remove-file:hover {
  color: red;
}

/* desimal */
input.desimal-titik {
  text-align: right;
}

.input-group>input.desimal-koma {
  text-align: right;
  border-left: 1px solid transparent;
  flex: 0 0 auto;
  width: 4rem;
}

/* spinner */
.spinner {
  text-align: right;
}

/* richtext */
.richText .richText-editor ol, .richText .richText-editor ul {
  margin: 0;
}

.richText .richText-help {
  display: none;
}

/* date-time */
.input-datetimerange .input-group {
  width: 200px;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
  font-size: .875rem;
}

.bootstrap-datetimepicker-widget {
  z-index: 1040;
  position: absolute;
}

/* disabled */

fieldset:disabled .btn {
  cursor: default;
  background-color: #e9ecef;
}

fieldset:disabled .input-group-prepend,
fieldset:disabled .input-group-append {
  display: none;
}

fieldset:disabled .btn-spinner-plus,
fieldset:disabled .btn-spinner-min {
  border-color: none;
}

fieldset:disabled .fileupload input[type="file"] {
  cursor: default;
}

fieldset:disabled .fileupload .toolbar {
  display: none;
}

/* richText */
fieldset:disabled .richText-toolbar {
  display: none;
}

fieldset:disabled .richText-editor {
  background-color: #e9ecef;
}

/* validation */
.form-control.is-invalid, .was-validated .form-control:invalid,
.custom-select.is-invalid, .was-validated .custom-select:invalid {
  background: none;
  padding-right: 0.75rem;
}

.input-group.is-invalid .form-control,
.fileupload.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
}

.dropdown-menu {
  z-index: 1040;
}