

:root {
  --alerts-same-dot: #000;     
  --labresult-media-bg: #faf9f8;
}

.theme-dark {
  --alerts-same-dot: #fff;     
  --labresult-media-bg: #111;
}


.lab-result-wrapper {
  max-width: 1800px;
}

.lab-route-alert-failure {
  width: min(100%, 680px);
  margin: 12vh auto;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 18px;
  background: #fff;
  background: var(--card-bg, #fff);
  color: #191919;
  color: var(--text-primary, #191919);
  box-shadow: 0 18px 48px rgb(0 0 0 / 24%);
  text-align: center;
}

.lab-route-alert-failure h1 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.lab-route-alert-failure p {
  margin: 12px 0 0;
  opacity: .78;
}

.lab-route-alert-failure__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.lab-route-alert-failure__actions button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #d79c00;
  background: var(--accent, #d79c00);
  color: #111;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.theme-dark .lab-route-alert-failure {
  background: #191919;
  color: #f5f5f5;
}

.lab-overlay-skeleton {
  container-name: lab-overlay-skeleton;
  container-type: inline-size;
  width: 100%;
  box-sizing: border-box;
  min-height: 60vh;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,247,247,0.92));
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}

.theme-dark .lab-overlay-skeleton {
  background: linear-gradient(180deg, rgba(17,17,17,0.98), rgba(11,11,11,0.96));
  box-shadow: 0 18px 60px rgba(0,0,0,0.42);
}

.lab-overlay-skeleton__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 12px;
}

.lab-overlay-skeleton__heading {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  flex: 1 1 auto;
}

.lab-overlay-skeleton__close {
  border: 0;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: rgba(127,127,127,0.12);
  color: inherit;
  font-size: 22px;
  line-height: 1;
}

.theme-dark .lab-overlay-skeleton__close {
  background: rgba(255,255,255,0.08);
}

.lab-overlay-skeleton__body {
  padding: 0 20px 24px;
}

.lab-overlay-skeleton__hero,
.lab-overlay-skeleton__singleton,
.lab-overlay-skeleton__panel,
.lab-overlay-skeleton__line {
  position: relative;
  overflow: hidden;
  background: rgba(127,127,127,0.12);
}

.theme-dark .lab-overlay-skeleton__hero,
.theme-dark .lab-overlay-skeleton__singleton,
.theme-dark .lab-overlay-skeleton__panel,
.theme-dark .lab-overlay-skeleton__line {
  background: rgba(255,255,255,0.08);
}

.lab-overlay-skeleton__hero::after,
.lab-overlay-skeleton__singleton::after,
.lab-overlay-skeleton__panel::after,
.lab-overlay-skeleton__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.46) 45%, transparent 100%);
  transform: translateX(-100%);
  animation: lab-overlay-skeleton-shimmer 1.15s linear infinite;
}

.theme-dark .lab-overlay-skeleton__hero::after,
.theme-dark .lab-overlay-skeleton__singleton::after,
.theme-dark .lab-overlay-skeleton__panel::after,
.theme-dark .lab-overlay-skeleton__line::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 45%, transparent 100%);
}

.lab-overlay-skeleton__line {
  border-radius: 999px;
}

.lab-overlay-skeleton__line--title {
  width: 58%;
  max-width: 320px;
  height: 18px;
}

.lab-overlay-skeleton__line--meta {
  width: 42%;
  max-width: 220px;
  height: 12px;
}

.lab-overlay-skeleton__hero {
  height: clamp(180px, 28cqw, 260px);
  border-radius: 20px;
}


.lab-overlay-skeleton__singleton {
  width: auto;
  margin-inline: -20px;
  aspect-ratio: 1 / 1;
  border-radius: 20px 20px 0 0;
}

@container lab-overlay-skeleton (min-width: 500px) {
  .lab-overlay-skeleton__singleton {
    height: 200px;
    margin-inline: 0;
    aspect-ratio: auto;
  }
}

.lab-overlay-skeleton__grid {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 18px;
}

.lab-overlay-skeleton__panel {
  min-height: 120px;
  border-radius: 18px;
}


