#admin-recap-affilies-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

#admin-recap-affilies-container h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

#admin-recap-affilies-container h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #555;
}

.affilies-totals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.total-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.total-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

.total-card .total-amount {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.total-card .total-amount.verse {
    color: #24C789;
}

.total-card .total-amount.reste {
    color: #F6A228;
}
.dt-search {
    margin-bottom: 10px;
    margin-top: 10px;
}

.dt-paging-button {
    padding: 5px 10px;
    border: 1px solid #EBEBEB;
    border-radius: 6px;
    font-size: 14px;
    color: #000000;
    background: #fff;
}

.dt-input {
    padding: 5px 10px;
    border: 1px solid #EBEBEB;
    border-radius: 6px;
    font-size: 14px;
    color: #000000;
    background: #fff;
    transition: border-color 0.2s ease;
    margin: 0 8px;
}

.affilies-charts {
    display: grid;
    grid-template-columns: 66.666% 33.334%;
    gap: 30px;
    margin-bottom: 40px;
}

.chart-main {
    width: 100%;
}

.chart-side {
    width: 100%;
}

.chart-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

.chart-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.chart-container canvas {
    max-height: 400px;
}

.affilies-table-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.affilies-table-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* DataTables Container */
.affilies-table-container .dt-container {
    margin-top: 20px;
}

#affilies-table {
    width: 100% !important;
    border-collapse: separate;
    border-radius: 6px;
    overflow: hidden;
}

#affilies-table thead th {
    background-color: #000000;
    color: #ffffff;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    cursor: pointer;
    position: relative;
    user-select: none;
}

#affilies-table thead th:hover {
    background-color: #333333;
}

#affilies-table thead th.dt-column-order::before,
#affilies-table thead th.dt-column-order::after {
    color: #ffffff;
}

#affilies-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

#affilies-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

#affilies-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

#affilies-table tbody tr:hover {
    background-color: #f0f2f5;
}

/* DataTables Controls Styling */
.affilies-table-container .dataTables_wrapper .dataTables_length,
.affilies-table-container .dataTables_wrapper .dataTables_filter,
.affilies-table-container .dataTables_wrapper .dataTables_info,
.affilies-table-container .dataTables_wrapper .dataTables_paginate {
    margin: 15px 0;
}

.affilies-table-container .dataTables_wrapper .dataTables_length select,
.affilies-table-container .dataTables_wrapper .dataTables_filter input {
    padding: 8px 12px;
    border: 1px solid #EBEBEB;
    border-radius: 6px;
    font-size: 14px;
    color: #000000;
    background: #fff;
    transition: border-color 0.2s ease;
    margin: 0 8px;
}

.affilies-table-container .dataTables_wrapper .dataTables_length select:focus,
.affilies-table-container .dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: #7B7DFE;
    box-shadow: 0 0 0 3px rgba(123, 125, 254, 0.1);
}

.affilies-table-container .dataTables_wrapper .dataTables_length label,
.affilies-table-container .dataTables_wrapper .dataTables_filter label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.affilies-table-container .dataTables_wrapper .dataTables_paginate {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.affilies-table-container .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 12px;
    border: 1px solid #EBEBEB;
    border-radius: 6px;
    background: #fff;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.affilies-table-container .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #000;
}

.affilies-table-container .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #7B7DFE;
    border-color: #7B7DFE;
    color: #fff;
}

.affilies-table-container .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.affilies-table-container .dataTables_wrapper .dataTables_info {
    font-size: 14px;
    color: #666;
    padding: 8px 0;
}

.error-message,
.info-message {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.error-message {
    background-color: #FC554F;
    color: white;
}

.info-message {
    background-color: #e3f2fd;
    color: #1976d2;
}

@media (max-width: 768px) {
    .affilies-totals {
        grid-template-columns: 1fr;
    }
    
    .affilies-charts {
        grid-template-columns: 1fr;
    }
    
    .chart-main,
    .chart-side {
        grid-column: 1;
    }
}

