﻿.tpl-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tpl-color-primary {
  color: var(--mud-palette-primary);
}

.tpl-muted {
  color: var(--mud-palette-text-secondary);
}

.tpl-strong {
  font-weight: 600;
}

.tpl-pointer {
  cursor: pointer;
}

.tpl-search {
  max-width: 320px;
  min-width: 220px;
}

.tpl-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.tpl-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tpl-card {
  padding: 24px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 12px;
  background: var(--mud-palette-surface);
}

.tpl-grid {
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 12px;
  overflow: hidden;
}

.tpl-appbar {
  border-bottom: 1px solid var(--mud-palette-lines-default);
}

.tpl-drawer {
  border-right: 1px solid var(--mud-palette-lines-default);
}

.tpl-appbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
  color: var(--mud-palette-text-primary);
  text-decoration: none;
}
.tpl-appbar-brand .tpl-brand {
  color: inherit;
}

.tpl-appbar-product {
  padding-left: 10px;
  border-left: 1px solid var(--mud-palette-lines-default);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mud-palette-text-secondary);
}

.tpl-nav {
  padding-top: 8px;
}

.tpl-nav-heading {
  display: block;
  padding: 16px 16px 4px;
  color: var(--mud-palette-text-secondary);
}

.tpl-account-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding: 4px 8px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--mud-palette-text-primary);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.tpl-account-button:hover {
  background: color-mix(in srgb, var(--mud-palette-text-primary) 8%, transparent);
}
.tpl-account-button:focus-visible {
  outline: 2px solid var(--mud-palette-primary);
  outline-offset: 2px;
}

.tpl-account-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .tpl-account-name {
    display: none;
  }
}
.tpl-account-summary {
  padding: 8px 16px 10px;
  min-width: 220px;
}

.tpl-menu-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 120px;
}

.tpl-auth-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.tpl-auth-main {
  padding: 0;
}

.tpl-auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--mud-palette-background);
}

.tpl-auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 56px;
  color: #ffffff;
  background: linear-gradient(155deg, #06265d 0%, #082f72 58%, #0b3a8c 100%);
}

.tpl-auth-plate {
  position: absolute;
  right: -200px;
  bottom: -220px;
  width: 620px;
  height: 620px;
  pointer-events: none;
  background-image: radial-gradient(circle at 40% 36%, rgba(255, 122, 92, 0.3) 0, transparent 24%), radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 5px, transparent 6px);
  background-size: 100% 100%, 36px 36px;
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
}

.tpl-auth-brand-top,
.tpl-auth-brand-body,
.tpl-auth-brand-foot {
  position: relative;
}

.tpl-auth-brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tpl-auth-product {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tpl-auth-headline {
  max-width: 15ch;
  margin: 0 0 28px;
  font-size: clamp(1.9rem, 2.9vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.tpl-auth-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.74);
}
.tpl-auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tpl-auth-points .mud-icon-root {
  color: #ff9d85;
}

.tpl-auth-brand-foot {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.74);
}

.tpl-auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 72px 24px 32px;
}

.tpl-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 16px;
  background: var(--mud-palette-surface);
  box-shadow: 0 18px 40px -24px rgba(6, 38, 93, 0.35);
}

.tpl-auth-eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mud-palette-primary);
}

.tpl-auth-title {
  margin: 0 0 10px;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--mud-palette-text-primary);
  text-wrap: balance;
}

.tpl-auth-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--mud-palette-text-secondary);
}

.tpl-auth-alert {
  margin-top: 20px;
}

.tpl-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.tpl-auth-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--mud-palette-lines-default);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--mud-palette-text-secondary);
}
.tpl-auth-hint .mud-icon-root {
  flex: 0 0 auto;
  margin-top: 1px;
}

.tpl-auth-foot {
  margin: 0;
  font-size: 0.8rem;
  color: var(--mud-palette-text-secondary);
}

.tpl-auth-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: var(--mud-palette-primary);
  background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
}

.tpl-auth-badge--error {
  color: var(--mud-palette-error);
  background: color-mix(in srgb, var(--mud-palette-error) 14%, transparent);
}

.tpl-auth-badge--waiting {
  color: var(--mud-palette-warning);
  background: color-mix(in srgb, var(--mud-palette-warning) 16%, transparent);
}

.tpl-ms-button .mud-button-label {
  gap: 12px;
}

.tpl-ms-mark {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 3px;
  background: #ffffff;
  box-sizing: content-box;
}

.tpl-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.tpl-auth-link {
  align-self: center;
  font-size: 0.9rem;
  color: var(--mud-palette-primary);
  text-decoration: none;
}
.tpl-auth-link:hover, .tpl-auth-link:focus-visible {
  text-decoration: underline;
}

