@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("DM Sans Regular"), local("DMSans-Regular"), url("../res/fonts/DMSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local("DM Sans Italic"), local("DMSans-Italic"), url("../res/fonts/DMSans-Italic.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local("DM Sans Medium"), local("DMSans-Medium"), url("../res/fonts/DMSans-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("DM Sans Bold"), local("DMSans-Bold"), url("../res/fonts/DMSans-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: local("DM Sans Black"), local("DMSans-Black"), url("../res/fonts/DMSans-Black.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("JetBrains Mono Regular"), local("JetBrainsMono-Regular"), url("../res/fonts/JetBrainsMono-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local("JetBrains Mono Italic"), local("JetBrainsMono-Italic"), url("../res/fonts/jJetBrainsMono-Italic.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("JetBrains Mono Bold"), local("JetBrainsMono-Bold"), url("../res/fonts/JetBrainsMono-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: local("JetBrains Mono Bold Italic"), local("JetBrainsMono-BoldItalic"), url("../res/fonts/JetBrainsMono-BoldItalic.woff2") format("woff2");
}

:root {
  --cream: #ffef9f;
  --gold: #ffd63d;
  --line: #111111;
  --paper: #fffef7;
  --active-tab: #ff9f1c;
  --accent: #00d1ff;
  --heading: #a985ff;
  --good: #8eff78;
  --bad: #ff8b8b;
  --shadow: 6px 6px 0 var(--line);
}

* {
  box-sizing: border-box;
}

*,
html,
body {
  font-family: "DM Sans", Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  background: #fef6dd;
  background-image: linear-gradient(90deg, rgba(128, 128, 128, 0.2) 1px, rgba(0, 0, 0, 0) 0px), linear-gradient(rgba(128, 128, 128, 0.2) 1px, rgba(0, 0, 0, 0) 0px);
  background-size: 24px 24px;
  color: #111;
}


footer {
  margin-top: 2rem;
}

footer hr {
  display: none;
}

footer p {
  text-align: center;
  font-size: 0.9rem;
}


hr {
  margin: 2rem 0;
  border: none;
  border-bottom: 3px solid var(--line);
}

.print-only {
  display: none;
}

.launch-body {
  min-height: 100vh;
  display: grid;
  align-content: start;
}

.launch-card {
  border: 3px solid var(--line);
  background: var(--cream);
  padding: 2rem 2rem 4rem;
  width: min(720px, 95vw);
  margin: 2rem auto;
  position: relative;
}

.launch-card::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 5px;
  border-style: solid;
  border-width: 0 30px 30px 0;
  border-color: transparent transparent black transparent;
}

.launch-card .btn {
  text-decoration: none;
  color: var(--line);
}

.launch-card section.intro {
  margin-top: 3rem;
}

.launch-card h2 {
  margin-top: 2rem;
}

.launch-card h2::before {
  content: "";
  display: table;
  clear: both;
}

.launch-card h2:first-child {
  margin-top: 0;
}

.launch-card h4 {
  clear: both;
}

.launch-card .intro p {
  margin-bottom: 2rem;
}

.launch-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1rem;
}

#resumeOrStartAction {
  display: block;
}

#resumeOrStartAction .launch-btn {
  aspect-ratio: inherit;
}

.launch-btn {
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  text-align: center;
  color: var(--line);
}

.launch-btn.btn-with-icon {
  flex-direction: column;
  gap: 0.65rem;
}

.launch-btn .btn-icon {
  width: 2rem;
  height: 2rem;
}

.brand-bar {
  width: calc(100% - 2.5rem);
  margin: 1rem;
  padding: 1rem;
  position: relative;
}

.brand-bar h1 {
  margin: 0;
}

.brand-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  display: block;
  max-height: 3rem;
}

.top-bar {
  width: calc(100% - 2.5rem);
  background: var(--cream);
  border: 3px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin: 0 1rem 1rem;
}

.brand-bar:before {
  content: "";
  display: block;
  background: repeating-linear-gradient(-45deg, transparent, transparent .5rem, var(--line) .5rem, var(--line) 1.5rem);
  height: .75rem;
  top: 0;
  width: 33%;
  top: 0;
  right: 0;
  position: absolute;
}


