.table-select-row-wrapper {
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    overflow: hidden;
    margin: 20px 0;
}

table.table-select-row {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

table.table-select-row col:not(:last-child) {
    width: 1%;
}

table.table-select-row col:last-child {
    width: auto;
}

table.table-select-row td {
    padding: 12px;
    border: 1px solid #ddd;
    vertical-align: middle;
    /* Global vertical centering */
    border-left: none;
    border-right: none;
}

table.table-select-row td div {
    display: flex;
    align-items: center;
    min-height: 32px;
}

table.table-select-row tr:first-child td {
    border-top: none;
}

table.table-select-row tr:last-child td {
    border-bottom: none;
}

table.table-select-row td:first-child,
table.table-select-row th:first-child {
    border-left: none;
}

table.table-select-row td:last-child,
table.table-select-row th:last-child {
    border-right: none;
}

/* Hover effect */
table.table-select-row tbody tr:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

/* Selected row styling (persistent gray background) */
table.table-select-row .selected {
    background-color: #e9ecef;
}

/* Custom radio button style */
table.table-select-row input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1px solid #adb5bd;
    border-radius: 50%;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

table.table-select-row input[type="radio"]:checked {
    background-color: #aab869;
    border: 1px solid #aab869;
    box-shadow: 0 0 0 0.2rem rgba(170, 184, 105, 0.25);
}

table.table-select-row input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.4rem;
    height: 0.4rem;
    background-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
