File size: 80,624 Bytes
7e0329b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>سیستم مدیریت رویدادهای مالی</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/JsBarcode.all.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:[email protected]&display=swap');
        body {
            font-family: 'Vazirmatn', sans-serif;
        }
        .sidebar-item.active {
            background-color: #3b82f6;
            color: white;
        }
        .sidebar-item:hover:not(.active) {
            background-color: #e5e7eb;
        }
        .barcode-container {
            background: white;
            padding: 10px;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .form-input {
            border: 1px solid #d1d5db;
            border-radius: 0.375rem;
            padding: 0.5rem 0.75rem;
            width: 100%;
        }
        .form-input:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 1px #3b82f6;
        }
        .table-row:hover {
            background-color: #f3f4f6;
        }
    </style>
</head>
<body class="bg-gray-100">
    <div class="flex h-screen overflow-hidden">
        <!-- Sidebar -->
        <div class="w-64 bg-blue-800 text-white flex flex-col">
            <div class="p-4 flex items-center justify-center border-b border-blue-700">
                <i class="fas fa-calculator text-2xl ml-2"></i>
                <h1 class="text-xl font-bold">سیستم مالی یکپارچه</h1>
            </div>
            <div class="flex-1 overflow-y-auto">
                <div class="p-2">
                    <div class="mb-4 mt-4">
                        <h3 class="px-4 text-sm font-semibold text-blue-200">ساختار سازمانی</h3>
                        <ul class="mt-2">
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('org-units')"><i class="fas fa-sitemap ml-2"></i>واحدهای سازمانی</a></li>
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('job-positions')"><i class="fas fa-user-tie ml-2"></i>پست‌های سازمانی</a></li>
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('user-groups')"><i class="fas fa-users ml-2"></i>گروه‌های کاربری</a></li>
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('users')"><i class="fas fa-user ml-2"></i>کاربران</a></li>
                        </ul>
                    </div>
                    <div class="mb-4">
                        <h3 class="px-4 text-sm font-semibold text-blue-200">ساختار حسابداری</h3>
                        <ul class="mt-2">
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('account-levels')"><i class="fas fa-layer-group ml-2"></i>سطوح حسابداری</a></li>
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('subsidiary-accounts')"><i class="fas fa-wallet ml-2"></i>حساب‌های معین</a></li>
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('level4-accounts')"><i class="fas fa-coins ml-2"></i>حساب‌های تفصیلی سطح ۴</a></li>
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('level5-accounts')"><i class="fas fa-money-bill-wave ml-2"></i>حساب‌های تفصیلی سطح ۵</a></li>
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('level6-accounts')"><i class="fas fa-piggy-bank ml-2"></i>حساب‌های تفصیلی سطح ۶</a></li>
                        </ul>
                    </div>
                    <div class="mb-4">
                        <h3 class="px-4 text-sm font-semibold text-blue-200">مدیریت رویدادها</h3>
                        <ul class="mt-2">
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('activities')"><i class="fas fa-tasks ml-2"></i>فعالیت‌ها</a></li>
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('events')"><i class="fas fa-calendar-check ml-2"></i>رویدادها</a></li>
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('record-events')"><i class="fas fa-pen ml-2"></i>ثبت رویدادها</a></li>
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('tracking-codes')"><i class="fas fa-barcode ml-2"></i>کدهای رهگیری</a></li>
                        </ul>
                    </div>
                    <div class="mb-4">
                        <h3 class="px-4 text-sm font-semibold text-blue-200">کنترل و گزارشات</h3>
                        <ul class="mt-2">
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('tasks')"><i class="fas fa-inbox ml-2"></i>کارتابل</a></li>
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('reports')"><i class="fas fa-chart-bar ml-2"></i>گزارشات</a></li>
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('dashboard')"><i class="fas fa-tachometer-alt ml-2"></i>داشبورد</a></li>
                            <li><a href="#" class="sidebar-item block px-4 py-2 rounded" onclick="showSection('settings')"><i class="fas fa-cog ml-2"></i>تنظیمات</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="p-4 border-t border-blue-700 flex items-center">
                <img src="https://via.placeholder.com/40" alt="User" class="rounded-full w-10 h-10">
                <div class="mr-2">
                    <p class="font-medium">کاربر مدیر</p>
                    <p class="text-xs text-blue-200">مدیر سیستم</p>
                </div>
            </div>
        </div>

        <!-- Main Content -->
        <div class="flex-1 overflow-auto">
            <!-- Top Navigation -->
            <header class="bg-white shadow-sm">
                <div class="px-4 py-3 flex justify-between items-center border-b">
                    <div class="flex items-center">
                        <button class="text-gray-500 focus:outline-none lg:hidden">
                            <i class="fas fa-bars"></i>
                        </button>
                        <h2 id="section-title" class="text-lg font-semibold mr-4">داشبورد</h2>
                    </div>
                    <div class="flex items-center">
                        <div class="relative">
                            <input type="text" placeholder="جستجو..." class="form-input pr-10">
                            <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                        </div>
                        <button class="ml-4 text-gray-500 hover:text-gray-700">
                            <i class="fas fa-bell"></i>
                        </button>
                        <button class="ml-4 text-gray-500 hover:text-gray-700">
                            <i class="fas fa-question-circle"></i>
                        </button>
                    </div>
                </div>
            </header>

            <!-- Content Sections -->
            <main class="p-4">
                <!-- Dashboard Section -->
                <div id="dashboard" class="section-content">
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
                        <div class="bg-white p-4 rounded-lg shadow">
                            <div class="flex justify-between">
                                <div>
                                    <p class="text-gray-500">رویدادهای امروز</p>
                                    <p class="text-2xl font-bold">24</p>
                                </div>
                                <div class="bg-blue-100 text-blue-600 p-3 rounded-full">
                                    <i class="fas fa-calendar-day"></i>
                                </div>
                            </div>
                        </div>
                        <div class="bg-white p-4 rounded-lg shadow">
                            <div class="flex justify-between">
                                <div>
                                    <p class="text-gray-500">وظایف در انتظار</p>
                                    <p class="text-2xl font-bold">8</p>
                                </div>
                                <div class="bg-yellow-100 text-yellow-600 p-3 rounded-full">
                                    <i class="fas fa-tasks"></i>
                                </div>
                            </div>
                        </div>
                        <div class="bg-white p-4 rounded-lg shadow">
                            <div class="flex justify-between">
                                <div>
                                    <p class="text-gray-500">رویدادهای تایید شده</p>
                                    <p class="text-2xl font-bold">42</p>
                                </div>
                                <div class="bg-green-100 text-green-600 p-3 rounded-full">
                                    <i class="fas fa-check-circle"></i>
                                </div>
                            </div>
                        </div>
                        <div class="bg-white p-4 rounded-lg shadow">
                            <div class="flex justify-between">
                                <div>
                                    <p class="text-gray-500">مبلغ کل ماه</p>
                                    <p class="text-2xl font-bold">12.5M</p>
                                </div>
                                <div class="bg-purple-100 text-purple-600 p-3 rounded-full">
                                    <i class="fas fa-money-bill-wave"></i>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
                        <div class="bg-white p-4 rounded-lg shadow lg:col-span-2">
                            <div class="flex justify-between items-center mb-4">
                                <h3 class="font-semibold">آخرین رویدادها</h3>
                                <a href="#" class="text-blue-600 text-sm">مشاهده همه</a>
                            </div>
                            <div class="overflow-x-auto">
                                <table class="min-w-full divide-y divide-gray-200">
                                    <thead class="bg-gray-50">
                                        <tr>
                                            <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">کد رهگیری</th>
                                            <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">شرح</th>
                                            <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">مبلغ</th>
                                            <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">وضعیت</th>
                                        </tr>
                                    </thead>
                                    <tbody class="bg-white divide-y divide-gray-200">
                                        <tr class="table-row">
                                            <td class="px-4 py-2 whitespace-nowrap">101010-00001-00001-000001</td>
                                            <td class="px-4 py-2 whitespace-nowrap">خرید مواد اولیه</td>
                                            <td class="px-4 py-2 whitespace-nowrap">5,000,000 ریال</td>
                                            <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">تایید شده</span></td>
                                        </tr>
                                        <tr class="table-row">
                                            <td class="px-4 py-2 whitespace-nowrap">101020-00002-00001-000002</td>
                                            <td class="px-4 py-2 whitespace-nowrap">پرداخت حقوق</td>
                                            <td class="px-4 py-2 whitespace-nowrap">12,000,000 ریال</td>
                                            <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">در انتظار تایید</span></td>
                                        </tr>
                                        <tr class="table-row">
                                            <td class="px-4 py-2 whitespace-nowrap">101030-00003-00002-000003</td>
                                            <td class="px-4 py-2 whitespace-nowrap">خرید تجهیزات</td>
                                            <td class="px-4 py-2 whitespace-nowrap">8,500,000 ریال</td>
                                            <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">در جریان</span></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>

                        <div class="bg-white p-4 rounded-lg shadow">
                            <div class="flex justify-between items-center mb-4">
                                <h3 class="font-semibold">وظایف من</h3>
                                <a href="#" class="text-blue-600 text-sm">مشاهده همه</a>
                            </div>
                            <div class="space-y-3">
                                <div class="flex items-start">
                                    <input type="checkbox" class="mt-1">
                                    <div class="mr-2">
                                        <p class="text-sm font-medium">تایید رویداد خرید مواد اولیه</p>
                                        <p class="text-xs text-gray-500">2 ساعت پیش</p>
                                    </div>
                                </div>
                                <div class="flex items-start">
                                    <input type="checkbox" class="mt-1">
                                    <div class="mr-2">
                                        <p class="text-sm font-medium">تعریف حساب تفصیلی جدید</p>
                                        <p class="text-xs text-gray-500">دیروز</p>
                                    </div>
                                </div>
                                <div class="flex items-start">
                                    <input type="checkbox" class="mt-1">
                                    <div class="mr-2">
                                        <p class="text-sm font-medium">بررسی گزارش مالی ماهانه</p>
                                        <p class="text-xs text-gray-500">3 روز پیش</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Organizational Units Section -->
                <div id="org-units" class="section-content hidden">
                    <div class="bg-white p-4 rounded-lg shadow mb-4">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="font-semibold">واحدهای سازمانی</h3>
                            <button onclick="showForm('org-unit-form')" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">
                                <i class="fas fa-plus ml-2"></i>واحد جدید
                            </button>
                        </div>
                        <div class="mb-4">
                            <div class="relative">
                                <input type="text" placeholder="جستجو در واحدهای سازمانی..." class="form-input pr-10">
                                <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                            </div>
                        </div>
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">کد</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">نام واحد</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">واحد مافوق</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">وضعیت</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">عملیات</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">001</td>
                                        <td class="px-4 py-2 whitespace-nowrap">مدیریت مالی</td>
                                        <td class="px-4 py-2 whitespace-nowrap">مدیریت عامل</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">002</td>
                                        <td class="px-4 py-2 whitespace-nowrap">حسابداری</td>
                                        <td class="px-4 py-2 whitespace-nowrap">مدیریت مالی</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">003</td>
                                        <td class="px-4 py-2 whitespace-nowrap">تدارکات</td>
                                        <td class="px-4 py-2 whitespace-nowrap">مدیریت عامل</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>

                    <!-- Add/Edit Form (Hidden by default) -->
                    <div id="org-unit-form" class="bg-white p-4 rounded-lg shadow hidden">
                        <h3 class="font-semibold mb-4">فرم تعریف واحد سازمانی</h3>
                        <form>
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">کد واحد</label>
                                    <input type="text" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">نام واحد</label>
                                    <input type="text" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">واحد مافوق</label>
                                    <select class="form-input">
                                        <option>انتخاب کنید</option>
                                        <option>مدیریت عامل</option>
                                        <option>مدیریت مالی</option>
                                    </select>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">وضعیت</label>
                                    <select class="form-input">
                                        <option>فعال</option>
                                        <option>غیرفعال</option>
                                    </select>
                                </div>
                            </div>
                            <div class="flex justify-end">
                                <button type="button" onclick="hideForm('org-unit-form')" class="bg-gray-300 text-gray-700 px-4 py-2 rounded hover:bg-gray-400 mr-2">انصراف</button>
                                <button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">ذخیره</button>
                            </div>
                        </form>
                    </div>
                </div>

                <!-- Job Positions Section -->
                <div id="job-positions" class="section-content hidden">
                    <div class="bg-white p-4 rounded-lg shadow mb-4">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="font-semibold">پست‌های سازمانی</h3>
                            <button onclick="showForm('job-position-form')" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">
                                <i class="fas fa-plus ml-2"></i>پست جدید
                            </button>
                        </div>
                        <div class="mb-4">
                            <div class="relative">
                                <input type="text" placeholder="جستجو در پست‌های سازمانی..." class="form-input pr-10">
                                <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                            </div>
                        </div>
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">کد</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">عنوان پست</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">واحد سازمانی</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">وضعیت</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">عملیات</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">101</td>
                                        <td class="px-4 py-2 whitespace-nowrap">مدیر مالی</td>
                                        <td class="px-4 py-2 whitespace-nowrap">مدیریت مالی</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">102</td>
                                        <td class="px-4 py-2 whitespace-nowrap">حسابدار</td>
                                        <td class="px-4 py-2 whitespace-nowrap">حسابداری</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">103</td>
                                        <td class="px-4 py-2 whitespace-nowrap">کارشناس خرید</td>
                                        <td class="px-4 py-2 whitespace-nowrap">تدارکات</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>

                    <!-- Add/Edit Form (Hidden by default) -->
                    <div id="job-position-form" class="bg-white p-4 rounded-lg shadow hidden">
                        <h3 class="font-semibold mb-4">فرم تعریف پست سازمانی</h3>
                        <form>
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">کد پست</label>
                                    <input type="text" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">عنوان پست</label>
                                    <input type="text" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">واحد سازمانی</label>
                                    <select class="form-input">
                                        <option>انتخاب کنید</option>
                                        <option>مدیریت مالی</option>
                                        <option>حسابداری</option>
                                        <option>تدارکات</option>
                                    </select>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">وضعیت</label>
                                    <select class="form-input">
                                        <option>فعال</option>
                                        <option>غیرفعال</option>
                                    </select>
                                </div>
                            </div>
                            <div class="flex justify-end">
                                <button type="button" onclick="hideForm('job-position-form')" class="bg-gray-300 text-gray-700 px-4 py-2 rounded hover:bg-gray-400 mr-2">انصراف</button>
                                <button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">ذخیره</button>
                            </div>
                        </form>
                    </div>
                </div>

                <!-- User Groups Section -->
                <div id="user-groups" class="section-content hidden">
                    <div class="bg-white p-4 rounded-lg shadow mb-4">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="font-semibold">گروه‌های کاربری</h3>
                            <button onclick="showForm('user-group-form')" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">
                                <i class="fas fa-plus ml-2"></i>گروه جدید
                            </button>
                        </div>
                        <div class="mb-4">
                            <div class="relative">
                                <input type="text" placeholder="جستجو در گروه‌های کاربری..." class="form-input pr-10">
                                <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                            </div>
                        </div>
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">کد</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">نام گروه</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">تعداد کاربران</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">وضعیت</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">عملیات</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">G001</td>
                                        <td class="px-4 py-2 whitespace-nowrap">مدیران سیستم</td>
                                        <td class="px-4 py-2 whitespace-nowrap">3</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">G002</td>
                                        <td class="px-4 py-2 whitespace-nowrap">کاربران مالی</td>
                                        <td class="px-4 py-2 whitespace-nowrap">8</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">G003</td>
                                        <td class="px-4 py-2 whitespace-nowrap">کاربران تدارکات</td>
                                        <td class="px-4 py-2 whitespace-nowrap">5</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>

                    <!-- Add/Edit Form (Hidden by default) -->
                    <div id="user-group-form" class="bg-white p-4 rounded-lg shadow hidden">
                        <h3 class="font-semibold mb-4">فرم تعریف گروه کاربری</h3>
                        <form>
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">کد گروه</label>
                                    <input type="text" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">نام گروه</label>
                                    <input type="text" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">دسترسی‌ها</label>
                                    <select multiple class="form-input h-32">
                                        <option>مدیریت واحدهای سازمانی</option>
                                        <option>مدیریت پست‌ها</option>
                                        <option>مدیریت گروه‌ها</option>
                                        <option>مدیریت کاربران</option>
                                        <option>ثبت رویدادها</option>
                                        <option>تایید رویدادها</option>
                                    </select>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">وضعیت</label>
                                    <select class="form-input">
                                        <option>فعال</option>
                                        <option>غیرفعال</option>
                                    </select>
                                </div>
                            </div>
                            <div class="flex justify-end">
                                <button type="button" onclick="hideForm('user-group-form')" class="bg-gray-300 text-gray-700 px-4 py-2 rounded hover:bg-gray-400 mr-2">انصراف</button>
                                <button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">ذخیره</button>
                            </div>
                        </form>
                    </div>
                </div>

                <!-- Users Section -->
                <div id="users" class="section-content hidden">
                    <div class="bg-white p-4 rounded-lg shadow mb-4">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="font-semibold">کاربران سیستم</h3>
                            <button onclick="showForm('user-form')" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">
                                <i class="fas fa-plus ml-2"></i>کاربر جدید
                            </button>
                        </div>
                        <div class="mb-4">
                            <div class="relative">
                                <input type="text" placeholder="جستجو در کاربران..." class="form-input pr-10">
                                <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                            </div>
                        </div>
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">کد کاربری</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">نام کامل</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">پست سازمانی</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">گروه کاربری</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">وضعیت</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">عملیات</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">U001</td>
                                        <td class="px-4 py-2 whitespace-nowrap">محمد رضایی</td>
                                        <td class="px-4 py-2 whitespace-nowrap">مدیر مالی</td>
                                        <td class="px-4 py-2 whitespace-nowrap">کاربران مالی</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">U002</td>
                                        <td class="px-4 py-2 whitespace-nowrap">فاطمه محمدی</td>
                                        <td class="px-4 py-2 whitespace-nowrap">حسابدار</td>
                                        <td class="px-4 py-2 whitespace-nowrap">کاربران مالی</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">U003</td>
                                        <td class="px-4 py-2 whitespace-nowrap">علی حسینی</td>
                                        <td class="px-4 py-2 whitespace-nowrap">کارشناس خرید</td>
                                        <td class="px-4 py-2 whitespace-nowrap">کاربران تدارکات</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>

                    <!-- Add/Edit Form (Hidden by default) -->
                    <div id="user-form" class="bg-white p-4 rounded-lg shadow hidden">
                        <h3 class="font-semibold mb-4">فرم تعریف کاربر</h3>
                        <form>
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">کد کاربری</label>
                                    <input type="text" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">نام کاربری</label>
                                    <input type="text" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">نام کامل</label>
                                    <input type="text" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">رمز عبور</label>
                                    <input type="password" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">پست سازمانی</label>
                                    <select class="form-input">
                                        <option>انتخاب کنید</option>
                                        <option>مدیر مالی</option>
                                        <option>حسابدار</option>
                                        <option>کارشناس خرید</option>
                                    </select>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">گروه کاربری</label>
                                    <select class="form-input">
                                        <option>انتخاب کنید</option>
                                        <option>مدیران سیستم</option>
                                        <option>کاربران مالی</option>
                                        <option>کاربران تدارکات</option>
                                    </select>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">وضعیت</label>
                                    <select class="form-input">
                                        <option>فعال</option>
                                        <option>غیرفعال</option>
                                    </select>
                                </div>
                            </div>
                            <div class="flex justify-end">
                                <button type="button" onclick="hideForm('user-form')" class="bg-gray-300 text-gray-700 px-4 py-2 rounded hover:bg-gray-400 mr-2">انصراف</button>
                                <button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">ذخیره</button>
                            </div>
                        </form>
                    </div>
                </div>

                <!-- Account Levels Section -->
                <div id="account-levels" class="section-content hidden">
                    <div class="bg-white p-4 rounded-lg shadow">
                        <h3 class="font-semibold mb-4">سطوح حسابداری</h3>
                        <div class="mb-6">
                            <div class="flex items-center mb-2">
                                <div class="w-8 h-8 bg-blue-600 text-white rounded-full flex items-center justify-center">1</div>
                                <h4 class="mr-2 font-medium">حساب کل</h4>
                            </div>
                            <p class="text-gray-600 text-sm mr-10">سطح اول ساختار حساب‌ها که شامل گروه‌های اصلی حساب‌ها می‌شود مانند دارایی‌ها، بدهی‌ها، سرمایه، درآمد و هزینه</p>
                        </div>
                        <div class="mb-6">
                            <div class="flex items-center mb-2">
                                <div class="w-8 h-8 bg-blue-600 text-white rounded-full flex items-center justify-center">2</div>
                                <h4 class="mr-2 font-medium">حساب معین</h4>
                            </div>
                            <p class="text-gray-600 text-sm mr-10">سطح دوم که زیرمجموعه حساب کل بوده و جزئیات بیشتری ارائه می‌دهد مانند بانک‌ها، حساب‌های دریافتنی، حساب‌های پرداختنی</p>
                        </div>
                        <div class="mb-6">
                            <div class="flex items-center mb-2">
                                <div class="w-8 h-8 bg-blue-600 text-white rounded-full flex items-center justify-center">3</div>
                                <h4 class="mr-2 font-medium">حساب تفصیلی سطح ۴</h4>
                            </div>
                            <p class="text-gray-600 text-sm mr-10">سطح سوم که معمولاً برای تفکیک شرکت‌های زیرمجموعه یا بخش‌های مختلف سازمان استفاده می‌شود</p>
                        </div>
                        <div class="mb-6">
                            <div class="flex items-center mb-2">
                                <div class="w-8 h-8 bg-blue-600 text-white rounded-full flex items-center justify-center">4</div>
                                <h4 class="mr-2 font-medium">حساب تفصیلی سطح ۵</h4>
                            </div>
                            <p class="text-gray-600 text-sm mr-10">سطح چهارم که معمولاً برای تفکیک پروژه‌ها یا مراکز هزینه استفاده می‌شود</p>
                        </div>
                        <div>
                            <div class="flex items-center mb-2">
                                <div class="w-8 h-8 bg-blue-600 text-white rounded-full flex items-center justify-center">5</div>
                                <h4 class="mr-2 font-medium">حساب تفصیلی سطح ۶</h4>
                            </div>
                            <p class="text-gray-600 text-sm mr-10">سطح پنجم که برای جزئیات بیشتر مانند شماره حساب بانکی یا شماره چک استفاده می‌شود</p>
                        </div>
                    </div>
                </div>

                <!-- Subsidiary Accounts Section -->
                <div id="subsidiary-accounts" class="section-content hidden">
                    <div class="bg-white p-4 rounded-lg shadow mb-4">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="font-semibold">حساب‌های معین</h3>
                            <button onclick="showForm('subsidiary-account-form')" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">
                                <i class="fas fa-plus ml-2"></i>حساب جدید
                            </button>
                        </div>
                        <div class="mb-4">
                            <div class="relative">
                                <input type="text" placeholder="جستجو در حساب‌های معین..." class="form-input pr-10">
                                <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                            </div>
                        </div>
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">کد حساب کل</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">نام حساب کل</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">کد معین</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">نام معین</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">وضعیت</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">عملیات</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">101</td>
                                        <td class="px-4 py-2 whitespace-nowrap">بانک‌ها</td>
                                        <td class="px-4 py-2 whitespace-nowrap">101010</td>
                                        <td class="px-4 py-2 whitespace-nowrap">بانک‌های ریالی</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">101</td>
                                        <td class="px-4 py-2 whitespace-nowrap">بانک‌ها</td>
                                        <td class="px-4 py-2 whitespace-nowrap">101020</td>
                                        <td class="px-4 py-2 whitespace-nowrap">بانک‌های ارزی</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">121</td>
                                        <td class="px-4 py-2 whitespace-nowrap">حساب‌های دریافتنی</td>
                                        <td class="px-4 py-2 whitespace-nowrap">121010</td>
                                        <td class="px-4 py-2 whitespace-nowrap">مشتریان داخلی</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>

                    <!-- Add/Edit Form (Hidden by default) -->
                    <div id="subsidiary-account-form" class="bg-white p-4 rounded-lg shadow hidden">
                        <h3 class="font-semibold mb-4">فرم تعریف حساب معین</h3>
                        <form>
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">حساب کل</label>
                                    <select class="form-input">
                                        <option>انتخاب کنید</option>
                                        <option value="101">101 - بانک‌ها</option>
                                        <option value="121">121 - حساب‌های دریافتنی</option>
                                        <option value="131">131 - حساب‌های پرداختنی</option>
                                    </select>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">کد معین</label>
                                    <input type="text" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">نام معین</label>
                                    <input type="text" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">وضعیت</label>
                                    <select class="form-input">
                                        <option>فعال</option>
                                        <option>غیرفعال</option>
                                    </select>
                                </div>
                            </div>
                            <div class="flex justify-end">
                                <button type="button" onclick="hideForm('subsidiary-account-form')" class="bg-gray-300 text-gray-700 px-4 py-2 rounded hover:bg-gray-400 mr-2">انصراف</button>
                                <button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">ذخیره</button>
                            </div>
                        </form>
                    </div>
                </div>

                <!-- Level 4 Accounts Section -->
                <div id="level4-accounts" class="section-content hidden">
                    <div class="bg-white p-4 rounded-lg shadow mb-4">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="font-semibold">حساب‌های تفصیلی سطح ۴</h3>
                            <button onclick="showForm('level4-account-form')" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">
                                <i class="fas fa-plus ml-2"></i>حساب جدید
                            </button>
                        </div>
                        <div class="mb-4">
                            <div class="relative">
                                <input type="text" placeholder="جستجو در حساب‌های تفصیلی سطح ۴..." class="form-input pr-10">
                                <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                            </div>
                        </div>
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">کد معین</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">نام معین</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">کد سطح ۴</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">نام سطح ۴</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">وضعیت</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">عملیات</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">101010</td>
                                        <td class="px-4 py-2 whitespace-nowrap">بانک‌های ریالی</td>
                                        <td class="px-4 py-2 whitespace-nowrap">00001</td>
                                        <td class="px-4 py-2 whitespace-nowrap">شرکت الف</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">101010</td>
                                        <td class="px-4 py-2 whitespace-nowrap">بانک‌های ریالی</td>
                                        <td class="px-4 py-2 whitespace-nowrap">00002</td>
                                        <td class="px-4 py-2 whitespace-nowrap">شرکت ب</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">121010</td>
                                        <td class="px-4 py-2 whitespace-nowrap">مشتریان داخلی</td>
                                        <td class="px-4 py-2 whitespace-nowrap">00001</td>
                                        <td class="px-4 py-2 whitespace-nowrap">شرکت ج</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>

                    <!-- Add/Edit Form (Hidden by default) -->
                    <div id="level4-account-form" class="bg-white p-4 rounded-lg shadow hidden">
                        <h3 class="font-semibold mb-4">فرم تعریف حساب تفصیلی سطح ۴</h3>
                        <form>
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">حساب معین</label>
                                    <select class="form-input">
                                        <option>انتخاب کنید</option>
                                        <option value="101010">101010 - بانک‌های ریالی</option>
                                        <option value="101020">101020 - بانک‌های ارزی</option>
                                        <option value="121010">121010 - مشتریان داخلی</option>
                                    </select>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">کد سطح ۴</label>
                                    <input type="text" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">نام سطح ۴</label>
                                    <input type="text" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">وضعیت</label>
                                    <select class="form-input">
                                        <option>فعال</option>
                                        <option>غیرفعال</option>
                                    </select>
                                </div>
                            </div>
                            <div class="flex justify-end">
                                <button type="button" onclick="hideForm('level4-account-form')" class="bg-gray-300 text-gray-700 px-4 py-2 rounded hover:bg-gray-400 mr-2">انصراف</button>
                                <button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">ذخیره</button>
                            </div>
                        </form>
                    </div>
                </div>

                <!-- Level 5 Accounts Section -->
                <div id="level5-accounts" class="section-content hidden">
                    <div class="bg-white p-4 rounded-lg shadow mb-4">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="font-semibold">حساب‌های تفصیلی سطح ۵</h3>
                            <button onclick="showForm('level5-account-form')" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">
                                <i class="fas fa-plus ml-2"></i>حساب جدید
                            </button>
                        </div>
                        <div class="mb-4">
                            <div class="relative">
                                <input type="text" placeholder="جستجو در حساب‌های تفصیلی سطح ۵..." class="form-input pr-10">
                                <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                            </div>
                        </div>
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">کد سطح ۴</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">نام سطح ۴</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">کد سطح ۵</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">نام سطح ۵</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">وضعیت</th>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">عملیات</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">00001</td>
                                        <td class="px-4 py-2 whitespace-nowrap">شرکت الف</td>
                                        <td class="px-4 py-2 whitespace-nowrap">00001</td>
                                        <td class="px-4 py-2 whitespace-nowrap">پروژه الف</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">00001</td>
                                        <td class="px-4 py-2 whitespace-nowrap">شرکت الف</td>
                                        <td class="px-4 py-2 whitespace-nowrap">00002</td>
                                        <td class="px-4 py-2 whitespace-nowrap">پروژه ب</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr class="table-row">
                                        <td class="px-4 py-2 whitespace-nowrap">00002</td>
                                        <td class="px-4 py-2 whitespace-nowrap">شرکت ب</td>
                                        <td class="px-4 py-2 whitespace-nowrap">00001</td>
                                        <td class="px-4 py-2 whitespace-nowrap">پروژه ج</td>
                                        <td class="px-4 py-2 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">فعال</span></td>
                                        <td class="px-4 py-2 whitespace-nowrap">
                                            <button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                  <script>
  function showSection(id) {
    document.querySelectorAll('.section-content').forEach(section => {
      section.classList.add('hidden');
    });
    document.getElementById(id).classList.remove('hidden');

    const titles = {
      'dashboard': 'داشبورد',
      'org-units': 'واحدهای سازمانی',
      'job-positions': 'پست‌های سازمانی',
      'user-groups': 'گروه‌های کاربری',
      'users': 'کاربران',
      'account-levels': 'سطوح حسابداری',
      'subsidiary-accounts': 'حساب‌های معین',
      'level4-accounts': 'حساب‌های تفصیلی سطح ۴',
      'level5-accounts': 'حساب‌های تفصیلی سطح ۵',
      'level6-accounts': 'حساب‌های تفصیلی سطح ۶',
      'activities': 'فعالیت‌ها',
      'events': 'رویدادها',
      'record-events': 'ثبت رویدادها',
      'tracking-codes': 'کدهای رهگیری',
      'tasks': 'کارتابل',
      'reports': 'گزارشات',
      'settings': 'تنظیمات'
    };
    document.getElementById('section-title').textContent = titles[id] || '';
  }

  function showForm(id) {
    document.getElementById(id).classList.remove('hidden');
  }

  function hideForm(id) {
    document.getElementById(id).classList.add('hidden');
  }

  document.addEventListener("DOMContentLoaded", function() {
    showSection('dashboard');
  });
