html:has(#sampleTrackingApp),
body.lims-admin:has(#sampleTrackingApp) {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.admin-shell-no-compact:has(#sampleTrackingApp),
.admin-shell-topnav:has(#sampleTrackingApp) {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-shell-topnav:has(#sampleTrackingApp) .admin-main,
.admin-shell-topnav:has(#sampleTrackingApp) .admin-content,
.admin-shell-no-compact .admin-main:has(#sampleTrackingApp),
.admin-shell-no-compact .admin-content:has(#sampleTrackingApp) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    height: auto;
    overflow: hidden;
    padding: 0 !important;
}

.st-app {
    --st-ink: var(--text);
    --st-muted: var(--text-muted);
    --st-line: var(--border);
    --st-card: var(--surface);
    --st-primary: var(--primary);
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-width: none;
    padding: 0;
    color: var(--st-ink);
    background: var(--background);
    box-sizing: border-box;
    overflow: hidden;
}

.st-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.st-head h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 850;
}

.st-head p {
    margin: 0.2rem 0 0;
    color: var(--st-muted);
    font-size: 0.92rem;
}

.st-home {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--st-line);
    background: #fff;
    color: #0f3b46;
    font-weight: 800;
    text-decoration: none;
}

.st-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0;
    flex: 0 0 auto;
}
.st-kpis > * { flex: 1 1 10.5rem; min-width: 0; }

.st-kpi {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--st-kpi-border, var(--st-line));
    border-radius: 14px;
    background: var(--st-kpi-bg, var(--st-card));
    color: var(--st-kpi-ink, var(--st-ink));
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    text-align: start;
    cursor: pointer;
}

.st-kpi strong {
    display: block;
    font-size: 1.2rem;
    line-height: 1.1;
    color: var(--st-kpi-ink, var(--st-ink));
}

.st-kpi small {
    color: var(--st-kpi-muted, var(--st-muted));
    font-weight: 700;
}

.st-kpi-ico {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--st-kpi-ico, radial-gradient(circle at 32% 28%, #fff 0%, #f1f5f9 70%));
    box-shadow: 0 6px 0 -3px var(--st-kpi-border, #e2e8f0), 0 8px 12px rgba(15, 23, 42, 0.08);
    padding: 0.2rem;
}

.st-kpi.is-slate { --st-kpi-bg: #eef2f7; --st-kpi-border: #cbd5e1; --st-kpi-ink: #334155; --st-kpi-muted: #475569; --st-kpi-ico: radial-gradient(circle at 32% 28%, #fff 0%, #cbd5e1 80%); }
.st-kpi.is-rose { --st-kpi-bg: #ffe4e8; --st-kpi-border: #fda4af; --st-kpi-ink: #9f1239; --st-kpi-muted: #be123c; --st-kpi-ico: radial-gradient(circle at 32% 28%, #fff 0%, #fecdd3 80%); }
.st-kpi.is-sky { --st-kpi-bg: #e0f2fe; --st-kpi-border: #7dd3fc; --st-kpi-ink: #075985; --st-kpi-muted: #0369a1; --st-kpi-ico: radial-gradient(circle at 32% 28%, #fff 0%, #bae6fd 80%); }
.st-kpi.is-teal { --st-kpi-bg: #ccfbf1; --st-kpi-border: #5eead4; --st-kpi-ink: #115e59; --st-kpi-muted: #0f766e; --st-kpi-ico: radial-gradient(circle at 32% 28%, #fff 0%, #99f6e4 80%); }
.st-kpi.is-amber { --st-kpi-bg: #fef3c7; --st-kpi-border: #fcd34d; --st-kpi-ink: #92400e; --st-kpi-muted: #b45309; --st-kpi-ico: radial-gradient(circle at 32% 28%, #fff 0%, #fde68a 80%); }
.st-kpi.is-orange { --st-kpi-bg: #ffedd5; --st-kpi-border: #fdba74; --st-kpi-ink: #9a3412; --st-kpi-muted: #c2410c; --st-kpi-ico: radial-gradient(circle at 32% 28%, #fff 0%, #fed7aa 80%); }
.st-kpi.is-red { --st-kpi-bg: #fee2e2; --st-kpi-border: #fca5a5; --st-kpi-ink: #991b1b; --st-kpi-muted: #b91c1c; --st-kpi-ico: radial-gradient(circle at 32% 28%, #fff 0%, #fecaca 80%); }
.st-kpi.is-emerald { --st-kpi-bg: #d1fae5; --st-kpi-border: #6ee7b7; --st-kpi-ink: #065f46; --st-kpi-muted: #047857; --st-kpi-ico: radial-gradient(circle at 32% 28%, #fff 0%, #a7f3d0 80%); }
.st-kpi.is-violet { --st-kpi-bg: #ede9fe; --st-kpi-border: #c4b5fd; --st-kpi-ink: #5b21b6; --st-kpi-muted: #6d28d9; --st-kpi-ico: radial-gradient(circle at 32% 28%, #fff 0%, #ddd6fe 80%); }

.st-kpi-ico svg,
.st-stage-3d svg,
.st-status-chip svg {
    width: 100%;
    height: 100%;
}

.st-body > .st-journey-wrap {
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
    padding: 0.15rem 0.1rem;
    min-height: 0;
    height: 100%;
}

.st-body > .st-journey-wrap .st-journey {
    flex-direction: column;
    height: 100%;
    min-height: 0;
    justify-content: space-between;
    align-items: stretch;
    overflow: hidden;
    gap: 0.35rem;
}

.st-body > .st-journey-wrap .st-stage {
    flex: 1 1 0;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    gap: 0.2rem;
    padding: 0.28rem 0.22rem 0.32rem;
    border-radius: 14px;
    border: 1px solid var(--st-stage-line, #d5e3ea);
    background: var(--st-stage-bg, #eef4f7);
    justify-content: center;
}

.st-body > .st-journey-wrap .st-stage.is-slate { --st-stage-bg: #e8eef4; --st-stage-line: #c5d0db; }
.st-body > .st-journey-wrap .st-stage.is-rose { --st-stage-bg: #fde8ec; --st-stage-line: #f3c4cd; }
.st-body > .st-journey-wrap .st-stage.is-sky { --st-stage-bg: #e4f4fc; --st-stage-line: #b7d9ea; }
.st-body > .st-journey-wrap .st-stage.is-amber { --st-stage-bg: #fdf3e1; --st-stage-line: #f1d6a6; }
.st-body > .st-journey-wrap .st-stage.is-teal { --st-stage-bg: #e4f7f3; --st-stage-line: #b5ddd4; }
.st-body > .st-journey-wrap .st-stage.is-red { --st-stage-bg: #fdeaea; --st-stage-line: #f0c4c4; }
.st-body > .st-journey-wrap .st-stage.is-violet { --st-stage-bg: #efeafc; --st-stage-line: #d3c8f0; }
.st-body > .st-journey-wrap .st-stage.is-indigo { --st-stage-bg: #e8ecfb; --st-stage-line: #c5cdee; }
.st-body > .st-journey-wrap .st-stage.is-emerald { --st-stage-bg: #e5f7ef; --st-stage-line: #b6ddc8; }

.st-body > .st-journey-wrap .st-stage.is-current {
    box-shadow: inset 0 0 0 2px var(--st-stage-line);
}

.st-body > .st-journey-wrap .st-stage-3d {
    width: min(4.6rem, 72%);
    height: min(4.6rem, 52%);
    max-height: 4.8rem;
    animation: none;
    flex: 1 1 auto;
}

.st-body > .st-journey-wrap .st-stage-name {
    background: none;
    font-size: 1.12rem;
    font-weight: 850;
    padding: 0 0.1rem;
    line-height: 1.25;
    flex: 0 0 auto;
}

.st-body > .st-journey-wrap .st-stage-count {
    font-size: 1.2rem;
    min-width: 1.9rem;
    padding: 0.05rem 0.45rem;
}

.st-body > .st-journey-wrap .st-journey-link {
    width: 2.55rem;
    height: 4px;
    flex: 0 0 4px;
    margin: 0.08rem 0;
    transform: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #8aa4b3 0%, #c5d6df 45%, #f4f9fc 100%);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.28), 0 1px 0 rgba(255, 255, 255, 0.85);
}

.st-body > .st-journey-wrap .st-journey-link svg {
    display: none;
}

.st-journey {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    gap: 0;
}

.st-stage {
    --st-stage-ink: #0f172a;
    --st-stage-count-bg: #334155;
    --st-stage-count-ink: #fff;
    flex: 1 1 0;
    width: auto;
    min-width: 5.2rem;
    max-width: 8.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 0.25rem 0.85rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    color: var(--st-stage-ink);
    opacity: 1;
    box-shadow: none;
}

.st-stage.is-slate { --st-stage-ink: #0f172a; --st-stage-count-bg: #334155; }
.st-stage.is-rose { --st-stage-ink: #9f1239; --st-stage-count-bg: #e11d48; }
.st-stage.is-sky { --st-stage-ink: #075985; --st-stage-count-bg: #0284c7; }
.st-stage.is-teal { --st-stage-ink: #115e59; --st-stage-count-bg: #0f766e; }
.st-stage.is-amber { --st-stage-ink: #92400e; --st-stage-count-bg: #d97706; }
.st-stage.is-violet { --st-stage-ink: #5b21b6; --st-stage-count-bg: #7c3aed; }
.st-stage.is-indigo { --st-stage-ink: #3730a3; --st-stage-count-bg: #4f46e5; }
.st-stage.is-emerald { --st-stage-ink: #065f46; --st-stage-count-bg: #059669; }
.st-stage.is-red { --st-stage-ink: #991b1b; --st-stage-count-bg: #dc2626; }

.st-stage-3d {
    width: clamp(4.4rem, 6.4vw, 6.2rem);
    height: clamp(4.4rem, 6.4vw, 6.2rem);
    border-radius: 0;
    background: none;
    border: 0;
    box-shadow: none;
    display: grid;
    place-items: center;
    padding: 0;
    position: relative;
    animation: stLive 2.6s ease-in-out infinite;
}

.st-stage.is-rose .st-stage-3d,
.st-stage.is-sky .st-stage-3d,
.st-stage.is-teal .st-stage-3d,
.st-stage.is-amber .st-stage-3d,
.st-stage.is-violet .st-stage-3d,
.st-stage.is-indigo .st-stage-3d,
.st-stage.is-emerald .st-stage-3d,
.st-stage.is-red .st-stage-3d,
.st-stage.is-slate .st-stage-3d {
    background: none;
    box-shadow: none;
}

.st-stage-3d svg,
.st-stage-3d .st-stage-clay {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: saturate(1.35);
}

.st-stage:nth-of-type(1) .st-stage-3d { animation-delay: 0s; }
.st-stage:nth-of-type(2) .st-stage-3d { animation-delay: 0.18s; }
.st-stage:nth-of-type(3) .st-stage-3d { animation-delay: 0.36s; }
.st-stage:nth-of-type(4) .st-stage-3d { animation-delay: 0.54s; }
.st-stage:nth-of-type(5) .st-stage-3d { animation-delay: 0.72s; }
.st-stage:nth-of-type(6) .st-stage-3d { animation-delay: 0.9s; }
.st-stage:nth-of-type(7) .st-stage-3d { animation-delay: 1.08s; }
.st-stage:nth-of-type(8) .st-stage-3d { animation-delay: 1.26s; }

.st-stage-name {
    font-size: 1.05rem;
    font-weight: 850;
    text-align: center;
    line-height: 1.3;
    color: var(--st-stage-ink);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: #e8f3f8;
}

.st-stage-count {
    min-width: 2.6rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--st-stage-count-bg);
    color: var(--st-stage-count-ink, #fff);
    font-size: 1.55rem;
    font-weight: 850;
    line-height: 1.15;
}

.st-stage-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #cbd5e1;
}

.st-stage.is-current .st-stage-3d {
    animation-duration: 1.6s;
}

.st-stage.is-current .st-stage-3d svg,
.st-stage.is-current .st-stage-clay {
    filter: saturate(1.45);
}

.st-stage.is-done .st-stage-dot {
    background: #10b981;
}

.st-stage.is-current .st-stage-dot {
    background: #078ead;
    box-shadow: 0 0 0 4px rgba(7, 142, 173, 0.16);
}


.st-journey-link {
    width: clamp(1.85rem, 2.8vw, 2.7rem);
    height: clamp(1.35rem, 2.1vw, 2rem);
    margin-top: -2.55rem;
    background: none;
    position: relative;
    flex: 0 0 clamp(1.85rem, 2.8vw, 2.7rem);
    display: grid;
    place-items: center;
    align-self: center;
}

.st-journey-link svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 5px 7px rgba(15, 23, 42, 0.24));
}

.st-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.35rem;
    padding: 8px 9px 9px;
    margin: 0.45rem 0.45rem 0;
    border: 1px solid #9fd4e4;
    border-radius: 16px;
    background: linear-gradient(135deg, #b6e3ee 0%, #d4eef5 100%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    direction: rtl;
    text-align: right;
    flex: 0 0 auto;
}

.st-filters label > span { text-align: right; }
.st-filters .ws-search-select-trigger { text-align: right; }

.st-filter-top {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0;
}

.st-filter-top strong {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.st-filter-top strong i {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2bb3c9 0%, var(--primary, #0F766E) 50%, #056a82 100%);
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 6px 16px rgba(7, 142, 173, 0.32);
}

.st-filter-dates {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.35rem;
}

.st-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    margin: 0;
    padding: 0.3rem 0.4rem 0.35rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #9fd4e4;
    box-shadow: 0 1px 4px rgba(7, 142, 173, 0.05);
    font-size: 0.8rem;
    font-weight: 800;
    color: #000;
}

.st-filters .st-filter-wide { grid-column: 1 / -1; }

.st-filters label {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    gap: 0.22rem;
}

.st-filters,
.st-filter-dates {
    gap: 0.45rem 0.55rem;
}

.st-search-control {
    position: relative;
    display: block;
    width: 100%;
}

.st-search-control > i {
    position: absolute;
    inset-inline-start: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: #0f766e;
    font-size: 0.82rem;
    pointer-events: none;
    z-index: 2;
}

.st-filters .st-search-control .form-control {
    padding-inline-start: 2rem;
    border-radius: 12px !important;
}

.st-filter-actions { padding: 0.18rem !important; }

.st-filters label > span {
    font-size: 0.78rem;
    line-height: 1.1;
    color: #000;
    font-weight: 800;
    padding-inline: 0.1rem;
}

.st-filters .form-control,
.st-filters .form-select {
    border-radius: 10px !important;
    border: 1px solid #9fd4e4 !important;
    background-color: #fff !important;
    color: #000 !important;
    font-weight: 700;
    font-size: 0.85rem;
    min-height: 1.95rem;
    height: 1.95rem;
    padding-block: 0.15rem;
    min-width: 0;
    width: 100%;
    box-shadow: 0 1px 2px rgba(22, 50, 79, 0.04);
}

.st-filters input[type="date"] {
    font-size: 0.85rem;
    font-weight: 750;
    padding-inline: 0.35rem;
}

#stFilterForm .ws-search-select-trigger,
#stFilterForm .ws-search-select-menu-btn,
#outTrkFilters .ws-search-select-trigger,
#outTrkFilters .ws-search-select-menu-btn {
    min-height: 1.95rem !important;
    height: 1.95rem !important;
    padding-block: 0 !important;
    font-size: 0.85rem;
}

.st-filters input[type="search"] {
    background: linear-gradient(180deg, #f7fbfc 0%, #fff 70%) !important;
    box-shadow: 0 2px 8px rgba(7, 142, 173, 0.08);
}

.st-filters .form-control:focus,
.st-filters .form-select:focus {
    border-color: #0f766e !important;
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.16) !important;
}

#stFilterForm .ws-search-select-shell,
#outTrkFilters .ws-search-select-shell {
    border: 1px solid #9fd4e4;
    border-radius: 10px;
    overflow: hidden;
    gap: 0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(22, 50, 79, 0.04);
}

#stFilterForm .ws-search-select-shell:focus-within,
#stFilterForm .ws-search-select.is-open .ws-search-select-shell,
#outTrkFilters .ws-search-select-shell:focus-within,
#outTrkFilters .ws-search-select.is-open .ws-search-select-shell {
    border-color: #0f766e;
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.16);
}

#stFilterForm .ws-search-select-shell .ws-search-select-trigger,
#outTrkFilters .ws-search-select-shell .ws-search-select-trigger {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
    font-weight: 700;
    color: #000;
}

#stFilterForm .ws-search-select-shell .ws-search-select-menu-btn,
#outTrkFilters .ws-search-select-shell .ws-search-select-menu-btn {
    border: 0 !important;
    border-inline-start: 1px solid #9fd4e4 !important;
    border-radius: 0 !important;
    min-height: 100%;
    background: linear-gradient(145deg, #ccfbf1 0%, #5eead4 100%) !important;
    color: #115e59 !important;
    box-shadow: none !important;
}

#stFilterForm .ws-search-select-shell .ws-search-select-menu-btn:hover,
#stFilterForm .ws-search-select.is-open .ws-search-select-menu-btn,
#outTrkFilters .ws-search-select-shell .ws-search-select-menu-btn:hover,
#outTrkFilters .ws-search-select.is-open .ws-search-select-menu-btn {
    background: linear-gradient(145deg, #99f6e4 0%, #5eead4 100%) !important;
    color: #0f766e !important;
}

.st-filter-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #9fd4e4;
}

.st-filter-actions .btn {
    width: 1.8rem;
    height: 1.8rem;
    min-width: 1.8rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    background: linear-gradient(145deg, #dbeafe 0%, #93c5fd 100%) !important;
    border: 1px solid #7dd3fc !important;
    color: #075985 !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.st-filter-actions .btn:hover {
    filter: brightness(1.04);
}

.st-table-card {
    background: #fff;
    border: 1px solid var(--st-line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.st-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.st-table th,
.st-table td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.84rem;
    vertical-align: middle;
}

.st-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 800;
    white-space: nowrap;
}

.st-tests {
    max-width: 14rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.5rem 0.15rem 0.2rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-weight: 800;
    font-size: 0.76rem;
}

.st-status-chip svg,
.st-status-chip .st-chip-clay,
.st-sample-ico svg {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.st-sample-ico svg {
    width: 2.2rem;
    height: 2.2rem;
}

.st-status-chip.is-delayed {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

.st-prio {
    font-weight: 800;
    font-size: 0.75rem;
}

.st-prio.is-urgent { color: #c2410c; }
.st-prio.is-stat { color: #b91c1c; }

.st-actions {
    white-space: nowrap;
}

.st-actions a,
.st-actions button,
.st-more summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border: 0;
    background: #f1f5f9;
    color: #334155;
    border-radius: 8px;
    margin-inline-end: 0.2rem;
}

.st-more {
    position: relative;
    display: inline-block;
}

.st-more summary {
    list-style: none;
    cursor: pointer;
}

.st-more summary::-webkit-details-marker { display: none; }

.st-more div {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 0.3rem);
    min-width: 9rem;
    background: #fff;
    border: 1px solid var(--st-line);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    padding: 0.35rem;
    z-index: 5;
}

.st-more a {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    padding: 0.35rem 0.5rem;
    margin: 0;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.st-pager {
    padding: 0.7rem 1rem;
    color: var(--st-muted);
    font-weight: 700;
    font-size: 0.82rem;
}

.st-empty-row td {
    text-align: center;
    color: var(--st-muted);
    padding: 2rem;
}

.st-drawer {
    position: fixed;
    inset: 0;
    z-index: 1400;
}

.st-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
}

.st-drawer-panel {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(440px, 100vw);
    background: #fff;
    box-shadow: -12px 0 32px rgba(15, 23, 42, 0.16);
    display: flex;
    flex-direction: column;
}

body.rtl .st-drawer-panel {
    box-shadow: 12px 0 32px rgba(15, 23, 42, 0.16);
}

.st-drawer-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--st-line);
}

.st-drawer-panel h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 850;
}

.st-drawer-x {
    border: 0;
    background: #f1f5f9;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
}

.st-drawer-body {
    overflow: auto;
    padding: 1rem;
}

.st-block {
    margin-bottom: 1rem;
}

.st-block h3 {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    color: var(--st-muted);
    font-weight: 800;
}

.st-dl {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.28rem 0.6rem;
    font-size: 0.86rem;
}

.st-dl dt { color: var(--st-muted); }
.st-dl dd { margin: 0; font-weight: 700; }

.st-alert {
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    margin-bottom: 0.85rem;
    font-size: 0.86rem;
}

.st-alert.is-delay { background: #fff7ed; border: 1px solid #fdba74; }
.st-alert.is-reject { background: #fef2f2; border: 1px solid #fca5a5; }

.st-time {
    list-style: none;
    margin: 0;
    padding: 0;
}

.st-time li {
    display: grid;
    grid-template-columns: 1.1rem 1fr;
    gap: 0.55rem;
    padding-bottom: 0.75rem;
    position: relative;
}

.st-time li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0.42rem;
    top: 1rem;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.st-time li:last-child::before { display: none; }

.st-time i {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    margin-top: 0.2rem;
}

.st-time .is-done i { background: #10b981; border-color: #10b981; }
.st-time .is-current i { background: #078ead; border-color: #078ead; box-shadow: 0 0 0 4px rgba(7, 142, 173, 0.16); }
.st-time .is-alert i { background: #ef4444; border-color: #ef4444; }

.st-time strong { display: block; font-size: 0.88rem; }
.st-time em { font-style: normal; color: var(--st-muted); font-size: 0.78rem; }

@keyframes stLive {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (max-width: 640px) {
    .st-journey {
        flex-direction: column;
        min-width: 0;
        align-items: stretch;
    }

    .st-stage {
        width: auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.8rem;
        padding: 0.55rem 0.2rem;
    }

    .st-stage-3d {
        width: 3.8rem;
        height: 3.8rem;
    }

    .st-journey-link {
        width: 2rem;
        height: 1.55rem;
        margin: 0 1.7rem;
        transform: rotate(90deg);
        flex: 0 0 1.55rem;
    }
}

.st-body {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px 8.2rem;
    grid-template-rows: minmax(0, 1fr);
    gap: 0.75rem;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    align-items: stretch;
    overflow: hidden;
    padding: 0.7rem 0.85rem 0.75rem;
}

.st-body,
.st-workspace,
.st-workspace h1,
.st-workspace p,
.st-kpi,
.st-stage-name {
    word-spacing: normal;
    letter-spacing: normal;
}

.st-body input,
.st-body select,
.st-filters button {
    text-align: right;
}

.st-workspace {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.st-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--st-line);
    border-radius: 16px;
    background: var(--background, #F4F9FC);
    box-shadow: var(--shadow, 0 4px 14px rgba(7, 142, 173, 0.08));
}

.st-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.55rem 0.55rem 0;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 48%, #a855f7 100%);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
    font-weight: 850;
    direction: rtl;
    unicode-bidi: isolate;
    text-align: right;
    flex: 0 0 auto;
}

.st-sidebar-head em {
    min-width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f5f3ff;
    color: #5b21b6;
    font-style: normal;
    font-weight: 900;
}

.st-visit-list {
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0.45rem 0.55rem 0.55rem;
    background: #fff;
    border: 1px solid var(--st-line);
    border-radius: 14px;
    direction: rtl;
    unicode-bidi: isolate;
}

.st-visit-empty {
    text-align: center;
    padding: 1.4rem 0.8rem;
    color: var(--st-muted);
    font-weight: 700;
}

.st-visit-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    width: 100%;
    direction: rtl;
    text-align: right;
    border: 0;
    border-bottom: 1px solid var(--st-line);
    background: #fff;
    padding: 0.7rem 0.85rem;
    cursor: pointer;
}

.st-visit-item:hover { background: #f1f5f9; }
.st-visit-item.is-active {
    background: #e8eef5;
    box-shadow: inset -3px 0 0 #64748b;
}

.st-visit-avatar {
    color: var(--blue, #1479D1);
    font-size: 1.15rem;
}

.st-visit-name {
    display: block;
    font-weight: 850;
    color: var(--st-ink);
}

.st-visit-meta {
    display: block;
    color: var(--st-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.st-arrival-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--warning, #F5A623);
}
.st-visit-stage {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 3.6rem;
}
.st-visit-stage img {
    width: 2.1rem;
    height: 2.1rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.18));
}
.st-visit-stage em {
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    white-space: nowrap;
    background: #e2e8f0;
    color: #334155;
}
.st-visit-stage.is-collected em { background: #ffedd5; color: #9a3412; }
.st-visit-stage.is-received em { background: #e0f2fe; color: #075985; }
.st-visit-stage.is-rejected em { background: #fee2e2; color: #991b1b; }
.st-visit-stage.is-pending em { background: #fef3c7; color: #92400e; }
.st-visit-stage.is-completed em { background: #ede9fe; color: #5b21b6; }
.st-visit-stage.is-approved em { background: #d1fae5; color: #065f46; }
.st-visit-stage.is-printed em { background: #e0e7ff; color: #3730a3; }
.st-visit-stage.is-sent em { background: #ccfbf1; color: #115e59; }

.st-arrival-dot.is-arrived { background: var(--success, #18B56A); }
.st-arrival-dot.is-partial { background: var(--blue, #1479D1); }

.st-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    border: 1px solid var(--st-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow, 0 4px 14px rgba(7, 142, 173, 0.08));
}

.st-empty-state {
    min-height: 100%;
    display: grid;
    place-content: center;
    gap: 0.6rem;
    color: var(--st-muted);
    text-align: center;
    font-weight: 800;
}

.st-empty-state i { font-size: 2rem; color: var(--st-primary); }

.st-desk { padding: 0.85rem; display: grid; gap: 0.9rem; }

.st-visit-journey-wrap {
    overflow-x: auto;
    padding: 0.2rem 0.1rem 0.25rem;
}

.st-visit-journey {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    gap: 0;
}

.st-visit-journey .st-stage {
    flex: 1 1 0;
    max-width: none;
    min-width: 5.2rem;
    padding: 0.2rem 0.15rem 0.25rem;
    cursor: pointer;
    gap: 0.22rem;
}

.st-visit-journey .st-stage-3d {
    width: 4.6rem;
    height: 4.6rem;
    animation: none;
}

.st-visit-journey .st-stage-name {
    font-size: 0.8rem;
    padding: 0.08rem 0.4rem;
}

.st-visit-journey .st-stage-count {
    font-size: 1.1rem;
    min-width: 1.75rem;
    padding: 0.06rem 0.45rem;
}

.st-visit-journey .st-stage-dot { display: none; }

.st-visit-journey .st-journey-link {
    width: 1.35rem;
    height: 1.05rem;
    flex: 0 0 1.35rem;
    align-self: flex-start;
    margin-top: 1.75rem;
}

/* Visit progress path: stops at the stage the results reached */
.st-visit-journey.is-progress {
    align-items: flex-start;
    padding: 0.6rem 0.4rem 0.2rem;
}
.st-visit-journey.is-progress .st-vj-step {
    flex: 0 0 auto;
    min-width: 6.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0.1rem 0.2rem;
}
.st-vj-icon {
    position: relative;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 3px solid #d5e3ea;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.st-vj-icon img { width: 3rem; height: 3rem; object-fit: contain; }
.st-vj-badge {
    position: absolute;
    inset-block-start: -0.25rem;
    inset-inline-end: -0.25rem;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    color: #fff;
    background: #16a34a;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.4);
}
.st-visit-journey.is-progress .st-stage-name {
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    background: transparent;
    color: #334155;
    white-space: nowrap;
}
.st-vj-here {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    color: #fff;
    background: #078ead;
    box-shadow: 0 3px 8px rgba(7, 142, 173, 0.35);
}

.st-vj-step.is-done .st-vj-icon { border-color: #22c55e; background: #f0fdf4; }
.st-vj-step.is-done .st-stage-name { color: #15803d; }

.st-vj-step.is-current .st-vj-icon {
    border-color: #078ead;
    background: #ecfeff;
    transform: scale(1.14);
    animation: st-vj-pulse 1.6s ease-in-out infinite;
}
.st-vj-step.is-current .st-stage-name { background: #e0f7fb; color: #056a82; }
.st-vj-step.is-current.is-red .st-vj-icon { border-color: #dc2626; background: #fef2f2; animation-name: st-vj-pulse-red; }
.st-vj-step.is-current.is-red .st-stage-name { background: #fee2e2; color: #991b1b; }
.st-vj-step.is-current.is-red .st-vj-here { background: #dc2626; box-shadow: 0 3px 8px rgba(220, 38, 38, 0.35); }

.st-vj-step.is-upcoming .st-vj-icon { border-style: dashed; background: #f8fafc; }
.st-vj-step.is-upcoming .st-vj-icon img { filter: grayscale(1); opacity: 0.4; }
.st-vj-step.is-upcoming .st-stage-name { color: #94a3b8; }

.st-vj-line {
    flex: 1 1 1.5rem;
    min-width: 1.2rem;
    height: 5px;
    margin-top: 2.05rem;
    border-radius: 999px;
    background: #e2e8f0;
}
.st-vj-line.is-done { background: linear-gradient(90deg, #22c55e, #16a34a); }
.st-vj-line.is-rejected { background: linear-gradient(90deg, #22c55e, #dc2626); }
[dir="rtl"] .st-vj-line.is-rejected { background: linear-gradient(270deg, #22c55e, #dc2626); }
.st-vj-line.is-upcoming {
    background: repeating-linear-gradient(90deg, #cbd5e1 0 8px, transparent 8px 14px);
}

@keyframes st-vj-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(7, 142, 173, 0.45); }
    50% { box-shadow: 0 0 0 10px rgba(7, 142, 173, 0); }
}
@keyframes st-vj-pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45); }
    50% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
}

.st-visit-journey .st-vj-step.is-picked .st-vj-icon { outline: 2px solid #078ead; outline-offset: 3px; }

.st-visit-journey .st-stage.is-picked {
    filter: saturate(1.15);
}

.st-visit-journey .st-stage.is-picked .st-stage-3d {
    outline: 2px solid #078ead;
    outline-offset: 2px;
    border-radius: 10px;
}

.st-patient-bar {
    display: grid;
    grid-template-columns: minmax(12rem, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid #9fd4e4;
    border-radius: 16px;
    background: linear-gradient(135deg, #d9f3f8 0%, #eef8fb 100%);
}

.st-patient-id {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.st-patient-name {
    display: block;
    font-size: 1.2rem;
    color: #0f4c5c;
}

.st-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.st-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.76rem;
    border: 1px solid transparent;
}

.st-meta-chip em { font-style: normal; font-weight: 700; opacity: 0.8; }
.st-meta-chip.is-file { background: #e2e8f0; color: #0f172a; }
.st-meta-chip.is-visit { background: #dbeafe; color: #1e40af; }
.st-meta-chip.is-doctor { background: #ccfbf1; color: #115e59; }
.st-meta-chip.is-time { background: #e0e7ff; color: #3730a3; }
.st-meta-chip.is-phone { background: #d1fae5; color: #065f46; }
.st-meta-chip.is-prio-routine { background: #e2e8f0; color: #334155; }
.st-meta-chip.is-prio-urgent { background: #ffedd5; color: #9a3412; }
.st-meta-chip.is-prio-stat { background: #fee2e2; color: #991b1b; }

.st-patient-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.st-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.5rem 1.05rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
.st-link-btn i { font-size: 1.05rem; }
.st-link-btn.is-results { background: #7c3aed; color: #fff; border-color: #6d28d9; }
.st-link-btn.is-visit { background: #0284c7; color: #fff; border-color: #0369a1; }
.st-link-btn.is-print { background: #0d9488; color: #fff; border-color: #0f766e; }
.st-link-btn.is-receive { background: #0ea5e9; color: #fff; border-color: #0284c7; }
.st-link-btn.is-report { background: #059669; color: #fff; border-color: #047857; }
.st-link-btn:hover { filter: brightness(1.08); }

button.st-status-chip {
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
button.st-status-chip:hover {
    filter: brightness(0.97);
}

.st-drawer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.st-sample-stack { display: grid; gap: 0.85rem; }

.st-sample-card {
    border: 1px solid #d5e6ee;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    border-inline-start: 5px solid #94a3b8;
}

.st-sample-card.is-pending { border-inline-start-color: #64748b; }
.st-sample-card.is-collected { border-inline-start-color: #e11d48; }
.st-sample-card.is-received { border-inline-start-color: #0284c7; }
.st-sample-card.is-accepted { border-inline-start-color: #0f766e; }
.st-sample-card.is-rejected { border-inline-start-color: #dc2626; }
.st-sample-card.is-testing { border-inline-start-color: #7c3aed; }
.st-sample-card.is-validation { border-inline-start-color: #4f46e5; }
.st-sample-card.is-completed { border-inline-start-color: #7c3aed; }
.st-sample-card.is-approved { border-inline-start-color: #059669; }
.st-sample-card.is-printed { border-inline-start-color: #4f46e5; }
.st-sample-card.is-sent { border-inline-start-color: #0f766e; }

.st-sample-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    background: #f0f9fc;
    border-bottom: 1px solid #dceaf1;
}

.st-sample-id {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.st-sample-ico {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 auto;
}

.st-sample-ico .st-sample-clay {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
    display: block;
}

.st-sample-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    min-width: 0;
}

.st-sample-title strong {
    display: inline-flex;
    align-items: center;
    font-size: 1.2rem;
    line-height: 1;
    color: #0f4c5c;
}

.st-sample-title em {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-style: normal;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
}

.st-sample-kind,
.st-sample-tube {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
}

.st-sample-kind {
    background: #e0f2fe;
    color: #0369a1;
}

.st-sample-tube {
    background: #ede9fe;
    color: #6d28d9;
}

.st-sample-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.st-arrival-chip {
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 850;
}
.st-arrival-chip.is-arrived { background: #d1fae5; color: #065f46; }
.st-arrival-chip.is-pending { background: #fef3c7; color: #92400e; }

.st-status-chip.is-pending { background: #e2e8f0; color: #0f172a; border-color: #cbd5e1; }
.st-status-chip.is-collected { background: #ffe4e6; color: #9f1239; border-color: #fda4af; }
.st-status-chip.is-received { background: #e0f2fe; color: #075985; border-color: #7dd3fc; }
.st-status-chip.is-accepted { background: #ccfbf1; color: #115e59; border-color: #5eead4; }
.st-status-chip.is-rejected { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.st-status-chip.is-testing { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
.st-status-chip.is-validation { background: #e0e7ff; color: #3730a3; border-color: #a5b4fc; }
.st-status-chip.is-completed { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
.st-status-chip.is-approved { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.st-status-chip.is-printed { background: #e0e7ff; color: #3730a3; border-color: #a5b4fc; }
.st-status-chip.is-sent { background: #ccfbf1; color: #115e59; border-color: #5eead4; }
.st-stage-img, .st-chip-clay, .st-sample-clay { object-fit: contain; }

.st-sample-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0.8rem 0.95rem;
    background: #f8fafc;
}

.st-fact {
    margin: 0;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    background: #fff;
}

.st-sample-facts dt { font-size: 0.72rem; font-weight: 700; opacity: 0.75; }
.st-sample-facts dd { margin: 0.15rem 0 0; font-weight: 850; font-size: 0.86rem; }
.st-fact.is-collect { background: #ffe4e6; color: #9f1239; }
.st-fact.is-receive { background: #e0f2fe; color: #075985; }
.st-fact.is-wait { background: #fef3c7; color: #92400e; }
.st-fact.is-place { background: #e0e7ff; color: #3730a3; }
.st-fact.is-dept { background: #ccfbf1; color: #115e59; }
.st-fact.is-prio-routine { background: #e2e8f0; color: #334155; }
.st-fact.is-prio-urgent { background: #ffedd5; color: #9a3412; }
.st-fact.is-prio-stat { background: #fee2e2; color: #991b1b; }

.st-test-block {
    padding: 0.75rem 0.95rem 0.95rem;
    background: #f5f3ff;
}

.st-test-block h3 {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: #5b21b6;
    font-weight: 850;
}

.st-test-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.st-test-list li {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid #f3e8ff;
    font-size: 0.84rem;
}

.st-test-list li:last-child { border-bottom: 0; }
.st-test-list span { color: #6d28d9; font-weight: 850; }
.st-test-list em {
    color: #57534e;
    font-style: normal;
    font-weight: 800;
    font-size: 0.74rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: #f5f5f4;
}
.st-test-list em.is-ordered,
.st-test-list em.is-pending { background: #e2e8f0; color: #334155; }
.st-test-list em.is-collected { background: #ffe4e6; color: #9f1239; }
.st-test-list em.is-in_progress,
.st-test-list em.is-processing { background: #fef3c7; color: #92400e; }
.st-test-list em.is-entered,
.st-test-list em.is-pending_review { background: #e0e7ff; color: #3730a3; }
.st-test-list em.is-approved,
.st-test-list em.is-completed { background: #d1fae5; color: #065f46; }
.st-test-list em.is-rejected { background: #fee2e2; color: #991b1b; }

@media (max-width: 900px) {
    .st-body {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(16rem, 38vh) auto minmax(0, 1fr);
    }

    .st-body > .st-journey-wrap {
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .st-body > .st-journey-wrap .st-journey {
        flex-direction: row;
        height: auto;
    }

    .st-body > .st-journey-wrap .st-journey-link {
        width: 4px;
        height: 2.2rem;
        flex: 0 0 4px;
        margin: 0 0.15rem;
        background: linear-gradient(90deg, #8aa4b3 0%, #c5d6df 45%, #f4f9fc 100%);
    }

    .st-patient-bar,
    .st-sample-head {
        grid-template-columns: 1fr;
    }
}

html.admin-shell-no-compact .admin-content:has(.st-app),
.admin-shell-no-compact .admin-content:has(.st-app),
.admin-shell-topnav .admin-content:has(.st-app) {
    background: var(--background, #F4F9FC);
}

.st-visit-list.is-loading { opacity: 0.55; pointer-events: none; transition: opacity 0.15s ease; }

