html {
  font-size: 14px;
}

:root {
  color-scheme: light;
  --rm-surface-bg: #fff;
}

[data-bs-theme="dark"] {
  color-scheme: dark;
  --bs-body-bg: #111827;
  --bs-body-color: #e5e7eb;
  --bs-border-color: #374151;
  --bs-secondary-color: #a7b0bf;
  --bs-tertiary-bg: #1f2937;
  --bs-link-color: #7db7ff;
  --bs-link-hover-color: #a8ceff;
  --rm-surface-bg: #182131;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.navbar {
  background-color: var(--bs-body-bg);
}

.navbar .nav-link,
.navbar .btn-link,
.theme-switch {
  color: var(--bs-body-color);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .btn-link:hover,
.navbar .btn-link:focus {
  color: var(--bs-link-color);
}

.navbar-brand img {
  transition: filter 0.2s ease;
}

[data-bs-theme="dark"] .navbar-brand img {
  filter: drop-shadow(0 0.25rem 0.75rem rgba(255, 255, 255, 0.12));
}

.theme-switch {
  min-width: 4.5rem;
}

.card,
.modal-content,
.list-group-item {
  background-color: var(--rm-surface-bg);
  color: var(--bs-body-color);
}

.card-header,
.modal-header,
.modal-footer {
  background-color: var(--bs-tertiary-bg);
  border-color: var(--bs-border-color);
}

.table {
  --bs-table-color: var(--bs-body-color);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .table-striped {
  --bs-table-striped-bg: rgba(255, 255, 255, 0.035);
  --bs-table-striped-color: var(--bs-body-color);
}

[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .form-control.bg-light {
  background-color: #1f2937 !important;
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .bg-success-subtle {
  background-color: rgba(25, 135, 84, 0.22) !important;
}

[data-bs-theme="dark"] code {
  color: #f0abfc;
}

.rota-actions-cell {
  min-width: 13.5rem;
}

.rota-action-grid {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.5rem;
  justify-content: end;
  width: fit-content;
  margin-left: auto;
}

.rota-action-grid-return {
  width: fit-content;
}

.rota-action-form {
  margin: 0;
  width: 100%;
}

.rota-action-button {
  white-space: nowrap;
}

.rota-action-form .rota-action-button {
  width: 100%;
}

@media (max-width: 991.98px) {
  .rota-actions-cell {
    min-width: 0;
  }

  .rota-action-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .rota-action-button,
  .rota-action-form .rota-action-button {
    width: 100%;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
