/* =====================================================
   SPO RESULT PAGE - VIS Rating
   Reuses: rr- tab classes from rating-results.css
           rs- table classes from research.css
   ===================================================== */

/* ===== SPO Results Table ===== */
.spo-result-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.spo-table-head {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spo-table-head th {
    padding: 14px 12px;
    text-align: left;
    vertical-align: middle;
    font-weight: 600;
}

.spo-table-head th:first-child {
    padding-left: 24px;
    width: 110px;
}

.spo-table-head th:nth-child(3),
.spo-table-head th:nth-child(4) {
    width: 160px;
}

.spo-table-head th:last-child {
    width: 90px;
    padding-right: 24px;
    text-align: center;
}

.spo-table-head th .rs-col-filter,
.spo-table-head th .rs-col-search {
    margin-left: 6px;
    vertical-align: middle;
}

.spo-table-row {
    border-bottom: 1px solid var(--border-color);
    color: inherit;
    transition: var(--transition);
}

.spo-table-row:last-of-type {
    border-bottom: none;
}

.spo-table-row:hover {
    background: rgba(var(--secondary-rgb), 0.03);
}

.spo-cell {
    font-size: 0.88rem;
    padding: 16px 12px;
    vertical-align: middle;
}

.spo-cell-date {
    color: var(--text-muted);
    font-size: 0.84rem;
    padding-left: 24px;
}

.spo-cell-org {
    font-weight: 500;
    color: var(--text-dark);
    padding-right: 16px;
    line-height: 1.45;
}

.spo-table-row:hover .spo-cell-org {
    color: var(--secondary-color);
}

.spo-cell-sector {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.spo-cell-type {
    font-size: 0.84rem;
    color: var(--text-body);
}

.spo-cell-standard {
    font-size: 0.84rem;
    color: var(--text-body);
    line-height: 1.5;
}

.spo-cell-report {
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
    padding-right: 24px;
}

.spo-cell-report .rr-lang-link {
    font-size: 0.82rem;
}

.spo-table-row:hover .spo-cell-report .rr-lang-link {
    color: var(--primary-color);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .spo-table-head th:first-child {
        width: 100px;
    }

    .spo-table-head th:nth-child(3),
    .spo-table-head th:nth-child(4) {
        width: 140px;
    }

    .spo-table-head th:last-child {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .rs-table-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .rs-table-wrapper .rr-table-toolbar {
        min-width: 980px;
        padding: 12px 16px;
    }

    .spo-result-table {
        min-width: 980px;
    }

    .spo-table-head th {
        padding: 12px 10px;
    }

    .spo-table-head th:first-child,
    .spo-cell-date {
        padding-left: 16px;
        width: 100px;
    }

    .spo-table-head th:nth-child(2) {
        width: 250px;
    }

    .spo-table-head th:nth-child(3) {
        width: 130px;
    }

    .spo-table-head th:nth-child(4) {
        width: 150px;
    }

    .spo-table-head th:nth-child(5) {
        width: 260px;
    }

    .spo-table-head th:last-child,
    .spo-cell-report {
        width: 78px;
        padding-right: 16px;
    }

    .spo-cell {
        padding: 12px 10px;
    }

    .spo-cell,
    .spo-cell-date,
    .spo-cell-sector,
    .spo-cell-type,
    .spo-cell-standard {
        font-size: 0.82rem;
    }
}
