/* ==========================================
   ADMIN PAYMENTS
========================================== */

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


/* HEADER */

.admin-payments-header {
    margin-bottom: 24px;
}

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

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

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


/* SUMMARY */

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

.payment-summary-card {
    min-height: 120px;
    padding: 19px;
    border-radius: 17px;
    background: #fff;

    display: flex;
    align-items: center;
    gap: 14px;

    box-shadow:
        0 5px 20px
        rgba(15,23,42,.06);
}

.payment-summary-icon {
    width: 48px;
    min-width: 48px;
    height: 48px;

    border-radius: 13px;

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

    font-size: 18px;
}

.payment-summary-icon.received {
    background: #ecfdf5;
    color: #16a34a;
}

.payment-summary-icon.deducted {
    background: #fff7ed;
    color: #ea580c;
}

.payment-summary-icon.success {
    background: #eff6ff;
    color: #2563eb;
}

.payment-summary-icon.other {
    background: #fef2f2;
    color: #dc2626;
}

.payment-summary-card span {
    display: block;
    margin-bottom: 5px;

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

    color: #6b7280;

    text-transform: uppercase;
}

.payment-summary-card h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.payment-summary-card small {
    font-size: 10px;
    color: #9ca3af;
}


/* FILTER */

.payment-filter-card {
    padding: 17px;
    margin-bottom: 22px;

    border-radius: 15px;

    background: #fff;

    box-shadow:
        0 5px 20px
        rgba(15,23,42,.05);
}

.payment-filter-form {
    display: grid;

    grid-template-columns:
        minmax(250px, 1fr)
        180px
        160px
        auto
        auto;

    gap: 10px;
}

.payment-search-box {
    height: 45px;

    padding: 0 13px;

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

    display: flex;
    align-items: center;
    gap: 9px;
}

.payment-search-box i {
    color: #9ca3af;
}

.payment-search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 12px;
}

.payment-filter-form select {
    height: 45px;

    padding: 0 11px;

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

    background: #fff;

    outline: none;

    font-size: 11px;
}

.payment-filter-form button,
.payment-reset-btn {
    min-height: 45px;

    padding: 0 15px;

    border-radius: 9px;

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

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

    text-decoration: none;
}

.payment-filter-form button {
    border: none;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

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


/* RECORD CARD */

.payment-record-card {
    border-radius: 17px;

    background: #fff;

    overflow: hidden;

    box-shadow:
        0 5px 20px
        rgba(15,23,42,.05);
}

.payment-record-header {
    padding: 21px 22px;

    border-bottom:
        1px solid #edf0f3;
}

.payment-record-header h2 {
    margin: 0 0 4px;
    font-size: 17px;
}

.payment-record-header p {
    margin: 0;
    font-size: 10px;
    color: #6b7280;
}


/* TABLE */

.payment-table-wrap {
    overflow-x: auto;
}

.payment-table {
    width: 100%;
    min-width: 1300px;
    border-collapse: collapse;
}

.payment-table th {
    padding: 14px;

    text-align: left;

    background: #f8fafc;

    color: #64748b;

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

    text-transform: uppercase;

    border-bottom:
        1px solid #e5e7eb;
}

.payment-table td {
    padding: 15px 14px;

    border-bottom:
        1px solid #eef1f4;

    font-size: 11px;

    color: #374151;
}

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

.payment-date {
    display: block;
    white-space: nowrap;
}

.payment-table td small {
    display: block;
    margin-top: 3px;

    color: #8b95a5;

    font-size: 9px;
}

.payment-member strong {
    display: block;
}

.payment-type {
    white-space: nowrap;
}

.payment-reference {
    padding: 5px 7px;

    border-radius: 6px;

    background: #f3f4f6;

    font-family: monospace;

    font-size: 9px;

    white-space: nowrap;
}

.payment-credit {
    color: #15803d;
}

.payment-debit {
    color: #dc2626;
}


/* STATUS */

.payment-status {
    padding: 6px 9px;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 700;
}

.payment-status.successful {
    background: #ecfdf5;
    color: #15803d;
}

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

.payment-status.failed {
    background: #fef2f2;
    color: #dc2626;
}


/* EMPTY */

.payment-empty {
    padding: 65px 20px;

    text-align: center;
}

.payment-empty > i {
    margin-bottom: 12px;

    color: #9ca3af;

    font-size: 28px;
}

.payment-empty h3 {
    margin: 0 0 6px;
}

.payment-empty p {
    margin: 0;

    color: #6b7280;

    font-size: 11px;
}


/* ==========================================
   PAYMENT PAGINATION
========================================== */

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

    border-top: 1px solid #edf0f3;

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

    gap: 15px;
}


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

    gap: 6px;

    flex-wrap: wrap;
}


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

    border-radius: 8px;

    background: #f3f4f6;
    color: #374151;

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

    text-decoration: none;

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


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


.payment-page-number:hover {
    background: #dbeafe;
    color: #1d4ed8;
}


.payment-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;
}


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

    cursor: not-allowed;
}