@container lab-overlay-skeleton (min-width: 440px) {
  .lab-overlay-skeleton__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-overlay-skeleton__panel--3 {
    grid-column: 1 / -1;
  }
}

@container lab-overlay-skeleton (min-width: 760px) {
  .lab-overlay-skeleton__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lab-overlay-skeleton__panel--3 {
    grid-column: auto;
  }
}

@media (max-width: 519px) {
  .lab-result-page--skeleton,
  .lab-result-page--skeleton .lab-overlay-skeleton {
    min-height: 100%;
    border-radius: 0;
  }

  .lab-overlay-skeleton__header {
    padding-inline: 16px;
  }

  .lab-overlay-skeleton__body {
    padding-inline: 16px;
  }

  .lab-overlay-skeleton__singleton {
    margin-inline: -16px;
  }
}

.lab-expandable-skeleton {
  container-name: lab-expandable-skeleton;
  container-type: inline-size;
  display: grid;
  grid-gap: clamp(0.75rem, 2cqi, 0.875rem);
  gap: clamp(0.75rem, 2cqi, 0.875rem);
  padding-top: 0.25rem;
}

.lab-expandable-skeleton__hero,
.lab-expandable-skeleton__row,
.lab-expandable-skeleton__panel {
  position: relative;
  overflow: hidden;
  background: rgba(127,127,127,0.12);
  border-radius: 16px;
}

.theme-dark .lab-expandable-skeleton__hero,
.theme-dark .lab-expandable-skeleton__row,
.theme-dark .lab-expandable-skeleton__panel {
  background: rgba(255,255,255,0.08);
}

.lab-expandable-skeleton__hero::after,
.lab-expandable-skeleton__row::after,
.lab-expandable-skeleton__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.46) 45%, transparent 100%);
  transform: translateX(-100%);
  animation: lab-overlay-skeleton-shimmer 1.15s linear infinite;
}

.theme-dark .lab-expandable-skeleton__hero::after,
.theme-dark .lab-expandable-skeleton__row::after,
.theme-dark .lab-expandable-skeleton__panel::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 45%, transparent 100%);
}

.lab-expandable-skeleton__hero {
  min-height: 160px;
}

.lab-expandable-skeleton--timeline .lab-expandable-skeleton__hero {
  min-height: 220px;
}

.lab-expandable-skeleton__row {
  height: 12px;
  border-radius: 999px;
}

.lab-expandable-skeleton__row--wide {
  width: min(72%, 520px);
  height: 16px;
}

.lab-expandable-skeleton__row:not(.lab-expandable-skeleton__row--wide) {
  width: min(48%, 320px);
}

.lab-expandable-skeleton__grid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: 1fr;
}

.lab-expandable-skeleton__panel {
  min-height: 92px;
}

.lab-expandable-skeleton__panel--desktop {
  display: none;
}

.lab-related-results {
  --pill-compare-fg: var(--fg, #171717);
  --pill-compare-muted: color-mix(in srgb, var(--pill-compare-fg) 62%, transparent);
  --pill-compare-line: color-mix(in srgb, var(--pill-compare-fg) 14%, transparent);
  width: 100%;
  margin-top: 30px;
  border: 1px solid var(--pill-compare-line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.theme-dark .lab-related-results,
[data-theme="dark"] .lab-related-results {
  --pill-compare-fg: #fff;
  --pill-compare-muted: rgba(255, 255, 255, 0.62);
  --pill-compare-line: rgba(255, 255, 255, 0.12);
  background: rgba(255,255,255,0.03);
}

.lab-related-results__toggle {
  -webkit-appearance: none;
          appearance: none;
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px 8px 28px;
  border: 0;
  background: transparent;
  color: var(--pill-compare-fg);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.lab-related-results__toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

.lab-related-results.is-empty .lab-related-results__toggle {
  cursor: default;
}

.lab-related-results__summary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--pill-compare-muted);
  font-size: 13px;
}

.lab-related-results__chevron {
  display: inline-block;
  padding: 0 20px;
  color: var(--pill-compare-fg);
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.lab-related-results.is-open .lab-related-results__chevron {
  transform: rotate(90deg);
}

.lab-related-results__panel {
  border-top: 1px solid var(--pill-compare-line);
  padding: 12px 0 0;
}

.lab-related-results__rail .pill-compare-results-rail {
  overflow: visible;
  padding-bottom: 12px;
}

.lab-related-results__load-more {
  width: 100%;
  height: 1px;
}

.lab-related-results__skeleton {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 0 12px 12px;
}

.lab-related-results__skeleton span {
  position: relative;
  display: block;
  height: 78px;
  overflow: hidden;
  border-radius: 16px;
  background: color-mix(in srgb, var(--pill-compare-fg) 7%, transparent);
}

.lab-related-results__skeleton span::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--pill-compare-fg) 10%, transparent),
    transparent
  );
  animation: lab-related-shimmer 1.2s linear infinite;
}

