Spaces:
Sleeping

File size: 17,619 Bytes
c721943
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cc13997
 
 
 
 
8412046
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3ebe3d6
2614483
 
3ebe3d6
 
 
2614483
 
3ebe3d6
 
2614483
 
 
 
 
 
 
469435f
 
 
 
 
 
 
 
a0c34bf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
be6305e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
771d17d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fc2562d
e94c8b5
01998f2
 
fc2562d
 
01998f2
fc2562d
01998f2
c16e551
 
fc2562d
01998f2
 
fc2562d
e94c8b5
01998f2
0705c31
 
01998f2
 
 
 
 
c16e551
01998f2
fc2562d
0a173fe
0705c31
 
01998f2
 
0705c31
e94c8b5
c16e551
fc2562d
0a173fe
fc2562d
01998f2
0705c31
 
01998f2
 
 
 
 
 
 
fc2562d
0705c31
 
fc2562d
 
 
01998f2
 
0705c31
fc2562d
0705c31
 
01998f2
fc2562d
0705c31
388e2d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e94c8b5
66ffb9f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b40ce56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6a49beb
 
 
 
a432f32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* Giao diện tổng thể */
body {
  margin: 0;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background-color: #eef1f7;
}

/* Hộp đăng nhập */
.login-box {
  max-width: 400px;
  margin: 100px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Layout dashboard */
.container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: linear-gradient(to bottom, #2b6cb0, #2c5282);
  color: white;
  padding: 20px;
  overflow-y: auto;
}

.sidebar h2 {
  font-size: 20px;
  margin-bottom: 30px;
  font-weight: 600;
}

.sidebar .menu-item {
  cursor: pointer;
  padding: 10px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.sidebar .menu-item:hover,
.sidebar .menu-item.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .submenu a {
  display: block;
  color: #e0e0e0;
  font-size: 14px;
  margin: 6px 0 6px 10px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

.sidebar .submenu a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.arrow {
  float: right;
  font-size: 12px;
}

/* Phần nội dung chính */
.main {
  flex: 1;
  padding: 30px;
  background-color: #f9fafc;
  overflow-y: auto;
}

/* Khối số liệu */
.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.stat-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  flex: 1;
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.stat-title {
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #2b6cb0;
}

/* Bảng */
table.dataTable {
  width: 100% !important;
  border-collapse: collapse;
}

table.dataTable th,
table.dataTable td {
  padding: 10px;
  text-align: left;
}

table.dataTable thead {
  background-color: #2b6cb0;
  color: white;
}

table.dataTable tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

table.dataTable tbody tr:hover {
  background-color: #e0ebff;
}

/* Biểu đồ, iframe */
.chart-container,
#pdfViewer,
#qtViewer {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Hồ sơ năng lực */
.hso-nang-luc {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  font-family: "Segoe UI", sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hso-nang-luc h2 {
  color: #2b6cb0;
  font-size: 24px;
  margin-bottom: 10px;
}

.hso-nang-luc h3 {
  color: #1a202c;
  margin-top: 20px;
}

.hso-nang-luc ul {
  padding-left: 20px;
}

.hso-nang-luc table.display {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
}

.hso-nang-luc table.display th,
.hso-nang-luc table.display td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.hso-nang-luc table.display th {
  background-color: #2b6cb0;
  color: white;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
  }

  .main {
    padding: 20px;
  }
}
#bangDanhMucThietBi {
  border-collapse: collapse;
  width: 100%;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  background-color: #fff;
  margin-top: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#bangDanhMucThietBi th,
#bangDanhMucThietBi td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

#bangDanhMucThietBi thead {
  background-color: #1e3a8a;
  color: white;
  font-weight: bold;
}

#bangDanhMucThietBi tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

#bangDanhMucThietBi tbody tr:hover {
  background-color: #e6f7ff;
  transition: background-color 0.2s ease-in-out;
}
#bangHoaChat input.input-cell {
  width: 100%;
  border: 1px solid #ccc;
  padding: 4px 6px;
  font-size: 13px;
  text-align: center;
  box-sizing: border-box;
}
#bangHoaChat th, #bangHoaChat td {
  border: 1px solid #ddd;
  padding: 6px;
}
#bangHoaChat {
  border-collapse: collapse;
}
/* === Input chỉnh sửa === */
.input-cell, .input-area {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  padding: 4px 6px;
  resize: none;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: break-word;
  min-height: 48px;
  line-height: 1.4;
  box-sizing: border-box;
}

