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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
<!--
    GST Invoice Template for SBN Mentors Private Limited
    Author: Nitin with Grok / Deepseek and Gemini AI
    Version: v5
    License: MIT License
    Features:
        - Dynamic topic selection with amounts
        - GST calculation based on selected topic
        - Print-ready formatting
    Dependencies: None
    Usage:
        - Open this HTML file in a web browser
        - Select the topic and amount from the dropdown
        - Fill in the invoice date and number
        - Click "Print Invoice" to generate a print-ready invoicent();
    Description: This HTML file is a template for generating GST invoices with dynamic topic selection, GST calculation, and print-ready formatting.
    Last Updated: 30June 2025
-->



<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SBN Mentors - Invoice</title>
    <style>
        /* General Body and Container Styles */
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 20px;
            display: flex;
            justify-content: center;
            font-size: 13px;
        }

        .container {
            background-color: #ffffff;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 850px;
            box-sizing: border-box;
        }

        /* --- Main Invoice Border (for screen view) --- */
        #invoiceContent {
            border: 2px solid #000;
            padding: 20px;
            box-sizing: border-box;
        }

        /* Header and Title Styles */
        h1, h2, h3, h4 {
            margin-top: 0;
            margin-bottom: 10px;
            color: #333;
        }

        .company-header, .invoice-header {
            text-align: center;
            margin-bottom: 15px;
            border-bottom: 2px solid #eee;
            padding-bottom: 8px;
        }

        .company-header h2 {
            margin: 3px 0;
            font-size: 20px;
            color: #1e3f66;
        }

        .company-header p {
            margin: 3px 0;
            font-size: 12px;
            color: #666;
        }

        .invoice-title {
            text-align: center;
            font-size: 20px;
            font-weight: bold;
            color: #000;
            margin-bottom: 15px;
            padding: 8px;
            background-color: #e6e6e6;
            border-radius: 5px;
        }

        /* Invoice Grid Layout */
        .invoice-details-grid, .tax-details-grid, .bank-details-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 20px;
            border: 1px solid #ddd;
            padding: 12px;
            border-radius: 8px;
        }

        .invoice-details-grid > div, .tax-details-grid > div, .bank-details-grid > div {
            padding: 8px;
            border: 1px solid #f0f0f0;
            border-radius: 5px;
            background-color: #fafafa;
        }

        .grid-item {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .grid-item strong {
            color: #555;
            font-size: 13px;
        }

        .grid-item p {
            margin: 0;
            font-size: 12px;
            color: #333;
        }

        /* Input Controls and Button Panel */
        .input-panel {
            background-color: #f9f9f9;
            padding: 15px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            margin-bottom: 25px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .input-panel label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #333;
        }

        .input-panel input, .input-panel select {
            width: 100%;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box;
            font-size: 14px;
        }

        .button-panel {
            text-align: center;
            margin-top: 25px;
        }

        .button-panel button {
            padding: 10px 20px;
            margin: 0 8px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 15px;
            font-weight: bold;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        #printBtn {
            background-color: #28a745;
            color: white;
        }

        #printBtn:hover {
            background-color: #218838;
            transform: translateY(-2px);
        }

        #clearBtn {
            background-color: #dc3545;
            color: white;
        }

        #clearBtn:hover {
            background-color: #c82333;
            transform: translateY(-2px);
        }

        /* Table Styles for Invoice Items */
        .invoice-table, .tax-summary-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
            margin-bottom: 15px;
            border: 1px solid #000;
        }

        .invoice-table th, .invoice-table td {
            border: 1px solid #000;
            padding: 8px;
            text-align: left;
            font-size: 12px;
        }

        .invoice-table th {
            background-color: #f2f2f2;
            font-weight: bold;
            color: #333;
        }

        .invoice-table tfoot td {
            font-weight: bold;
            background-color: #e9e9e9;
        }

        /* Reduced Gaps in Tax Summary Table */
        .tax-summary-table th, .tax-summary-table td {
            border: 1px solid #000;
            padding: 5px;
            text-align: left;
            font-size: 11px;
        }
        .tax-summary-table {
            margin-top: 10px;
            margin-bottom: 10px;
        }

        /* Flexbox for Signatures and Declaration */
        .declaration-section, .signature-section {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-top: 30px;
        }

        .declaration-section p, .signature-section p {
            margin: 0;
            font-size: 11px;
            color: #777;
        }

        .signature-section .left-seal {
            flex-grow: 1;
            text-align: left;
            padding: 8px;
        }

        .signature-section .right-signature {
            text-align: right;
            border-top: 1px solid #000;
            width: 250px;
            padding-top: 5px;
        }

        /* Amount in Words and totals */
        .amount-in-words-box {
            background-color: #eef;
            padding: 12px;
            margin-top: 15px;
            border-radius: 8px;
            border: 1px dashed #cdd;
        }

        .amount-in-words-box p {
            margin: 0;
            font-weight: bold;
            color: #1e3f66;
            font-size: 12px;
        }

        /* Utility Classes */
        .text-right {
            text-align: right;
        }

        .text-center {
            text-align: center;
        }

        .bold {
            font-weight: bold;
        }

        /* Hide elements for printing using a class */
        .no-print {
            display: block;
        }

        /* --- CRITICAL PRINT STYLES FOR SINGLE PAGE --- */
        @media print {
            .no-print {
                display: none !important;
            }

            @page {
                size: A4 portrait;
                margin: 0; /* Remove browser margins */
            }

            html, body {
                width: 210mm;
                height: 297mm;
                margin: 0;
                padding: 0;
                font-size: 9pt;
                line-height: 1.2;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .container {
                width: 100%;
                max-width: 100%;
                margin: 0;
                padding: 10mm; /* Add padding to create a margin inside the page border */
                border: 1px solid #000; /* Add a border around the entire page */
                box-shadow: none;
                border-radius: 0;
                box-sizing: border-box;
                height: 100%;
            }

            #invoiceContent {
                border: none;
                padding: 0;
            }
            
            /* Make sure table rows don't break across pages */
            tr, td, th {
                page-break-inside: avoid !important;
            }

            /* Tighten up all margins and paddings in print mode */
            h2, h3, h4 {
                margin: 2px 0;
                padding: 0;
            }
            
            p {
                margin: 1px 0;
            }

            .company-header {
                margin-bottom: 10px;
                padding-bottom: 5px;
            }
            
            .invoice-details-grid, .tax-details-grid, .bank-details-grid {
                gap: 10px;
                margin-bottom: 10px;
                padding: 8px;
            }

            .invoice-table, .tax-summary-table {
                margin-top: 10px;
                margin-bottom: 10px;
            }

            .invoice-table th, .invoice-table td,
            .tax-summary-table th, .tax-summary-table td {
                padding: 4px;
            }

            .amount-in-words-box {
                margin-top: 10px;
                padding: 8px;
            }

            .signature-section {
                margin-top: 20px;
            }

            .signature-section .right-signature {
                margin-top: 25px;
            }
        }
    </style>