@keyframes lab-related-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-related-results__chevron {
    transition: none;
  }

  .lab-related-results__skeleton span::after {
    animation: none;
  }
}

@container lab-expandable-skeleton (min-width: 700px) {
  .lab-expandable-skeleton__hero {
    min-height: 200px;
  }

  .lab-expandable-skeleton--timeline .lab-expandable-skeleton__hero {
    min-height: 260px;
  }

  .lab-expandable-skeleton__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-expandable-skeleton__panel--desktop {
    display: block;
    grid-column: span 2;
    min-height: 120px;
  }
}

@keyframes lab-overlay-skeleton-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}




.lab-result-overlay .lab-search-row {
  background: linear-gradient(
    to bottom,
    rgba(249, 249, 249, 0.97) 0%,
    rgba(249, 249, 249, 0.93) 72%,
    rgba(249, 249, 249, 0) 100%
  );
}

.theme-dark .lab-result-overlay .lab-search-row {
  width: auto;
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0.98) 0%,
    rgba(17, 17, 17, 0.9) 72%,
    rgba(17, 17, 17, 0) 100%
  );
}

.lab-result-overlay .om-search-row .om-search {
  border: 1px solid var(--border)!important
}

@container lab-result (max-width: 480px) {
.lab-result-overlay .em-card.glass-popup {
  padding: 20px 0px 20px 0px
}
}


@container lab-result (max-width: 520px) {
.lab-result-overlay .em-card.glass-popup {
  padding: 0px 0px 20px 0px
}
.lab-result-overlay .labresult-top ~ .em-card.glass-popup {
  padding: 20px 0px 20px 0px
}

}


.lab-result-overlay > .lab-result-wrapper {
  margin-bottom: 0;
}

@media (max-width: 519px) {
  .lab-result-overlay > .lab-result-wrapper {
    margin-bottom: 116px;
    margin-bottom: var(--app-mobile-dock-reserve, 116px);
  }
}