.tpl-auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mud-palette-text-secondary);
}
.tpl-auth-or::before, .tpl-auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--mud-palette-lines-default);
}

.tpl-auth-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  text-align: center;
  color: var(--mud-palette-text-secondary);
}

.tpl-auth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tpl-auth-check {
  margin-top: 12px;
}

.tpl-code-input input {
  font-size: 1.35rem;
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
}

.tpl-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 0;
  padding-left: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--mud-palette-text-primary);
}

.tpl-qr {
  display: inline-flex;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 12px;
  background: #ffffff;
}
.tpl-qr img {
  display: block;
}

.tpl-secret {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.85rem;
}
.tpl-secret code {
  min-width: 0;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.9rem;
  background: color-mix(in srgb, var(--mud-palette-text-primary) 8%, transparent);
}

.tpl-mono input {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.85rem;
}

.tpl-key-hidden {
  width: 11rem;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--mud-palette-text-secondary);
  background: transparent;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.tpl-library {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .tpl-library {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tpl-library-sections {
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 12px;
  background: var(--mud-palette-surface);
}

.tpl-fieldset {
  padding: 12px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 8px;
}

.tpl-inline-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-columns: none;
  gap: 8px;
  align-items: start;
  margin-top: 8px;
}
.tpl-inline-row > .mud-icon-button {
  justify-self: end;
  width: 32px;
}

.tpl-plain-list {
  margin: 6px 0 0;
  padding-left: 18px;
}

.tpl-code-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 0;
  padding: 16px;
  border: 1px dashed var(--mud-palette-lines-default);
  border-radius: 12px;
  list-style: none;
}
.tpl-code-list code {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .tpl-auth {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  .tpl-auth-brand {
    padding: 24px 24px 28px;
    gap: 16px;
  }
  .tpl-auth-brand-top .tpl-brand--lg {
    height: 44px;
  }
  .tpl-auth-product {
    font-size: 1.1rem;
  }
  .tpl-auth-headline {
    max-width: none;
    margin-bottom: 0;
    font-size: 1.35rem;
  }
  .tpl-auth-points,
  .tpl-auth-brand-foot {
    display: none;
  }
  .tpl-auth-plate {
    right: -220px;
    bottom: -360px;
  }
  .tpl-auth-panel {
    justify-content: flex-start;
    padding: 28px 16px 24px;
  }
  .tpl-auth-card {
    padding: 28px 22px;
  }
  .tpl-auth-toggle .mud-icon-button {
    color: #ffffff;
  }
}
.tpl-profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tpl-profile-id {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tpl-facts {
  display: grid;
  gap: 14px;
  margin: 0;
}
.tpl-facts > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.tpl-facts dt {
  font-size: 0.85rem;
  color: var(--mud-palette-text-secondary);
}
.tpl-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.tpl-theme-toggle {
  width: 100%;
}

.tpl-role-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tpl-role-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.tpl-role-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 600px) {
  .tpl-facts > div,
  .tpl-role-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}
.tpl-nowrap {
  white-space: nowrap;
}

.tpl-ellipsis {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpl-prose {
  margin-top: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.tpl-filter {
  max-width: 280px;
  min-width: 200px;
}

.tpl-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 12px;
  background: var(--mud-palette-surface);
}

.tpl-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tpl-inline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.tpl-inline > * {
  flex: 1 1 0;
  min-width: 0;
}
.tpl-inline > .mud-button-root {
  flex: 0 0 auto;
  margin-top: 4px;
}

.tpl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tpl-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.tpl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  text-align: center;
  color: var(--mud-palette-text-secondary);
}

.tpl-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tpl-action-row > div {
  min-width: 0;
}
.tpl-action-row > .mud-button-root {
  flex: 0 0 auto;
}

.tpl-facts--narrow > div {
  grid-template-columns: 100px minmax(0, 1fr);
}

.tpl-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tpl-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mud-palette-secondary);
}

.tpl-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
}

.tpl-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tpl-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tpl-message {
  padding: 14px 16px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 12px;
}

.tpl-message--mine {
  background: color-mix(in srgb, var(--mud-palette-primary) 7%, transparent);
  border-color: color-mix(in srgb, var(--mud-palette-primary) 25%, var(--mud-palette-lines-default));
}

.tpl-message-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.tpl-message-time {
  margin-left: auto;
  font-size: 0.8rem;
}

.tpl-reply {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--mud-palette-lines-default);
}

.tpl-reply-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.tpl-settings {
  display: flex;
  flex-direction: column;
}