</head>
<body>

    <div class="container">
        <div class="input-panel no-print">
            <div>
                <label for="invoiceDate">Date:</label>
                <input type="date" id="invoiceDate" required>
            </div>
            <div>
                <label for="invoiceNumber">Invoice Number:</label>
                <select id="invoiceNumber" required>
                    <option value="" disabled selected>Select Invoice Number</option>
                    <option value="001">001</option>
                    <option value="002">002</option>
                    <option value="003">003</option>
                    <option value="004">004</option>
                    <option value="005">005</option>
                    <option value="006">006</option>
                    <option value="007">007</option>
                    <option value="008">008</option>
                    <option value="009">009</option>
                    <option value="010">010</option>
                    <option value="011">011</option>
                    <option value="012">012</option>
                    <option value="013">013</option>
                    <option value="014">014</option>
                    <option value="015">015</option>
                    <option value="016">016</option>
                    <option value="017">017</option>
                    <option value="018">018</option>
                    <option value="019">019</option>
                    <option value="020">020</option>
                </select>
            </div>
            <div>
                <label for="courseTopicSelect">Topic & Amount:</label>
                <select id="courseTopicSelect" required>
                    <option value="" disabled selected>Select a topic</option>
                    </select>
            </div>
        </div>

        <div id="invoiceContent">

            <div class="company-header">
                <h2>SBN Mentors Private Limited</h2>
                <p>Registered Office: D-6 41/42 Chittranjan Nagar, Chintamani CHS, Rajawadi, Vidyavihar East, Mumbai – 400077</p>
                <p class="bold">CIN: U70200MH2024PTC420264 | Email: geetikanand@gmail.com</p>
                <hr>
                <h3 class="invoice-title">TAX INVOICE</h3>
                <p>Sec.23 of Rule 1(1)</p>
            </div>

            <div class="invoice-details-grid">
                <div class="left-col">
                    <h4 style="margin-bottom: 5px;">SBN Mentors Private Limited</h4>
                    <p>Address: D-41/42, Chittranjan Nagar,</p>
                    <p>Address: CHS, Rajawadi, Vidyavihar East</p>
                    <p style="margin-bottom: 10px;">Mumbai, 400077</p>
                    <p><strong>GSTIN:</strong> 27ABMCS8731Q1ZB</p>
                    <p><strong>CIN:</strong> U70200MH2024PTC420264</p>
                    <p style="margin-bottom: 10px;"><strong>PAN:</strong> ABCMS8731Q</p>
                    <p><strong>Mode/Terms of Payment:</strong> Chq/Neft,RTGS</p>
                    <p><strong>Contact:</strong> +919594493624</p>
                    <p><strong>E-Mail:</strong> geetikanand@gmail.com</p>
                </div>
                <div class="right-col">
                    <div class="grid-item" style="margin-bottom: 10px;">
                        <p><strong>Invoice No.:</strong> <span id="displayInvoiceNo">INV_NUMBER</span></p>
                        <p><strong>Dated:</strong> <span id="displayInvoiceDate">INV_DATE</span></p>
                    </div>
                    <h4 style="margin-bottom: 5px;">Buyer: Great Learning Education Services Private Limited</h4>
                    <p>Address: 2nd Floor, Orchid Centre, Golf Course Road</p>
                    <p>Address: Sector 53, Gurgaon</p>
                    <p>PIN: 122002</p>
                    <p>State: Haryana</p>
                    <p style="margin-bottom: 10px;">PAN: AAECB3694E</p>
                    <p><strong>GSTIN:</strong> 06AAECB3694E1ZR</p>
                    <p><strong>Place of Supply:</strong> Mumbai</p>
                </div>
            </div>

            <table class="invoice-table">
                <thead>
                    <tr>
                        <th style="width: 5%;">Sl No.</th>
                        <th>Particulars: Description of Services</th>
                        <th style="width: 15%;">HSN/SAC</th>
                        <th style="width: 10%;">GST Rate</th>
                        <th class="text-right" style="width: 15%;">Amount</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td class="text-center">1</td>
                        <td><span id="displayTopic">INV_TOPIC</span></td>
                        <td class="text-center">999259</td>
                        <td class="text-center">18 %</td>
                        <td class="text-right"><span id="displayBaseAmount">0.00</span></td>
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="4" class="text-right bold">Sub Total</td>
                        <td class="text-right bold"><span id="subTotal">0.00</span></td>
                    </tr>
                    <tr>
                        <td colspan="4" class="text-right bold">CGST</td>
                        <td class="text-right bold"><span id="cgstAmount">0.00</span></td>
                    </tr>
                    <tr>
                        <td colspan="4" class="text-right bold">SGST</td>
                        <td class="text-right bold"><span id="sgstAmount">0.00</span></td>
                    </tr>
                    <tr>
                        <td colspan="4" class="text-right bold">IGST</td>
                        <td class="text-right bold"><span id="igstAmount">0.00</span></td>
                    </tr>
                    <tr>
                        <td colspan="4" class="text-right bold">Total</td>
                        <td class="text-right bold"><span id="totalAmount">0.00</span></td>
                    </tr>
                    <tr>
                        <td colspan="5" style="text-align: right; font-style: italic;">E. & O.E</td>
                    </tr>
                </tfoot>
            </table>

            <div class="amount-in-words-box">
                <p><strong>Amount Chargeable (in words):</strong> <span id="amountInWords">Zero Rupees Only</span></p>
            </div>

            <table class="tax-summary-table">
                <thead>
                    <tr>
                        <th>HSN/SAC</th>
                        <th>Taxable Value</th>
                        <th colspan="2" class="text-center">Central Tax</th>
                        <th colspan="2" class="text-center">State Tax</th>
                        <th colspan="2" class="text-center">Interstate Tax</th>
                    </tr>
                    <tr>
                        <th></th>
                        <th></th>
                        <th class="text-center">Rate</th>
                        <th class="text-center">Amount</th>
                        <th class="text-center">Rate</th>
                        <th class="text-center">Amount</th>
                        <th class="text-center">Rate</th>
                        <th class="text-center">Amount</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td class="text-center">999259</td>
                        <td class="text-right"><span id="taxableValue">0.00</span></td>
                        <td class="text-center">9%</td>
                        <td class="text-right"><span id="centralTax">0.00</span></td>
                        <td class="text-center">9%</td>
                        <td class="text-right"><span id="stateTax">0.00</span></td>
                        <td class="text-center">18%</td>
                        <td class="text-right"><span id="interstateTax">0.00</span></td>
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <td class="bold">Total</td>
                        <td class="text-right bold"><span id="totalTaxableValue">0.00</span></td>
                        <td class="text-center bold"></td>
                        <td class="text-right bold"><span id="totalCentralTax">0.00</span></td>
                        <td class="text-center bold"></td>
                        <td class="text-right bold"><span id="totalStateTax">0.00</span></td>
                        <td class="text-center bold">18%</td>
                        <td class="text-right bold"><span id="totalInterstateTax">0.00</span></td>
                    </tr>
                </tfoot>
            </table>

            <div class="amount-in-words-box">
                <p><strong>Tax Amount (in words):</strong> <span id="taxAmountInWords">Zero Rupees Only</span></p>
            </div>

            <div class="bank-details-grid">
                <div>
                    <p class="bold">Company's Bank Details</p>
                    <hr>
                    <p><strong>Bank Name:</strong> HDFC</p>
                    <p><strong>Account No.:</strong> 50200109680941</p>
                    <p><strong>Branch & IFS Code:</strong> Kanjur West, HDFC0004272</p>
                </div>
                <div>
                    <p class="bold">Declaration</p>
                    <hr>
                    <p>We declare that this invoice shows the actual price of the goods described and that all particulars are true and correct.</p>
                </div>
            </div>

            <div class="signature-section">
                <div class="left-seal">
                    <p>Customer's Seal and Signature</p>
                </div>
                <div class="right-signature">
                    <p>For SBN Mentors Private Limited</p>
                    <p style="margin-top: 40px; font-weight: bold;">Authorised Signatory</p>
                </div>
            </div>
            <div style="text-align: center; margin-top: 10px;">
                <br>
                <p style="font-style: italic; font-size: 12px; color: #888;">This is a Computer Generated Invoice, Signature not required</p>
            </div>

        </div>

        <div class="button-panel no-print">
            <button id="printBtn">Print Invoice</button>
            <button id="clearBtn">Clear</button>
        </div>
    </div>

    <script src="./data_for_msft.js"></script>
    <script src="./utils.js"></script>
    <script src="./invoice.js"></script>
</body>
</html>