.labresult-top {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

div.labresult-viewer > canvas {
  display: block;
  position: relative;
  z-index: 0;
  
}

.labresult-viewer {
  cursor: grab;
  flex: 1 1 300px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 8px;
  
  overflow: hidden;
  min-width: 240px;
  min-height: clamp(180px, 50vw, 260px);
  align-self: stretch;
  max-height: 100%;
  position: relative;
  isolation: isolate;
  z-index: 1;
}

.labresult-viewer.is-grabbing {
  cursor: grabbing;
}


@container lab-result (min-width: 600px) {
  .labresult-top > .labresult-viewer {
    min-height: 0;
  }
}

@media (max-width: 519px) {
  
}

@media (orientation: landscape) and (max-height: 499px) {
  .labresult-viewer.three-unavailable,
  .labresult-viewer[data-three-status="unavailable"] {
    display: none;
  }
}


.labresult-viewer[data-three-status="unsupported"] {
  display: none;
}

.labresult-images {
  cursor: default;
  flex: 1 1 300px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: stretch;
  
  
  overflow: hidden;
  min-width: 240px;
  max-height: 100%;
  align-self: stretch;
  object-fit: contain;
  box-sizing: border-box;
}

.labresult-img-wrapper {
  flex: 1 1 48%;
  aspect-ratio: 1/1;
  position: relative;
  
  align-self: stretch;
}

.labresult-img-wrapper .img-main {
  pointer-events: auto;
  -webkit-user-select: auto;
  user-select: auto;
  -webkit-touch-callout: default;
  -webkit-user-drag: element;
}

.labresult-top--singleton-mobile .labresult-images {
  flex: 1 1 100%;
}

.labresult-top--singleton-mobile .labresult-img-wrapper {
  flex: 1 1 100%;
}


.labresult-images {
  
  background: #faf9f8;
  background: var(--labresult-media-bg);
}

.theme-dark .labresult-images {
  background: #faf9f8 !important;
  background: var(--labresult-media-bg) !important;
}


.lab-result-overlay .labresult-images,
.lab-result-overlay .labresult-img-wrapper,
.lab-result-overlay .labresult-img-wrapper .img-wrapper,
.lab-result-overlay .labresult-singleton-progressive,
.lab-result-overlay .labresult-images img {
  border-radius: 0 !important;
}





.labresult-wrapper .glass-tile {
  padding: 1rem 1rem!important;
  border: 1px solid var(--border);
}


@container lab-result (min-width: 1000px) {
.labresult-wrapper .glass-tile {
padding: 2rem;
}
.lab-result-overlay .glass-popup .glass-tile{
  margin-top: 20px!important;
}
}



.labresult-wrapper .similar-section .glass-tile {
    background: none;
}

.labresult-wrapper .similar-section {
    height: -webkit-fill-available;
    justify-content: baseline;
}




div.lab-result-overlay > div > article > div.em-card.glass-popup > div:nth-child(1) > div {
  padding-bottom: 15px;
}

.lab-result-overlay .glass-popup {
  border-radius: 0 0 18px 18px;
}


.lab-result-overlay .em-chip.clickable {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  vertical-align: middle;
}

.lab-result-overlay .em-chip.clickable.no-click {
  cursor: default;
}

.lab-result-overlay .lab-metadata-color-swatch {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.45);
}

.lab-result-overlay .batchInfo {
  text-align: center;
  margin-left: 1em;
  margin-bottom: 15px;
  font-size: 13px;
  opacity: 0.85;
  display: block;
}

.lab-result-overlay .batchInfo span {
  display: inline-block;
  white-space: nowrap;
}


.donut-title {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  width: 100%;
  color: #222;
  color: var(--text-color, #222);
}

.theme-dark .donut-title {
  color: #eee;
}

.donut-legend {
  text-align: left;
}

.donut-legend li span:last-child {
    width: -webkit-max-content;
}


.donut-content {
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 16px;
}


@container lab-result (max-width: 400px) {
  
    .charts-row {
      gap:0px
  }


}

@container lab-result (max-width: 599px) {
div.lab-result-overlay > div > article > div.em-card.glass-popup > div:nth-child(1) > div {
padding-top: 3.5rem;
padding-right: 0px!important;

}
}


@container lab-result (min-width: 600px) and (max-width: 748px) {
  .donut-pair {
    max-width: 100%;    
  }
.donut-title {
  margin-bottom: 15px;
}
  .donut-content {
    flex-direction: row;      
    
    
    
    padding-block: 10px; 

    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;   
  }
  
.charts-row {
  margin-bottom: 0rem;
}

}

@container lab-result (min-width: 650px) and (max-width: 748px) {
  .donut-pair-wrap {
    gap: 40px 5cqw; 
  }
  .donut-content {
    gap: calc(0.1 * 20vw);
  }
}

@container lab-result (min-width: 749px) {
  .donut-pair {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(50% - 60px);
    max-width: calc(50% - 60px) !important;
  }
}



.donut-pair-wrap {
  display: flex;
  flex-wrap: wrap;      
  gap: 40px 60px;       
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding-bottom: 4em;
}
.donut-pair {
  
  flex: 0 2 auto;
  display: flex;
  flex-direction: column;
  align-items: center;  
  text-align: center;   
}




.axis-block, .summary-block {margin-top: 0; text-align: center;}

.sid-axisHead{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.sid-axisH{ margin:0; font-size:16px; font-weight:800; }
.sid-axisVals, .sid-axisLabels{
  display:flex; justify-content:space-between; gap:8px; flex-wrap:nowrap;
}
.sid-axisVal, .sid-axisLabel{
  flex: 1 1;
  min-width: 0;
  text-align: center;
  font-size: 12.5px;
  color: #333;
}

.lab-result-overlay .sid-axisLabel{
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: normal;
  overflow-wrap: normal;
}
.sid-axisBar{
  height:14px; border-radius:3px; margin:7px 0 8px; width:100%;
  background-image: linear-gradient(90deg,#f5efe2 0%,#fde047 25%,#f59e0b 50%,#ef4444 75%,#ef4444 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.05);
}

.axis-block,
.summary-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-inline: 1rem;
}

.multi-axis .axis-block .singleAxis,
.multi-axis .summary-block .singleAxis {
  margin-bottom: 0px !important;
  align-content: end;
  align-items: end;
}

.axis-block .singleAxis--fullRow,
.summary-block .singleAxis--fullRow {
  width: 100%;
  align-self: stretch;
}


.axis-block .singleAxis.lab-info-row,
.summary-block .singleAxis.lab-info-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  align-content: stretch;
}
.lab-info-row > .lab-info-col {
  min-width: 0;
}


@container lab-result (min-width: 750px) {
  .axis-block {
    display: grid;
    grid-template-columns: 1fr 1fr;   
    grid-gap: 32px 40px;
    gap: 32px 40px;                   
  }

  .axis-block--single-axis > .singleAxis:not(.singleAxis--fullRow) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 40px) / 2);
  }

  .summary-block {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 32px;
    gap: 32px;
  }

  .axis-block .singleAxis--fullRow {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    align-items: stretch;
    align-content: stretch;
  }

  .sid-axisWrap {
    width: 100%;
  }

  .axis-block .singleAxis.singleAxis--fullRow{
  margin-bottom: 2rem !important;
}

  .axis-block .singleAxis.lab-info-row,
  .summary-block .singleAxis.lab-info-row {
    flex-direction: row;
    gap: 40px;
    margin-bottom: 0 !important;
  }
  .lab-info-row > .lab-info-col {
    flex: 1 1;
  }

}



