/* Clinical Lab Report Styles - Minimal Black & White Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.lab-report {
    max-width: 760px;
    margin: 34px auto 20px;
    padding: 24px;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #000000;
}

.lab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 6px 0 12px;
    border-bottom: 2px solid #000000;
    margin-bottom: 16px;
}

.lab-logo {
    flex: 1 1 auto;
    min-width: 0;
}

.lab-logo h1 {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 2px;
}

.lab-logo p {
    font-size: 11px;
    color: #333333;
    font-weight: 400;
}

.lab-accreditation {
    flex: 0 0 170px;
    min-width: 170px;
    margin-top: 2px;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    font-size: 11px;
    line-height: 1.6;
    color: #000000;
    white-space: nowrap;
    overflow: visible;
}

.lab-accreditation p {
    margin: 0;
    font-weight: 500;
}

.report-title {
    margin-bottom: 16px;
    text-align: center;
}

.report-title h2 {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.report-title p {
    font-size: 11px;
    color: #333333;
    font-weight: 400;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 12px;
}

.results-table thead {
    background: #ffffff;
    border-top: 2px solid #000000;
    border-bottom: 2px solid #000000;
}

.results-table th {
    padding: 6px 8px;
    text-align: center;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.2px;
}

.results-table th.category-col {
    width: 44%;
    text-align: left;
}

.results-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.results-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.results-table tbody tr:hover {
    background-color: #f0f0f0;
}

.results-table td {
    padding: 6px 8px;
    color: #000000;
}

.results-table td:first-child {
    font-weight: 500;
}

.results-table td:not(:first-child) {
    text-align: center;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: 500;
}

.value-perfect {
    font-weight: 600;
}

.value-na {
    color: #999999;
    font-style: italic;
}

.lab-footer {
    padding-top: 12px;
    border-top: 1px solid #cccccc;
    font-size: 10px;
    color: #666666;
    line-height: 1.5;
}

.lab-footer p {
    margin: 2px 0;
}

.lab-footer strong {
    color: #000000;
    font-weight: 600;
}

@media print {
    .lab-report {
        margin: 0;
        padding: 12px;
        max-width: 100%;
        font-size: 12px;
        line-height: 1.35;
    }

    .lab-header {
        border-bottom: 2px solid #000000;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .report-title {
        margin-bottom: 10px;
    }

    .results-table {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .results-table thead {
        border-top: 2px solid #000000;
        border-bottom: 2px solid #000000;
    }

    .results-table th,
    .results-table td {
        padding: 4px 6px;
    }

    .results-table tbody tr {
        border-bottom: 1px solid #cccccc;
        page-break-inside: avoid;
    }

    .results-table tbody tr:nth-child(even) {
        background-color: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@media (max-width: 768px) {
    .lab-report {
        margin: 20px auto 12px;
        padding: 12px;
    }

    .lab-header {
        flex-direction: column;
        gap: 8px;
        padding-top: 2px;
    }

    .lab-accreditation {
        flex-basis: auto;
        min-width: 0;
        margin-top: 0;
        padding-top: 2px;
        align-items: flex-start;
        text-align: left;
    }

    .results-table {
        font-size: 11px;
    }

    .results-table th,
    .results-table td {
        padding: 5px 6px;
    }
}
