/* Drivers Payouts Styles */

.payouts-wrapper {
    padding: 0;
    background: transparent;
}

.payouts-main-card {
    background: #fff;
    border-radius: 24px;
    padding: 0;
}

/* Header Section */
.payouts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payouts-title {
    font-size: 28px;
    font-weight: 800;
    color: #000;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-picker-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid #eee;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
}

.date-picker-btn:hover {
    border-color: var(--riden-red);
}

.date-picker-btn i {
    color: var(--riden-red);
}

.btn-instant-payout {
    background: var(--riden-red);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-instant-payout:hover {
    background: #e01319;
}

/* Tabs Section */
.payouts-tabs-wrapper {
    border-bottom: 1.5px solid #f5f5f5;
    margin-bottom: 25px;
}

.payouts-tabs {
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.payouts-tab-item {
    padding: 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.payouts-tab-item.active {
    color: #fff;
    background: var(--riden-red);
    padding: 12px 30px;
    border-radius: 12px 12px 0 0;
    top: 5px;
    /* Adjust for border overlap */
}

/* The Figma shows a full background for the active tab */
.payouts-tabs-container {
    background: #fff;
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    flex: 1;
    text-align: center;
}

.tab-btn.active {
    background: var(--riden-red);
    color: #fff;
}

.tab-btn.inactive {
    background: transparent;
    color: #333;
}

/* Table Section */
.payouts-table-container {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--riden-shadow);
}

.payouts-table {
    width: 100%;
    border-collapse: collapse;
}

.payouts-table thead th {
    background: #FFEEEE;
    color: #333;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.payouts-table tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid #f8f8f8;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 600;
}

.payouts-table tbody tr:last-child td {
    border-bottom: none;
}

.driver-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.driver-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.unique-id {
    color: #555;
    font-weight: 700;
}

.amount {
    font-weight: 700;
    color: #000;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.payouts-pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    align-items: center;
}

.page-link-custom {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-decoration: none;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.page-link-custom.active {
    background: var(--riden-red);
    color: #fff;
    border-color: var(--riden-red);
}

.page-link-custom.arrow {
    background: #f8f8f8;
    color: var(--riden-red);
}

.page-link-custom:hover:not(.active) {
    background: #fdfdfd;
    border-color: #ddd;
}

/* New Section Styles */
.paid-badge {
    padding: 4px 12px;
    background: #D10000;
    color: #fff;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 10px;
    text-transform: uppercase;
}

.receipt-icon {
    font-size: 20px;
    color: #000;
    cursor: pointer;
    transition: transform 0.2s;
}

.receipt-icon:hover {
    transform: scale(1.1);
}

.btn-approve {
    background: #C7F9CC;
    color: #2D6A4F;
    border: none;
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-approve:hover {
    background: #B7E4C7;
    color: #1B4332;
}