/* Payment Join Styles */

.payment-join-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#btnPaymentJoin {
    background-color: #5AFE9A;
    border: none;
    color: #1a1a1a;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#btnPaymentJoin:hover {
    background-color: #4ae889;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(90, 254, 154, 0.3);
}

#btnPaymentJoin i {
    margin-right: 5px;
}

.payment-join-info {
    color: #5AFE9A;
    font-size: 18px;
    cursor: help;
    transition: color 0.3s ease;
}

.payment-join-info:hover {
    color: #4ae889;
}

/* Modal Styles */
#modalUnifyPaymentsFE .modal-dialog {
    min-width: 900px;
}

#modalUnifyPaymentsFE h3 {
    margin-top: 30px;
    margin-bottom: 30px;
    color: #666;
}

#modalUnifyPaymentsFE .table-responsive.payments {
    margin-top: 30px;
    margin-bottom: 30px;
}

#tableUnifyPaymentsFE {
    width: 100%;
}

#tableUnifyPaymentsFE thead th {
    background-color: #f5f5f5;
    font-weight: 600;
    text-align: center;
    padding: 12px 8px;
    border: 1px solid #ddd;
}

#tableUnifyPaymentsFE tbody td {
    text-align: center;
    padding: 10px 8px;
    border: 1px solid #ddd;
    vertical-align: middle;
}

#tableUnifyPaymentsFE tbody tr:hover {
    background-color: #f9f9f9;
}

#tableUnifyPaymentsFE tbody tr.paytouni {
    background-color: #e8f8f0 !important;
    font-weight: 600;
}

#tableUnifyPaymentsFE tbody tr.paytouni td {
    border-color: #5AFE9A;
}

/* Checkboxes - Force visibility */
#tableUnifyPaymentsFE input[type="checkbox"],
#selectallpayunifyFE {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    margin: 0 auto !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
}

#tableUnifyPaymentsFE input[type="checkbox"]:not(:checked),
#tableUnifyPaymentsFE input[type="checkbox"]:checked,
#selectallpayunifyFE:not(:checked),
#selectallpayunifyFE:checked {
    position: relative !important;
    left: auto !important;
    right: auto !important;
}

#tableUnifyPaymentsFE input[type="checkbox"]:disabled {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.selectallpayunifyth {
    width: 50px;
    min-width: 50px;
}

#buttonJoinPayFE {
    float: right;
    margin-left: 5px;
    background-color: #5AFE9A;
    border: none;
    color: #1a1a1a;
    font-weight: 600;
}

#buttonJoinPayFE:hover:not([disabled]) {
    background-color: #4ae889;
}

#buttonJoinPayFE[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

#buttonJoinPayCloseModalFE {
    float: right;
}

.joinpaylinesspinnerFE {
    display: none;
    -webkit-animation: spin 1s linear infinite;
    -moz-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@-moz-keyframes spin {
    0% { -moz-transform: rotate(0deg); }
    100% { -moz-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinModalUnifierFE {
    margin: 50px auto;
}

#joinstatusmsgFE {
    text-align: left;
    font-weight: 600;
    padding: 10px 0;
}

/* Responsive */
@media (max-width: 992px) {
    #modalUnifyPaymentsFE .modal-dialog {
        min-width: 95%;
        margin: 10px auto;
    }
    
    .payment-join-container {
        flex-direction: column;
        align-items: flex-start;
    }
}
