/* ==========================================
   ADMIN REPORTS
========================================== */

.admin-reports-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}


/* HEADER */

.admin-reports-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.admin-reports-header h1 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #1f2937;
}

.admin-reports-header h1 i {
    margin-right: 8px;
    color: #2563eb;
}

.admin-reports-header p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.reports-date {
    min-height: 43px;
    padding: 0 15px;
    border-radius: 10px;
    background: #ffffff;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}


/* SUMMARY GRID */

.reports-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}


/* SUMMARY CARD */

.report-summary-card {
    min-height: 145px;
    padding: 21px;
    border-radius: 17px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow:
        0 5px 20px
        rgba(15, 23, 42, .06);
}


/* ICON */

.report-summary-icon {
    width: 52px;
    min-width: 52px;
    height: 52px;
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
}

.report-summary-icon.contributions {
    background: #ecfdf5;
    color: #16a34a;
}

.report-summary-icon.outstanding {
    background: #fff7ed;
    color: #ea580c;
}

.report-summary-icon.defaults {
    background: #fef2f2;
    color: #dc2626;
}

.report-summary-icon.settled {
    background: #f0fdf4;
    color: #15803d;
}

.report-summary-icon.schemes {
    background: #eff6ff;
    color: #2563eb;
}

.report-summary-icon.clearance {
    background: #f5f3ff;
    color: #7c3aed;
}


/* CONTENT */

.report-summary-content {
    min-width: 0;
}

.report-summary-content > span {
    display: block;
    margin-bottom: 7px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.report-summary-content h2 {
    margin: 0 0 5px;
    color: #111827;
    font-size: 22px;
    line-height: 1.2;
}

.report-summary-content small {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.5;
}


/* COMING SECTION */

.reports-coming-section {
    padding: 24px;
    border-radius: 17px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow:
        0 5px 20px
        rgba(15, 23, 42, .05);
}

.reports-coming-icon {
    width: 50px;
    min-width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;
}

.reports-coming-section h3 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #1f2937;
}

.reports-coming-section p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
}


/* ==========================================
   REPORT FILTERS
========================================== */

.reports-filter-card {
    padding: 24px;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .05);
}

.reports-filter-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.reports-filter-heading-icon {
    width: 45px;
    min-width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;

    display: flex;
    align-items: center;
    justify-content: center;
}

.reports-filter-heading h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #1f2937;
}

.reports-filter-heading p {
    margin: 0;
    font-size: 11px;
    color: #6b7280;
}

.reports-filter-form {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.reports-filter-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
}

.reports-filter-group input,
.reports-filter-group select {
    width: 100%;
    height: 44px;
    padding: 0 12px;

    border: 1px solid #dce1e7;
    border-radius: 9px;

    background: #ffffff;
    color: #374151;

    font-size: 12px;
    outline: none;
}

.reports-filter-group input:focus,
.reports-filter-group select:focus {
    border-color: #2563eb;
}

.reports-filter-actions {
    grid-column: 1 / -1;

    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 5px;
}

.reports-apply-btn,
.reports-reset-btn {
    min-height: 43px;
    padding: 0 17px;

    border-radius: 9px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.reports-apply-btn {
    border: none;
    background: #2563eb;
    color: #ffffff;
    cursor: pointer;
}

.reports-reset-btn {
    background: #f3f4f6;
    color: #4b5563;
}


/* ==========================================
   REPORT TABLE
========================================== */

.reports-table-card {
    margin-top: 22px;
    background: #ffffff;
    border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .05);
}

.reports-table-header {
    padding: 21px 22px;
    border-bottom: 1px solid #edf0f3;
}

.reports-table-header h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #1f2937;
}

.reports-table-header p {
    margin: 0;
    font-size: 11px;
    color: #6b7280;
}


/* TABLE */

.reports-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.reports-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
}

