﻿.print-layout-root {
    font-family: Arial, sans-serif;
    padding: 20px;
    color: #000;
    background: #fff;
}

/* Topbar */
.print-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.print-logo {
    height: 50px;
    margin-right: 15px;
}

.print-org {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}


.org-left h3,
.org-right h3 {
    margin: 0;
    font-size: 1.3em;
}


.print-org p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

hr {
    border: none;
    border-top: 2px solid #00026b;
    margin: 10px 0;
}


/* Header */
.print-header {
    margin-bottom: 5px;
}

.print-header h2 {
    margin: 0;
}

.print-header .print-subtitle {
    margin: 4px 0 0;
    font-size: 1rem;
    font-weight: normal;
    color: #333;
}

.print-meta {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.print-meta .meta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.print-meta .meta-table td {
    padding: 0 8px;
    white-space: nowrap;
    vertical-align: top;
}

/* Table */
.print-table {
    width: 100%;
    border-collapse: collapse;
}

    .print-table th,
    .print-table td {
        padding: 6px;
        text-align: center;
    }

    .print-table .conflict-underline {
        text-decoration: underline;
        text-decoration-thickness: 1.5px;
        font-weight: bold;
    }

    .print-table tr {
        border-bottom: 1px solid #ccc;
    }

    .print-table th {
        background-color: #f0f0f0;
    }

/* Footer */
.print-footer .footer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.print-footer .footer-table td {
    padding: 0 8px;
    white-space: nowrap;
    vertical-align: top;
}

.print-footer {
    position: absolute;
    height: .5in;
}

.print-table tfoot tr {
    border-bottom: none;
}

.print-table tfoot td {
    border: none;
}

/* Sample Search Print */

.sample-search-print__metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    align-items: center;
}

.sample-search-print__metadata-row {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.sample-search-print__metadata-row .label {
    font-weight: 600;
}

.sample-search-print__metadata-row .value {
    color: #222;
}

.sample-search-print__table th,
.sample-search-print__table td {
    text-align: left;
    vertical-align: top;
}

.sample-search-print__time {
    font-size: 0.85rem;
    color: #666;
}

.sample-search-print__details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.95rem;
}

.sample-search-print__results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sample-search-print__result-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 72px;
}

.sample-search-print__result-name {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.sample-search-print__result-value {
    width: 64px;
    height: 36px;
    background-color: #f2f2f2;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sample-search-print__result-block.pending .sample-search-print__result-value {
    opacity: 0.6;
}

.sample-search-print__no-results {
    font-style: italic;
    color: #666;
}

.sample-search-print__empty {
    margin-top: 1rem;
    font-style: italic;
}

/* Compress Content */
.compress-group {
    width: 100%;
    margin-bottom: 2rem;
    padding: 1rem;
}

    .compress-group h4 {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
        font-weight: bold;
    }

    .compress-group ul {
        list-style-type: disc;
        padding-left: 1.5rem;
        margin: 0;
        margin-bottom: 1rem;
    }

        .compress-group ul li {
            margin-bottom: 1rem;
            font-family: monospace;
        }

ul.horizontal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

    ul.horizontal-list li {
        display: block;
        font-family: monospace;
        margin-bottom: 1rem;
    }

/* Page number support for print */
@media print {
    @page {
        size: landscape;
        margin: .5in;
    }

    .print-table tfoot td
    {
        height: .5in;
    }

    .print-table tfoot tr,
    .print-table tfoot td {
        border: none !important;
    }

    .print-footer {
        position: fixed; /* stay at bottom of page */
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center; /* center content horizontally */
        font-size: 12px;
        color: black;
        height: .4in;
        border-top: 1px solid #00026b; /* optional visual separation */
        margin-left: 30px;
        margin-right: 30px;
        margin-top: 30px;
    }

    /* Ensure body content doesn't overlap footer */
    .print-layout-root {
        padding: 1rem 2rem 0 2rem; /* minimal top padding */
        margin-bottom: 0; /* tfoot handles footer spacing */
    }

    /* Reduce header spacing in print */
    .print-topbar {
        margin-bottom: 2px;
    }

    .print-header {
        margin-bottom: 2px;
    }

    hr {
        margin: 5px 0; /* reduce HR margins */
    }

    /* Keep header and content together - prevent page breaks */
    .print-topbar,
    .print-header {
        page-break-after: avoid;
        break-after: avoid;
    }

    /* Compress-group table cells should use full width and left align */
    .print-table td:has(.compress-group),
    .print-table td.compress-group {
        padding: 0;
        text-align: left;
    }

    /* Hide table borders for compressed reports */
    .print-table:has(.compress-group) {
        border: none;
    }

    .print-table:has(.compress-group) tr {
        border: none;
        border-bottom: none;
    }

    .print-table:has(.compress-group) td {
        border: none;
    }

    /* Gray out non-selected test parameters */
    .print-table th.grayed-out,
    .print-table td.grayed-out {
        color: #b9b9b9 !important;
        background-color: #f5f5f5 !important;
    }

    /* Prevent page breaks inside table rows */
    .print-table tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .sample-search-print__result-value {
        background-color: #f2f2f2 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* page break after on each print section */
    .print-section {
        page-break-after: always;
        break-after: page;
    }

        .print-section:last-child {
            page-break-after: auto;
            break-after: auto;
        }

    .pool-print-table-compact {
        font-size: 12.5px;
    }

        .pool-print-table-compact td {
            padding: 1px 3px !important;
        }
}

/* custom css for worklist print */
.we-line-divide-black {
    width: 275px;
    border-bottom: 1px solid black;
}