.axis-block .chartsInfo, .summary-block .chartsInfo, .singleAxis .chartsInfo {
      
      margin-top: 0px;
      margin-bottom: 20px;
      font-size: 14px;
      line-height: 1.35;
      opacity: 0.75;
      text-align: left;
}

.agg-chart-title {
  color: #0f172a;
}

.agg-tooltip {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.agg-legend-hint {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.68);
}

.agg-legend-chip {
  color: #0f172a;
  text-transform: capitalize;
}

.BarChartWrapper .recharts-cartesian-axis-tick-value {
  text-transform: capitalize;
}

.theme-dark .agg-chart-title {
  color: #f9fafb;
  color: var(--fg, #f9fafb);
}

.theme-dark .agg-tooltip {
  background: #111827;
  background: var(--card-bg, #111827);
  border-color: #4b5563;
  border-color: var(--border, #4b5563);
  color: #f9fafb;
  color: var(--fg, #f9fafb);
}

.theme-dark .agg-legend-hint {
  background: #020617;
  background: var(--card-bg, #020617);
  border-color: #4b5563;
  border-color: var(--border, #4b5563);
  color: #9ca3af;
  color: var(--muted, #9ca3af);
}

.theme-dark .agg-legend-chip {
  color: #e5e7eb;
  color: var(--fg, #e5e7eb);
}




.theme-dark .em-card.glass-popup {
      background: linear-gradient(
        145deg,
        rgba(25, 25, 28, 0.82) 0%,
        rgba(35, 35, 40, 0.62) 100%
     )!important;
    box-shadow:none!important;
    color: #eee;
}

.theme-dark .glass-popup::before {
    background-image: linear-gradient(
    to bottom,
    rgba(30,30,32,0.55),
    rgba(30,30,32,0)
  );
}

.theme-dark .em-card {
  border: none;
}

.theme-dark .glass-tile, .theme-dark .lab-result-overlay .sp-grid section:nth-child(2) > div 
{
  background: rgba(30,30,32,.95)!important;
}

.theme-dark .sid-axisBar svg > polygon {
  fill: white;
  stroke: rgba(0,0,0,0.75);
  stroke-width:1.5px;  
  stroke-linejoin: round;
  transform: scaleY(1.5);
  transform: translateY(-1px);
}

.lab-axis-head{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.lab-axis-roa-select{
  min-width:118px;
  margin:0;
  font-weight:400;
  border-radius:12px;
  padding:2px 8px;
}

.lab-axis-roa-select .sid-select{
  min-width:118px;
  font-size:13px;
  padding:8px 26px 8px 10px;
  font-weight:500;
}

.lab-axis-roa-select .select-caret{
  right:10px;
  font-size:14px;
}

.lab-axis-roa-select.select-modern{
  background:rgba(255,255,255,0.58);
  border-color:rgba(216,221,227,0.72);
  box-shadow:0 3px 10px rgba(0,0,0,.045);
}

.theme-dark .lab-axis-roa-select.select-modern{
  background:rgba(58,58,62,.55);
  border-color:rgba(255,255,255,.06);
  box-shadow:0 3px 10px rgba(0,0,0,.22);
}

.theme-dark .lab-axis-roa-select .sid-select{
  color:#efefef;
}



.country-chart-wrap .recharts-cartesian-grid-horizontal line:last-child {
  opacity: 0 !important;
}


.country-chart-wrap .recharts-cartesian-grid-horizontal line {
  opacity: .5 !important;
}

.country-chart-wrap .recharts-cartesian-grid-horizontal line:first-child {
  opacity: 1 !important;
}


.country-tick {
  fill: #222 !important;
}

.alerts-chart-wrapper {
  width: 100%;
  height: 290px; 
  position: relative;
    padding-top:2rem ;
}


.alerts-chart-wrapper .recharts-responsive-container,
.alerts-chart-wrapper .recharts-wrapper,
.alerts-chart-wrapper .recharts-surface {
  height: 100% !important;
  width: 100% !important;
}








.chart-box,
.alerts-box {
  padding: 0 !important;
  margin: 0 !important;
  height: max-content;
}


.chart-box.alerts-box:empty {
  display: none;
}


.recharts-legend-wrapper {
  width: 100% !important;
  left: 0 !important;
  
  transform: translateY(-10px);
}

.countriesIcon {
      position: absolute;
    top: 6px;
    left: 10px;
    z-index: 1;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}


.recharts-tooltip-wrapper {
  z-index: 2
}


.theme-dark .country-tick, .theme-dark .alerts-tick, .theme-dark .spread-row {
  fill: #eee !important;
  font-size: 14px;
}


.theme-dark .recharts-tooltip-wrapper > div {
  background: rgba(40,40,40,0.95) !important;
  border: 1px solid #555 !important;
}



.legend-spread-wrap {
  display: flex;
  flex-wrap: wrap;      
  align-items: center;
  gap: 12px 18px;
  width: 100%;
  justify-content: flex-start;
  padding-left: 4px;
}



.spread-row {
  
  gap: 6px;
  
  opacity: .85;
  font-size: 13px;
  color: #333;
  color: var(--fg, #333);
  transform: translateY(-3.5px);
  white-space: normal;
}


.country-chart-wrap {
  margin-top: 30px;
  display: none; 
}

.country-chart-wrap .recharts-text, .country-chart-wrap .alerts-tick {
  font-size: 12px !important;
}


@container lab-result (min-width: 1000px) {
  .country-chart-wrap {
    display: block;
  }

  .sp-grid .sp-cell:first-child,
  .country-chart-wrap {
    display: flex;
    flex-direction: row;
    gap: 24px;
  }

  .sp-grid .sp-cell:first-child {
    flex: 1 1 50%;
  }

  .country-chart-wrap {
    flex: 1 1 50%;
  }
}


@container lab-result (min-width: 1100px) {
  .sp-grid .sp-cell:first-child {
    flex: 2 1 66%;
  }

  .country-chart-wrap {
    flex: 1 1 34%;
  }
}




.chart-box {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent;
  
}


.chart-box:first-child {
  height: 340px; 
}


.country-chart-wrap {
  height: 300px !important;
}


@container lab-result (max-width: 780px) {
  .chart-box,
  .country-chart-wrap {
    height: auto;
    min-height: 280px;
  }
}


.charts-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  width: 100%;
  align-items: stretch;
  
  
}


.lab-result-overlay .lab-charts-cell > .glass-tile {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}


.charts-row > .chart-box.donuts-inline {
  order: 1;
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  
  padding-top: 1.5rem !important;
  justify-content: center;
  height: auto;
  min-height: 340px;
  box-sizing: border-box;
}


.charts-row.charts-row--donuts-only > .chart-box.donuts-inline {
  flex-basis: 100%;
  width: 100%;
}


.charts-row > .chart-box.alerts-box {
  order: 2;
  flex: 1 1 50%;
  min-width: 0;
  height: 340px;
}


@container lab-result (max-width: 749px) {
  .charts-row {
    flex-direction: column;
    gap: 0px;
  }

  .charts-row > .chart-box {
    flex: 1 1 100%;
    width: 100%;
    min-width: 100%;
    height: auto !important;
  }

  .charts-row > .chart-box.donuts-inline {
    order: 2;  
    
  }

  .charts-row > .chart-box.alerts-box {
    order: 1; 
    flex: 1 1 36%
  }

  .alerts-chart-wrapper {
    padding-top:0rem ;
    
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
         text-size-adjust: 100%;
  }

  .alerts-chart-wrapper .alerts-tick,
  .alerts-chart-wrapper .recharts-cartesian-axis-tick-value {
    font-size: 10px !important;
  }

  .alerts-chart-wrapper .alerts-chart-legend,
  .alerts-chart-wrapper .spread-row {
    font-size: 11px !important;
    line-height: 1.3;
  }
}


.charts-row > .chart-box.donuts-inline {
  container-name: lab-donuts;
  container-type: inline-size;
}

.charts-row .donut-pair-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 40px 24px;
  gap: 40px 24px;
  align-items: start;
  width: min(100%, 820px);
  margin-inline: auto;
}

.charts-row .donut-pair,
.charts-row .donut-pair:nth-child(1),
.charts-row .donut-pair:nth-child(2) {
  
  width: 100% !important;
  flex: none !important;
  min-width: 0;
  max-width: none !important;
  margin-inline: 0 !important;
}

.charts-row .donut-content {
  width: 100%;
  flex-direction: column;
  min-width: 0;
  padding-inline: 0;
}

.charts-row .donut-legend {
  
  width: fit-content;
  max-width: 100%;
}

.charts-row .donut-legend li {
  min-width: 0;
}

.charts-row .donut-legend li span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.info-effects-wrap {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: auto;
}


@container lab-result (min-width: 1000px) {
  .info-effects-wrap {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .info-effects-wrap > section {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

.lab-lazy-fallback {
  min-height: 42px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.12) 0%,
    rgba(148, 163, 184, 0.24) 50%,
    rgba(148, 163, 184, 0.12) 100%
  );
  background-size: 180% 100%;
  animation: labLazyPulse 1.1s ease-in-out infinite;
}

@keyframes labLazyPulse {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}




@container lab-result (max-width: 749px) {
.lab-result-overlay .sp-grid #sp-basic > section, .lab-result-overlay .sp-grid #sp-effects > section {
background: none;
border: 0px;
overflow: visible;
padding: 1em 0.5em;
margin: 0em;
box-shadow: none;
}

 .lab-result-overlay > div > article > div.em-card.glass-popup > div.sp-grid > section > div > div.axis-block,
 .lab-result-overlay > div > article > div.em-card.glass-popup > div.sp-grid > section > div > div.summary-block {
padding-inline: 0em;
}
}









@container lab-result (min-width: 615px) {
  .labresult-viewer {
    order: 2;
  }
  .labresult-images {
    order: 1;
  }
}





.countries-menu > div {
  transition: background-color 160ms ease, color 160ms ease;
}

.countries-menu > div:hover {
  background: var(--accent-tint-active)!important;
}

.countries-menu > div:active {
  background: var(--accent-tint-active)!important;
  opacity: 0.9;
}

.lab-result-overlay .jrnl-badges-wrap {
  margin-left: 1.5em;
}

.lab-result-overlay .jrnl-badges-wrap .om-name {
  margin-right: 1em;
}