.tpl-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--mud-palette-lines-default);
}
.tpl-setting:first-child {
  border-top: 0;
  padding-top: 0;
}

.tpl-setting-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tpl-setting-input {
  display: flex;
  justify-content: flex-end;
}
.tpl-setting-input > .mud-input-control {
  width: 100%;
}

.tpl-save-bar {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 12px;
  background: var(--mud-palette-surface);
  box-shadow: 0 10px 24px -18px rgba(6, 38, 93, 0.45);
}

.tpl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.tpl-stat {
  padding: 16px 20px;
}

.tpl-stats-tight {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  margin-bottom: 8px;
}

.tpl-report-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 1100px) {
  .tpl-report-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .tpl-report-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tpl-report-card-skeleton {
  border-radius: 14px;
}

.tpl-report-card {
  --tpl-rt-accent: var(--mud-palette-primary);
  position: relative;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tpl-rt-accent) 9%, var(--mud-palette-surface)), var(--mud-palette-surface) 70%);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tpl-report-card:hover, .tpl-report-card:focus-within {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tpl-rt-accent) 45%, var(--mud-palette-lines-default));
  box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--tpl-rt-accent) 60%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .tpl-report-card {
    transition: none;
  }
  .tpl-report-card:hover, .tpl-report-card:focus-within {
    transform: none;
  }
}

.tpl-report-card-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 18px 48px 18px 18px;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}
.tpl-report-card-link:focus-visible {
  outline: 2px solid var(--tpl-rt-accent);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .tpl-report-card-link {
    min-height: 72px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

.tpl-report-card-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--tpl-rt-accent);
  background: color-mix(in srgb, var(--tpl-rt-accent) 16%, transparent);
}
.tpl-report-card-icon .mud-icon-root {
  font-size: 1.75rem;
}

.tpl-report-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tpl-report-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.tpl-report-card-title {
  margin-top: 2px;
  color: var(--mud-palette-text-secondary);
  font-size: 0.8rem;
  line-height: 1.35;
}

.tpl-report-card-new.mud-icon-button {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--tpl-rt-accent);
}

.tpl-rt--uti {
  --tpl-rt-accent: #D99A06;
}

.tpl-rt--respiratory {
  --tpl-rt-accent: #0284C7;
}

.tpl-rt--sti {
  --tpl-rt-accent: #7C3AED;
}

.tpl-rt--wound {
  --tpl-rt-accent: #E11D48;
}

.tpl-rt--derm {
  --tpl-rt-accent: #EA580C;
}

.tpl-rt--fungal {
  --tpl-rt-accent: #16A34A;
}

.tpl-rt--womens-health {
  --tpl-rt-accent: #DB2777;
}

.tpl-rt--womens-health-plus {
  --tpl-rt-accent: #C026D3;
}

.tpl-dash-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 16px;
}
.tpl-dash-grid > * {
  min-width: 0;
  grid-column: span 12;
}
.tpl-dash-grid > .tpl-w-3 {
  grid-column: span 3;
}
.tpl-dash-grid > .tpl-w-4 {
  grid-column: span 4;
}
.tpl-dash-grid > .tpl-w-6 {
  grid-column: span 6;
}
.tpl-dash-grid > .tpl-w-8 {
  grid-column: span 8;
}
.tpl-dash-grid > .tpl-w-12 {
  grid-column: span 12;
}
.tpl-dash-grid > .tpl-h-1 {
  grid-row: span 1;
}
.tpl-dash-grid > .tpl-h-2 {
  grid-row: span 2;
}
.tpl-dash-grid > .tpl-h-3 {
  grid-row: span 3;
}

.tpl-widget {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 20px;
}

.tpl-widget-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.tpl-widget-title {
  flex: 1 1 auto;
  min-width: 0;
}

.tpl-widget-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
}

.tpl-widget-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.tpl-widget-table {
  background: transparent;
}
.tpl-widget-table th {
  font-weight: 600;
}

.tpl-widget-grip {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--mud-palette-text-secondary);
}

.tpl-widget-editing {
  border-style: dashed;
  border-color: var(--mud-palette-primary);
  cursor: grab;
}
.tpl-widget-editing .tpl-widget-body {
  pointer-events: none;
  opacity: 0.55;
}

.tpl-widget-dragging {
  opacity: 0.4;
}

.tpl-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tpl-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tpl-nav-divider {
  margin: 8px 0;
}

.tpl-attach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.tpl-attach--sent {
  margin-top: 10px;
}

