@aseansc/ui 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1276 @@
1
+ @charset "UTF-8";
2
+ /*
3
+ * @aseansc/ui — Preset CSS
4
+ *
5
+ * Consumer app import file này 1 lần vào styles.scss bằng CSS @import
6
+ * (không dùng Sass @use — xem tools/scripts/build-ui-preset-css.mjs):
7
+ * @import "@aseansc/ui/preset.css";
8
+ *
9
+ * File này cung cấp:
10
+ * 1. TailwindCSS v4 base + utilities
11
+ * 2. tailwindcss-primeui plugin (Tailwind utilities cho PrimeNG CSS vars)
12
+ * 3. PrimeIcons font
13
+ * 4. ASC design tokens (CSS custom properties)
14
+ * 5. Base resets
15
+ *
16
+ * Bản build (dist/libs/ui/tokens/preset.css) được tools/scripts/build-ui-preset-css.mjs
17
+ * biên dịch lại từ file này và tự thêm 1 khai báo @source trỏ vào bundle fesm2022 ngay sau
18
+ * @import "tailwindcss" — nhờ đó Tailwind ở app consumer tự nhận diện được các class
19
+ * dùng trong template của @aseansc/ui mà không cần khai báo @source thủ công.
20
+ */
21
+ /* Font Inter — self-host trong package (tokens/fonts/*.woff2) thay vì load
22
+ qua Google Fonts CDN: build production của Angular tự động "inline fonts"
23
+ (fetch CSS + font qua HTTPS lúc build) — fail ở môi trường build không có
24
+ internet ra ngoài hoặc sau proxy chặn TLS (rất phổ biến trong mạng nội bộ
25
+ doanh nghiệp). Self-host loại bỏ hoàn toàn network call lúc build/runtime.
26
+ Chỉ bundle 3 subset cần dùng (latin, latin-ext, vietnamese) — bỏ
27
+ cyrillic/greek vì app chỉ dùng tiếng Việt/Anh. File là variable font nên
28
+ 1 file dùng chung cho mọi font-weight (400/500/600/700). */
29
+ @import "primeicons/primeicons.css";
30
+ @font-face {
31
+ font-family: "Inter";
32
+ font-style: normal;
33
+ font-weight: 400 700;
34
+ font-display: swap;
35
+ src: url("./fonts/inter-latin.woff2") format("woff2");
36
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
37
+ }
38
+ @font-face {
39
+ font-family: "Inter";
40
+ font-style: normal;
41
+ font-weight: 400 700;
42
+ font-display: swap;
43
+ src: url("./fonts/inter-latin-ext.woff2") format("woff2");
44
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
45
+ }
46
+ @font-face {
47
+ font-family: "Inter";
48
+ font-style: normal;
49
+ font-weight: 400 700;
50
+ font-display: swap;
51
+ src: url("./fonts/inter-vietnamese.woff2") format("woff2");
52
+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
53
+ }
54
+ :root {
55
+ --asc-color-primary-lighter: #ffebea;
56
+ --asc-color-primary-light: #ffd8d6;
57
+ --asc-color-primary-subtle: #ffb1ac;
58
+ --asc-color-primary: #f74036;
59
+ --asc-color-primary-hover: #e6271b;
60
+ --asc-color-primary-active: #b7251d;
61
+ --asc-color-primary-text: #ffffff;
62
+ --asc-color-success: #10b981;
63
+ --asc-color-success-bg: #ecfdf5;
64
+ --asc-color-success-border: #dcfce7;
65
+ --asc-color-warning: #f59e0b;
66
+ --asc-color-warning-bg: #fefce8;
67
+ --asc-color-warning-border: #fef9c3;
68
+ --asc-color-danger: #ef4444;
69
+ --asc-color-danger-bg: #fef2f2;
70
+ --asc-color-danger-border: #fee2e2;
71
+ --asc-color-info: #3b82f6;
72
+ --asc-color-info-bg: #eff6ff;
73
+ --asc-color-info-border: #dbeafe;
74
+ --asc-surface-ground: #fafafc;
75
+ --asc-surface-base: #ffffff;
76
+ --asc-surface-overlay: #ffffff;
77
+ --asc-surface-hover: #f2f3f5;
78
+ --asc-surface-active: #dedfe0;
79
+ --asc-surface-50: #f2f3f5;
80
+ --asc-border-color: #dedfe0;
81
+ --asc-border-color-strong: #a7a7a8;
82
+ --asc-border-color-focus: #3b82f6;
83
+ --asc-border-color-invalid: #ef4444;
84
+ --asc-border-color-brand: #f74036;
85
+ --asc-text-primary: #0f0f0f;
86
+ --asc-text-secondary: #5b5b5c;
87
+ --asc-text-muted: #747475;
88
+ --asc-text-disabled: #c0c0c2;
89
+ --asc-text-inverse: #ffffff;
90
+ --asc-text-placeholder: #747475;
91
+ --asc-text-link: #2563eb;
92
+ --asc-text-link-hover: #1d4ed8;
93
+ --asc-text-invalid: #ef4444;
94
+ --asc-text-brand: #f74036;
95
+ --asc-icon-primary: #0f0f0f;
96
+ --asc-icon-secondary: #8d8e8f;
97
+ --asc-icon-disabled: #c0c0c2;
98
+ --asc-icon-brand: #f74036;
99
+ --asc-icon-link: #2563eb;
100
+ --asc-icon-danger: #ef4444;
101
+ --asc-icon-success: #10b981;
102
+ --asc-icon-info: #3b82f6;
103
+ --asc-font-family: 'Inter', -apple-system, BlinkMacSystemFont,
104
+ 'Segoe UI', sans-serif;
105
+ --asc-font-family-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
106
+ --asc-font-size-base: 14px;
107
+ --asc-line-height-base: 1.5;
108
+ --asc-space-component-xs: 4px;
109
+ --asc-space-component-sm: 8px;
110
+ --asc-space-component-md: 12px;
111
+ --asc-space-component-lg: 16px;
112
+ --asc-space-component-xl: 24px;
113
+ --asc-radius-sm: 4px;
114
+ --asc-radius-md: 6px;
115
+ --asc-radius-lg: 8px;
116
+ --asc-radius-xl: 12px;
117
+ --asc-radius-full: 9999px;
118
+ --asc-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
119
+ --asc-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
120
+ --asc-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
121
+ --asc-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
122
+ --asc-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
123
+ --asc-text-xs: 12px;
124
+ --asc-text-sm: 14px;
125
+ --asc-text-md: 16px;
126
+ --asc-text-lg: 18px;
127
+ --asc-text-xl: 20px;
128
+ --asc-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
129
+ --asc-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
130
+ --asc-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
131
+ --asc-z-dropdown: 1000;
132
+ --asc-z-sticky: 1020;
133
+ --asc-z-fixed: 1030;
134
+ --asc-z-modal-bg: 1040;
135
+ --asc-z-modal: 1050;
136
+ --asc-z-popover: 1060;
137
+ --asc-z-tooltip: 1100;
138
+ --asc-z-toast: 1200;
139
+ --asc-h-xs: 24px;
140
+ --asc-h-sm: 32px;
141
+ --asc-h-md: 36px;
142
+ --asc-h-lg: 48px;
143
+ --asc-h-xl: 56px;
144
+ }
145
+
146
+ .app-dark {
147
+ --asc-color-primary-lighter: #6e0f0a;
148
+ --asc-color-primary-light: #921a13;
149
+ --asc-color-primary-subtle: #b7251d;
150
+ --asc-color-primary: #f74036;
151
+ --asc-color-primary-hover: #ff6259;
152
+ --asc-color-primary-active: #ff8983;
153
+ --asc-color-success-bg: #022c22;
154
+ --asc-color-warning-bg: #422006;
155
+ --asc-color-danger-bg: #5c0a05;
156
+ --asc-color-info-bg: #172554;
157
+ --asc-surface-ground: #0c0c0d;
158
+ --asc-surface-base: #282829;
159
+ --asc-surface-overlay: #282829;
160
+ --asc-surface-hover: #282829;
161
+ --asc-surface-active: #424242;
162
+ --asc-border-color: #424242;
163
+ --asc-border-color-strong: #747475;
164
+ --asc-border-color-focus: #60a5fa;
165
+ --asc-border-color-brand: #f74036;
166
+ --asc-text-primary: #fafafc;
167
+ --asc-text-secondary: #c0c0c2;
168
+ --asc-text-muted: #a7a7a8;
169
+ --asc-text-disabled: #5b5b5c;
170
+ --asc-text-placeholder: #a7a7a8;
171
+ --asc-text-link: #60a5fa;
172
+ --asc-text-link-hover: #60a5fa;
173
+ --asc-text-brand: #f74036;
174
+ --asc-icon-primary: #fafafc;
175
+ --asc-icon-secondary: #8d8e8f;
176
+ --asc-icon-disabled: #5b5b5c;
177
+ --asc-icon-brand: #f74036;
178
+ --asc-icon-link: #2563eb;
179
+ --asc-icon-danger: #ef4444;
180
+ --asc-icon-success: #10b981;
181
+ --asc-icon-info: #3b82f6;
182
+ --asc-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.3);
183
+ --asc-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
184
+ --asc-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
185
+ --asc-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
186
+ --asc-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
187
+ }
188
+
189
+ .asc-typo-h1-80-bold {
190
+ font-family: var(--asc-font-family);
191
+ font-size: 80px;
192
+ line-height: 96px;
193
+ font-weight: 700;
194
+ text-decoration: none;
195
+ letter-spacing: 0;
196
+ margin: 0;
197
+ }
198
+
199
+ .asc-typo-h1-80-semibold {
200
+ font-family: var(--asc-font-family);
201
+ font-size: 80px;
202
+ line-height: 96px;
203
+ font-weight: 600;
204
+ text-decoration: none;
205
+ letter-spacing: 0;
206
+ margin: 0;
207
+ }
208
+
209
+ .asc-typo-h2-64-bold {
210
+ font-family: var(--asc-font-family);
211
+ font-size: 64px;
212
+ line-height: 77px;
213
+ font-weight: 700;
214
+ text-decoration: none;
215
+ letter-spacing: 0;
216
+ margin: 0;
217
+ }
218
+
219
+ .asc-typo-h2-64-semibold {
220
+ font-family: var(--asc-font-family);
221
+ font-size: 64px;
222
+ line-height: 77px;
223
+ font-weight: 600;
224
+ text-decoration: none;
225
+ letter-spacing: 0;
226
+ margin: 0;
227
+ }
228
+
229
+ .asc-typo-h3-48-bold {
230
+ font-family: var(--asc-font-family);
231
+ font-size: 48px;
232
+ line-height: 58px;
233
+ font-weight: 700;
234
+ text-decoration: none;
235
+ letter-spacing: 0;
236
+ margin: 0;
237
+ }
238
+
239
+ .asc-typo-h3-48-semibold {
240
+ font-family: var(--asc-font-family);
241
+ font-size: 48px;
242
+ line-height: 58px;
243
+ font-weight: 600;
244
+ text-decoration: none;
245
+ letter-spacing: 0;
246
+ margin: 0;
247
+ }
248
+
249
+ .asc-typo-h4-40-bold {
250
+ font-family: var(--asc-font-family);
251
+ font-size: 40px;
252
+ line-height: 48px;
253
+ font-weight: 700;
254
+ text-decoration: none;
255
+ letter-spacing: 0;
256
+ margin: 0;
257
+ }
258
+
259
+ .asc-typo-h4-40-semibold {
260
+ font-family: var(--asc-font-family);
261
+ font-size: 40px;
262
+ line-height: 48px;
263
+ font-weight: 600;
264
+ text-decoration: none;
265
+ letter-spacing: 0;
266
+ margin: 0;
267
+ }
268
+
269
+ .asc-typo-h5-32-bold {
270
+ font-family: var(--asc-font-family);
271
+ font-size: 32px;
272
+ line-height: 39px;
273
+ font-weight: 700;
274
+ text-decoration: none;
275
+ letter-spacing: 0;
276
+ margin: 0;
277
+ }
278
+
279
+ .asc-typo-h5-32-semibold {
280
+ font-family: var(--asc-font-family);
281
+ font-size: 32px;
282
+ line-height: 39px;
283
+ font-weight: 600;
284
+ text-decoration: none;
285
+ letter-spacing: 0;
286
+ margin: 0;
287
+ }
288
+
289
+ .asc-typo-title-24-regular {
290
+ font-family: var(--asc-font-family);
291
+ font-size: 24px;
292
+ line-height: 36px;
293
+ font-weight: 400;
294
+ text-decoration: none;
295
+ letter-spacing: 0;
296
+ margin: 0;
297
+ }
298
+
299
+ .asc-typo-title-24-medium {
300
+ font-family: var(--asc-font-family);
301
+ font-size: 24px;
302
+ line-height: 36px;
303
+ font-weight: 500;
304
+ text-decoration: none;
305
+ letter-spacing: 0;
306
+ margin: 0;
307
+ }
308
+
309
+ .asc-typo-title-24-semibold {
310
+ font-family: var(--asc-font-family);
311
+ font-size: 24px;
312
+ line-height: 36px;
313
+ font-weight: 600;
314
+ text-decoration: none;
315
+ letter-spacing: 0;
316
+ margin: 0;
317
+ }
318
+
319
+ .asc-typo-title-24-bold {
320
+ font-family: var(--asc-font-family);
321
+ font-size: 24px;
322
+ line-height: 36px;
323
+ font-weight: 700;
324
+ text-decoration: none;
325
+ letter-spacing: 0;
326
+ margin: 0;
327
+ }
328
+
329
+ .asc-typo-title-20-regular {
330
+ font-family: var(--asc-font-family);
331
+ font-size: 20px;
332
+ line-height: 30px;
333
+ font-weight: 400;
334
+ text-decoration: none;
335
+ letter-spacing: 0;
336
+ margin: 0;
337
+ }
338
+
339
+ .asc-typo-title-20-medium {
340
+ font-family: var(--asc-font-family);
341
+ font-size: 20px;
342
+ line-height: 30px;
343
+ font-weight: 500;
344
+ text-decoration: none;
345
+ letter-spacing: 0;
346
+ margin: 0;
347
+ }
348
+
349
+ .asc-typo-title-20-semibold {
350
+ font-family: var(--asc-font-family);
351
+ font-size: 20px;
352
+ line-height: 30px;
353
+ font-weight: 600;
354
+ text-decoration: none;
355
+ letter-spacing: 0;
356
+ margin: 0;
357
+ }
358
+
359
+ .asc-typo-title-20-bold {
360
+ font-family: var(--asc-font-family);
361
+ font-size: 20px;
362
+ line-height: 30px;
363
+ font-weight: 700;
364
+ text-decoration: none;
365
+ letter-spacing: 0;
366
+ margin: 0;
367
+ }
368
+
369
+ .asc-typo-text-18-regular {
370
+ font-family: var(--asc-font-family);
371
+ font-size: 18px;
372
+ line-height: 27px;
373
+ font-weight: 400;
374
+ text-decoration: none;
375
+ letter-spacing: 0;
376
+ margin: 0;
377
+ }
378
+
379
+ .asc-typo-text-18-medium {
380
+ font-family: var(--asc-font-family);
381
+ font-size: 18px;
382
+ line-height: 27px;
383
+ font-weight: 500;
384
+ text-decoration: none;
385
+ letter-spacing: 0;
386
+ margin: 0;
387
+ }
388
+
389
+ .asc-typo-text-18-semibold {
390
+ font-family: var(--asc-font-family);
391
+ font-size: 18px;
392
+ line-height: 27px;
393
+ font-weight: 600;
394
+ text-decoration: none;
395
+ letter-spacing: 0;
396
+ margin: 0;
397
+ }
398
+
399
+ .asc-typo-text-18-bold {
400
+ font-family: var(--asc-font-family);
401
+ font-size: 18px;
402
+ line-height: 27px;
403
+ font-weight: 700;
404
+ text-decoration: none;
405
+ letter-spacing: 0;
406
+ margin: 0;
407
+ }
408
+
409
+ .asc-typo-text-16-regular {
410
+ font-family: var(--asc-font-family);
411
+ font-size: 16px;
412
+ line-height: 24px;
413
+ font-weight: 400;
414
+ text-decoration: none;
415
+ letter-spacing: 0;
416
+ margin: 0;
417
+ }
418
+
419
+ .asc-typo-text-16-medium {
420
+ font-family: var(--asc-font-family);
421
+ font-size: 16px;
422
+ line-height: 24px;
423
+ font-weight: 500;
424
+ text-decoration: none;
425
+ letter-spacing: 0;
426
+ margin: 0;
427
+ }
428
+
429
+ .asc-typo-text-16-semibold {
430
+ font-family: var(--asc-font-family);
431
+ font-size: 16px;
432
+ line-height: 24px;
433
+ font-weight: 600;
434
+ text-decoration: none;
435
+ letter-spacing: 0;
436
+ margin: 0;
437
+ }
438
+
439
+ .asc-typo-text-16-bold {
440
+ font-family: var(--asc-font-family);
441
+ font-size: 16px;
442
+ line-height: 24px;
443
+ font-weight: 700;
444
+ text-decoration: none;
445
+ letter-spacing: 0;
446
+ margin: 0;
447
+ }
448
+
449
+ .asc-typo-text-16-underline {
450
+ font-family: var(--asc-font-family);
451
+ font-size: 16px;
452
+ line-height: 24px;
453
+ font-weight: 400;
454
+ text-decoration: underline;
455
+ letter-spacing: 0;
456
+ margin: 0;
457
+ }
458
+
459
+ .asc-typo-text-16-strikethrough {
460
+ font-family: var(--asc-font-family);
461
+ font-size: 16px;
462
+ line-height: 24px;
463
+ font-weight: 400;
464
+ text-decoration: line-through;
465
+ letter-spacing: 0;
466
+ margin: 0;
467
+ }
468
+
469
+ .asc-typo-text-16-button {
470
+ font-family: var(--asc-font-family);
471
+ font-size: 16px;
472
+ line-height: 24px;
473
+ font-weight: 600;
474
+ text-decoration: none;
475
+ letter-spacing: 0;
476
+ margin: 0;
477
+ }
478
+
479
+ .asc-typo-text-14-regular {
480
+ font-family: var(--asc-font-family);
481
+ font-size: 14px;
482
+ line-height: 20px;
483
+ font-weight: 400;
484
+ text-decoration: none;
485
+ letter-spacing: 0;
486
+ margin: 0;
487
+ }
488
+
489
+ .asc-typo-text-14-medium {
490
+ font-family: var(--asc-font-family);
491
+ font-size: 14px;
492
+ line-height: 20px;
493
+ font-weight: 500;
494
+ text-decoration: none;
495
+ letter-spacing: 0;
496
+ margin: 0;
497
+ }
498
+
499
+ .asc-typo-text-14-semibold {
500
+ font-family: var(--asc-font-family);
501
+ font-size: 14px;
502
+ line-height: 20px;
503
+ font-weight: 600;
504
+ text-decoration: none;
505
+ letter-spacing: 0;
506
+ margin: 0;
507
+ }
508
+
509
+ .asc-typo-text-14-bold {
510
+ font-family: var(--asc-font-family);
511
+ font-size: 14px;
512
+ line-height: 20px;
513
+ font-weight: 700;
514
+ text-decoration: none;
515
+ letter-spacing: 0;
516
+ margin: 0;
517
+ }
518
+
519
+ .asc-typo-text-14-underline {
520
+ font-family: var(--asc-font-family);
521
+ font-size: 14px;
522
+ line-height: 20px;
523
+ font-weight: 400;
524
+ text-decoration: underline;
525
+ letter-spacing: 0;
526
+ margin: 0;
527
+ }
528
+
529
+ .asc-typo-text-14-strikethrough {
530
+ font-family: var(--asc-font-family);
531
+ font-size: 14px;
532
+ line-height: 20px;
533
+ font-weight: 400;
534
+ text-decoration: line-through;
535
+ letter-spacing: 0;
536
+ margin: 0;
537
+ }
538
+
539
+ .asc-typo-text-14-button {
540
+ font-family: var(--asc-font-family);
541
+ font-size: 14px;
542
+ line-height: 24px;
543
+ font-weight: 600;
544
+ text-decoration: none;
545
+ letter-spacing: 0;
546
+ margin: 0;
547
+ }
548
+
549
+ .asc-typo-text-12-regular {
550
+ font-family: var(--asc-font-family);
551
+ font-size: 12px;
552
+ line-height: 18px;
553
+ font-weight: 400;
554
+ text-decoration: none;
555
+ letter-spacing: 0;
556
+ margin: 0;
557
+ }
558
+
559
+ .asc-typo-text-12-medium {
560
+ font-family: var(--asc-font-family);
561
+ font-size: 12px;
562
+ line-height: 18px;
563
+ font-weight: 500;
564
+ text-decoration: none;
565
+ letter-spacing: 0;
566
+ margin: 0;
567
+ }
568
+
569
+ .asc-typo-text-12-semibold {
570
+ font-family: var(--asc-font-family);
571
+ font-size: 12px;
572
+ line-height: 18px;
573
+ font-weight: 600;
574
+ text-decoration: none;
575
+ letter-spacing: 0;
576
+ margin: 0;
577
+ }
578
+
579
+ .asc-typo-text-12-bold {
580
+ font-family: var(--asc-font-family);
581
+ font-size: 12px;
582
+ line-height: 18px;
583
+ font-weight: 700;
584
+ text-decoration: none;
585
+ letter-spacing: 0;
586
+ margin: 0;
587
+ }
588
+
589
+ .asc-typo-text-10-regular {
590
+ font-family: var(--asc-font-family);
591
+ font-size: 10px;
592
+ line-height: 14px;
593
+ font-weight: 400;
594
+ text-decoration: none;
595
+ letter-spacing: 0;
596
+ margin: 0;
597
+ }
598
+
599
+ .asc-typo-text-10-medium {
600
+ font-family: var(--asc-font-family);
601
+ font-size: 10px;
602
+ line-height: 14px;
603
+ font-weight: 500;
604
+ text-decoration: none;
605
+ letter-spacing: 0;
606
+ margin: 0;
607
+ }
608
+
609
+ .asc-typo-text-10-semibold {
610
+ font-family: var(--asc-font-family);
611
+ font-size: 10px;
612
+ line-height: 14px;
613
+ font-weight: 600;
614
+ text-decoration: none;
615
+ letter-spacing: 0;
616
+ margin: 0;
617
+ }
618
+
619
+ .asc-typo-text-10-bold {
620
+ font-family: var(--asc-font-family);
621
+ font-size: 10px;
622
+ line-height: 14px;
623
+ font-weight: 700;
624
+ text-decoration: none;
625
+ letter-spacing: 0;
626
+ margin: 0;
627
+ }
628
+
629
+ :root {
630
+ --primary-color: var(--p-primary-color);
631
+ --primary-contrast-color: var(--p-primary-contrast-color);
632
+ --text-color: #0F0F0F;
633
+ --text-color-secondary: var(--p-text-muted-color);
634
+ --surface-border: var(--p-content-border-color);
635
+ --surface-card: var(--p-content-background);
636
+ --surface-hover: var(--p-content-hover-background);
637
+ --surface-overlay: var(--p-overlay-popover-background);
638
+ --transition-duration: var(--p-transition-duration);
639
+ --maskbg: var(--p-mask-background);
640
+ --content-border-radius: var(--p-content-border-radius);
641
+ --layout-section-transition-duration: 0.2s;
642
+ --element-transition-duration: var(--p-transition-duration);
643
+ --focus-ring-width: var(--p-focus-ring-width);
644
+ --focus-ring-style: var(--p-focus-ring-style);
645
+ --focus-ring-color: var(--p-focus-ring-color);
646
+ --focus-ring-offset: var(--p-focus-ring-offset);
647
+ --focus-ring-shadow: var(--p-focus-ring-shadow);
648
+ }
649
+
650
+ :root {
651
+ --surface-ground: var(--p-surface-100);
652
+ --code-background: var(--p-surface-900);
653
+ --code-color: var(--p-surface-200);
654
+ }
655
+
656
+ :root[class*=app-dark] {
657
+ --surface-ground: var(--p-surface-950);
658
+ --code-background: var(--p-surface-800);
659
+ --code-color: var(--p-surface-100);
660
+ }
661
+
662
+ .preloader {
663
+ position: fixed;
664
+ z-index: 999999;
665
+ background: #edf1f5;
666
+ width: 100%;
667
+ height: 100%;
668
+ }
669
+
670
+ .preloader-content {
671
+ border: 0 solid transparent;
672
+ border-radius: 50%;
673
+ width: 150px;
674
+ height: 150px;
675
+ position: absolute;
676
+ top: calc(50vh - 75px);
677
+ left: calc(50vw - 75px);
678
+ }
679
+
680
+ .preloader-content:before,
681
+ .preloader-content:after {
682
+ content: "";
683
+ border: 1em solid var(--primary-color);
684
+ border-radius: 50%;
685
+ width: inherit;
686
+ height: inherit;
687
+ position: absolute;
688
+ top: 0;
689
+ left: 0;
690
+ animation: loader 2s linear infinite;
691
+ opacity: 0;
692
+ }
693
+
694
+ .preloader-content:before {
695
+ animation-delay: 0.5s;
696
+ }
697
+
698
+ @keyframes loader {
699
+ 0% {
700
+ transform: scale(0);
701
+ opacity: 0;
702
+ }
703
+ 50% {
704
+ opacity: 1;
705
+ }
706
+ 100% {
707
+ transform: scale(1);
708
+ opacity: 0;
709
+ }
710
+ }
711
+ html {
712
+ height: 100%;
713
+ font-size: 14px;
714
+ }
715
+
716
+ body {
717
+ font-family: var(--asc-font-family);
718
+ color: var(--text-color);
719
+ background-color: var(--surface-ground);
720
+ margin: 0;
721
+ padding: 0;
722
+ min-height: 100%;
723
+ -webkit-font-smoothing: antialiased;
724
+ -moz-osx-font-smoothing: grayscale;
725
+ line-height: 1.2;
726
+ }
727
+
728
+ a {
729
+ text-decoration: none;
730
+ }
731
+
732
+ .layout-wrapper {
733
+ min-height: 100vh;
734
+ }
735
+
736
+ .layout-main-container {
737
+ display: flex;
738
+ flex-direction: column;
739
+ min-height: 100vh;
740
+ justify-content: space-between;
741
+ padding: 6rem 2rem 0 2rem;
742
+ transition: margin-left var(--layout-section-transition-duration);
743
+ }
744
+
745
+ .layout-main {
746
+ flex: 1 1 auto;
747
+ padding: 1.5rem 1.5rem 2rem;
748
+ background: var(--surface-overlay);
749
+ border-radius: 1.25rem;
750
+ }
751
+
752
+ img {
753
+ max-width: none !important;
754
+ }
755
+
756
+ .layout-topbar {
757
+ position: fixed;
758
+ height: 4rem;
759
+ z-index: 997;
760
+ left: 0;
761
+ top: 0;
762
+ width: 100%;
763
+ padding: 0 2rem;
764
+ background-color: var(--surface-card);
765
+ transition: left var(--layout-section-transition-duration);
766
+ display: flex;
767
+ align-items: center;
768
+ }
769
+
770
+ .layout-topbar .layout-topbar-logo-container {
771
+ display: flex;
772
+ align-items: center;
773
+ }
774
+
775
+ .layout-topbar .layout-topbar-logo {
776
+ display: inline-flex;
777
+ align-items: center;
778
+ font-size: 1.5rem;
779
+ border-radius: var(--content-border-radius);
780
+ color: var(--text-color);
781
+ font-weight: 500;
782
+ gap: 0.5rem;
783
+ }
784
+
785
+ .layout-topbar .layout-topbar-logo svg {
786
+ width: 3rem;
787
+ }
788
+
789
+ .layout-topbar .layout-topbar-logo:focus-visible {
790
+ outline-width: var(--focus-ring-width);
791
+ outline-style: var(--focus-ring-style);
792
+ outline-color: var(--focus-ring-color);
793
+ outline-offset: var(--focus-ring-offset);
794
+ box-shadow: var(--focus-ring-shadow);
795
+ transition: box-shadow var(--transition-duration), outline-color var(--transition-duration);
796
+ }
797
+
798
+ .layout-topbar .layout-topbar-action {
799
+ display: inline-flex;
800
+ justify-content: center;
801
+ align-items: center;
802
+ color: var(--text-color-secondary);
803
+ border-radius: 50%;
804
+ width: 2.5rem;
805
+ height: 2.5rem;
806
+ color: var(--text-color);
807
+ transition: background-color var(--element-transition-duration);
808
+ cursor: pointer;
809
+ }
810
+
811
+ .layout-topbar .layout-topbar-action:hover {
812
+ background-color: var(--surface-hover);
813
+ }
814
+
815
+ .layout-topbar .layout-topbar-action:focus-visible {
816
+ outline-width: var(--focus-ring-width);
817
+ outline-style: var(--focus-ring-style);
818
+ outline-color: var(--focus-ring-color);
819
+ outline-offset: var(--focus-ring-offset);
820
+ box-shadow: var(--focus-ring-shadow);
821
+ transition: box-shadow var(--transition-duration), outline-color var(--transition-duration);
822
+ }
823
+
824
+ .layout-topbar .layout-topbar-action i {
825
+ font-size: 1.25rem;
826
+ }
827
+
828
+ .layout-topbar .layout-topbar-action span {
829
+ font-size: 1rem;
830
+ display: none;
831
+ }
832
+
833
+ .layout-topbar .layout-topbar-action.layout-topbar-action-highlight {
834
+ background-color: var(--primary-color);
835
+ color: var(--primary-contrast-color);
836
+ }
837
+
838
+ .layout-topbar .layout-menu-button {
839
+ margin-right: 0.5rem;
840
+ }
841
+
842
+ .layout-topbar .layout-topbar-menu-button {
843
+ display: none;
844
+ }
845
+
846
+ .layout-topbar .layout-topbar-actions {
847
+ margin-left: auto;
848
+ display: flex;
849
+ gap: 1rem;
850
+ }
851
+
852
+ .layout-topbar .layout-topbar-menu-content {
853
+ display: flex;
854
+ gap: 1rem;
855
+ }
856
+
857
+ .layout-topbar .layout-config-menu {
858
+ display: flex;
859
+ gap: 1rem;
860
+ }
861
+
862
+ @media (max-width: 991px) {
863
+ .layout-topbar {
864
+ padding: 0 2rem;
865
+ }
866
+ .layout-topbar .layout-topbar-logo-container {
867
+ width: auto;
868
+ }
869
+ .layout-topbar .layout-menu-button {
870
+ margin-left: 0;
871
+ margin-right: 0.5rem;
872
+ }
873
+ .layout-topbar .layout-topbar-menu-button {
874
+ display: inline-flex;
875
+ }
876
+ .layout-topbar .layout-topbar-menu {
877
+ position: absolute;
878
+ background-color: var(--surface-overlay);
879
+ transform-origin: top;
880
+ box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08);
881
+ border-radius: var(--content-border-radius);
882
+ padding: 1rem;
883
+ right: 2rem;
884
+ top: 4rem;
885
+ min-width: 15rem;
886
+ border: 1px solid var(--surface-border);
887
+ }
888
+ .layout-topbar .layout-topbar-menu .layout-topbar-menu-content {
889
+ gap: 0.5rem;
890
+ }
891
+ .layout-topbar .layout-topbar-menu .layout-topbar-action {
892
+ display: flex;
893
+ width: 100%;
894
+ height: auto;
895
+ justify-content: flex-start;
896
+ border-radius: var(--content-border-radius);
897
+ padding: 0.5rem 1rem;
898
+ }
899
+ .layout-topbar .layout-topbar-menu .layout-topbar-action i {
900
+ font-size: 1rem;
901
+ margin-right: 0.5rem;
902
+ }
903
+ .layout-topbar .layout-topbar-menu .layout-topbar-action span {
904
+ font-weight: medium;
905
+ display: block;
906
+ }
907
+ .layout-topbar .layout-topbar-menu-content {
908
+ flex-direction: column;
909
+ }
910
+ }
911
+ .layout-sidebar {
912
+ position: fixed;
913
+ width: 20rem;
914
+ height: calc(100vh - 8rem);
915
+ z-index: 999;
916
+ overflow-y: auto;
917
+ user-select: none;
918
+ top: 6rem;
919
+ left: 2rem;
920
+ transition: transform var(--layout-section-transition-duration), left var(--layout-section-transition-duration);
921
+ background-color: var(--surface-overlay);
922
+ border-radius: var(--content-border-radius);
923
+ padding: 0.5rem 1.5rem;
924
+ }
925
+
926
+ .layout-menu {
927
+ margin: 0;
928
+ padding: 0;
929
+ list-style-type: none;
930
+ }
931
+
932
+ .layout-menu .layout-root-menuitem > .layout-menuitem-root-text {
933
+ font-size: 0.857rem;
934
+ text-transform: uppercase;
935
+ font-weight: 700;
936
+ color: var(--text-color);
937
+ margin: 0.75rem 0;
938
+ }
939
+
940
+ .layout-menu .layout-root-menuitem > a {
941
+ display: none;
942
+ }
943
+
944
+ .layout-menu a {
945
+ user-select: none;
946
+ }
947
+
948
+ .layout-menu a.active-menuitem > .layout-submenu-toggler {
949
+ transform: rotate(-180deg);
950
+ }
951
+
952
+ .layout-menu li.active-menuitem > a .layout-submenu-toggler {
953
+ transform: rotate(-180deg);
954
+ }
955
+
956
+ .layout-menu ul {
957
+ margin: 0;
958
+ padding: 0;
959
+ list-style-type: none;
960
+ overflow: hidden;
961
+ border-radius: var(--content-border-radius);
962
+ max-height: 0;
963
+ transition: max-height 400ms cubic-bezier(0.86, 0, 0.07, 1);
964
+ }
965
+
966
+ .layout-menu ul.layout-submenu-expanded {
967
+ max-height: 1000px;
968
+ }
969
+
970
+ .layout-menu ul a {
971
+ display: flex;
972
+ align-items: center;
973
+ position: relative;
974
+ outline: 0 none;
975
+ color: var(--text-color);
976
+ cursor: pointer;
977
+ padding: 0.75rem 1rem;
978
+ border-radius: var(--content-border-radius);
979
+ transition: background-color var(--element-transition-duration), box-shadow var(--element-transition-duration);
980
+ }
981
+
982
+ .layout-menu ul a .layout-menuitem-icon {
983
+ margin-right: 0.5rem;
984
+ }
985
+
986
+ .layout-menu ul a .layout-submenu-toggler {
987
+ font-size: 75%;
988
+ margin-left: auto;
989
+ transition: transform var(--element-transition-duration);
990
+ }
991
+
992
+ .layout-menu ul a.active-route {
993
+ font-weight: 700;
994
+ color: var(--primary-color);
995
+ }
996
+
997
+ .layout-menu ul a:hover {
998
+ background-color: var(--surface-hover);
999
+ }
1000
+
1001
+ .layout-menu ul a:focus {
1002
+ outline-offset: -1px;
1003
+ box-shadow: inset var(--focus-ring-shadow);
1004
+ }
1005
+
1006
+ .layout-menu ul ul li a {
1007
+ margin-left: 1rem;
1008
+ }
1009
+
1010
+ .layout-menu ul ul li li a {
1011
+ margin-left: 2rem;
1012
+ }
1013
+
1014
+ .layout-menu ul ul li li li a {
1015
+ margin-left: 2.5rem;
1016
+ }
1017
+
1018
+ .layout-menu ul ul li li li li a {
1019
+ margin-left: 3rem;
1020
+ }
1021
+
1022
+ .layout-menu ul ul li li li li li a {
1023
+ margin-left: 3.5rem;
1024
+ }
1025
+
1026
+ .layout-menu ul ul li li li li li li a {
1027
+ margin-left: 4rem;
1028
+ }
1029
+
1030
+ .layout-footer {
1031
+ display: flex;
1032
+ align-items: center;
1033
+ justify-content: center;
1034
+ padding: 1rem 0 1rem 0;
1035
+ gap: 0.5rem;
1036
+ border-top: 1px solid var(--surface-border);
1037
+ }
1038
+
1039
+ @media screen and (min-width: 1960px) {
1040
+ .layout-main,
1041
+ .landing-wrapper {
1042
+ width: 1504px;
1043
+ margin-left: auto !important;
1044
+ margin-right: auto !important;
1045
+ }
1046
+ }
1047
+ @media (min-width: 992px) {
1048
+ .layout-wrapper.layout-overlay .layout-main-container {
1049
+ margin-left: 0;
1050
+ padding-left: 2rem;
1051
+ }
1052
+ .layout-wrapper.layout-overlay .layout-sidebar {
1053
+ transform: translateX(-100%);
1054
+ left: 0;
1055
+ top: 0;
1056
+ height: 100vh;
1057
+ border-top-left-radius: 0;
1058
+ border-bottom-left-radius: 0;
1059
+ border-right: 1px solid var(--surface-border);
1060
+ transition: transform 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99), left 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99);
1061
+ box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08);
1062
+ }
1063
+ .layout-wrapper.layout-overlay.layout-overlay-active .layout-sidebar {
1064
+ transform: translateX(0);
1065
+ }
1066
+ .layout-wrapper.layout-static .layout-main-container {
1067
+ margin-left: 22rem;
1068
+ }
1069
+ .layout-wrapper.layout-static.layout-static-inactive .layout-sidebar {
1070
+ transform: translateX(-100%);
1071
+ left: 0;
1072
+ }
1073
+ .layout-wrapper.layout-static.layout-static-inactive .layout-main-container {
1074
+ margin-left: 0;
1075
+ padding-left: 2rem;
1076
+ }
1077
+ .layout-wrapper .layout-mask {
1078
+ display: none;
1079
+ }
1080
+ }
1081
+ @media (max-width: 991px) {
1082
+ .blocked-scroll {
1083
+ overflow: hidden;
1084
+ }
1085
+ .layout-wrapper .layout-main-container {
1086
+ margin-left: 0;
1087
+ padding-left: 2rem;
1088
+ }
1089
+ .layout-wrapper .layout-sidebar {
1090
+ transform: translateX(-100%);
1091
+ left: 0;
1092
+ top: 0;
1093
+ height: 100vh;
1094
+ border-top-left-radius: 0;
1095
+ border-bottom-left-radius: 0;
1096
+ transition: transform 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99), left 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99);
1097
+ }
1098
+ .layout-wrapper .layout-mask {
1099
+ display: none;
1100
+ position: fixed;
1101
+ top: 0;
1102
+ left: 0;
1103
+ z-index: 998;
1104
+ width: 100%;
1105
+ height: 100%;
1106
+ background-color: var(--maskbg);
1107
+ }
1108
+ .layout-wrapper.layout-mobile-active .layout-sidebar {
1109
+ transform: translateX(0);
1110
+ }
1111
+ .layout-wrapper.layout-mobile-active .layout-mask {
1112
+ display: block;
1113
+ }
1114
+ }
1115
+ /* Utils */
1116
+ .clearfix:after {
1117
+ content: " ";
1118
+ display: block;
1119
+ clear: both;
1120
+ }
1121
+
1122
+ .card {
1123
+ background: var(--surface-card);
1124
+ padding: 2rem;
1125
+ margin-bottom: 2rem;
1126
+ border-radius: var(--content-border-radius);
1127
+ }
1128
+
1129
+ .card:last-child {
1130
+ margin-bottom: 0;
1131
+ }
1132
+
1133
+ .p-toast.p-toast-top-right, .p-toast.p-toast-top-left, .p-toast.p-toast-top-center {
1134
+ top: 100px;
1135
+ }
1136
+
1137
+ h1,
1138
+ h2,
1139
+ h3,
1140
+ h4,
1141
+ h5,
1142
+ h6 {
1143
+ margin: 1.5rem 0 1rem 0;
1144
+ font-family: inherit;
1145
+ font-weight: 700;
1146
+ line-height: 1.5;
1147
+ color: var(--text-color);
1148
+ }
1149
+
1150
+ h1:first-child,
1151
+ h2:first-child,
1152
+ h3:first-child,
1153
+ h4:first-child,
1154
+ h5:first-child,
1155
+ h6:first-child {
1156
+ margin-top: 0;
1157
+ }
1158
+
1159
+ h1 {
1160
+ font-size: 2.5rem;
1161
+ }
1162
+
1163
+ h2 {
1164
+ font-size: 2rem;
1165
+ }
1166
+
1167
+ h3 {
1168
+ font-size: 1.75rem;
1169
+ }
1170
+
1171
+ h4 {
1172
+ font-size: 1.5rem;
1173
+ }
1174
+
1175
+ h5 {
1176
+ font-size: 1.25rem;
1177
+ }
1178
+
1179
+ h6 {
1180
+ font-size: 1rem;
1181
+ }
1182
+
1183
+ mark {
1184
+ background: #fff8e1;
1185
+ padding: 0.25rem 0.4rem;
1186
+ border-radius: var(--content-border-radius);
1187
+ font-family: monospace;
1188
+ }
1189
+
1190
+ blockquote {
1191
+ margin: 1rem 0;
1192
+ padding: 0 2rem;
1193
+ border-left: 4px solid #90a4ae;
1194
+ }
1195
+
1196
+ hr {
1197
+ border-top: solid var(--surface-border);
1198
+ border-width: 1px 0 0 0;
1199
+ margin: 1rem 0;
1200
+ }
1201
+
1202
+ p {
1203
+ margin: 0 0 1rem 0;
1204
+ line-height: 1.5;
1205
+ }
1206
+
1207
+ p:last-child {
1208
+ margin-bottom: 0;
1209
+ }
1210
+ /* 1. TailwindCSS v4 */
1211
+ @import "tailwindcss";
1212
+ @source "../fesm2022/**/*.mjs";
1213
+ @custom-variant dark (&:where(.app-dark, .app-dark *));
1214
+ @theme {
1215
+ --spacing: 1px;
1216
+ --radius-xs: 4px;
1217
+ --radius-sm: 8px;
1218
+ --radius-md: 12px;
1219
+ --radius-lg: 16px;
1220
+ --radius-xl: 24px;
1221
+ --radius-2xl: 32px;
1222
+ --radius-3xl: 48px;
1223
+ --radius-4xl: 16px;
1224
+ --text-xs: 9px;
1225
+ --text-sm: 12px;
1226
+ --text-md: 14px;
1227
+ --text-lg: 16px;
1228
+ --text-xl: 18px;
1229
+ --text-2xl: 20px;
1230
+ --text-3xl: 24px;
1231
+ --text-4xl: 28px;
1232
+ --text-5xl: 32px;
1233
+ --text-6xl: 48px;
1234
+ --leading-15: 15px;
1235
+ --leading-20: 20px;
1236
+ --leading-30: 30px;
1237
+ --leading-32: 32px;
1238
+ }
1239
+
1240
+ /* 2. PrimeUI Tailwind plugin — map --p-* vars thành Tailwind utilities */
1241
+ /* Sau khi import, dùng được: bg-primary, text-primary-600, border-surface-200, ... */
1242
+ @plugin "tailwindcss-primeui";
1243
+
1244
+ /* 3. PrimeIcons */
1245
+
1246
+ /* 4. ASC design tokens */
1247
+
1248
+ /* 5. Base resets & global styles */
1249
+ *,
1250
+ *::before,
1251
+ *::after {
1252
+ box-sizing: border-box;
1253
+ }
1254
+
1255
+ html {
1256
+ font-family: var(--asc-font-family);
1257
+ font-size: var(--asc-font-size-base);
1258
+ line-height: var(--asc-line-height-base);
1259
+ color: var(--asc-text-primary);
1260
+ background: var(--asc-surface-ground);
1261
+ -webkit-font-smoothing: antialiased;
1262
+ -moz-osx-font-smoothing: grayscale;
1263
+ text-rendering: optimizeLegibility;
1264
+ }
1265
+
1266
+ body {
1267
+ margin: 0;
1268
+ }
1269
+
1270
+ /* Highlight text — dùng bởi CmpHighlightPipe */
1271
+ mark.asc-highlight {
1272
+ background: var(--asc-color-primary-light);
1273
+ color: var(--asc-color-primary);
1274
+ border-radius: 0.125rem;
1275
+ padding: 0 0.125rem;
1276
+ }