      @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Noto Sans JP', sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            padding: 20px;
        }
        
        .invoice-container {
            max-width: 595px;
            min-height: 842px; /* A4 height in pixels */
            margin: 0 auto;
            background-color: white;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            padding: 20px;
            border-radius: 10px;
            position: relative;
        }
        
        .invoice-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 2px dashed #6b6b6b;
        }
        
        .logo {
            width: 80px;
            height: 80px;
            object-fit: contain;
        }
        
        .company-name {
            text-align: right;
            font-size: 24px;
            font-weight: bold;
            color: #000;
        }
        
        .invoice-title {
            text-align: center;
            font-size: 28px;
            margin-bottom: 15px;
            color: #2E7D32;
        }
        
       .invoice-info {
    display: flex;
    justify-content: space-between;
    gap: 15px; /* فاصله بین آیتم‌ها */
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.date-group, .time-group, .day-group {
    flex: 1;
}

/* استایل برای نام مشتری */
.customer-name-group {
    width: 70%; /* عرض کمتر برای فیلد نام مشتری */
}
        
        .customer-info {
            margin-bottom: 20px;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        
        input, select {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }
        
      /* استایل برای رادیو باتن‌ها */
.transaction-type {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.transaction-option {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
        
        .transaction-type label {
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            margin-bottom: 0;
        }
        
        .transaction-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
            table-layout: fixed;
        }
        
        .transaction-table th, .transaction-table td {
            border: 1px solid #ddd;
            padding: 10px;
            text-align: center;
        }
        
        .transaction-table th {
            background-color: #4CAF50;
            color: white;
        }
        
        .transaction-table tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        
        .transaction-table input {
            width: 100%;
            border: none;
            background: transparent;
            text-align: center;
        }
        
        .add-item-btn {
            background-color: #4CAF50;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 4px;
            cursor: pointer;
            margin-bottom: 20px;
            transition: background-color 0.3s;
        }
        
        .add-item-btn:hover {
            background-color: #3e8e41;
        }
        
        .total-amount {
            text-align: right;
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 20px;
        }
        
        .company-footer {
            margin-top: 30px;
            padding-top: 15px;
            border-top: 2px dashed #6b6b6b;
            text-align: center;
            font-size: 14px;
            color: #555;
            position: absolute;
            bottom: 20px;
            left: 20px;
            right: 20px;
        }
        
        .action-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
        }
        
        .print-btn, .pdf-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }
        
        .print-btn {
            background-color: #2196F3;
            color: white;
        }
        
        .print-btn:hover {
            background-color: #0b7dda;
            transform: translateY(-2px);
        }
        
        .pdf-btn {
            background-color: #f44336;
            color: white;
        }
        
        .pdf-btn:hover {
            background-color: #da190b;
            transform: translateY(-2px);
        }
        
        /* Print styles */
        @media print {
            body {
                background-color: white;
                padding: 0;
            }
            
            .invoice-container {
                box-shadow: none;
                padding: 15px;
                width: 100%;
                max-width: 100%;
                min-height: auto;
            }
            
            .action-buttons {
                display: none;
            }
            
            @page {
                size: A4;
                margin: 10mm;
            }
        }
        
        /* Mobile responsive */
        @media (max-width: 600px) {
            .invoice-container {
                padding: 10px;
            }
            
            .invoice-header {
                flex-direction: column;
                text-align: center;
            }
            
            .company-name {
                text-align: center;
                margin-top: 10px;
            }
            
            .invoice-info {
                flex-direction: column;
                gap: 10px;
            }
            
            .action-buttons {
                flex-direction: column;
                align-items: center;
            }
        }