.dark-layout .form-control[type=file]::-webkit-file-upload-button {
  background-color: #283046;
}

.dark-layout .form-control[type=file]::file-selector-button {
  background-color: #283046;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e74c3c;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #29c75f;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.on_off {
  margin-top: 10px;
}

.btn-sm {
  margin-right: 10px !important;
}

.table > tbody > tr > td {
  vertical-align: middle;
}

.btn-md {
  width: 200px;
  background-color: #fb2736 !important;
  color: white;
  font-size: 18px;
}

a.disabled {
  pointer-events: none;
}

.custom-file, .custom-file-input {
  position: relative;
  width: 100%;
  height: calc(2.25rem + 2px);
}

.custom-file {
  display: inline-block;
  margin-bottom: 0;
}

.custom-file-input {
  z-index: 2;
  margin: 0;
  opacity: 0;
}

.custom-file-label {
  padding-right: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-file-label, .custom-file-label:after {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
  color: #495057;
}

.custom-file-label {
  left: 0;
  z-index: 1;
  height: calc(2.25rem + 2px);
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.custom-file-label:after {
  bottom: 0;
  z-index: 3;
  display: block;
  height: calc((2.25rem + 2px) - 1px * 2);
  content: "Browse";
  background-color: #e9ecef;
  border-left: 1px solid #ced4da;
  border-radius: 0 0.25rem 0.25rem 0;
}
