.reward-grid {
    padding-top: 20px;
}

.reward-table {
    padding-top: 20px;
    max-height: calc(100vh - 240px);
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-color: #4169E1 #e0e0e0;
    scrollbar-width: thin;
}

.reward-table-inner {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 12px;
}

.reward-table-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    width: 100%;
}

.reward-record-count,
.table-record-count {
    background-color: #f1f5ff;
    color: #0d6efd;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.reward-table-content {
    min-width: 800px;
}

.reward-table-inner::-webkit-scrollbar {
    height: 8px;
}

.reward-table-inner::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.reward-table-inner::-webkit-scrollbar-thumb {
    background: #4169E1;
    border-radius: 4px;
}

.reward-table-inner::-webkit-scrollbar-thumb:hover {
    background: #3151B8;
}

#rewardsTable {
    margin-bottom: 0;
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    table-layout: fixed;
}

#rewardsTable thead {
    display: table;
    width: 100%;
    min-width: 800px;
    table-layout: fixed;
}

#rewardsTable thead tr {
    display: table-row;
}

#rewardsTable thead th {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6;
    display: table-cell;
}

#rewardsTable thead th:nth-child(1) { width: 15%; }
#rewardsTable thead th:nth-child(2) { width: 15%; }
#rewardsTable thead th:nth-child(3) { width: 30%; }
#rewardsTable thead th:nth-child(4) { width: 25%; }
#rewardsTable thead th:nth-child(5) { width: 15%; }

#rewardsTable tbody {
    display: block;
    overflow-y: auto;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 300px);
    width: 100%;
    scrollbar-color: #4169E1 #e0e0e0;
    scrollbar-width: thin;
}

#rewardsTable tbody::-webkit-scrollbar {
    width: 8px;
}

#rewardsTable tbody::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

#rewardsTable tbody::-webkit-scrollbar-thumb {
    background: #4169E1;
    border-radius: 4px;
}

#rewardsTable tbody::-webkit-scrollbar-thumb:hover {
    background: #3151B8;
}

#rewardsTable tbody tr {
    display: table;
    width: 100%;
    min-width: 800px;
    table-layout: fixed;
}

#rewardsTable tbody td {
    display: table-cell;
}

#rewardsTable tbody td:nth-child(1) { width: 15%; }
#rewardsTable tbody td:nth-child(2) { width: 15%; }
#rewardsTable tbody td:nth-child(3) { width: 30%; }
#rewardsTable tbody td:nth-child(4) { width: 25%; }
#rewardsTable tbody td:nth-child(5) { width: 15%; }

.reward-search-container {
    padding: 15px 0;
}

.reward-search-input {
    max-width: 400px;
}

