/* =============================================
   ONLY DataTable Related CSS 
   File: chit-schemes-datatable.css
   ============================================= */

/* ==========================================
   1. CHIT GROUP
   ========================================== */

.chits_sch_list_cssname-table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

table.dataTable thead>tr>th.sorting_desc:after {
    color: #C80679 !important;
}

table.dataTable thead>tr>th.sorting_asc:before {
    color: #C80679 !important;
}

.chits_sch_list_cssname-table thead th {
    background-color: #f9fafb;
    color: #1A1A1A;
    font-weight: 500 !important;
    font-size: 16px !important;
    padding: 16px 20px !important;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.chits_sch_list_cssname-table tbody td {
    padding: 18px 20px !important;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.chits_sch_list_cssname-table th:first-child,
.chits_sch_list_cssname-table td:first-child {
    width: 50px;
    text-align: center;
}

.chits_sch_list_cssname-table td:nth-child(2) small {
    color: #6b7280;
    font-size: 12px;
}

.chits_sch_list_cssname-table .status {
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    min-width: 85px;
}

.chits_sch_list_cssname-table .status.completed { background-color: #d1fae5; color: #10b981; }
.chits_sch_list_cssname-table .status.pending { background-color: #fef3c7; color: #d97706; }
.chits_sch_list_cssname-table .status.upcoming { background-color: #dbeafe; color: #3b82f6; }

.chits_sch_list_cssname-table .view-btn {
    background-color: #ffffff;
    color: #4b5563;
    border: 1px solid #d1d5db;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.chits_sch_list_cssname-table .view-btn:hover { background-color: #f9fafb; border-color: #9ca3af; }
.chits_sch_list_cssname-table tbody tr:hover { background-color: #f8fafc; }
.chits_sch_list_cssname-table tbody tr:nth-child(even) { background-color: #ffffff; }

.chits_sch_list_cssname-table-card { width: 100% !important; }

/* ==========================================
   2. SUBSCRIBERS
   ========================================== */

.age-list-table th,
.age-list-table td {
    text-align: left !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.age-list-table th:first-child,
.age-list-table td:first-child { width: 60px !important; }

.age-list-table th:last-child,
.age-list-table td:last-child { padding-right: 20px !important; }

.age-list-table .text-wrap { word-break: break-word !important; white-space: normal !important; }
.age-list-table .enrollment-text { font-size: 13px !important; line-height: 1.8 !important; }
.age-list-table .fw-500 { font-weight: 500 !important; }

.age-list-table .subscriber-link {
    color: #1A1A1A !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}

.age-list-table .rating-badge {
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-left: 4px !important;
}

.age-list-table .rating-green { color: #16A34A !important; }
.age-list-table .rating-orange { color: #F59E0B !important; }
.age-list-table .rating-red { color: #DC2626 !important; }

.age-list-footer {
    padding: 16px 24px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
}

/* Pagination (Commonly used by Subscribers) */
.pagination {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    font-family: sans-serif;
}

.pagination button { border: none; background: #fff; padding: 8px 12px; cursor: pointer; font-size: 14px; }
.pagination button:hover { background: #f5f5f5; }
.pagination .page { padding: 8px 14px; cursor: pointer; font-size: 14px; }
.pagination .page:hover { background: #f5f5f5; }
.pagination .page.active { background: #d10072; color: #fff; }
.pagination .divider { width: 1px; height: 24px; background: #ddd; }
.pagination>* { display: flex; align-items: center; justify-content: center; }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==========================================
   3. AUCTION
   ========================================== */

.auc-list-status-badge {
    padding: 6px 12px;
    border-radius: 20px !important;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    text-align: center;
}

.auc-list-status-badge.auc-list-completed { background-color: #d1fae5; color: #10b981; }
.auc-list-status-badge.auc-list-inprogress { background-color: #fef3c7; color: #d97706; }
.auc-list-status-badge.auc-list-pending { background-color: #fee2e2; color: #dc2626; }
.auc-list-status-badge.auc-list-eligibility { background-color: #16A34A; color: #FFFFFF; border-radius: 4px !important; }
.auc-list-status-badge.auc-list-already-won { background-color: #F59E0B; color: #FFFFFF; border-radius: 4px !important; }

.auc-list-btn {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.auc-list-btn-view { background-color: #ffffff; color: #C80679; border: 2px solid #C80679; }
.auc-list-btn-view:hover { background-color: #C80679; color: #ffffff; }
.auc-list-btn-resume { background-color: #FAE6F2; color: #C80679; }
.auc-list-btn-resume:hover { background-color: #C80679; color: #ffffff; }
.auc-list-btn-start { background-color: #C80679; color: #ffffff; border: 2px solid #C80679; }
.auc-list-btn-start:hover { background-color: #FAE6F2; border-color: #C80679; color: #C80679; }

/* ==========================================
   4. AGENT
   ========================================== */

.agents-list-table th,
.agents-list-table td {
    text-align: left !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.agents-list-table-container { width: 100% !important; }

/* ==========================================
   5. RISK
   ========================================== */
/* No Risk specific DataTable styles yet */

/* ==========================================
   6. COMMON / UTILITIES
   ========================================== */

.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    display: none !important;
}

.dataTables_scrollBody::-webkit-scrollbar,
.chits_sch_list_cssname-table-card::-webkit-scrollbar,
.agents-list-table-container::-webkit-scrollbar {
    height: 8px;
}

.dataTables_scrollBody::-webkit-scrollbar-track,
.chits_sch_list_cssname-table-card::-webkit-scrollbar-track,
.agents-list-table-container::-webkit-scrollbar-track {
    background: #EEEEEE;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb:hover,
.chits_sch_list_cssname-table-card::-webkit-scrollbar-thumb:hover,
.agents-list-table-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Responsive Utilities */
@media (max-width: 1024px) {
    .age-list-table td, .age-list-table th { padding: 12px 10px !important; font-size: 13px !important; }
}

@media (max-width: 768px) {
    .age-list-filters, .chits_sch_list_cssname-filters, .agents-list-filters-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .age-list-search, .chits_sch_list_cssname-filters input, .agents-list-filters-bar input, .agents-list-custom-select {
        width: 100% !important;
        margin-left: 0 !important;
    }
    .age-list-footer, .chits_sch_list_cssname-footer, .agents-list-footer {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px !important;
        padding: 12px !important;
    }
    .chits_sch_list_cssname-stats, .agents-list-stats { grid-template-columns: 1fr !important; }
    .chits_sch_list_cssname-header, .agents-list-header { flex-direction: column !important; align-items: flex-start !important; }
}