.top-bar .separator {
  text-indent: -9999em;
  margin: 0 15px 0 20px;
  width: 3px;
  background: var(--line);
}

.dataset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}


.export-status {
  align-self: center;
  font-size: 1rem;
  margin-left: 1rem;
  font-weight: bold;
}

.export-status.error {
  color: #b60000;
}

.btn {
  border: 3px solid var(--line);
  font-size: 1.15rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
}

#saveDatasetBtn.save-btn-pending {
  background: var(--bad);
}

#saveDatasetBtn.save-btn-saved {
  background: var(--good);
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

#appMain .btn-icon {
  display: none;
}

.save-status {
  text-align: right;
  font-size: 1.2rem;
}


.header-right {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}

.header-links {
  display: flex;
  gap: 0.5rem;
}

.nav-link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  color: var(--line);
}

.inline-options {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.inline-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.move-controls {
  display: flex;
  gap: 0.5rem;
}

.small-btn {
  font-size: 1.15rem;
  padding: 0.2rem 0.8rem;
}

.field-error {
  color: tomato;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.row-error {
  background: var(--bad);
}

.value-good {
  background: var(--good);
}

.value-bad {
  background: var(--bad);
}

.tab-bar {
  width: calc(100% - 2.5rem);
  display: flex;
  gap: 0;
  margin: 2rem 1rem 0;
  padding-left: 2rem;
}

.tab {
  border: 3px solid var(--line);
  border-right-width: 0;
  background: #f1f1f1;
  padding: 0.8rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 0;
}

.tab:last-child {
  border-right-width: 3px;
}

#appMain {
  padding: 0 1rem 1rem;
  width: calc(100% - .5rem);
}

.tab-panel {
  display: none;
  border: 3px solid var(--line);
  background: var(--paper);
  min-height: 60vh;
  padding: 2rem;
}

.tab-panel.active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 0.75rem 1rem;
  max-width: 980px;
}

.inspection-grid {
  grid-template-columns: 70% 30%;
  max-width: none;
}

.instrument-tab-columns {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 1fr);
  gap: 2rem;
  align-items: start;
}

.instrument-tab-column .form-grid {
  max-width: none;
}

input,
select,
textarea {
  border: 3px solid var(--line);
  background: #f0f0f0;
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  min-height: 2.2rem;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}

select option {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  background: var(--cream);
  outline: 2px solid var(--gold);
}

input[disabled] {
  border-color: #999;
  background: #eee;
  color: var(--line);
}

strong.value-bad {
  width: 6rem;
  padding: 0.5rem;
}

.field-tiny {
  width: 4rem;
}

.field-small {
  width: 8rem;
}

.field-medium {
  width: 14rem;
}

.field-large {
  width: 20rem;
}

.field-xlarge {
  width: 28rem;
}

.operator-control-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.operator-primary-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.operator-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

input[type='date'] {
  width: 11rem;
}

.instrument-select span {
  display: block;
  margin-bottom: .3rem;
}

.instrument-select select {
  font-size: 1.4rem;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
  max-width: 15rem;
}

.invalid-field {
  outline: 2px solid tomato;
}

.select-good {
  background: lightgreen !important;
}

.select-bad {
  background: tomato !important;
}

.validation-message {
  color: tomato;
  font-size: 0.9rem;
}

