html,
body {
  height: 100%;
}

pre {
  white-space: normal;
}

.sidebar-wrapper .menu {
  margin-top: 0;
}

.search-form .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.search-form .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

html[data-bs-theme='dark'] .form-group,
.form-group {
  margin-bottom: 1rem;
}

html[data-bs-theme='dark'] .form-control:disabled {
  background-color: #101017;
}

html[data-bs-theme='dark'] .accordion-button {
  color: inherit;
}

.accordion-button.collapsed:hover {
  background-color: #f5f5f5;
}

html[data-bs-theme='dark'] .accordion-button.collapsed:hover {
  background-color: #1a1a25;
}

html[data-bs-theme='dark'] .accordion-button:not(.collapsed) {
  color: inherit;
  background-color: #101017;
}

.form-control:disabled {
  background-color: #eaeef4;
}

.table {
  --bs-table-hover-bg: #eaeef4;
}

.breadcrumb {
  --bs-breadcrumb-margin-bottom: 0;
}

.form-group + .btn.btn-block {
  margin-top: 0.5rem;
}

.m-n1 {
  margin: -0.25rem !important;
}

.m-n2 {
  margin: -0.5rem !important;
}

.m-n3 {
  margin: -1rem !important;
}

.m-n4 {
  margin: -1.5rem !important;
}

.m-n5 {
  margin: -3rem !important;
}

.mx-n1 {
  margin-right: -0.25rem !important;
  margin-left: -0.25rem !important;
}

.mx-n2 {
  margin-right: -0.5rem !important;
  margin-left: -0.5rem !important;
}

.mx-n3 {
  margin-right: -1rem !important;
  margin-left: -1rem !important;
}

.mx-n4 {
  margin-right: -1.5rem !important;
  margin-left: -1.5rem !important;
}

.mx-n5 {
  margin-right: -3rem !important;
  margin-left: -3rem !important;
}

.my-n1 {
  margin-top: -0.25rem !important;
  margin-bottom: -0.25rem !important;
}

.my-n2 {
  margin-top: -0.5rem !important;
  margin-bottom: -0.5rem !important;
}

.my-n3 {
  margin-top: -1rem !important;
  margin-bottom: -1rem !important;
}

.my-n4 {
  margin-top: -1.5rem !important;
  margin-bottom: -1.5rem !important;
}

.my-n5 {
  margin-top: -3rem !important;
  margin-bottom: -3rem !important;
}

.mt-n1 {
  margin-top: -0.25rem !important;
}

.mt-n2 {
  margin-top: -0.5rem !important;
}

.mt-n3 {
  margin-top: -1rem !important;
}

.mt-n4 {
  margin-top: -1.5rem !important;
}

.mt-n5 {
  margin-top: -3rem !important;
}

.me-n1 {
  margin-right: -0.25rem !important;
}

.me-n2 {
  margin-right: -0.5rem !important;
}

.me-n3 {
  margin-right: -1rem !important;
}

.me-n4 {
  margin-right: -1.5rem !important;
}

.me-n5 {
  margin-right: -3rem !important;
}

.mb-n1 {
  margin-bottom: -0.25rem !important;
}

.mb-n2 {
  margin-bottom: -0.5rem !important;
}

.mb-n3 {
  margin-bottom: -1rem !important;
}

.mb-n4 {
  margin-bottom: -1.5rem !important;
}

.mb-n5 {
  margin-bottom: -3rem !important;
}

.ms-n1 {
  margin-left: -0.25rem !important;
}

.ms-n2 {
  margin-left: -0.5rem !important;
}

.ms-n3 {
  margin-left: -1rem !important;
}

.ms-n4 {
  margin-left: -1.5rem !important;
}

.ms-n5 {
  margin-left: -3rem !important;
}

html[data-bs-theme='dark'] .selectize-dropdown {
  background: #1b1b29;
  border-color: #35354f;
  color: #c2c2d9;
}

html[data-bs-theme='dark'] .selectize-dropdown .active:not(.selected) {
  background: #40404d;
  color: #c2c2d9;
}

html[data-bs-theme='dark'] .selectize-input {
  background: #1b1b29;
  border-color: #35354f;
  color: #c2c2d9;
}

html[data-bs-theme='dark'] .selectize-control > .selectize-input.input-active {
  background: #1c1c29;
}

.selectize-control.is-invalid .selectize-input {
  border-color: #dc3545;
}

