/* Reader-facing diff table, isolated from legacy theme table rules. */
.cmu-diff-scroll {
    background: #fff;
    border: 1px solid #d5e0e4;
    border-radius: 12px;
    overflow: hidden;
}

.cmu-diff-table {
    border-collapse: collapse;
    display: table;
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}

.cmu-diff-table colgroup {
    display: table-column-group;
}

.cmu-diff-table thead {
    display: table-header-group;
}

.cmu-diff-table tbody {
    display: table-row-group;
}

.cmu-diff-table tr {
    display: table-row;
}

.cmu-diff-table th,
.cmu-diff-table td {
    display: table-cell;
}

.cmu-diff-table__parameter {
    width: 24%;
}

.cmu-diff-table__date {
    width: 18%;
}

.cmu-diff-table th,
.cmu-diff-table td {
    border-bottom: 1px solid #dde5e8;
    overflow-wrap: anywhere;
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
}

.cmu-diff-table thead th {
    background: #edf3f5;
    color: #294b59;
    font-size: 14px;
    font-weight: 700;
}

.cmu-diff-table tbody th {
    color: #173e4e;
    font-weight: 700;
}

.cmu-diff-table th:last-child,
.cmu-diff-table td:last-child {
    white-space: nowrap;
}

.cmu-diff-table tbody tr:last-child th,
.cmu-diff-table tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 640px) {
    .cmu-diff-scroll {
        background: transparent;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

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

    .cmu-diff-table colgroup,
    .cmu-diff-table thead {
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }

    .cmu-diff-table tbody tr {
        background: #fff;
        border: 1px solid #d5e0e4;
        border-radius: 12px;
        margin-bottom: 14px;
        overflow: hidden;
    }

    .cmu-diff-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .cmu-diff-table tbody th,
    .cmu-diff-table tbody td {
        align-items: start;
        border-bottom: 1px solid #e3eaed;
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(108px, 36%) minmax(0, 1fr);
        padding: 12px 14px;
    }

    .cmu-diff-table tbody th::before,
    .cmu-diff-table tbody td::before {
        color: #64757d;
        content: attr(data-label);
        font-size: 13px;
        font-weight: 700;
    }

    .cmu-diff-table tbody tr:last-child th,
    .cmu-diff-table tbody tr:last-child td {
        border-bottom: 1px solid #e3eaed;
    }

    .cmu-diff-table tbody tr th:last-child,
    .cmu-diff-table tbody tr td:last-child {
        border-bottom: 0;
    }
}
