﻿/* ============================= */
/* System Resources – Table Base */
/* ============================= */

.sr-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.sr-card {
    width: 75%;
    border-radius: 10px;
}

table.sr-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

table.sr-table thead th {
    font-size: 16px;
    font-weight: bold;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    color: black !important;
}

table.sr-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
}

/* Dropdown */
.status-select {
    max-width: 260px;
}

/* ============================= */
/* Update Button */
/* ============================= */

.update-btn {
    background-color: #0d6efd !important;
    border: 1px solid #0d6efd !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 6px;
}

.update-btn:hover,
.update-btn:focus,
.update-btn:active {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

/* ========================================= */
/* Evaluator Grid – FORCE Hover & Zebra Rows */
/* ========================================= */

/* Zebra striping */
.sr-evaluator-grid tbody tr:nth-child(even) > td {
    background-color: #f9fafb !important;
}

.sr-evaluator-grid tbody tr:nth-child(odd) > td {
    background-color: #ffffff !important;
}

/* Hover */
.sr-evaluator-grid tbody tr:hover > td {
    background-color: #eef4ff !important;
    transition: background-color 0.15s ease-in-out;
}

/* ========================================= */
/* Evaluator Grid – Bootstrap Variable Override */
/* ========================================= */

/* Default rows */
.sr-evaluator-grid {
    --bs-table-bg: #ffffff;
}

/* Zebra striping */
.sr-evaluator-grid tbody tr:nth-child(even) {
    --bs-table-bg: #f9fafb;
}

/* Hover */
.sr-evaluator-grid tbody tr:hover {
    --bs-table-bg: #eef4ff;
}

/* ========================================= */
/* Zebra striping – START FROM ROW 0 (even) */
/* ========================================= */

.sr-table tbody tr:nth-child(odd) > td {
    background-color: #f5f6f7 !important; /* light gray */
}

.sr-table tbody tr:nth-child(even) > td {
    background-color: #ffffff !important;
}

/* Hover (slightly darker than stripe) */
.sr-table tbody tr:hover > td {
    background-color: #e9edf2 !important;
    transition: background-color 0.15s ease-in-out;
}

.sr-table tbody tr:nth-child(odd) .evaluator-name {
    color: #0f172a;
}

/* Reduce row height */
.sr-table tbody td {
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Reduce dropdown height */
.sr-table .status-select {
    height: 36px;
    padding: 4px 10px;
    font-size: 14px;
}

/* Reduce Update button height */
.sr-table .update-btn {
    padding: 6px 14px;
    line-height: 1.2;
}
