.review-table {
    width: 100%;
    border-collapse: collapse;
}

.review-table th {
    padding: 10px 16px;
    border-bottom: 1px solid var(--clv-color-border);
    color: var(--clv-color-text-link);
    font-family: var(--clv-font-heading);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    background: var(--clv-color-surface);
}

.review-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #E0EAEA;
    color: var(--clv-color-deep-teal);
    font-size: 13.5px;
    vertical-align: middle;
}

.review-table tr:last-child td {
    border-bottom: 0;
}

.review-table tr:hover td {
    background: rgba(75, 118, 150, 0.03);
}

.review-table td:first-child {
    min-width: 240px;
}

.review-table td.review-row-actions {
    width: max-content;
    min-width: max-content;
    white-space: normal;
}

.review-drawing-name {
    color: var(--clv-color-deep-teal);
    font-family: var(--clv-font-heading);
    font-size: 14px;
    font-weight: 500;
}

.review-cell-subline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: 3px;
    color: var(--clv-color-text-link);
    font-size: 12px;
}

/* Drawing titles are long uppercase engineering descriptions — one measured at six wrapped lines,
   which triples the row height and destroys the scanning a table exists for. Two lines, with the
   full title on the element as a tooltip. */
.review-cell-title {
    display: -webkit-box;
    overflow: hidden;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.review-status-note {
    max-width: 320px;
    margin-top: 3px;
    color: var(--clv-color-text-link);
    font-size: 11px;
    font-weight: 300;
}

.review-mono {
    font-family: var(--clv-font-mono);
    font-size: 12.5px;
}

.review-file-input-button {
    position: relative;
    overflow: hidden;
}

.review-file-input-button.busy {
    opacity: 0.6;
    pointer-events: none;
}

.review-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.review-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 900px) {
    .review-table {
        min-width: 0;
    }

    .review-table thead {
        display: none;
    }

    .review-table tbody,
    .review-table tr,
    .review-table td {
        display: block;
        width: 100%;
    }

    .review-table tr {
        padding: 16px;
        border-bottom: 1px solid #E0EAEA;
    }

    .review-table tr:last-child {
        border-bottom: 0;
    }

    .review-table td {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
        padding: 6px 0;
        border: 0;
    }

    .review-table td::before {
        content: attr(data-label);
        color: var(--clv-color-text-link);
        font-family: var(--clv-font-heading);
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .review-table td:first-child {
        display: block;
        min-width: 0;
        padding-bottom: 12px;
    }

    .review-table td:first-child::before,
    .review-table td.review-row-actions::before {
        display: none;
    }

    .review-table td.review-row-actions {
        display: block;
        width: 100%;
        min-width: 0;
        padding-top: 12px;
    }
}