.selectize-control.is-invalid .selectize-input:after {
  border-color: #dc3545 transparent transparent transparent;
}

.selectize-control.is-invalid .selectize-input.dropdown-active:after {
  border-color: transparent transparent #dc3545 transparent;
}

/**
 * Dropzone
 */

.dropzone--form {
  position: relative;
}

.dropzone--list {
  position: relative;
}

.dropzone--form .dz-default {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-align: center;
  height: 100%;
  font-weight: bold;
}

.dropzone--form .dz-default:before {
  content: 'Drop files here to upload';
  display: block;
  user-select: none;
  pointer-events: none;
}

.dropzone--form:not(.dz-drag-hover) .dz-default {
  display: none;
}

.dropzone--form:not(.dz-drag-hover) .dz-default:only-child {
  display: flex;
}

.dropzone--form.dropzone--sorting .dz-default {
  display: none !important;
}

.dropzone--form .dz-default:not(:only-child) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.dropzone--form.dz-drag-hover:not(.dropzone--sorting) .dropzone--template {
  opacity: 0.3;
}

.dropzone--template {
  position: relative;
  transition: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  transition-property: opacity;
  user-select: none;
}

.dropzone--template::before {
  content: '';
  position: absolute;
  margin-left: 1rem;
  margin-right: 1rem;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  transition-property: opacity;
  opacity: 0;
  border-radius: 8px;
  z-index: 1;
}

html[data-bs-theme='light'] .dropzone--template::before {
  background: rgba(0, 0, 0, 0.05);
}

html[data-bs-theme='dark'] .dropzone--template::before {
  background: rgba(255, 255, 255, 0.05);
}

.dropzone--list .dropzone--template:hover::before {
  opacity: 1;
}

.dropzone--form:not(.dz-drag-hover) .dropzone--template:hover::before {
  opacity: 1;
}

.dropzone--template .dz-image {
  min-width: 80px;
  min-height: 80px;
  border-radius: 8px;
  background: #181818;
}

.dropzone--template .dz-icon {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  border: 2px solid currentColor;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dropzone--template .dz-icon > .bi {
  transform: scale(1.5) translateY(-25%);
}

.dropzone--template .dz-filename {
  font-weight: 500;
}

.dropzone--template .dz-size {
  font-size: 0.8em;
  font-style: italic;
  font-weight: 300;
}

.dropzone--template .dz-size strong {
  font-weight: inherit;
}

.dropzone--template .progress {
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition-property: opacity;
}

.dropzone--template.dz-complete .progress {
  opacity: 0;
}

.dropzone--template .dz-actions {
  min-width: 200px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 2;
}

#main.unauthorized {
  margin-left: 0 !important;
}

.list-group + .list-group-label {
  margin-top: 1rem;
}

.list-group + .form-group {
  margin-top: 1rem;
}

.page-content > .container {
  position: relative;
}

.page-content .messages-wrapper {
  position: fixed;
  bottom: 1rem;
  z-index: 999;
  width: calc(100% - 4rem);
  max-width: inherit;
}

@media screen and (min-width: 1200px) {
  #sidebar.active ~ #main .page-content .messages-wrapper {
    width: calc(100% - 300px - 4rem);
  }
}

.page-content .messages-wrapper .alert {
  margin-right: var(--bs-gutter-x);
}

.card .card-content .card-body .form-group:last-of-type {
  margin-bottom: 0 !important;
}

pre {
  white-space: break-spaces;
}

.stats-icon i.bi {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
}

.stats-icon.green {
  background-color: #5dda63 !important;
}

.stats-icon.orange {
  background-color: #daa45d !important;
}

a.card::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  content: '';
  border-radius: inherit;
  transition: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  transition-property: opacity;
  background: var(--bs-body-bg);
  opacity: 0;
}

a.card:hover::before {
  opacity: 0.3;
}

#navbar {
  position: sticky;
  top: 0;
  left: 0;
  height: 64px;
  width: 100%;
  z-index: 9;
  box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.1);
}

#sidebar .logo,
#navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

html[data-bs-theme='light'] #navbar {
  background-color: #fff;
}

html[data-bs-theme='dark'] #navbar {
  background-color: #1e1e2d;
}

#sidebar .sidebar-wrapper .menu {
  margin-top: 0;
}

.card {
  margin-bottom: 1.5rem;
}

.d2h-wrapper .d2h-file-header {
  display: none;
}

.diff-editor {
  background: #fff;
}