.field-control-wrap {
  display: grid;
  align-content: start;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

.stack {
  display: grid;
  gap: 1rem;
}

.report-page {
  max-width: 1200px;
  margin: 0 auto;
}


.report-print-header {
  display: none;
}

.report-operator-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.report-output {
  display: block;
}

.report-output>section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.report-section {
  border-bottom: 3px solid var(--line);
  padding-bottom: 2rem;
  margin-bottom: 1rem;
  box-shadow: none;
}




.report-subsection {
  background: whitesmoke;
  padding: 0.8rem;
  margin-bottom: 0.75rem;
}

.report-section h2:first-child {
  margin-top: 0;
}

.report-subsection h3:first-child {
  margin-top: 0;
}

.report-section h2 {
  font-size: 1.6rem;
  font-weight: 900;
}

.report-section>.report-section h2 {
  text-transform: none;
  font-weight: normal;
  background: none;
}


.report-section h3 {
  font-size: 1.6rem;
}

.report-subsection h3 {
  font-size: 1.25rem;
  font-weight: normal;
}

.report-section h4 {
  font-size: 1.4rem;
}

.report-section h4:first-child {
  margin-top: 0;
  padding: 0.25rem 0.75rem;
}

.report-section h5 {
  font-size: 1.25rem;
  margin: 2rem 0;
}

.report-subsection h4.grade-themed {
  border: 3px solid var(--line);
  background: var(--paper);
  color: var(--line);
  box-shadow: var(--shadow);
}


.instrument-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.instrument-columns>section+section.report-subsection .report-grid {
  grid-template-columns: minmax(160px, 440px) 1fr;
}

.instrument-columns>section+section.report-subsection .report-grid dd {
  text-align: center;
}

@media (max-width: 900px) {
  .instrument-columns {
    grid-template-columns: 1fr;
  }
}

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

.report-grid {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 0.35rem 0.8rem;
  margin: 0;
}

.report-two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(380px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.report-grid dt {
  font-weight: normal;
  font-size: .9rem;
  border-bottom: 1px dotted #999;
  padding-bottom: .5rem;
  line-height: 1.5rem;
}

.report-grid dd {
  font-weight: bold;
  font-family: "JetBrains Mono", monospace;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5rem;
  padding-left: .3rem;
}

.report-grid dd.value-good {
  background: var(--good);
}

.report-grid dd.value-bad {
  background: var(--bad);
}

.instrument-columns section:first-child .report-grid {
  grid-template-columns: minmax(0px, 180px) 1fr;
}

@media (max-width: 900px) {
  .report-two-column-grid {
    grid-template-columns: 1fr;
  }
}

.grade-themed+.report-grid {
  grid-template-columns: minmax(0px, 150px) 1fr;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.35rem 0 0.75rem;
  font-size: 0.9rem;
}

.report-table th,
.report-table td {
  border: 1px solid #cfcfcf;
  padding: 0.25rem 0.35rem;
  text-align: left;
}

.report-table td {
  font-family: "JetBrains Mono", monospace;
  background: var(--cream);
  font-weight: bold;
}

.report-table td:first-child {
  font-family: inherit;
}

.card {
  border: 3px solid var(--line);
  padding: 2rem;
  background: #efefef;
}

.card h4,
.launch-card h4 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 0;
  margin-bottom: 1.5rem;
}

.placeholder h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.placeholder p {
  font-size: 1.25rem;
}

.inner-tabs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tabs-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inner-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.inner-tab {
  border: 3px solid var(--line);
  background: #ddd;
  font-size: 1.25rem;
  padding: 0.45rem 1rem;
  cursor: pointer;
  margin-right: -3px;
}

.inner-tab.active {
  background: #f1f1f1;
}

.inner-tab.add {
  font-weight: 700;
}

.linkish {
  border: none;
  background: transparent;
  color: #0a33cc;
  text-decoration: underline;
  font-size: 2rem;
  cursor: pointer;
}

.inline-picker select {
  min-width: 360px;
}

.serial-prefix-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.serial-prefix-wrap strong {
  font-size: 1rem;
  font-family: "JetBrains Mono", monospace;
  border: 3px solid var(--line);
  min-height: 2.2rem;
  line-height: 1.8rem;
  padding: 0 .5rem 0 .5rem;
  border-right: 0;
}

.serial-prefix-wrap input {
  margin-left: -.5rem;
}

.inline-guide-link {
  font-size: 1rem;
  color: var(--line);
  margin-left: 1rem;
}

.label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.help-tip-trigger {
  border: none;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1rem;
  font-size: 1rem;
  background: #fff;
  cursor: pointer;
  position: relative;
  font-weight: bold;
  background: var(--accent);
  margin-left: .5rem;
}

.help-tip-bubble {
  display: none;
  position: absolute;
  left: 1.35rem;
  top: -0.35rem;
  min-width: 260px;
  max-width: 360px;
  background: #222;
  color: #fff;
  border-radius: 0.35rem;
  padding: 0.4rem 0.5rem;
  text-align: left;
  z-index: 10;
  font-weight: bold;
  font-size: 1rem;
}

.help-tip-trigger:hover .help-tip-bubble,
.help-tip-trigger:focus .help-tip-bubble,
.help-tip-trigger:focus-visible .help-tip-bubble {
  display: block;
}

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

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.35rem 0.45rem;
}

