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;
  background: #f7f7f5;
  color: #1f2933;
}

.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;
}

.page-heading {
  margin: 0 0 1.5rem;
}

.page-heading h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0;
}

.section-block {
  background: #fff;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.section-block h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.section-block h3 {
  font-size: 1rem;
}

.action-card {
  background: #fff;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  color: inherit;
  display: block;
  height: 100%;
  padding: 1rem;
  text-decoration: none;
}

.action-card:hover {
  border-color: #7c8c6f;
  color: inherit;
}

.action-card-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.signup-context-form {
  min-width: min(28rem, 100%);
}

.inline-form {
  display: inline;
}

.compact-list {
  columns: 2;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .compact-list {
    columns: 1;
  }
}

.preview-tabs > input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.preview-tabs > label {
  border: 1px solid #b8c0b3;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  display: inline-block;
  margin-right: .25rem;
  padding: .35rem .75rem;
}

.preview-tabs > input[type="radio"]:checked + label {
  background: #2f5d50;
  border-color: #2f5d50;
  color: #fff;
}

.preview-panel {
  border-top: 1px solid #b8c0b3;
  display: none;
  padding-top: 1rem;
}

#gridMode:checked ~ .preview-grid,
#textMode:checked ~ .preview-text {
  display: block;
}

.csv-grid-wrap {
  max-height: 55vh;
  overflow: auto;
}

.csv-grid {
  font-size: .8rem;
  min-width: 1200px;
}

.csv-grid th {
  white-space: nowrap;
}

.csv-grid td {
  max-width: 18rem;
  vertical-align: top;
}

.csv-text-preview {
  font-family: Consolas, "Courier New", monospace;
  font-size: .8rem;
  min-height: 55vh;
  white-space: pre;
}

.summary-box {
  border: 1px solid #d9ded8;
  border-radius: 6px;
  padding: .75rem;
}

.summary-box span {
  color: #52616b;
  display: block;
  font-size: .85rem;
}

.summary-box strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.1;
}

.import-confirm {
  border-color: #d8b4a0;
}

.instructions-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 700;
  justify-content: space-between;
}

.instructions-editor {
  font-family: Consolas, "Courier New", monospace;
  font-size: .9rem;
}

.instructions-markdown {
  margin: 1rem 0 0;
}

.instructions-markdown h2 {
  font-size: 1.25rem;
  margin: 0 0 .75rem;
}

.instructions-markdown ol,
.instructions-markdown ul {
  padding-left: 1.4rem;
}

.instructions-markdown li {
  margin-bottom: .35rem;
}

.instructions-markdown code {
  color: #1f2933;
}

.instructions-editor {
  height: 68vh;
  min-height: 38rem;
}

.admin-table-wrap {
  max-height: 65vh;
  overflow: auto;
}

.admin-table {
  font-size: .82rem;
  min-width: 1000px;
}

.admin-table th {
  background: #f1f4ef;
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-table td {
  max-width: 20rem;
  vertical-align: top;
}

.admin-table .bulk-select-cell {
  text-align: center;
  width: 2.25rem;
}

.admin-table tr {
  scroll-margin-top: 4rem;
}

.admin-table tr:target td {
  outline: 2px solid #2f5d50;
  outline-offset: -2px;
}

.admin-table tr.sorter-moved td {
  animation: sorter-moved-flash 3.2s ease-out;
}

@keyframes sorter-moved-flash {
  0% {
    box-shadow: inset 0 0 0 999px rgba(255, 255, 128, .7);
  }

  100% {
    box-shadow: inset 0 0 0 999px rgba(255, 255, 128, 0);
  }
}

.admin-edit-form {
  max-width: 52rem;
}

.report-customizer-table th {
  min-width: 12rem;
}

.report-customizer-table td {
  min-width: 11rem;
}

.report-customizer-input {
  max-width: 8rem;
}

.report-customizer-buttons {
  margin-top: .35rem;
}

.color-cell {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
}

.color-swatch {
  border: 1px solid #6b7280;
  display: inline-block;
  height: 1.15rem;
  width: 1.65rem;
}

.color-code-row {
  align-items: center;
  display: flex;
  gap: .75rem;
}

.color-code-row .color-swatch {
  height: 2.4rem;
  width: 4rem;
}

.color-code-input {
  max-width: 12rem;
}

.color-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-top: .5rem;
}
