#outstandingPaymentForm {
    width: 96vw;
}

.outpay-grp {
    width: 100%;
}

.outpay-card {
    padding: 1.2vw 1.6vw 1.2vw;
}

.outpay-table-wrap {
    margin-top: 0.8vw;
    border: 1px solid var(--payment-border);
    border-radius: 6px;
    overflow: auto;
    max-height: 70vh;
    background-color: #ffffff;
}

.outpay-table {
    width: 100%;
    border-collapse: collapse;
}

.outpay-table thead th {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 1;
}

.outpay-table th,
.outpay-table td {
    border-bottom: 1px solid var(--payment-border);
    padding: 0.55vw 0.6vw;
    font-size: 0.9vw;
    white-space: nowrap;
    text-align: left;
}

.outpay-table th {
    font-weight: 700;
    color: #a35a1a;
}

.outpay-col-check {
    width: 2.2vw;
    text-align: center;
}

.outpay-table td.outpay-col-check {
    text-align: center;
}

.outpay-table input[type="checkbox"] {
    width: 1.05vw;
    height: 1.05vw;
}

.outpay-col-money {
    text-align: right;
}

.outpay-col-center {
    text-align: center;
}

.outpay-pay-amount {
    color: var(--payment-red);
    font-weight: 700;
}

.outpay-actions {
    display: flex;
    justify-content: center;
    gap: 1.2vw;
    padding-top: 1vw;
}

/* Buttons: make visible even outside .btn-class containers */
#outstandingPaymentForm .outpay-actions .std-form-btn {
    font-size: 1vw;
    font-weight: bold;
    min-width: 6vw;
    height: 2vw;
    padding: 0 1.4vw;
    border: 0;
    border-radius: 2px;
    line-height: 1.5;
    white-space: nowrap;
}

#outpay_cancel {
    color: #ffffff !important;
    background-image: linear-gradient(#7bbafc, #0f6bff) !important;
}

#outpay_pay {
    color: #ffffff !important;
    background-image: linear-gradient(#7bbafc, #0f6bff) !important;
}

#outpay_pay:disabled {
    color: #656565 !important;
    background-image: linear-gradient(#ededed, #e8e8e8) !important;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    #outstandingPaymentForm {
        width: 96vw;
    }

    .outpay-card {
        padding: 16px;
    }

    .outpay-table-wrap {
        max-height: 65vh;
    }

    .outpay-table th,
    .outpay-table td {
        font-size: 12px;
        padding: 8px 10px;
    }

    .outpay-table input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    #outstandingPaymentForm .outpay-actions .std-form-btn {
        font-size: 14px;
        min-width: 96px;
        height: 34px;
        padding: 0 18px;
    }
}