.grade-themed[data-grade] {
  font-weight: 700;
  border-color: #222;
}

.grade-themed[data-grade="ULP91"] {
  background: #b400b8;
  color: #fff;
}

.grade-themed[data-grade="E10"] {
  background: #b400b8;
  color: #ff7c2c;
}

.grade-themed[data-grade="OPAL91"] {
  background: #b400b8;
  color: #25c6ff;
}

.grade-themed[data-grade="PULP95"] {
  background: #f5df00;
  color: var(--line);
}

.grade-themed[data-grade="E85"] {
  background: #ef5c22;
  color: var(--line);
}

.grade-themed[data-grade="PULP98"] {
  background: #252eaa;
  color: #e8e8e8;
}

.grade-themed[data-grade="ADBLUE"] {
  background: #1db3dc;
  color: #f0f0f0;
}

.grade-themed[data-grade="DIESEL"] {
  background: #989600;
  color: var(--line);
}

.grade-themed[data-grade="BIODIESEL"] {
  background: #009a07;
  color: #ffb173;
}

.grade-themed[data-grade="PREMIUMDIESEL"] {
  background: #989600;
  color: #00ff1a;
}

.grade-themed[data-grade="KEROSENE"] {
  background: #b7d7f7;
  color: #f5f1e8;
}

.nested-content {
  margin-top: 1rem;
  overflow-x: auto;
}

.top-gap {
  margin-top: 1rem;
}

.verification-mark {
  border: 10px solid var(--good);
  border-radius: 0.4rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.75rem;
  position: relative;
  padding-top: 2rem;
  display: inline-block;
  min-width: 15rem;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  background: var(--paper);
}

.verification-mark::before {
  content: "Instrument verified under the National Measurement Act 1960";
  position: absolute;
  font-size: 0.75rem;
  text-transform: uppercase;
  top: 0px;
  background: var(--good);
  letter-spacing: -0.03rem;
  left: 0;
  text-align: center;
  line-height: 0.65rem;
  padding-bottom: 7px;
  font-family: "DM Sans", sans-serif;
}

.form6-sheet {
  border: 3px solid var(--line);
  background: var(--paper);
  padding: 2rem;
}

.form6-sheet h3:first-child {
  /*margin-top: 0;*/
}

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

.form6-block h3,
.form6-table-section h3 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  font-weight: 900;
  padding-bottom: .5rem;
}

.form6-info-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  align-items: center;
}

.form6-info-row dt,
.form6-info-row label {
  font-weight: normal;
  font-size: .9rem;
  border-bottom: 1px dotted #999;
  padding-bottom: .5rem;
}

.form6-info-row dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: bold;
  font-family: "JetBrains Mono", monospace;
}

.form6-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.form6-table th,
.form6-table td {
  border: 3px solid var(--line);
  padding: 0.35rem;
  text-align: left;
}

.form6-table th {
  background: var(--accent);
}

.form6-block h3:first-child {
  margin: 0;
}


.form6-preview-note,
.report-output>p:first-child {
  background: var(--good);
  padding: 1rem;
  margin-bottom: 2rem;
  margin-top: 0;
}

/* Neo-brutalism visual refresh */
.brand-bar,
.top-bar,
.tab-panel,
.card,
.launch-card,
.form6-sheet {
  box-shadow: var(--shadow);
}

.brand-bar {
  background: var(--accent);
  border: 4px solid var(--line);
}

.brand-bar h1 {
  text-transform: uppercase;
  letter-spacing: 0.12rem;
}


.btn {
  border-radius: 0;
  background: var(--gold);
  box-shadow: 4px 4px 0 var(--line);
  font-weight: 700;
  transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.12s ease;
}

.btn:hover {
  background: #ffe87c;
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--line);
}

.save-status {
  font-weight: 700;
}

.tab,
.inner-tab {
  background: #fff;
}

.tab.active, .inner-tab.active {
  background: var(--active-tab);
  font-weight: 900;
}

input,
select,
textarea {
  border-radius: 0;
  background: #fff;
}

.report-table th,
.report-table td {
  border: 1px solid var(--line);
}

.report-table th {
  background: var(--line);
  color: white;
}

