.woocommerce-lab-results {
    margin: 20px 0;
}

.lab-results-order {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.lab-results-order h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.lab-results-order h3 .order-date {
    font-size: 14px;
    font-weight: normal;
    color: #666;
}

.lab-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
}

.lab-status-sent {
    background: #fef5e7;
    color: #856404;
}

.lab-status-completed {
    background: #d4edda;
    color: #155724;
}

.lab-status-pending {
    background: #e7f3ff;
    color: #004085;
}

.lab-results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lab-results-table thead {
    background: #2c5f8a;
}

.lab-results-table th {
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    letter-spacing: 0.03em;
    border-bottom: none;
}

.lab-results-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.lab-results-table tbody tr:nth-child(odd) {
    background: #f7fafd;
}

.lab-results-table tbody tr:nth-child(even) {
    background: #fff;
}

.lab-results-table tbody tr:hover {
    background: #eaf2fb;
}

.lab-results-table tbody tr:last-child td {
    border-bottom: none;
}

.parameter-name {
    font-weight: 500;
}

.parameter-value {
    font-weight: 600;
    color: #333;
}

.parameter-unit {
    color: #666;
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    background: #e9ecef;
    color: #495057;
}

.status-badge.status-ok,
.status-badge.status-goed {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-afwijkend,
.status-badge.status-warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-error,
.status-badge.status-fout {
    background: #f8d7da;
    color: #721c24;
}

.lab-results-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.lab-results-actions .button {
    margin-right: 10px;
}

/* ── Overzicht: kaarten ─────────────────────────────────── */

.lab-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.lab-order-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.lab-order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.lab-order-card__number {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
}

.lab-order-card__meta {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    flex: 1;
}

.lab-order-card__meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lab-order-card__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    font-weight: 600;
}

.lab-order-card__footer {
    padding: 14px 16px;
    border-top: 1px solid #eee;
}

.lab-order-card__footer .button {
    width: 100%;
    text-align: center;
    display: block;
}

/* ── Detailpagina ────────────────────────────────────────── */

.lab-detail-header {
    margin-bottom: 30px;
}

.lab-back-link {
    display: inline-block;
    font-size: 14px;
    color: #2c5f8a;
    text-decoration: none;
    margin-bottom: 12px;
}

.lab-back-link:hover {
    text-decoration: underline;
}

.lab-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

.lab-monster-block {
    margin-bottom: 36px;
}

.lab-monster-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 8px 14px;
    background: #f0f5fa;
    border-left: 4px solid #2c5f8a;
    border-radius: 0 4px 4px 0;
}

.lab-monster-title span {
    font-family: monospace;
    font-size: 14px;
    color: #2c5f8a;
}

.lab-detail-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* ── Pending orders ──────────────────────────────────────── */

.lab-pending-orders {
    margin-top: 30px;
}

.lab-pending-orders h3 {
    margin-bottom: 15px;
}

.woocommerce-lab-order-details {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.woocommerce-lab-order-details h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.woocommerce-table--lab-info {
    width: 100%;
    background: #fff;
    margin: 15px 0;
}

.woocommerce-table--lab-info th {
    width: 30%;
    padding: 12px;
    font-weight: 600;
    background: #f8f8f8;
}

.woocommerce-table--lab-info td {
    padding: 12px;
}

@media (max-width: 768px) {
    .lab-results-table {
        font-size: 14px;
    }

    .lab-results-table th,
    .lab-results-table td {
        padding: 8px;
    }

    .lab-results-order {
        padding: 15px;
    }

    .lab-results-actions .button {
        display: block;
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }

    .woocommerce-table--lab-info th {
        width: 40%;
        font-size: 14px;
    }

    .woocommerce-table--lab-info td {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .lab-results-table thead {
        display: none;
    }

    .lab-results-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .lab-results-table td {
        display: block;
        padding: 8px 12px;
        border: none;
        text-align: left;
    }

    .lab-results-table td:before {
        content: attr(class);
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
        text-transform: capitalize;
    }

    .lab-results-table .parameter-name:before {
        content: "Parameter: ";
    }

    .lab-results-table .parameter-value:before {
        content: "Waarde: ";
    }

    .lab-results-table .parameter-unit:before {
        content: "Eenheid: ";
    }

    .lab-results-table .parameter-status:before {
        content: "Status: ";
    }
}