.tpl-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tpl-thumb {
  display: grid;
  place-items: center;
  width: 120px;
  height: 90px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 8px;
  background: var(--mud-palette-background-gray);
  cursor: zoom-in;
}
.tpl-thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.tpl-thumb:focus-visible {
  outline: 2px solid var(--mud-palette-primary);
  outline-offset: 2px;
}

.tpl-lightbox {
  display: flex;
  flex-direction: column;
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  margin: 0;
  color: #fff;
}
.tpl-lightbox img {
  max-width: 100%;
  max-height: calc(90vh - 56px);
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 6px;
  background: #fff;
}
.tpl-lightbox figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  overflow-wrap: anywhere;
}

.tpl-list {
  margin: 6px 0 0;
  padding-left: 20px;
}
.tpl-list li {
  margin: 3px 0;
}

.tpl-tabs .mud-tabs-tabbar {
  background: transparent;
  border-bottom: 1px solid var(--mud-palette-lines-default);
}

.tpl-clamp {
  display: -webkit-box;
  max-width: 520px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1100px) {
  .tpl-dash-grid > .tpl-w-3,
  .tpl-dash-grid > .tpl-w-4 {
    grid-column: span 6;
  }
  .tpl-dash-grid > .tpl-w-8 {
    grid-column: span 12;
  }
}
@media (max-width: 700px) {
  .tpl-dash-grid {
    grid-auto-rows: minmax(160px, auto);
  }
  .tpl-dash-grid > * {
    grid-column: span 12 !important;
    grid-row: auto !important;
  }
  .tpl-widget-body {
    overflow: visible;
  }
}
@media (max-width: 700px) {
  .tpl-inline,
  .tpl-action-row {
    flex-direction: column;
    align-items: stretch;
  }
  .tpl-setting {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .tpl-setting-input {
    justify-content: flex-start;
  }
  .tpl-code-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .tpl-message-time {
    margin-left: 0;
    width: 100%;
  }
}
@media print {
  .mud-appbar,
  .mud-drawer,
  .tpl-no-print {
    display: none !important;
  }
  .mud-main-content {
    margin: 0 !important;
    padding: 0 !important;
  }
}
@media (max-width: 700px) {
  .mud-dialog {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
  }
  .mud-dialog .mud-dialog-content {
    max-height: none;
    overflow-y: auto;
  }
}
.tpl-report {
  display: grid;
  grid-template-columns: var(--tpl-split, 440px) 12px minmax(0, 1fr);
  align-items: start;
  gap: 4px;
}

.tpl-split-handle {
  position: sticky;
  top: 80px;
  align-self: start;
  height: calc(100vh - 96px);
  border-radius: 6px;
  cursor: col-resize;
  touch-action: none;
  background: linear-gradient(var(--mud-palette-lines-default), var(--mud-palette-lines-default)) center/2px 100% no-repeat, linear-gradient(var(--mud-palette-text-secondary), var(--mud-palette-text-secondary)) center/4px 36px no-repeat;
}
.tpl-split-handle:hover, .tpl-split-handle:focus-visible, .tpl-split-dragging > .tpl-split-handle {
  background: linear-gradient(var(--mud-palette-primary), var(--mud-palette-primary)) center/2px 100% no-repeat, linear-gradient(var(--mud-palette-primary), var(--mud-palette-primary)) center/4px 36px no-repeat;
}
.tpl-split-handle:focus-visible {
  outline: 2px solid var(--mud-palette-primary);
  outline-offset: 1px;
}

.tpl-split-dragging {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: col-resize;
}

.tpl-report-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 96px);
  padding: 16px;
  overflow-y: auto;
}

.tpl-report-pages {
  padding: 16px;
  border-radius: 12px;
  background: var(--mud-palette-background-gray);
}

.tpl-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tpl-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
}

.tpl-organism {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.75fr 0.5fr;
  align-items: center;
  gap: 8px;
}

.tpl-pathogen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tpl-pathogen > * {
  flex: 1 1 110px;
}
.tpl-pathogen > .tpl-pathogen-name {
  flex: 3 1 220px;
}
.tpl-pathogen > .mud-button-root {
  flex: 0 0 auto;
}

.tpl-icd {
  padding: 8px 12px;
  border-left: 4px solid var(--mud-palette-warning);
  border-radius: 6px;
  background: rgba(var(--mud-palette-warning-rgb), 0.08);
}

.tpl-icd-primary {
  border-left-color: var(--mud-palette-success);
  background: rgba(var(--mud-palette-success-rgb), 0.08);
}

.tpl-icd-codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0 12px;
}

.tpl-plate {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 8px;
}

.tpl-plate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}

