html {
  font-size: 14px;
}

@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;
}
/* Persistent save controls for long annual-data forms. */
.assessment-form {
  padding-bottom: 5.5rem;
}

.floating-form-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .16);
  backdrop-filter: blur(8px);
}

.floating-form-actions .btn {
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .assessment-form {
    padding-bottom: 6.5rem;
  }

  .floating-form-actions {
    right: 0;
    bottom: 0;
    left: 0;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem max(.75rem, env(safe-area-inset-right)) calc(.75rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .floating-form-actions .floating-save-button {
    flex: 1 1 auto;
  }
}

/*
 * Dropdown menus opened from responsive/scrollable tables are temporarily moved
 * to the document body by site.js so they are not clipped by overflow containers.
 */
.dropdown-menu.table-dropdown-portal {
  z-index: 1080;
}
