﻿/* Highlight selected payment type */
.payment-type-item.active {
    background: #e3f2fd !important; /* Light blue */
    color: #0d6efd !important;
    font-weight: 600;
    border-left: 4px solid #0d6efd;
}

/* Hover effect */
.payment-type-item:hover {
    background: #f1f9ff;
    cursor: pointer;
}

/* Balance box */
#balanceBox {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
}

/* Green & red text */
.text-green {
    color: #28a745 !important;
}

.text-red {
    color: #dc3545 !important;
}

/* Datatable styling */
#paymentEntriesTable td,
#paymentEntriesTable th {
    vertical-align: middle;
}

#paymentEntriesTable_wrapper .dataTables_filter input {
    border-radius: 6px;
}

#paymentEntriesTable_wrapper .dataTables_paginate .paginate_button {
    padding: 4px 10px;
    border-radius: 6px;
}
/* -----------------------------
   PAYMENT DETAILS DATATABLE UI
   ----------------------------- */

/* Table Container */
#paymentEntriesTable {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

    /* Header Row */
    #paymentEntriesTable thead tr {
        background: #f1f4f9 !important;
        color: #333;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Header Cells */
    #paymentEntriesTable thead th {
        padding: 12px;
        border-bottom: none !important;
        font-size: 13px;
    }

    /* Body rows */
    #paymentEntriesTable tbody tr {
        transition: all 0.2s ease;
    }

        #paymentEntriesTable tbody tr:hover {
            background: #f8fbff !important;
            cursor: pointer;
        }

    /* Cells */
    #paymentEntriesTable tbody td {
        padding: 12px 14px !important;
        font-size: 14px;
    }

/* Empty Table */
.dataTables_empty {
    text-align: center !important;
    padding: 40px 0 !important;
    font-size: 14px;
    color: #6c757d;
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 4px 12px;
    border-radius: 6px;
    margin: 0 3px;
    border: none;
    background: transparent;
    transition: 0.2s;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background: #e7f1ff !important;
        color: #0d6efd !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background: #0d6efd !important;
        color: white !important;
        border: none !important;
    }

/* Entries Dropdown */
.dataTables_length select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ced4da;
}

/* Search Input */
.dataTables_filter input {
    border-radius: 6px;
    padding: 5px 10px;
    border: 1px solid #ced4da;
}

/* Amount Colors */
.text-green {
    color: #28a745 !important;
    font-weight: 600;
}

.text-red {
    color: #dc3545 !important;
    font-weight: 600;
}

/* Balance Box */
#balanceBox {
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
    font-size: 18px;
    font-weight: bold;
}
