.scanner-input {
  display: flex;
  align-items: end;
  gap: 12px;
  max-width: 720px;
}
.pregnancy-toggle {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 44px;
  gap: 10px;
  cursor: pointer;
  width: fit-content;
}
.pregnancy-field .pregnancy-toggle input[role="switch"] {
  position: absolute;
  opacity: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  z-index: 1;
  cursor: pointer;
}
.pregnancy-track {
  width: 44px;
  height: 26px;
  border: 2px solid #62596e;
  border-radius: 15px;
  background: white;
  position: relative;
}
.pregnancy-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #62596e;
}
.pregnancy-toggle input:checked + .pregnancy-track {
  background: #6d36c5;
  border-color: #6d36c5;
}
.pregnancy-toggle input:checked + .pregnancy-track::after {
  left: 21px;
  background: white;
}
.pregnancy-toggle input:focus-visible + .pregnancy-track {
  outline: 3px solid #6d36c5;
  outline-offset: 3px;
}
.pregnancy-yes,
.pregnancy-toggle input:checked ~ .pregnancy-no {
  display: none;
}
.pregnancy-toggle input:checked ~ .pregnancy-yes {
  display: inline;
}
.registration-page {
  max-width: 720px;
  margin: 40px auto;
  padding: 24px;
  border-top: 4px solid var(--accent);
}
.registration-page h1 {
  margin-bottom: 20px;
}
.registration-brand {
  display: block;
  font:
    bold 22px Georgia,
    serif;
  color: var(--ink);
  margin-bottom: 28px;
}
.registration-notice {
  margin: 20px 0;
  padding: 16px;
  border-left: 3px solid var(--amber);
  background: #fff8ed;
}
.registration-notice p + p {
  margin-top: 12px;
}
.registration-qr {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
}
.onboarding-requests table {
  min-width: 34rem;
}
.block {
  display: block;
}
.scanner-input .field {
  flex: 1;
  min-width: 0;
}
.scanner-summary {
  margin: 20px 0;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.7;
}
.scanner-tools {
  margin-bottom: 18px;
}
.scanner-results table {
  min-width: 28rem;
}
.scanner-caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.scanner-input input {
  font-family: ui-monospace, monospace;
}
.scanner-input .btn {
  flex-shrink: 0;
}
.device-register table {
  min-width: 50rem;
}
.field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  vertical-align: middle;
  accent-color: var(--accent);
}
:root {
  --accent: #6d36c5;
  --accent-dark: #542598;
  --tint: #f1eafa;
  --amber: #ff9800;
  --ink: #29272d;
  --muted: #625f68;
  --line: #dddbe1;
  --page: #ffffff;
  --green: #236c50;
  --red: #aa3346;
  --gutter: clamp(0.875rem, 2.5vw, 3rem);
  --workspace-max: 112rem;
  --rail-width: clamp(13.5rem, 17vw, 16rem);
  --control-height: 2.75rem;
  --dialog-padding: clamp(1rem, 3vw, 1.5rem);
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--page);
  overflow-wrap: anywhere;
}
.workspace {
  min-width: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.6rem, 1.25rem + 1vw, 2.25rem);
  line-height: 1.15;
  font-weight: 700;
}
h2 {
  font-size: clamp(1.125rem, 1rem + 0.25vw, 1.375rem);
  line-height: 1.25;
  font-weight: 700;
}
h3 {
  font-size: 1rem;
}
p {
  line-height: 1.65;
}
small,
.muted {
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -60px;
  left: 10px;
  z-index: 1000;
  padding: 12px;
  background: white;
}
.skip:focus {
  top: 10px;
}
.loading {
  padding: clamp(2rem, 8vw, 5rem) var(--gutter);
  text-align: center;
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.sidebar {
  overflow-y: auto;
  background: #f7f3fc;
  border-top: 5px solid var(--accent);
  border-right: 1px solid var(--line);
  height: 100vh;
  height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0.875rem 1rem;
  scrollbar-width: thin;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  padding: 0 10px;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  color: var(--accent);
  background: #ffe0b2;
  border-radius: 4px;
  flex: none;
}
.brand-symbol svg {
  width: 25px;
  height: 25px;
}
.brand-name {
  font:
    700 21px "Libre Baskerville",
    Georgia,
    serif;
}
.workspace-label {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.625rem 0.625rem 1.25rem;
}
.nav-group {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--muted);
  padding-inline: 0.75rem;
  margin: 0.5rem 0 0.25rem;
}
.nav-link + .nav-group {
  margin-top: 1.25rem;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  color: #635d6d;
  border-radius: 6px;
  margin: 2px 0;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  min-height: var(--control-height);
}
.nav-link:hover {
  background: #eae1f6;
}
.nav-link.active {
  color: white;
  background: var(--accent);
  font-weight: 650;
}
.nav-link[data-page="scanner"]:not(.active) {
  color: #513200;
  background: #ffe0b2;
}
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 0.75rem 0.375rem 0;
}
.sidebar nav {
  margin-bottom: 1rem;
}
.account {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  background: #fff0d9;
  color: #8b4a00;
  border: 1px solid #f2d8af;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.account-info {
  min-width: 0;
  flex: 1;
}
.account-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.account-info small {
  font-size: 11px;
}
.icon-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.5rem;
  min-height: var(--control-height);
  min-width: var(--control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}