.data-table {
  border: 3px solid var(--line);
}

.data-table th {
  background: var(--accent);
}

.data-table td {
  border-top: 3px solid var(--line);
}

.form6-table tbody tr:nth-child(even) {
  background: #ddd;
}

.data-table tr td:nth-child(5),
.data-table tr td:nth-child(6) {
  font-family: "JetBrains Mono", monospace;
  font-weight: bold;
}


@media screen and (max-width: 1000px) {

  #appMain {
    padding: 0;
    width: 100%;
  }

  #appMain h1 {
    padding-left: 1rem;
  }

  .brand-logo {
    max-height: 2rem;
  }

  .top-bar .separator {
    width: 0;
    background: none;
  }

  .tab {
    font-size: 1.4rem;
    padding: 0.7rem 1rem;
    width: 100%;
    text-align: left;
    border-right-width: 3px;
    margin-top: -3px;
    position: relative;
  }

  .inner-tab {
    position: relative;
  }
  .tab.active::after, .inner-tab.active::after {
    content: "";
    position: absolute;
    left: 0px; /* Moves it outside or inside the right edge */
    transform: translateY(-50%);
    border-left: 10px solid var(--line);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    top: 50%;
  }

  


  .data-table .field-small {
    width: 4rem;
  }

  .launch-card,
  .form6-sheet {
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    margin: 1rem 0;
    width: 100%;
    padding: 1rem;
    padding-bottom: 4rem;
  }


  .tab-panel {
    padding: 1rem;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    width: 100%;
  }

  .card {
    box-shadow: none;
    padding: 1rem;
    border: none;
    max-width: 100%;
  }

  .instrument-select select {
    max-width: 15rem;
  }

  .inner-tab,
  .linkish {
    font-size: 1.2rem;
  }

  .tab-bar {
    flex-direction: column;
    align-items: stretch;
    padding-left: 0;
    width: 14rem;
    box-shadow: var(--shadow);
  }

  .inner-tabs-row {
    align-items: stretch;
  }

  .inner-tabs {
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
    position: relative;
  }

  .inner-tab {
    width: 100%;
    margin-right: 0;
    margin-top: -3px;
    text-align: left;
  }

  .tabs-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .top-bar {
    grid-template-columns: 1fr;
  }

  .save-status {
    text-align: left;
    font-size: 1rem;
  }

  .header-right {
    justify-items: start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .inspection-grid {
    grid-template-columns: 1fr;
  }

  .instrument-tab-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.2rem 0.25rem;
    font-size: 0.82rem;
  }

  .data-table input,
  .data-table select {
    min-height: 1.8rem;
    font-size: 1rem;
    padding: 0.1rem 0.25rem;
  }

  .worksheet-table-scroll,
  .form6-table-section {
    max-width: calc(85vw);
    overflow-x: scroll;
    padding: 0 0 1rem 0;
    overflow-x: scroll;
  }

  .form6-table-section {
    max-width: calc(95vw);
  }

  .worksheet-table-scroll,
  .form6-table-section {
    overflow-x: auto;
    /* Fades 3rem at the start and end of the scrollable area */
    mask-image: linear-gradient(to right, black calc(100% - 5rem), transparent);
  }

  .worksheet-table-scroll,
  .form6-table-section {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .worksheet-table-scroll .data-table {
    width: max-content;
    min-width: 100%;
  }

  .form6-columns {
    grid-template-columns: 1fr;
  }

  .report-grid {
    display: block;
  }

  .report-grid dt,
  .form6-sheet dt {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .report-grid dd,
  .form6-sheet dd {
    padding: 0;
    border-bottom: 1px dotted var(--line);
  }

  .report-grid dd.value-good,
  .report-grid dd.value-bad,
  .report-grid dd.value-good+dt+dd,
  .report-grid dd.value-bad+dt+dd {
    width: 4rem;
    border: none;
    text-align: center;
  }

  .form6-info-row {
    display: block;
  }

  .form6-info-row label {
    display: block;
    border: none;
  }

  .report-grid dd,
  .form6-sheet dd {
    border-bottom: 1px dotted var(--line);
    padding-bottom: .25rem;
    margin-bottom: .5rem;
  }

  .launch-card .btn {
    margin-bottom: 0;
  }


}