/* ==================== استایل فاکتور ==================== */
.invoice-container {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #fff;
    padding: 30px;
    direction: rtl;
}

.invoice-header {
    border-bottom: 3px solid #28a745;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.invoice-logo i {
    color: #28a745;
}

.invoice-title {
    color: #28a745;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.invoice-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.invoice-meta div {
    margin-bottom: 5px;
}

.invoice-parties {
    margin-bottom: 25px;
}

.party-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    height: 100%;
}

.party-title {
    color: #28a745;
    border-bottom: 2px solid #28a745;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.party-info div {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.invoice-items {
    margin-bottom: 25px;
}

.section-title {
    color: #495057;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #dee2e6;
}

.invoice-items .table {
    font-size: 0.9rem;
}

.invoice-items .table thead {
    background: #f8f9fa;
}

.invoice-summary {
    margin-bottom: 25px;
}

.payment-info {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 15px;
}

.payment-detail {
    font-size: 0.9rem;
}

.total-box {
    background: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #dee2e6;
}

.total-row:last-child {
    border-bottom: none;
}

.final-total {
    background: #28a745;
    color: white;
    margin: 10px -15px -15px;
    padding: 12px 15px;
    border-radius: 0 0 6px 6px;
    font-size: 1.1rem;
}

.invoice-footer {
    border-top: 2px solid #dee2e6;
    padding-top: 20px;
    margin-top: 25px;
}

.footer-notes {
    font-size: 0.85rem;
}

.footer-notes ul {
    padding-right: 20px;
}

.signature-box {
    text-align: center;
}

.signature-stamp {
    opacity: 0.3;
    transform: rotate(-15deg);
}


.javadbtnr{
    border-top-right-radius: 0 !important;
    border-top-left-radius: 0 !important;
}

.javadbtnr1{
    
    border-top-left-radius: 0 !important;
}

.javadbtnr2{
    border-top-right-radius: 0 !important;
   
}

.javadsize1{
    font-size: 0.7rem !important;
   
}

/* استایل‌های چاپ */
@media print {
    .modal-header,
    .modal-footer {
        display: none !important;
    }
    
    .modal-dialog {
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .modal-content {
        border: none !important;
        box-shadow: none !important;
    }
    
    .invoice-container {
        padding: 20px;
    }
}