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;
}

.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;
}
.auth-card {
  max-width: 26rem;
}

/* Statistics: headline tiles, legends and server-rendered SVG charts. */
.stat-tile {
  border: 1px solid rgba(11, 11, 11, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
}

.stat-label {
  font-size: 0.8rem;
  color: #52514e;
  display: flex;
  align-items: center;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}

.stat-share {
  font-size: 0.85rem;
  font-weight: 400;
  color: #52514e;
}

.kind-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  color: #52514e;
}

.kind-legend li {
  display: flex;
  align-items: center;
}

.kind-legend-stacked {
  flex-direction: column;
}

.kind-swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  margin-right: 0.35rem;
  flex: none;
}

.kind-chart {
  display: block;
  width: 100%;
  height: auto;
}

.kind-chart .kind-tick {
  font-size: 11px;
  fill: #6c6b66;
  font-variant-numeric: tabular-nums;
}

.kind-chart .kind-hit {
  fill: transparent;
}

.kind-chart .kind-col:hover .kind-hit {
  fill: rgba(11, 11, 11, 0.05);
}

.kind-pie-card {
  border: 1px solid rgba(11, 11, 11, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem;
  background: #fff;
  height: 100%;
}

.kind-pie {
  display: block;
  margin: 0 auto;
}

.tabular,
.kind-table td {
  font-variant-numeric: tabular-nums;
}

/* CalibrationTool records list: small text, no wrapping; long codes are cut off until clicked. */
.records-table,
.records-table .form-control,
.records-table .form-select {
  font-size: 0.8rem;
}

.records-table th,
.records-table td {
  white-space: nowrap;
}

.records-table .record-code {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.records-table .record-code.expanded {
  white-space: normal;
  word-break: break-all;
}

.records-table .record-email {
  min-width: 10rem;
}

/* The whole note shows as a tooltip; the box widens while it is being edited. */
.records-table .record-note {
  min-width: 8rem;
  transition: min-width 0.15s;
}

.records-table .record-note:focus {
  min-width: 16rem;
}

/* Read-only note under a tool: long notes wrap instead of widening the table. */
.records-table .record-note-text {
  min-width: 12rem;
  max-width: 32rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.records-table .record-kind {
  min-width: 6rem;
}

.records-table .record-action {
  font-size: 0.8rem;
  padding: 0.1rem 0.4rem;
}

/* Icon-only buttons (see Icons.cs); a copy button shows a check mark while it has the class "done". */
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

.btn-icon .icon-done,
.btn-icon.done .icon-default {
  display: none;
}

.btn-icon.done .icon-done {
  display: inline;
}

.btn-icon.done {
  color: var(--bs-success);
}

/* Row buttons stay at the right edge when a wide table scrolls sideways (cells have an opaque table background). */
.records-table .record-actions {
  position: sticky;
  right: 0;
  z-index: 1;
  box-shadow: inset 1px 0 0 var(--bs-border-color), inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
}

/* CalibrationTool records that only contain the searched code/email: lighter text. */
.records-table > tbody > tr.record-partial > td,
.records-table > tbody > tr.record-partial .form-control,
.records-table > tbody > tr.record-partial .form-select {
  color: #8c949c;
}
