/* ============================================================
   ApCytoView page styles — extracted from ApCytoView.razor
   ============================================================ */

.back-link-section {
    background-color: #F9FAFB;
    padding: 12px 0;
}

.back-link-container {
    margin: 0 32px;
}

.back-link {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    color: #4D7F71;
    text-decoration: underline;
    cursor: pointer;
}

.back-link:hover {
    text-decoration: none;
}

.summary-shell {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f9fafb;
    padding-bottom: 16px;
}

.test-info-section {
    background-color: #4d7f71;
    border-radius: 6px;
    padding: 24px;
    color: #FFFFFF;
    margin-bottom: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.test-info-title {
    font-family: "Roboto", sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0 0 4px 0;
}

.test-info-synonym {
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 16px 0;
}

.summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.summary-chip strong {
    font-weight: 700;
}

.alert-banner {
    background-color: #FFF4B9;
    border: 1px solid #E5C94A;
    border-radius: 8px;
    padding: 14px 16px;
    color: #4A3B00;
    font-family: "Roboto", sans-serif;
    margin-bottom: 16px;
}

.alert-banner-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.alert-banner-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    white-space: pre-line;
}

.content-container {
    margin: 0 32px;
}

.main-content-section {
    background-color: #f9fafb;
    padding: 3px 0 0 0;
}

.tabstrip-host {
    padding-top: 16px;
    padding-bottom: 40px;
}

.test-tabstrip {
    margin-top: 8px;
}

/* ── Tab button styling ─────────────────────────────────────────── */
.test-tabstrip .k-tabstrip-items-wrapper {
    border-bottom: 2px solid #4d7f71;
}

.test-tabstrip .k-tabstrip-items .k-item {
    background-color: rgba(77, 127, 113, 0.10);
    border: 1px solid #c5c79b;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    margin-right: 4px;
    color: #4d7f71;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.test-tabstrip .k-tabstrip-items .k-item:hover:not(.k-active) {
    background-color: rgba(197, 199, 155, 0.35);
    color: #4d7f71;
}

.test-tabstrip .k-tabstrip-items .k-item.k-active,
.test-tabstrip .k-tabstrip-items .k-item.k-active:focus,
.test-tabstrip .k-tabstrip-items .k-item.k-selected {
    background-color: #4d7f71 !important;
    border-color: #4d7f71 !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: none !important;
}

.test-tabstrip .k-tabstrip-items .k-item.k-active .k-link,
.test-tabstrip .k-tabstrip-items .k-item.k-selected .k-link {
    color: #ffffff !important;
}

.test-tabstrip .k-tabstrip-items .k-item .k-link {
    color: inherit;
    padding: 8px 16px;
}

.test-tabstrip .k-tabstrip-items .k-item .k-link > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tab-content {
    padding-top: 16px;
}

.section-box {
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.section-collection { background-color: #4d7f71; color: #FFFFFF; }
.section-process    { background-color: #c5c79b; color: #24323A; }
.section-shipping   { background-color: #898f65; color: #24323A; }
.section-references { background-color: #00adbb; color: #24323A; }

.section-box-title {
    font-family: "Roboto", sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: inherit;
    margin: 0 0 20px 0;
}

.section-box-subheading {
    font-family: "Roboto", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: inherit;
    opacity: 0.9;
    margin: 20px 0 8px 0;
}

.section-box-subheading:first-of-type {
    margin-top: 0;
}

.section-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    align-items: start;
    padding: 8px 0;
}

.section-row:last-child {
    border-bottom: none;
}

.section-process .section-row,
.section-shipping .section-row,
.section-references .section-row {
    border-bottom-color: rgba(36, 50, 58, 0.18);
}

.section-row-label {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    opacity: 0.85;
}

.section-row-value {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: inherit;
    opacity: 0.95;
    white-space: pre-line;
}

.section-empty {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    color: inherit;
    opacity: 0.8;
    margin: 0;
}

.section-link,
.cyto-link {
    color: inherit;
    text-decoration: underline;
}

.section-link:hover,
.cyto-link:hover {
    opacity: 0.75;
    text-decoration: none;
}

.cyto-link-text {
    font-weight: 600;
}

.cyto-list {
    margin: 4px 0 0 0;
    padding-left: 20px;
}

.cyto-list li {
    margin-bottom: 4px;
}

.performing-locations-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    color: #FFFFFF;
}

.performing-locations-label {
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.performing-locations-value {
    font-weight: 400;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .back-link-container,
    .content-container {
        margin: 0 16px;
    }

    .test-info-section,
    .section-box {
        padding: 20px 16px;
    }

    .test-info-title {
        font-size: 26px;
        line-height: 1.2;
    }

    .summary-meta {
        flex-direction: column;
    }

    .section-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .tabstrip-host {
        padding-top: 12px;
        padding-bottom: 24px;
    }

    .section-box-title {
        font-size: 22px;
    }
}

.print-button-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    color: #4D7F71;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.print-button-link:hover {
    color: #3a5f57;
}

@media print {
    .back-link-section,
    .test-tabstrip .k-tabstrip-items-wrapper,
    .print-button-link {
        display: none !important;
    }

    .summary-shell {
        position: static !important;
    }

    .test-info-section {
        background-color: #4d7f71 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        box-shadow: none;
    }

    .alert-banner {
        border: 1px solid #E5C94A;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .section-box {
        break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Show all tab panels when printing */
    .k-tabstrip-content {
        display: block !important;
    }

    .tab-content {
        break-inside: avoid;
        margin-bottom: 16px;
    }
}