.icon-btn:hover {
  background: var(--tint);
  color: var(--accent);
}
.topbar {
  min-height: 4.25rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.625rem;
  padding-inline: max(
    var(--gutter),
    calc((100% - var(--workspace-max)) / 2 + var(--gutter))
  );
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  min-width: 0;
  color: var(--muted);
}
.breadcrumb svg {
  width: 13px;
  height: 13px;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.top-right {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
  min-width: 0;
}
.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 13rem);
  padding-inline: 0.625rem;
  border: 1px solid #bdb5c7;
  border-radius: 5px;
}
.search input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  padding: 0;
  font-size: 0.875rem;
}
.hospital-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  max-width: 14rem;
  min-width: 0;
}
.hospital-tag span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.main {
  padding: clamp(1.375rem, 3vw, 2.75rem) var(--gutter) 3rem;
  max-width: var(--workspace-max);
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.875rem 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 20px;
}
.page-heading p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 0.375rem;
  max-width: 64ch;
}
.page-heading > .actions:empty {
  display: none;
}
.eyebrow {
  font-size: 11px;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: 12px;
}
.btn {
  border: 1px solid #bbb3c5;
  background: white;
  color: var(--ink);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.875rem;
  border-radius: 5px;
  min-height: var(--control-height);
  max-width: 100%;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
}
.btn:hover {
  background: #f4f0f8;
}
.btn.primary {
  background: var(--amber);
  border-color: #e08500;
  color: #2c210d;
}
.btn.primary:hover {
  background: #ffb74d;
}
.btn.danger {
  color: var(--red);
  border-color: #d79ca5;
}
.btn.small {
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.625rem;
  margin-top: 32px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 0;
}
.section-title small {
  font-size: 11px;
}
.welcome-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(10rem, 16vw, 16rem);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: 3px 0 24px;
  border-bottom: 4px solid var(--amber);
}
.welcome-intro h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.875rem, 1.25rem + 1.65vw, 3rem);
}
.welcome-intro p {
  color: var(--muted);
  margin: 12px 0 22px;
  max-width: 520px;
}
.welcome-photo {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 0;
}
.welcome-date {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 15px;
}
.welcome-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 4rem);
}
.list-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.list-row .list-icon {
  color: var(--accent);
  padding: 10px;
  background: var(--tint);
  border-radius: 5px;
  display: flex;
}
.list-row .grow {
  flex: 1;
  min-width: 0;
}
.list-row strong {
  font-weight: 550;
  display: block;
  overflow-wrap: anywhere;
}
.list-row small {
  display: block;
  margin-top: 4px;
}
.text-link {
  font-size: 0.875rem;
  color: var(--accent);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.text-link:hover,
td a:not(.btn, .icon-btn):hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.quiet-footer {
  font-size: 11px;
  color: #797280;
  display: flex;
  gap: 7px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 18px;
}
.quiet-footer svg {
  width: 13px;
  height: 13px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 18px 0;
}
.toolbar > :not(.filter-search, .btn) {
  max-width: 100%;
}
.toolbar > label:not(.field, .filter-search) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--control-height);
  font-size: 0.875rem;
}
.toolbar > .field {
  flex: 1 1 9.5rem;
  max-width: 18rem;
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #bdb5c7;
  border-radius: 5px;
  padding: 0 12px;
  flex: 1 1 15rem;
  max-width: 24rem;
  width: 100%;
}
.filter-search input {
  border: 0;
  min-height: var(--control-height);
  padding: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.table-wrap:focus-visible {
  outline-offset: 2px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.4;
}
thead {
  background: var(--tint);
  color: #433354;
}
th {
  font-weight: 700;
  font-size: 0.8125rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  border-bottom: 1px solid #eeebf1;
  max-width: 24rem;
  overflow-wrap: break-word;
  vertical-align: middle;
}
td,
th {
  padding: 0.625rem clamp(0.625rem, 1vw, 1rem);
}
td .actions {
  min-width: max-content;
  flex-wrap: nowrap;
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fbf9fd;
}
.cell-main {
  font-weight: 600;
}
.mono {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
  background: #f0edf4;
  color: #61566e;
}
.badge.good {
  color: #236447;
  background: #e7f2eb;
}
.badge.warn {
  color: #915400;
  background: #fff0d7;
}
.badge.bad {
  color: #a22d43;
  background: #fcebef;
}
.badge.purple {
  color: var(--accent);
  background: var(--tint);
}
.empty {
  padding: 1.375rem 1rem;
  text-align: left;
  color: var(--muted);
  font-size: 0.875rem;
  background: white;
}
.empty svg {
  display: none;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.empty .btn {
  margin-top: 18px;
}
.table-footer {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 13px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.error-banner {
  padding: 14px;
  background: #fff0f1;
  color: #962d40;
  border: 1px solid #efc3ca;
  border-radius: 5px;
  margin-bottom: 18px;
  font-size: 13px;
}
.notice {
  padding: 14px 16px;
  border-left: 3px solid var(--amber);
  background: #fff8ed;
  color: #6c522e;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  gap: 25px;
  margin: 15px 0 25px;
}
.tab {
  background: transparent;
  border: 0;
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 13px;
  min-height: var(--control-height);
}
.tab.active {
  color: var(--accent);
  border-color: var(--accent);
}
dialog {
  width: min(45rem, calc(100% - 2 * var(--gutter)));
  max-height: 90vh;
  max-height: calc(100dvh - 2 * var(--gutter));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 40px #20103026;
  color: var(--ink);
  background: var(--page);
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 5rem 1rem;
}
body:has(dialog[open]) {
  overflow: hidden;
}
dialog::backdrop {
  background: #22132b66;
}
.dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem var(--dialog-padding);
  border-bottom: 1px solid var(--line);
  background: var(--page);
}
.dialog-body {
  padding: var(--dialog-padding);
}
.dialog-body > :is(h3, p, img, .field) + :is(p, .field, .actions, .table-wrap) {
  margin-top: 0.75rem;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-grid > * {
  min-width: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 0;
}
.form-grid > .full {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea,
.select {
  border: 1px solid #b3aabb;
  border-radius: 5px;
  padding: 10px 11px;
  width: 100%;
  background: white;
  color: var(--ink);
  min-width: 0;
  min-height: var(--control-height);
  font-size: 1rem;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field small {
  font-weight: 400;
  font-size: 0.8125rem;
}
.check-list {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 5px;
}
.check-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px;
  font-size: 13px;
}
.check-list input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.form-error {
  color: var(--red);
  font-size: 12px;
  margin-top: 15px;
  line-height: 1.5;
}
.upload-form {
  max-width: 760px;
}
.dropzone {
  padding: clamp(0.875rem, 4vw, 2.25rem);
  border: 1px dashed #9d84bb;
  border-radius: 6px;
  background: #fbf9fe;
  text-align: center;
  margin: 24px 0;
}
.dropzone svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 10px;
}
.dropzone input {
  display: block;
  margin: 18px auto 0;
  max-width: 100%;
}
.upload-template {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.sheet-preview .table-wrap {
  max-height: min(30rem, 60vh);
}
.sheet-preview th {
  position: sticky;
  top: 0;
  background: var(--tint);
}
.recovery-table table {
  min-width: 740px;
}
.recovery-table .field {
  min-width: min(9rem, 100%);
}
.recovery-select {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
}
.recovery-bulk-date {
  width: fit-content;
  min-height: 44px;
}
.recovery-select input,
.recovery-bulk-date input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.recovery-use-today {
  min-height: 44px;
  margin-top: 6px;
}
.recovery-date-help {
  margin-bottom: 16px;
  font-size: 12px;
}
.recovery-mobile-label {
  display: none;
}
@media (max-width: 1040px) {
  .recovery-table :is(table, tbody) {
    display: block;
    min-width: 0;
  }
  .recovery-table thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .recovery-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 14px;
  }
  .recovery-table tbody tr + tr {
    border-top: 1px solid var(--line);
  }
  .recovery-table td {
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  .recovery-table .recovery-identity {
    grid-area: 1 / 1 / 2 / -1;
    padding-right: 48px;
    min-height: 44px;
  }
  .recovery-pick {
    grid-area: 1 / 2 / 2 / 3;
    justify-self: end;
    z-index: 1;
  }
  .recovery-received,
  .recovery-result {
    grid-column: 1 / -1;
  }
  .recovery-mobile-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 3px;
  }
}
.source-meta {
  display: flex;
  gap: 0.375rem 1.25rem;
  flex-wrap: wrap;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.settings-section {
  max-width: 750px;
  margin-bottom: 35px;
}
.settings-section h2 {
  margin-bottom: 18px;
}
.palette-images {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.palette-images img {
  width: calc(50% - 8px);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: #f7f5fa;
}
.login-form {
  width: 100%;
  max-width: 400px;
}
.login-form .brand {
  justify-content: center;
  margin-bottom: 45px;
}
.login-form h1 {
  text-align: center;
  font-family: Georgia, serif;
  font-weight: 400;
  margin-bottom: 8px;
}
.login-form > p {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 30px;
}
.login-form .field {
  margin-bottom: 20px;
}
.login-form .btn {
  width: 100%;
  margin-top: 5px;
}
.login-footer {
  text-align: center;
  margin-top: 30px;
  color: var(--muted);
  font-size: 11px;
}
#toast {
  position: fixed;
  inset-inline-end: var(--gutter);
  bottom: max(var(--gutter), env(safe-area-inset-bottom));
  max-width: min(26rem, calc(100% - 2 * var(--gutter)));
  padding: 15px 20px;
  background: #292132;
  color: white;
  border-radius: 6px;
  box-shadow: 0 6px 20px #0002;
  display: none;
  z-index: 100;
}
#toast.show {
  display: block;
}
.mobile-menu {
  display: none;
}
.print-report {
  background: white;
  padding: 30px;
}
.print-report h1 {
  margin: 20px 0;
}
.print-report table {
  font-size: 11px;
}
.print-report .source-meta {
  font-size: 11px;
}
@media (max-width: 70rem) {
  .top-right .hospital-tag {
    display: none;
  }
}
@media (max-width: 50rem) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 var(--gutter);
  }
  .sidebar-header {
    padding-block: 0.375rem;
  }
  .sidebar-header .brand {
    padding: 0;
    min-height: var(--control-height);
  }
  .sidebar-content {
    display: none;
    border-top: 1px solid var(--line);
    padding-block: 0.5rem;
  }
  .sidebar.open .sidebar-content {
    display: flex;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.125rem 0.5rem;
    margin-bottom: 0.625rem;
  }
  .nav-group {
    grid-column: 1 / -1;
  }
  .nav-link + .nav-group {
    margin-top: 0.75rem;
  }
  .nav-link {
    padding-inline: 0.5rem;
  }
  .workspace-label,
  .top-right .avatar {
    display: none;
  }
  .mobile-menu {
    display: inline-flex;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-dark);
  }
  .mobile-menu[aria-expanded="true"] {
    background: var(--tint);
  }
  .topbar {
    min-height: 0;
    padding-block: 0.375rem;
  }
  .top-right {
    flex: 0 1 13rem;
  }
}
@media (max-width: 40rem) {
  .welcome-intro,
  .welcome-columns,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .welcome-photo,
  .breadcrumb > :not(strong) {
    display: none;
  }
  .top-right {
    flex-basis: 11.5rem;
  }
  .search input,
  .filter-search input {
    font-size: 1rem;
  }
  .toolbar > .filter-search {
    flex-basis: 100%;
    max-width: none;
  }
  .section-title .text-link,
  .welcome-intro .text-link {
    min-height: var(--control-height);
  }
  .dialog-footer > .btn {
    flex: 1 1 7rem;
  }
  .registration-page {
    margin-block: 0;
    padding: var(--gutter);
  }
  .palette-images {
    flex-direction: column;
  }
  .palette-images img {
    width: 100%;
  }
  .print-report {
    padding: 0;
  }
}
.expectation-exception {
  display: flex;
  margin-top: 6px;
}
.report-breakdown {
  margin: 12px 0 20px;
}
.report-breakdown summary {
  width: fit-content;
  cursor: pointer;
  color: var(--accent-dark);
}
.report-breakdown[open] summary {
  margin-bottom: 12px;
}
.print-only {
  display: none;
}
@media print {
  .print-only {
    display: block;
  }
  .print-report table {
    min-width: 0;
    table-layout: fixed;
    overflow-wrap: anywhere;
  }
  .print-report th {
    white-space: normal;
  }
  .print-report section h2 {
    break-after: avoid;
  }
  .sidebar,
  .topbar,
  .page-heading,
  .no-print,
  #toast,
  .skip {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .main {
    padding: 0;
    max-width: none;
  }
  .table-wrap {
    overflow: visible;
    border: 0;
  }
  thead {
    display: table-header-group;
  }
  tr {
    break-inside: avoid;
  }
  .print-report {
    padding: 0;
  }
  body {
    background: white;
  }
  .print-report h1 {
    font-size: 20px;
  }
  table {
    font-size: 10px;
  }
  td,
  th {
    padding: 7px;
  }
  a {
    color: black;
  }
  .print-report .source-meta {
    display: block;
  }
  .print-report .source-meta span {
    display: inline-block;
    margin-right: 18px;
    margin-bottom: 5px;
  }
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
}