.input-cell:focus, .input-area:focus {
  background: #fff8dc;
  outline: 1px solid #2b6cb0;
}

/* === DataTables tổng thể === */
table.dataTable {
  font-size: 14px;
  border-collapse: collapse;
  width: 100%;
}
table.dataTable th,
table.dataTable td {
  padding: 8px 12px;
  text-align: left;
  border: 1px solid #ccc;
}
table.dataTable thead th {
  background-color: #2b6cb0;
  color: white;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
}
table.dataTable thead tr:nth-child(2) th {
  background-color: #4682b4;
  color: white;
}
table.dataTable tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}
table.dataTable tbody tr:hover {
  background-color: #f1f7ff;
}

/* === Checkbox tô màu theo trạng thái === */
.checkbox-full,
.checkbox-cell {
  width: 18px;
  height: 18px;
  accent-color: #2b6cb0;
}
td:has(.checkbox-cell:checked),
td:has(.checkbox-full:checked) {
  background-color: #c6f6d5 !important; /* Xanh nhạt */
}
td:has(.checkbox-cell:not(:checked)),
td:has(.checkbox-full:not(:checked)) {
  background-color: #fed7d7 !important; /* Đỏ nhạt */
}
tr.full-row {
  background-color: #d2f8d2 !important;
}
tr.not-full-row {
  background-color: #fde2e2 !important;
}

/* === Cập nhật độ rộng từng cột của bảng #bangHSKH === */
#bangHSKH {
  table-layout: fixed !important;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
#bangHSKH th,
#bangHSKH td {
  padding: 16px 8px;
  vertical-align: middle;
  text-align: center;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

/* STT */
#bangHSKH th:nth-child(1),
#bangHSKH td:nth-child(1) {
  width: 30px;
  max-width: 40px;
}
/* Số PYC */
#bangHSKH th:nth-child(2),
#bangHSKH td:nth-child(2) {
  width: 130px;
}
/* Tên khách hàng */
#bangHSKH th:nth-child(3),
#bangHSKH td:nth-child(3) {
  width: 300px;
}
/* Tên cơ sở sử dụng */
#bangHSKH th:nth-child(4),
#bangHSKH td:nth-child(4) {
  width: 300px;
}
/* Người tiếp nhận */
#bangHSKH th:nth-child(5),
#bangHSKH td:nth-child(5) {
  width: 150px;
}
/* Phòng Y/C */
#bangHSKH th:nth-child(6),
#bangHSKH td:nth-child(6) {
  width: 100px;
}
/* Số hóa đơn */
#bangHSKH th:nth-child(7),
#bangHSKH td:nth-child(7) {
  width: 160px;
}
/* Số tiền */
#bangHSKH th:nth-child(8),
#bangHSKH td:nth-child(8) {
  width: 100px;
}
/* Full, PYC, BB, GCN */
#bangHSKH th:nth-child(9),
#bangHSKH td:nth-child(9),
#bangHSKH th:nth-child(10),
#bangHSKH td:nth-child(10),
#bangHSKH th:nth-child(11),
#bangHSKH td:nth-child(11),
#bangHSKH th:nth-child(12),
#bangHSKH td:nth-child(12) {
  width: 30px;
  max-width: 30px;
}
/* Ghi chú */
#bangHSKH th:nth-child(13),
#bangHSKH td:nth-child(13) {
  width: 180px;
}

/* Tiêu đề bảng riêng biệt nếu dùng */
.tieu-de-bang {
  text-align: center;
  font-size: 18px;
  color: #2b6cb0;
  font-weight: bold;
  margin-bottom: 8px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Tiêu đề ghép cột nếu dùng colspan */
#bangHSKH thead th[colspan] {
  padding: 16px;
  font-size: 20px;
  text-align: center;
  background-color: #2b6cb0;
  color: white;
  border: 1px solid #ddd;
}

.textarea-cell {
  width: 100%;
  resize: vertical;
  height: auto;
  min-height: 50px;
  font-size: 14px;
  padding: 6px 8px;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  line-height: 1.4;
  box-sizing: border-box;
  overflow: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.textarea-cell:focus {
  outline: none;
  background-color: #f0f8ff;
}
.input-area {
  width: 100%;
  min-height: 60px;
  padding: 6px 8px;
  font-size: 14px;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow: auto;
  word-wrap: break-word;
}

.input-area:focus {
  outline: none;
  background-color: #fff9e6;
}
#bangHSKH {
  table-layout: auto !important;
}
tr input[readonly] {
  font-weight: bold;
  border: none;
  background: transparent;
}
#taipyc {
  display: none;
  padding: 40px;
  background: #f7f9fb;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  font-family: "Segoe UI", sans-serif;
}