</script>


                    <!-- Add/Edit Form (Hidden by default) -->
                    <div id="level5-account-form" class="bg-white p-4 rounded-lg shadow hidden">
                        <h3 class="font-semibold mb-4">فرم تعریف حساب تفصیلی سطح ۵</h3>
                        <form>
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">حساب سطح ۴</label>
                                    <select class="form-input">
                                        <option>انتخاب کنید</option>
                                        <option value="00001">00001 - شرکت الف</option>
                                        <option value="00002">00002 - شرکت ب</option>
                                        <option value="00003">00003 - شرکت ج</option>
                                    </select>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">کد سطح ۵</label>
                                    <input type="text" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">نام سطح ۵</label>
                                    <input type="text" class="form-input">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">وضعیت</label>
                                    <select class="form-input">
                                        <option>فعال</option>
                                        <option>غیرفعال</option>
                                    </select>
                                </div>
                            </div>
                            <div class="flex justify-end">
                                <button type="button" onclick="hideForm('level5-account-form')" class="bg-gray-300 text-gray-700 px-4 py-2 rounded hover:bg-gray-400 mr-2">انصراف</button>
                                <button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">ذخیره</button>
                            </div>
                        </form>
                    </div>
                </div>

                <!-- Level 6 Accounts Section -->
                <div id="level6-accounts" class="section-content hidden">
                    <div class="bg-white p-4 rounded-lg shadow mb-4">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="font-semibold">حساب‌های تفصیلی سطح ۶</h3>
                            <button onclick="showForm('level6-account-form')" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">
                                <i class="fas fa-plus ml-2"></i>حساب جدید
                            </button>
                        </div>
                        <div class="mb-4">
                            <div class="relative">
                                <input type="text" placeholder="جستجو در حساب‌های تفصیلی سطح ۶..." class="form-input pr-10">
                                <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                            </div>
                        </div>
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">کد
</html>