.tpl-plate-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 0.8125rem;
}
.tpl-plate-cell select {
  padding: 3px 4px;
  border: 1px solid var(--mud-palette-lines-inputs);
  border-radius: 4px;
  background: var(--mud-palette-surface);
  color: var(--mud-palette-text-primary);
  font: inherit;
}
.tpl-plate-cell select:focus-visible {
  outline: 2px solid var(--mud-palette-primary);
  outline-offset: 1px;
}

@media (max-width: 1100px) {
  .tpl-report {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .tpl-split-handle {
    display: none;
  }
  .tpl-report-form {
    position: static;
    max-height: none;
  }
}
.tpl-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.tpl-brand-logo {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 192px;
  height: 84px;
  padding: 8px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 8px;
  background: #fff;
  color: #5f6b7a;
}
.tpl-brand-logo img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.tpl-brand-actions {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tpl-brand-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rpt {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(100%, 1100px);
  margin: 0 auto;
}

.rpt-sheet {
  container-type: inline-size;
  aspect-ratio: 8.5/11;
  background: #fff;
  color: #111;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.rpt-page {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  box-sizing: border-box;
  min-height: 100%;
  padding: 1.5em 2em 1.25em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.307cqw;
  line-height: 1.2;
}
.rpt-page svg {
  display: block;
  width: 100%;
  height: auto;
}
.rpt-page strong {
  font-weight: 700;
}
.rpt-page sup {
  font-size: 0.8em;
  font-weight: 700;
}

.rpt-accent {
  color: var(--rpt-secondary);
}

.rpt-foot {
  margin-top: auto;
  padding-top: 0.5em;
  text-align: center;
}

.rpt-header {
  display: grid;
  grid-template-columns: 16em minmax(0, 1fr) 16em;
  align-items: center;
  padding-bottom: 0.75em;
  border-bottom: 0.25em solid var(--rpt-secondary);
}

.rpt-logo {
  display: flex;
  align-items: center;
  height: 6.75em;
}
.rpt-logo img,
.rpt-logo svg {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.rpt-logo svg {
  height: 100%;
}

.rpt-logo-name {
  color: var(--rpt-primary);
  font-size: 2.125em;
  font-weight: 700;
}

.rpt-logo-name-long {
  font-size: 1.5em;
}

.rpt-heading {
  text-align: center;
}

.rpt-title {
  color: #000;
  font-size: 2.375em;
  font-weight: 700;
}

.rpt-address {
  margin-top: 0.2em;
  font-size: 1.06em;
}

.rpt-contact {
  display: flex;
  justify-content: center;
  gap: 0.9em;
  margin-top: 0.4em;
  font-size: 1.06em;
}

.rpt-badge {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding: 0.875em 0.25em;
  border: 1px solid var(--rpt-secondary);
  border-radius: 0.75em;
  text-align: center;
  font-size: 1.19em;
  font-weight: 700;
}

.rpt-badge-long {
  font-size: 0.79em;
}

.rpt-demographics {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.95fr 0.9fr;
  gap: 0.75em 0.5em;
  padding: 0.2em 0.5em;
}

.rpt-label {
  font-size: 0.94em;
}

.rpt-card {
  border: 1px solid #b9c7de;
  border-radius: 0.625em;
  overflow: hidden;
}

.rpt-card-head {
  display: flex;
}

.rpt-card-title {
  padding: 0.3em 1.3em 0.3em 0.95em;
  background: var(--rpt-primary);
  color: #fff;
  font-size: 1.31em;
}

.rpt-slash {
  width: 2.5em;
}
.rpt-slash svg {
  height: 100%;
}

.rpt-card-body {
  padding: 0.375em 0.625em 0.5em;
}

.rpt-fill {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.rpt-fill .rpt-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.rpt-notes.rpt-push {
  margin-top: auto;
}

.rpt-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.rpt-table th,
.rpt-table td {
  padding: 0;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
}

.rpt-pathogens th {
  padding: 0.5em 0.25em;
  border-right: 1px solid #fff;
  background: var(--rpt-primary);
  color: #fff;
  font-size: 1.06em;
}
.rpt-pathogens td {
  padding: 0.31em 0.25em;
  border-right: 1px solid #b9c7de;
  border-bottom: 1px solid #b9c7de;
}
.rpt-pathogens.rpt-snug td {
  padding-block: 0.19em;
}
.rpt-pathogens.rpt-tight td {
  padding-block: 0.08em;
}
.rpt-pathogens .rpt-organism {
  padding-left: 2.75em;
  font-style: italic;
  font-weight: 700;
  text-align: left;
}
.rpt-pathogens .rpt-symbol {
  font-size: 1.25em;
  font-weight: 700;
}
.rpt-pathogens .rpt-effect {
  font-size: 1.125em;
  font-weight: 700;
}
.rpt-pathogens .rpt-headline {
  padding-inline: 1.25em;
  font-size: 1.31em;
  font-weight: 700;
}
.rpt-pathogens .rpt-band {
  padding-left: 1.25em;
  font-weight: 700;
  text-align: left;
}

.rpt-notice {
  margin-top: 0.25em;
  padding: 0.375em 1em;
  border-radius: 0.25em;
  background: #f8f3df;
  color: #34495e;
  font-size: 0.85em;
}

.rpt-notes {
  margin-top: 0.25em;
  padding: 0.375em 1em;
  border-radius: 0.25em;
  background: #dce7f2;
  color: #5f6e81;
  font-size: 0.79em;
  font-style: italic;
}

.rpt-notes-row {
  display: flex;
  gap: 1em;
}
.rpt-notes-row > div {
  flex: 1 1 0;
}

.rpt-notes-plain {
  padding-block: 0.55em;
  color: #111;
  font-size: 0.875em;
}

.rpt-negative {
  padding: 1.2em 0;
  color: #12872d;
  font-size: 1.5em;
  font-weight: 700;
  text-align: center;
}

.rpt-negative-note {
  padding-bottom: 0.25em;
}
.rpt-negative-note:last-child {
  padding-bottom: 0.7em;
}
.rpt-negative-note {
  color: #333;
  font-size: 1.06em;
}

.rpt-empiric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25em 2.5em 0.25em 0.75em;
}

.rpt-empiric-name {
  font-size: 1.25em;
  font-weight: 700;
}

.rpt-empiric-how {
  color: #5f6e81;
  font-size: 1.125em;
}

.rpt-verdict {
  width: 21em;
  padding: 0.5em 0;
  border-radius: 1.2em;
  color: #fff;
  font-size: 1.25em;
  font-weight: 700;
  text-align: center;
}

.rpt-verdict-dark {
  color: #111;
}

.rpt-no-genes {
  display: flex;
  padding: 0.375em 0.75em;
  font-size: 1.125em;
}
.rpt-no-genes strong {
  flex: 0 0 auto;
  min-width: 8em;
  padding-right: 1em;
  font-size: 1.06em;
}

.rpt-genes {
  display: flex;
  gap: 1em;
  padding: 0.25em 0.75em;
  font-size: 1.125em;
}
.rpt-genes > div {
  flex: 1 1 0;
}

.rpt-genes-small {
  font-size: 0.94em;
}

.rpt-gene {
  display: flex;
}
.rpt-gene em {
  flex: 0 0 8.8em;
  font-weight: 700;
}

.rpt-alternatives th {
  padding: 0.25em 0;
  border-bottom: 1px solid #b9c7de;
  font-size: 0.94em;
  font-weight: 700;
}
.rpt-alternatives td {
  padding: 0.625em 0;
  border-bottom: 1px solid #b9c7de;
}
.rpt-alternatives .rpt-divide {
  border-right: 1px solid #b9c7de;
}
.rpt-alternatives .rpt-last td {
  border-bottom: 0;
}
.rpt-alternatives .rpt-blank td {
  height: 2.6em;
}
.rpt-alternatives .rpt-drug {
  font-size: 1.19em;
  font-weight: 700;
  text-align: left;
}
.rpt-alternatives .rpt-drug-long {
  font-size: 1.06em;
}
.rpt-alternatives .rpt-clinical {
  padding-right: 0.75em;
  font-size: 0.875em;
  text-align: left;
}
.rpt-alternatives .rpt-none {
  color: #5f6e81;
  text-align: left;
}
.rpt-alternatives .rpt-ask {
  color: #0b5c7a;
  font-size: 1.06em;
  font-weight: 700;
  text-align: left;
}
.rpt-alternatives .rpt-answer {
  font-size: 1.06em;
  text-align: left;
}

.rpt-marker,
.rpt-kidney,
.rpt-liver,
.rpt-check {
  display: inline-block;
  vertical-align: middle;
}

.rpt-marker {
  width: 1.25em;
}

.rpt-kidney {
  width: 1.875em;
}

.rpt-liver {
  width: 2.5em;
}

.rpt-check {
  width: 1.25em;
  margin-left: 0.5em;
}

.rpt-choices {
  display: flex;
  gap: 4.25em;
}

.rpt-consolidated {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1em 0.5em;
  padding: 1em 0.75em;
}
.rpt-consolidated > div {
  display: flex;
  align-items: center;
  gap: 1em;
  font-size: 1.06em;
}

.rpt-consolidated-none {
  padding: 1em 0.75em;
  color: #5f6e81;
  font-size: 1.06em;
}

.rpt-s {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.8em;
  height: 1.8em;
  border: 1px solid var(--rpt-primary);
  color: #12872d;
  font-weight: 700;
}

.rpt-mast th,
.rpt-mast td {
  border-left: 1px solid #b9c7de;
}
.rpt-mast td {
  border-top: 1px solid #b9c7de;
  font-size: 1.125em;
  font-weight: 700;
}
.rpt-mast .rpt-mast-corner {
  width: 14.75em;
  height: 10.7em;
  border-left: 0;
  background: var(--rpt-primary);
  color: #fff;
  font-size: 1.375em;
  font-weight: 700;
}
.rpt-mast .rpt-mast-drug {
  padding-bottom: 0.625em;
  vertical-align: bottom;
}
.rpt-mast .rpt-mast-drug span {
  display: inline-block;
  color: var(--rpt-primary);
  font-size: 1.03em;
  font-weight: 700;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.rpt-mast .rpt-mast-drug .rpt-longer {
  font-size: 0.9em;
}
.rpt-mast .rpt-mast-drug .rpt-longest {
  font-size: 0.8em;
}
.rpt-mast.rpt-crowded .rpt-mast-drug span {
  font-size: 0.9em;
}
.rpt-mast.rpt-crowded .rpt-mast-drug span.rpt-longer {
  font-size: 0.78em;
}
.rpt-mast.rpt-crowded .rpt-mast-drug span.rpt-longest {
  font-size: 0.7em;
}
.rpt-mast .rpt-mast-name {
  padding: 0.9em 0 0.9em 1.1em;
  border-left: 0;
  font-style: italic;
  text-align: left;
}
.rpt-mast .rpt-mast-name-long {
  font-size: 1em;
}
.rpt-mast .rpt-mast-none {
  color: var(--rpt-primary);
  font-style: normal;
}
.rpt-mast .rpt-cell-word {
  font-size: 0.81em;
}

.rpt-box {
  padding: 0.5em;
  border: 1px solid #b9c7de;
  border-radius: 0.625em;
}

.rpt-mast-notes {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding: 0.6em 1em;
  border-radius: 0.375em;
  background: #dce7f2;
  font-size: 0.9em;
}

.rpt-panel {
  display: flex;
  padding: 0 0.5em;
}

.rpt-panel-group {
  padding: 0 0.5em;
  border-right: 1px solid #b9c7de;
}
.rpt-panel-group:first-child {
  padding-left: 0;
}
.rpt-panel-group:last-child {
  padding-right: 0;
  border-right: 0;
}

.rpt-panel-genes {
  flex: 1.9 1 0;
  padding-left: 0.5em;
}

.rpt-panel-detail {
  display: block;
  color: #5f6e81;
  font-size: 0.75em;
}

.rpt-panel-commented {
  align-items: baseline;
}
.rpt-panel-commented em {
  font-size: 0.85em;
  font-weight: 700;
}

.rpt-panel-note {
  margin-top: 0.375em;
  padding: 0 0.75em;
  color: #5f6e81;
  font-size: 0.79em;
  font-style: italic;
}

.rpt-panel-title {
  margin-bottom: 0.5em;
  padding-bottom: 0.25em;
  border-bottom: 1px solid #b9c7de;
  color: var(--rpt-primary);
  font-size: 0.94em;
  font-weight: 700;
  text-align: center;
}

.rpt-panel-title-long {
  font-size: 0.78em;
  white-space: nowrap;
}

.rpt-panel-columns {
  display: flex;
}
.rpt-panel-columns > div {
  flex: 1 1 0;
}

.rpt-panel-name {
  display: flex;
  align-items: center;
  padding: 0.25em 0;
}
.rpt-panel-name em {
  font-size: 0.75em;
}

.rpt-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.44em;
  height: 0.44em;
  margin-right: 0.45em;
  border-radius: 50%;
}

.rpt-dot-primary {
  background: var(--rpt-primary);
}

.rpt-dot-secondary {
  background: var(--rpt-secondary);
}

.rpt-panel-gene {
  display: flex;
  padding: 0.25em 0;
}
.rpt-panel-gene strong {
  flex: 0 0 6em;
  font-size: 0.75em;
}
.rpt-panel-gene span {
  font-size: 0.69em;
}

.rpt-legend {
  display: flex;
  margin-top: 0.375em;
  padding: 0.5em 1.25em;
  border-radius: 0.25em;
  background: #f1f3f8;
  font-size: 0.79em;
}
.rpt-legend > span {
  display: flex;
  flex: 1 1 0;
  align-items: center;
}
.rpt-legend .rpt-dot {
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.6em;
}

.rpt-attestation {
  padding: 0.25em 1.25em;
  font-size: 0.85em;
  line-height: 1.15;
}

.rpt-footnotes {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  padding: 0 0.75em;
}
.rpt-footnotes > div {
  display: flex;
  align-items: baseline;
}
.rpt-footnotes strong {
  font-size: 0.85em;
}
.rpt-footnotes .rpt-star,
.rpt-footnotes .rpt-plus {
  flex: 0 0 1.3em;
  font-size: 1.375em;
  font-weight: 700;
}

.rpt-key {
  padding: 0.75em;
}

.rpt-key-title {
  color: var(--rpt-primary);
  font-size: 0.94em;
  font-weight: 700;
}

.rpt-key-row {
  display: flex;
  align-items: center;
  padding: 0.5em 0;
}

.rpt-key-organs {
  padding-bottom: 0;
  border-top: 1px solid #b9c7de;
}

.rpt-key-label {
  flex: 0 0 8.75em;
  color: var(--rpt-primary);
  font-size: 0.875em;
}

.rpt-key-item {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 0.6em;
  font-size: 0.725em;
}
.rpt-key-item strong {
  font-size: 1.12em;
}

.rpt-key-organ {
  gap: 0.4em;
  font-size: 0.79em;
}

.rpt-key-mark {
  flex: 0 0 1.55em;
}

.rpt-key-kidney {
  flex: 0 0 1.6em;
}

.rpt-key-liver {
  flex: 0 0 2.2em;
  margin-right: 0.6em;
}

.tpl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.tpl-section {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--mud-palette-lines-default);
}

.tpl-full {
  grid-column: 1/-1;
}

.tpl-gene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.tpl-mast-order {
  padding: 12px;
  border: 2px solid var(--mud-palette-secondary);
  border-radius: 10px;
}

.tpl-report-kinds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tpl-mast-scroll {
  overflow-x: auto;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 8px;
}

.tpl-mast-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.tpl-mast-grid th,
.tpl-mast-grid td {
  padding: 5px;
  border: 1px solid var(--mud-palette-lines-default);
  text-align: center;
  white-space: nowrap;
}
.tpl-mast-grid thead th {
  background: var(--mud-palette-primary);
  color: var(--mud-palette-primary-text);
  font-weight: 700;
}
.tpl-mast-grid th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 150px;
  text-align: left;
}
.tpl-mast-grid tbody th {
  background: var(--mud-palette-surface);
  color: var(--mud-palette-text-primary);
  font-weight: 700;
}
.tpl-mast-grid select {
  min-width: 52px;
  padding: 3px 4px;
  border: 1px solid var(--mud-palette-lines-inputs);
  border-radius: 4px;
  background: var(--mud-palette-surface);
  color: var(--mud-palette-text-primary);
  font: inherit;
}
.tpl-mast-grid select:focus-visible {
  outline: 2px solid var(--mud-palette-primary);
  outline-offset: 1px;
}

.tpl-mast-na {
  background: var(--mud-palette-background-gray);
  color: var(--mud-palette-text-secondary);
  font-weight: 700;
}

.tpl-mast-empty {
  text-align: left !important;
  color: var(--mud-palette-text-secondary);
}

.rpt-banner {
  padding: 0.35em 0;
  border: 1px solid #e8171f;
  background: #fdecec;
  color: #e8171f;
  font-size: 1.125em;
  font-weight: 700;
  text-align: center;
}

@media print {
  .tpl-report {
    display: block;
  }
  .tpl-report-pages {
    padding: 0;
    background: none;
  }
  .rpt {
    gap: 0;
  }
  .rpt-sheet {
    width: 8.5in;
    height: 11in;
    box-shadow: none;
    -moz-column-break-after: page;
         break-after: page;
    overflow: hidden;
  }
  .rpt-sheet:last-child {
    -moz-column-break-after: auto;
         break-after: auto;
  }
}
.tpl-matches {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid var(--mud-palette-primary);
  border-radius: 8px;
}

.tpl-match {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--mud-palette-text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tpl-match span {
  color: var(--mud-palette-text-secondary);
  font-size: 0.8125rem;
}
.tpl-match:hover, .tpl-match:focus-visible {
  background: var(--mud-palette-action-default-hover);
}
.tpl-match:focus-visible {
  outline: 2px solid var(--mud-palette-primary);
  outline-offset: 1px;
}