﻿
/* MAIN DIALOG */

.payment-receipt-dialog {
    width: 100%;
    background: #f5f8fd;
    color: #172554;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    overflow: hidden;
}

/* HEADER */

.receipt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.receipt-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.receipt-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #e8f1ff;
    color: #1263d8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.receipt-header h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 750;
    color: #14244b;
}

.receipt-header span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.receipt-close {
    color: #64748b !important;
    font-size: 20px !important;
}

/* BODY */

.receipt-body {
    padding: 24px;
    max-height: 75vh;
    overflow-y: auto;
}

/* STUDENT SUMMARY */

.student-payment-summary {
    padding: 20px;
    background: linear-gradient(120deg, #ffffff, #eef5ff);
    border: 1px solid #cbdffc;
    border-radius: 14px;
    margin-bottom: 24px;
}

.student-summary-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.student-avatar {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 50%;
    background: #dceaff;
    color: #1263d8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.student-info {
    flex: 1;
    min-width: 0;
}

.summary-caption {
    display: block;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 4px;
}

.student-info h4 {
    font-size: 17px;
    font-weight: 750;
    margin: 0 0 4px;
    color: #172554;
}

.installment-info {
    color: #64748b;
    font-size: 12px;
}

.payment-status {
    margin-left: auto;
}

.paid-badge,
.pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.paid-badge {
    color: #15803d;
    background: #dcfce7;
}

.pending-badge {
    color: #a16207;
    background: #fef3c7;
}

/* SUMMARY DETAILS */

.summary-divider {
    height: 1px;
    background: #dce5f3;
    margin: 17px 0;
}

.summary-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

    .summary-details > div {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .summary-details span {
        color: #64748b;
        font-size: 12px;
        font-weight: 600;
    }

    .summary-details strong {
        color: #172554;
        font-size: 15px;
        font-weight: 700;
    }

    .summary-details .summary-amount {
        color: #075be5;
        font-size: 20px;
    }

/* PAYMENT FORM */

.payment-form-container {
    background: #ffffff;
    border: 1px solid #e0e7f0;
    border-radius: 14px;
    padding: 23px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .035);
}

.form-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 23px;
}

.section-heading-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #eaf2ff;
    color: #1263d8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.form-section-heading h4 {
    font-size: 17px;
    font-weight: 750;
    color: #172554;
    margin: 0 0 4px;
}

.form-section-heading p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

/* FORM GRID */

.payment-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
}

.payment-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .payment-field.full-width {
        grid-column: 1 / -1;
    }

    .payment-field ::deep .rz-label {
        font-size: 13px;
        font-weight: 700;
        color: #334155;
        margin-bottom: 0;
    }

    /* INPUT CONTROLS */

    .payment-field ::deep .rz-textbox,
    .payment-field ::deep .rz-numeric,
    .payment-field ::deep .rz-datepicker,
    .payment-field ::deep .rz-dropdown {
        width: 100% !important;
        min-height: 44px;
        border: 1px solid #d5dfed;
        border-radius: 9px;
        background: #ffffff;
    }

    .payment-field ::deep .rz-textarea {
        width: 100% !important;
        border: 1px solid #d5dfed;
        border-radius: 9px;
        min-height: 95px;
    }

    .payment-field ::deep .rz-inputtext,
    .payment-field ::deep .rz-dropdown-label {
        font-size: 14px;
        color: #334155;
    }

    .payment-field ::deep .rz-textbox:focus-within,
    .payment-field ::deep .rz-numeric:focus-within,
    .payment-field ::deep .rz-datepicker:focus-within,
    .payment-field ::deep .rz-dropdown:focus-within,
    .payment-field ::deep .rz-textarea:focus-within {
        border-color: #2675e8;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
    }

/* AMOUNT ICON */

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-with-icon > ::deep .rz-icon {
        position: absolute;
        left: 13px;
        z-index: 2;
        color: #64748b;
        pointer-events: none;
    }

    .input-with-icon ::deep .rz-numeric {
        padding-left: 34px;
    }

/* CHANGE */

.change-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #b45309;
    font-size: 12px;
    font-weight: 650;
}

/* FOOTER */

.payment-footer {
    margin-top: 25px;
    padding-top: 19px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.payment-footer-note {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 11px;
}

.payment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .payment-actions ::deep .rz-button {
        min-height: 43px;
        border-radius: 9px;
        padding: 0 19px;
        font-size: 13px;
        font-weight: 700;
    }

.cancel-payment-btn {
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    background: #ffffff !important;
}

.submit-payment-btn {
    background: #159447 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(21, 148, 71, .15);
}

    .submit-payment-btn:hover {
        background: #117a39 !important;
    }

/* PAID CONFIRMATION */

.paid-confirmation {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    text-align: center;
}

.paid-confirmation-icon {
    width: 65px;
    height: 65px;
    background: #dcfce7;
    color: #15803d;
    font-size: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.paid-confirmation h3 {
    font-size: 19px;
    color: #166534;
    margin: 0 0 8px;
}

.paid-confirmation > p {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 20px;
}

.paid-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-top: 1px solid #e2e8f0;
    text-align: left;
}

    .paid-detail-row span {
        color: #64748b;
        font-size: 13px;
    }

    .paid-detail-row strong {
        color: #172554;
        font-size: 13px;
        text-align: right;
    }

/* RECEIPT PREVIEW */

.receipt-preview {
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid #dce5f3;
    border-radius: 13px;
    padding: 20px;
}

.receipt-preview-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1263d8;
    margin-bottom: 15px;
}

    .receipt-preview-heading h4 {
        color: #172554;
        font-size: 16px;
        margin: 0;
    }

.receipt-content {
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

    .receipt-content p {
        font-size: 13px;
        color: #475569;
        margin: 8px 0;
    }

.receipt-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* RESPONSIVE */

@media (max-width: 650px) {

    .receipt-header {
        padding: 15px;
    }

        .receipt-header h3 {
            font-size: 18px;
        }

    .receipt-body {
        padding: 14px;
        max-height: 80vh;
    }

    .student-payment-summary {
        padding: 15px;
    }

    .student-avatar {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .student-info h4 {
        font-size: 15px;
    }

    .summary-details .summary-amount {
        font-size: 17px;
    }

    .payment-form-container {
        padding: 16px;
    }

    .payment-form-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .payment-field.full-width {
        grid-column: auto;
    }

    .payment-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .payment-actions {
        width: 100%;
    }

        .payment-actions ::deep .rz-button {
            flex: 1;
            padding: 0 8px;
        }
}

@media (max-width: 380px) {
    .student-summary-top {
        flex-wrap: wrap;
    }

    .payment-status {
        margin-left: 0;
    }

    .summary-details {
        grid-template-columns: 1fr;
    }
}
