:root {
  --rv-brand: #0b5fa5;
  --rv-brand-dk: #083f6e;
  --rv-accent: #0f9d8a;
  --rv-text: #0f1e2e;
  --rv-muted: #3d4a57;
  --rv-danger: #7f1d1d;
  --rv-focus: #f59e0b;
  color-scheme: light;
}

body {
  color: var(--rv-text);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.account-line { margin: 0.35rem 0 0; }

.account-btn {
  background: transparent;
  border: 1px solid var(--rv-brand-dk);
  color: var(--rv-brand-dk);
  border-radius: 0.25rem;
  min-height: 2.25rem;
  padding: 0.2rem 0.6rem;
}

#demo-tools { padding-bottom: 0.25rem; }

.banner-inner { padding: 0.35rem 0 0.6rem; }

.banner-actions, .form-actions, .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.file-label { font-weight: 600; margin-right: 0.35rem; }

#content:focus { outline: 3px solid var(--rv-focus); outline-offset: 2px; }

main { padding-top: 1.25rem; padding-bottom: 2.5rem; }

h1, h2, h3 { line-height: 1.25; color: var(--rv-brand-dk); }

main a { color: var(--rv-brand); text-underline-offset: 0.15em; }

main a:visited { color: #083f6e; }

fieldset.group, fieldset.choice {
  border: 1px solid #5c6b7a;
  border-radius: 0.4rem;
  margin: 0 0 1.1rem;
  padding: 0.75rem 1rem 1rem;
  min-width: 0;
}

legend {
  float: none;
  width: auto;
  padding: 0 0.35rem;
  font-weight: 700;
  color: var(--rv-brand-dk);
}

.field { margin-bottom: 0.9rem; max-width: 42rem; }

.field-wide { max-width: 50rem; }

.field label, .ro-label, .print-label { font-weight: 650; }

.field-help, .alt-unit { color: var(--rv-muted); margin: 0.25rem 0 0; }

.field-error {
  display: none;
  color: var(--rv-danger);
  font-weight: 650;
  margin: 0.3rem 0 0;
}

.field-error.is-shown { display: block; }

.form-control, .form-select, .btn, .form-check-input {
  min-height: 2.5rem;
}

.form-check-input {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.2rem;
}

.form-control, .form-select { border-color: #495057; }

.btn { min-height: 2.5rem; }

.btn-danger, .btn-outline-danger:hover {
  background: var(--rv-danger);
  border-color: var(--rv-danger);
  color: #fff;
}

.btn-outline-danger { color: var(--rv-danger); border-color: var(--rv-danger); background: #fff; }

.error-summary {
  border: 2px solid var(--rv-danger);
  background: #fff6f4;
  color: #3b0a07;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.error-summary a { color: var(--rv-danger); }

.confirm-box {
  border: 1px solid #5c6b7a;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}

.ro-value {
  border: 1px solid #d5dde6;
  background: #f8fafc;
  border-radius: 0.25rem;
  padding: 0.45rem 0.6rem;
  min-height: 2.5rem;
}

.prewrap { white-space: pre-wrap; }

.card-list, .section-index { padding-left: 1.2rem; }

.card-list li, .section-index li { margin-bottom: 0.9rem; }

.table-scroll { max-width: 100%; overflow-x: auto; }

.data-table, .report-table { width: 100%; border-collapse: collapse; }

.data-table th, .data-table td, .report-table th, .report-table td {
  border: 1px solid #243140;
  padding: 0.4rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.data-table th, .report-table th { background: #e7eef5; color: var(--rv-brand-dk); }

.save-status:empty, .dirty-flag:empty, .page-alert:empty { margin: 0; }

.dirty-flag { color: var(--rv-brand-dk); font-weight: 650; }

.page-alert { color: var(--rv-danger); font-weight: 650; }

.sign-in { max-width: 40rem; }
