/**
 * Invoice styles
 */

/* Modal styles */
.fpr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.fpr-modal.open {
    display: block;
}

.fpr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.fpr-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.fpr-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.fpr-modal-close:hover {
    color: #000;
}

/* Invoice button styles */
.generate-invoice {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.generate-invoice.loading {
    opacity: 0.7 !important;
    cursor: wait !important;
}

.print-invoice {
    display: block;
    margin: 20px auto 0;
    padding: 8px 15px;
    background-color: #5cb85c;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.print-invoice:hover {
    background-color: #4cae4c;
}

/* Success message styles */
.fpr-invoice-success-message {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
    max-width: 600px;
}

.fpr-invoice-success-message p {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.fpr-invoice-success-message a.button {
    display: inline-block;
    background-color: #5cb85c;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 10px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.fpr-invoice-success-message a.button:hover {
    background-color: #4cae4c;
    text-decoration: none;
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive styles */
@media (max-width: 768px) {
    .fpr-modal-content {
        width: 95%;
        padding: 15px;
    }

    .fpr-invoice-success-message {
        padding: 10px;
        margin: 10px 0;
    }
}