#taipyc h2 {
  font-size: 24px;
  color: #2b6cb0;
  margin-bottom: 20px;
}

#formUploadPYC {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

#filePYC {
  padding: 10px;
  border: 2px dashed #2b6cb0;
  border-radius: 8px;
  background-color: #fff;
  font-size: 14px;
}

#formUploadPYC button {
  padding: 10px 20px;
  background-color: #2b6cb0;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

#formUploadPYC button:hover {
  background-color: #1a4f91;
}

#uploadStatus {
  margin-top: 15px;
  font-weight: bold;
  color: #2b6cb0;
}
#tableBangGia6 {
  table-layout: fixed;
  width: 100% !important;
  border-collapse: collapse;
}

#tableBangGia6 th,
#tableBangGia6 td {
  white-space: normal;
  word-wrap: break-word;
  padding: 8px;
  border: 1px solid #ccc;
  vertical-align: middle;
  font-size: 13px;
  text-align: center;
}

#tableBangGia6 td:nth-child(1),
#tableBangGia6 th:nth-child(1),
#tableBangGia6 td:nth-child(2),
#tableBangGia6 th:nth-child(2),
#tableBangGia6 td:nth-child(3),
#tableBangGia6 th:nth-child(3),{
  text-align: left;
}
#tableBangGia2 {
  table-layout: fixed;
  width: 100% !important;
  border-collapse: collapse;
}

#tableBangGia2 th,
#tableBangGia2 td {
  white-space: normal;
  word-wrap: break-word;
  padding: 8px;
  border: 1px solid #ccc;
  vertical-align: middle;
  font-size: 13px;
  text-align: center;
}

#tableBangGia2 th:nth-child(1),
#tableBangGia2 td:nth-child(1) {
  text-align: left;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #2b6cb0;
  margin-bottom: 20px;
}
#tableBangGia4 {
  table-layout: fixed;
  width: 100% !important;
  border-collapse: collapse;
}

#tableBangGia4 th,
#tableBangGia4 td {
  white-space: normal;
  word-wrap: break-word;
  padding: 8px;
  border: 1px solid #ccc;
  vertical-align: middle;
  font-size: 13px;
  text-align: center;
}

#tableBangGia4 th:nth-child(1),
#tableBangGia4 td:nth-child(1) {
  text-align: left;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #2b6cb0;
  margin-bottom: 20px;
}
#tableBangGia3 {
  table-layout: fixed;
  width: 100% !important;
  border-collapse: collapse;
}

#tableBangGia3 th,
#tableBangGia3 td {
  white-space: normal;
  word-wrap: break-word;
  padding: 8px;
  border: 1px solid #ccc;
  vertical-align: middle;
  font-size: 13px;
  text-align: center;
}

#tableBangGia3 th:nth-child(1),
#tableBangGia3 td:nth-child(1) {
  text-align: left;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #2b6cb0;
  margin-bottom: 20px;
}
#taikemtheo {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', sans-serif;
  border: 1px solid #e0e0e0;
}

#taikemtheo h2 {
  text-align: center;
  color: #2b6cb0;
  font-size: 22px;
  margin-bottom: 25px;
  font-weight: 700;
}

.form-container .form-group {
  margin-bottom: 20px;
}

.form-container label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.form-container select,
.form-container input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease;
}

.form-container select:focus,
.form-container input[type="file"]:focus {
  border-color: #2b6cb0;
  outline: none;
}

.btn-tai {
  width: 100%;
  background-color: #2b6cb0;
  color: white;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-tai:hover {
  background-color: #1e4f91;
}
#banggia5 {
  margin: 30px auto;
  max-width: 95%;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
}

#bangBangGia5 {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#bangBangGia5 th,
#bangBangGia5 td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}

#bangBangGia5 th {
  background-color: #2b6cb0;
  color: white;
}

#bangBangGia5 tr:nth-child(even) {
  background-color: #f9f9f9;
}

#bangBangGia5 tr:hover {
  background-color: #eef2f8;
}