.reports-table th {
    padding: 14px 16px;
    text-align: left;

    background: #f8fafc;

    border-bottom: 1px solid #e5e7eb;

    font-size: 10px;
    font-weight: 700;

    color: #64748b;

    text-transform: uppercase;

    letter-spacing: .4px;

    white-space: nowrap;
}

.reports-table td {
    padding: 16px;
    border-bottom: 1px solid #eef1f4;

    font-size: 12px;

    color: #374151;

    vertical-align: middle;
}

.reports-table tbody tr:hover {
    background: #fafbfc;
}

.report-date-value {
    white-space: nowrap;
}


/* TYPE */

.report-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 6px 9px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}

.report-type.contribution {
    background: #ecfdf5;
    color: #15803d;
}

.report-type.default {
    background: #fef2f2;
    color: #dc2626;
}

.report-type.clearance {
    background: #f5f3ff;
    color: #7c3aed;
}


/* DESCRIPTION */

.report-description {
    display: block;
    color: #374151;
}

.report-clearance-code {
    display: inline-block;

    margin-top: 5px;

    padding: 4px 7px;

    border-radius: 6px;

    background: #eff6ff;

    color: #2563eb;

    font-family: monospace;

    font-size: 10px;
}


/* STATUS */

.report-status {
    display: inline-block;

    padding: 6px 9px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}

.report-status.paid,
.report-status.completed {
    background: #ecfdf5;
    color: #15803d;
}

.report-status.pending {
    background: #fff7ed;
    color: #c2410c;
}

.report-status.overdue {
    background: #fef2f2;
    color: #dc2626;
}

.report-status.unpaid {
    background: #fef2f2;
    color: #dc2626;
}


/* EMPTY */

.reports-empty-state {
    padding: 60px 20px;
    text-align: center;
}

.reports-empty-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #f3f4f6;
    color: #6b7280;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 23px;
}

.reports-empty-state h3 {
    margin: 0 0 6px;
    color: #1f2937;
}

.reports-empty-state p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}


.reports-download-btn {
    min-height: 43px;
    padding: 0 17px;

    border-radius: 9px;

    background: #15803d;
    color: #ffffff;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.reports-download-btn:hover {
    background: #166534;
}


/* ==========================================
   REPORT PAGINATION
========================================== */

.reports-pagination {
    padding: 18px 20px;

    border-top: 1px solid #edf0f3;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.reports-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    flex-wrap: wrap;
}


.reports-page-number {
    width: 35px;
    height: 35px;

    border-radius: 8px;

    background: #f3f4f6;

    color: #4b5563;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;

    transition: .2s ease;
}


.reports-page-number:hover {
    background: #e5e7eb;
}


.reports-page-number.active {
    background: #2563eb;
    color: #ffffff;
}


.reports-page-dots {
    padding: 0 4px;

    color: #9ca3af;

    font-size: 12px;
}


.reports-page-nav {
    min-height: 37px;

    padding: 0 13px;

    border-radius: 8px;

    background: #eff6ff;

    color: #2563eb;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}


.reports-page-nav:hover {
    background: #dbeafe;
}


.reports-page-nav.disabled {
    background: #f3f4f6;
    color: #9ca3af;

    cursor: not-allowed;
}


/* ==========================================
   PAGINATION NUMBER DISPLAY FIX
========================================== */

.reports-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
}

.reports-page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;

    visibility: visible !important;
    opacity: 1 !important;
}

.reports-page-number {
    width: 36px !important;
    height: 36px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #f3f4f6 !important;
    color: #374151 !important;

    border-radius: 8px !important;

    text-decoration: none !important;

    font-size: 12px !important;
    font-weight: 700 !important;

    visibility: visible !important;
    opacity: 1 !important;
}

.reports-page-number.active {
    background: #2563eb !important;
    color: #ffffff !important;
}

.reports-page-number:hover {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}

.reports-page-dots {
    display: inline-flex !important;
    color: #6b7280 !important;
    visibility: visible !important;
    opacity: 1 !important;
}