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 {
  background: #f4f7f9;
  color: #17212b;
  margin-bottom: 60px;
}

.hero {
  align-items: center;
  background: #101820;
  border-radius: 8px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1.5rem;
}

.hero h1 { margin: 0 0 .25rem; }
.hero p { color: #d7dee8; margin: 0; }

.panel {
  background: #fff;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.auth-card {
  background: #fff;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  margin: 4rem auto;
  max-width: 440px;
  padding: 1.5rem;
}

.auth-card label { font-weight: 700; margin-top: 1rem; }
.auth-card button { margin-top: 1.25rem; }

.grid.two {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.three {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.metric-card canvas {
  cursor: crosshair;
  display: block;
  width: 100%;
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}

.metric-legend {
  color: #657386;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .9rem;
  margin: -.25rem 0 .5rem;
}

.legend-swatch {
  border-radius: 2px;
  display: inline-block;
  height: .7rem;
  margin-right: .25rem;
  width: .7rem;
}

.legend-swatch.rx { background: #0f8f5f; }
.legend-swatch.tx { background: #2563eb; }

.document-page {
  font-size: 1rem;
  line-height: 1.6;
}

.document-page h1,
.document-page h2,
.document-page h3 {
  margin-top: 1.25rem;
}

.document-page h1:first-child {
  margin-top: 0;
}

.document-page pre {
  max-height: none;
}

@media print {
  body {
    background: #fff;
    margin: 0;
  }

  header,
  footer,
  .no-print {
    display: none !important;
  }

  .container {
    max-width: none;
    width: 100%;
  }

  .panel,
  .document-page {
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
  }

  .document-page pre {
    background: #f1f3f5;
    color: #111;
    white-space: pre-wrap;
  }
}

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

.state {
  border-radius: 999px;
  display: inline-block;
  font-weight: 700;
  padding: .3rem .7rem;
}

.state.ok { background: #d8f5e4; color: #0f6a36; }
.state.warn { background: #fff1c7; color: #7a5300; }

.muted { color: #657386; }

.help-box {
  background: #eef5f8;
  border-left: 4px solid #3d7f9f;
  border-radius: 6px;
  color: #20313f;
  margin: 1rem 0;
  padding: .8rem 1rem;
}

.help-box p {
  margin: .25rem 0;
}

.field-help {
  color: #657386;
  display: block;
  font-size: .9rem;
  line-height: 1.35;
  margin: .25rem 0 .75rem;
}

.table-wrap { overflow-x: auto; }

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border-bottom: 1px solid #e4e9ef;
  padding: .65rem;
  text-align: left;
  vertical-align: top;
}

pre {
  background: #101820;
  border-radius: 8px;
  color: #edf3f8;
  max-height: 70vh;
  overflow: auto;
  padding: 1rem;
  white-space: pre-wrap;
}

.path-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.path-list code, td code {
  background: #eef3f7;
  border-radius: 4px;
  color: #102a43;
  display: inline-block;
  padding: .15rem .35rem;
}