/* ===== Mobile first: tối ưu < 768px ===== */
@media (max-width: 768px) {
  /* Topbar cố định */
  .topbar {
    position: sticky; top: 0; z-index: 1001;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; background: #2b6cb0; color: #fff;
  }
  .topbar #btnMenu { font-size: 20px; line-height: 1; padding: 6px 10px; background: #1e4e86; color: #fff; border: 0; border-radius: 6px; }
  .topbar-title { font-weight: 600; }

  /* Biến sidebar thành off-canvas */
  .container { flex-direction: column; height: auto; overflow: visible; } /* hiện tại bạn mới đổi direction thôi :contentReference[oaicite:3]{index=3} */
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: 80vw; max-width: 320px; height: 100dvh;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 2px 0 16px rgba(0,0,0,.2);
  }
  .sidebar.open { transform: translateX(0); }
  /* khi mở menu, chặn cuộn nền */
  body.menu-open { overflow: hidden; }

  /* Nội dung chính lùi xuống dưới topbar */
  .main { padding: 16px; margin-top: 8px; }

  /* Menu con: tăng khoảng chạm */
  .sidebar .submenu a { padding: 10px 12px; font-size: 15px; }

  /* Card số liệu: 1 cột */
  .stats { gap: 12px; }
  .stat-box { padding: 14px; min-width: 0; }
  .stat-value { font-size: 22px; }

  /* Bảng: cho phép cuộn ngang, tránh vỡ layout */
  .dataTables_wrapper { overflow-x: auto; }
  table.dataTable { width: 800px; /* chiều rộng tối thiểu để không vỡ cell */ }

  /* Iframe/PDF/canvas linh hoạt chiều cao nhỏ hơn trên mobile */
  #pdfViewer iframe, #qtViewer iframe, canvas { height: 60vh !important; }
}

/* Một số tinh chỉnh chung cho bảng nhiều cột (#bangHSKH) vốn đang set width cứng */
@media (max-width: 768px) {
  #bangHSKH { table-layout: auto !important; font-size: 13px; } /* bạn đã có rule tương tự nhưng nhắc lại để đảm bảo ưu tiên. :contentReference[oaicite:4]{index=4} */
}

/* ===== Chatbot styles ===== */
.chat-title{margin:0 0 10px 0;font-size:18px;color:#2b6cb0;font-weight:600;}
.chat-window{
  border:1px solid #e2e8f0;border-radius:10px;padding:12px;background:#fff;
  height:420px;overflow-y:auto;
}
.chat-input-bar{display:flex;gap:8px;margin-top:10px;}
.chat-input{
  flex:1;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;outline:none;
}
.chat-input:focus{border-color:#2b6cb0;box-shadow:0 0 0 3px rgba(43,108,176,.15);}
.chat-send{
  padding:10px 16px;border:none;border-radius:8px;background:#2b6cb0;color:#fff;
  font-weight:600;cursor:pointer;
}
.chat-send:disabled{opacity:.6;cursor:not-allowed;}
.chat-bubble{
  max-width:80%;padding:8px 12px;margin:6px 0;border-radius:12px;
  white-space:pre-wrap;word-break:break-word;line-height:1.4;font-size:14px;
}
.chat-bubble.user{background:#e9f2ff;margin-left:auto;}
.chat-bubble.bot{background:#f5f5f5;margin-right:auto;}
.chat-meta{font-size:12px;color:#475569;margin-top:4px;white-space:pre-wrap;}
@media (max-width:640px){.chat-window{height:60vh}}
.chat-window{
  border:1px solid #ddd; border-radius:12px; padding:12px;
  height:420px; overflow:auto; background:#fff;
}
/* ===== PYC Incremental ===== */
#pycinc {
  padding: 15px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

#pycinc h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #2b6cb0;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 4px;
}

#pycinc .controls label {
  font-weight: 500;
  color: #333;
}

#pycinc select,
#pycinc button {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#pycinc button {
  background-color: #2b6cb0;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

#pycinc button:hover {
  background-color: #225ea8;
}

#pycinc #incStatus {
  font-size: 13px;
  font-style: italic;
}

#pycinc .chart-container {
  margin-top: 12px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  min-height: 80px;
  line-height: 1.5;
}

#pycinc details {
  margin-top: 12px;
}

#pycinc details summary {
  cursor: pointer;
  font-weight: 500;
  color: #2b6cb0;
}

#pycinc details div {
  background: #f8fafc;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  max-height: 250px;
  overflow-y: auto;
}

#pycinc ul {
  margin: 0;
  padding-left: 20px;
}

#pycinc li {
  padding: 2px 0;
}