/* Avanti Lab Reports — frontend styles */

.alr-wrap {
    margin: 1.5em 0;
    color: #2c3e50;
    font-family: inherit;
}

.alr-intro {
    margin: 0 0 1.25em;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.alr-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid #e5e9ed;
    background: #fff;
}

.alr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
    margin: 0;
}

.alr-table thead th {
    background: #e05a2b;
    color: #fff;
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    border: none;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.alr-table tbody td {
    padding: 16px 18px;
    border-top: 1px solid #e5e9ed;
    vertical-align: middle;
    background: #fff;
    color: #2c3e50;
}

.alr-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

.alr-lab img {
    max-height: 36px;
    max-width: 140px;
    width: auto;
    display: block;
}

.alr-lab span {
    font-weight: 500;
    color: #555;
}

.alr-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #e05a2b;
    color: #fff !important;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 13px;
    transition: background 0.15s ease;
    border: none;
    line-height: 1.4;
}

.alr-btn:hover,
.alr-btn:focus {
    background: #c44d22;
    color: #fff !important;
    text-decoration: none !important;
}

.alr-qr {
    width: 80px;
    height: 80px;
    background: #fff;
    padding: 4px;
    border: 1px solid #e5e9ed;
    border-radius: 4px;
    box-sizing: border-box;
}

.alr-qr img,
.alr-qr canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.alr-empty {
    padding: 1.5em;
    text-align: center;
    color: #777;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e5e9ed;
}

/* Mobile: stack rows as cards */
@media (max-width: 640px) {
    .alr-table {
        min-width: 0;
    }
    .alr-table thead {
        display: none;
    }
    .alr-table,
    .alr-table tbody,
    .alr-table tr,
    .alr-table td {
        display: block;
        width: 100%;
    }
    .alr-table-wrap {
        border: none;
        background: transparent;
    }
    .alr-table tr {
        margin-bottom: 1em;
        border: 1px solid #e5e9ed;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }
    .alr-table tbody td {
        text-align: right;
        padding: 12px 16px;
        border-top: 1px solid #f0f0f0;
        background: #fff !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    .alr-table tbody td:first-child {
        border-top: none;
    }
    .alr-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .alr-lab img {
        max-height: 32px;
    }
    .alr-qr {
        margin-left: auto;
    }
}
