@faast-app/ui 0.7.0 → 0.9.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.
package/dist/styles.css CHANGED
@@ -23,6 +23,19 @@
23
23
  }
24
24
  }
25
25
 
26
+ /*
27
+ * Large control (DSN-005 N15): 48px on every pointer, opt-in. `size="lg"` on Button,
28
+ * `controlSize="lg"` on Input/TextField/PasswordField, or `data-densidad="amplia"` on any
29
+ * ancestor for every button and field inside it. It comes after the blocks above so it wins
30
+ * over the compact (fine pointer) height; md and compact are unchanged.
31
+ */
32
+ .faast-button--lg,
33
+ .faast-input--lg,
34
+ [data-densidad='amplia'] .faast-button,
35
+ [data-densidad='amplia'] .faast-input {
36
+ --faast-control-h: var(--faast-size-control-lg);
37
+ }
38
+
26
39
  /* ---------- Button ---------- */
27
40
  .faast-button {
28
41
  display: inline-flex;
@@ -89,6 +102,10 @@
89
102
  .faast-button--full {
90
103
  width: 100%;
91
104
  }
105
+ /* Capsule shape (DSN-005 N14): only the radius changes. The focus outline follows it. */
106
+ .faast-button--pill {
107
+ border-radius: var(--faast-radius-full);
108
+ }
92
109
  .faast-button:disabled {
93
110
  cursor: not-allowed;
94
111
  background-color: var(--faast-bg-sunken);
@@ -334,6 +351,111 @@
334
351
  border-color: var(--faast-border-default);
335
352
  cursor: not-allowed;
336
353
  }
354
+ /*
355
+ * Field with the message inside (DSN-005 N11): one box (1px border-strong, danger-fg when
356
+ * invalid) around the control and, under a border-subtle rule, the message: icon, title in ink
357
+ * and detail in text-secondary. No tinted background. The control loses its own border.
358
+ */
359
+ .faast-field__box {
360
+ min-width: 0;
361
+ border: 1px solid var(--faast-border-strong);
362
+ border-radius: var(--faast-radius-sm);
363
+ background-color: var(--faast-bg-surface);
364
+ transition: border-color var(--faast-duration-fast) var(--faast-ease-standard);
365
+ }
366
+ .faast-field__box:hover {
367
+ border-color: var(--faast-text-secondary);
368
+ }
369
+ .faast-field--inside .faast-input,
370
+ .faast-field--inside .faast-input:hover:not(:disabled),
371
+ .faast-field--inside .faast-input:focus-visible,
372
+ .faast-field--inside .faast-input[aria-invalid='true'],
373
+ .faast-field--inside .faast-input:disabled {
374
+ border: 0;
375
+ background-color: transparent;
376
+ outline: 0;
377
+ }
378
+ /* The box adds its own 1px border on each side: the control gives that 2px back so the
379
+ outer height is exactly the control height (48, 44 or 36), the same as its neighbours. */
380
+ .faast-field--inside .faast-input {
381
+ min-height: calc(var(--faast-control-h) - 2px);
382
+ }
383
+ /* Autofill (password managers) must not paint the control: it keeps the box colours, so the
384
+ message under it stays in the same surface. A long transition delays the browser's own
385
+ background; the inset shadow covers it where the delay is ignored. */
386
+ .faast-field--inside .faast-input:-webkit-autofill,
387
+ .faast-field--inside .faast-input:-webkit-autofill:hover,
388
+ .faast-field--inside .faast-input:-webkit-autofill:focus {
389
+ -webkit-text-fill-color: var(--faast-text-primary);
390
+ caret-color: var(--faast-text-primary);
391
+ box-shadow: inset 0 0 0 100vmax var(--faast-bg-surface);
392
+ transition: background-color 600000s 0s;
393
+ }
394
+ .faast-field--inside .faast-input:autofill,
395
+ .faast-field--inside .faast-input:autofill:hover,
396
+ .faast-field--inside .faast-input:autofill:focus {
397
+ -webkit-text-fill-color: var(--faast-text-primary);
398
+ caret-color: var(--faast-text-primary);
399
+ box-shadow: inset 0 0 0 100vmax var(--faast-bg-surface);
400
+ transition: background-color 600000s 0s;
401
+ }
402
+ /* Focus is shown on the box, only while the control itself has keyboard focus. */
403
+ .faast-field__box:has(.faast-input:focus-visible) {
404
+ outline: 2px solid var(--faast-focus-ring);
405
+ outline-offset: 1px;
406
+ border-color: var(--faast-focus-ring);
407
+ }
408
+ .faast-field__box:has(.faast-input:read-only),
409
+ .faast-field__box:has(.faast-input:disabled) {
410
+ background-color: var(--faast-bg-sunken);
411
+ }
412
+ .faast-field__box:has(.faast-input:disabled),
413
+ .faast-field__box:has(.faast-input:disabled):hover {
414
+ border-color: var(--faast-border-default);
415
+ cursor: not-allowed;
416
+ }
417
+ /* Invalid: also a control that points at a message elsewhere (aria-invalid + aria-describedby). */
418
+ .faast-field__box:has(.faast-input[aria-invalid='true']),
419
+ .faast-field__box:has(.faast-input[aria-invalid='true']):hover,
420
+ .faast-field__box:has(.faast-input[aria-invalid='true']:focus-visible) {
421
+ border-color: var(--faast-status-danger-fg);
422
+ }
423
+ .faast-field--inside .faast-input:disabled {
424
+ color: var(--faast-text-disabled);
425
+ }
426
+ .faast-field__message {
427
+ display: flex;
428
+ align-items: flex-start;
429
+ gap: var(--faast-space-2);
430
+ margin: 0;
431
+ padding: var(--faast-space-2) var(--faast-space-3) var(--faast-space-3);
432
+ border-top: 1px solid var(--faast-border-subtle);
433
+ font-size: var(--faast-font-size-sm);
434
+ line-height: var(--faast-line-height-snug);
435
+ }
436
+ .faast-field__message .faast-icon {
437
+ /* Centre the 16px icon on the first text line (line height minus icon, halved). */
438
+ margin-top: calc((var(--faast-font-size-sm) * var(--faast-line-height-snug) - 1rem) / 2);
439
+ color: var(--faast-status-danger-fg);
440
+ }
441
+ .faast-field__message-text {
442
+ display: grid;
443
+ min-width: 0;
444
+ /* A long unbroken string (an e-mail, an id) wraps instead of pushing the box wider. */
445
+ overflow-wrap: anywhere;
446
+ }
447
+ .faast-field__message-title {
448
+ font-weight: var(--faast-font-weight-medium);
449
+ color: var(--faast-text-primary);
450
+ }
451
+ .faast-field__message-detail {
452
+ color: var(--faast-text-secondary);
453
+ }
454
+ @media (prefers-reduced-motion: reduce) {
455
+ .faast-field__box {
456
+ transition: none;
457
+ }
458
+ }
337
459
  .faast-textarea {
338
460
  padding: var(--faast-space-2) var(--faast-space-3);
339
461
  resize: vertical;
@@ -1229,9 +1351,15 @@ html:has(.faast-dialog[open]:modal) {
1229
1351
  .faast-table--cards .faast-table__row--selected > .faast-table__th {
1230
1352
  background-color: transparent;
1231
1353
  }
1354
+ /* Default placement: a full-width line. At specificity (0,1,0) on purpose (DSN-001 L-1): the
1355
+ slot rules below ([data-slot], 0,2,0) must be able to place select, title and status in
1356
+ their own columns. With the old (0,3,0) selector this rule won and stacked them on row 1. */
1357
+ .faast-table--cards
1358
+ :where(.faast-table__row > .faast-table__cell, .faast-table__row > .faast-table__th) {
1359
+ grid-column: 1 / -1;
1360
+ }
1232
1361
  .faast-table--cards .faast-table__row > .faast-table__cell,
1233
1362
  .faast-table--cards .faast-table__row > .faast-table__th {
1234
- grid-column: 1 / -1;
1235
1363
  min-width: 0;
1236
1364
  padding: 0;
1237
1365
  border: 0;
@@ -1406,9 +1534,15 @@ html:has(.faast-dialog[open]:modal) {
1406
1534
  .faast-table--cards-lg .faast-table__row--selected > .faast-table__th {
1407
1535
  background-color: transparent;
1408
1536
  }
1537
+ /* Default placement: a full-width line. At specificity (0,1,0) on purpose (DSN-001 L-1): the
1538
+ slot rules below ([data-slot], 0,2,0) must be able to place select, title and status in
1539
+ their own columns. With the old (0,3,0) selector this rule won and stacked them on row 1. */
1540
+ .faast-table--cards-lg
1541
+ :where(.faast-table__row > .faast-table__cell, .faast-table__row > .faast-table__th) {
1542
+ grid-column: 1 / -1;
1543
+ }
1409
1544
  .faast-table--cards-lg .faast-table__row > .faast-table__cell,
1410
1545
  .faast-table--cards-lg .faast-table__row > .faast-table__th {
1411
- grid-column: 1 / -1;
1412
1546
  min-width: 0;
1413
1547
  padding: 0;
1414
1548
  border: 0;
@@ -1986,6 +2120,11 @@ html:has(.faast-shell) {
1986
2120
  --faast-input-wrap-h: var(--faast-size-control-compact);
1987
2121
  }
1988
2122
  }
2123
+ /* Large field (DSN-005 N15): the trailing action grows with it (48px minus the 2px insets). */
2124
+ .faast-input-wrap--lg,
2125
+ [data-densidad='amplia'] .faast-input-wrap {
2126
+ --faast-input-wrap-h: var(--faast-size-control-lg);
2127
+ }
1989
2128
  .faast-input-wrap__leading {
1990
2129
  position: absolute;
1991
2130
  top: 50%;
@@ -2345,6 +2484,22 @@ html:has(.faast-shell) {
2345
2484
  gap: var(--faast-space-2);
2346
2485
  pointer-events: none;
2347
2486
  }
2487
+ /*
2488
+ * ToastProvider placement="top": under the floating bar, 8px (space-2) below its real outer height
2489
+ * (--faast-nav-bar-outer-height). --faast-toaster-top overrides it.
2490
+ */
2491
+ .faast-toaster--top {
2492
+ top: var(
2493
+ --faast-toaster-top,
2494
+ calc(
2495
+ max(var(--faast-nav-bar-margin), var(--faast-safe-top)) + var(--faast-nav-bar-outer-height) +
2496
+ var(--faast-space-2)
2497
+ )
2498
+ );
2499
+ right: var(--faast-space-2);
2500
+ bottom: auto;
2501
+ left: var(--faast-space-2);
2502
+ }
2348
2503
  .faast-toast {
2349
2504
  display: flex;
2350
2505
  align-items: center;
@@ -2383,6 +2538,12 @@ html:has(.faast-shell) {
2383
2538
  transform: translateY(0.5rem);
2384
2539
  }
2385
2540
  }
2541
+ @keyframes faast-toast-in-down {
2542
+ from {
2543
+ opacity: 0;
2544
+ transform: translateY(-0.5rem);
2545
+ }
2546
+ }
2386
2547
 
2387
2548
  /* ---------- OptionList ---------- */
2388
2549
  .faast-option-list {
@@ -3001,6 +3162,10 @@ html:has(.faast-shell) {
3001
3162
  display: none;
3002
3163
  }
3003
3164
  }
3165
+ /* variant="compact": the compact form at any window width (wins over the rule above). */
3166
+ .faast-stepper--compact .faast-stepper__compact {
3167
+ display: block;
3168
+ }
3004
3169
  @media (prefers-reduced-motion: reduce) {
3005
3170
  .faast-stepper__bar > span {
3006
3171
  transition: none;
@@ -3753,6 +3918,279 @@ html:has(.faast-shell) {
3753
3918
  }
3754
3919
  }
3755
3920
 
3921
+ /* ---------- SummaryCard (DSN-001 RPT-01) ---------- */
3922
+ /* One headline figure with a notch in the top-right corner. The notch is a radial mask on a
3923
+ decorative layer (.faast-summary-card__surface), so the round action that sits in it is NOT
3924
+ clipped and the shape follows the theme: no image, no SVG. */
3925
+ .faast-summary-card {
3926
+ --faast-summary-card-radius: var(--faast-radius-xl);
3927
+ /* Radius of the cut and distance of its centre from the top and right edges. The action is
3928
+ centred on that point. */
3929
+ --faast-summary-card-notch: 2.125rem;
3930
+ --faast-summary-card-notch-at: 1.625rem;
3931
+ position: relative;
3932
+ min-width: 0;
3933
+ margin: 0;
3934
+ /* The card owns its ink: it sits on bg.surface (bg.sunken for sm), so its text is text.primary
3935
+ whatever the container around it sets. Without this it inherits the colour of the page and,
3936
+ inside a themed container (a tenant, a dark section), it can be the colour of its own
3937
+ background. The featured card sets on-soft on its content below. */
3938
+ color: var(--faast-text-primary);
3939
+ /* The shadow follows the silhouette (notch included), which a box-shadow cannot do. Opt out
3940
+ with --faast-summary-card-shadow: none. light-dark() reads the theme's color-scheme. */
3941
+ filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.06)) drop-shadow(0 14px 16px rgb(0 0 0 / 0.09));
3942
+ filter: var(
3943
+ --faast-summary-card-shadow,
3944
+ drop-shadow(0 1px 1px light-dark(rgb(0 0 0 / 0.06), rgb(0 0 0 / 0.5)))
3945
+ drop-shadow(0 14px 16px light-dark(rgb(0 0 0 / 0.09), rgb(0 0 0 / 0.7)))
3946
+ );
3947
+ transition: transform var(--faast-duration-base) var(--faast-ease-standard);
3948
+ }
3949
+ .faast-summary-card--sm {
3950
+ --faast-summary-card-radius: var(--faast-radius-lg);
3951
+ /* Flat mini card (the one in the Liquidación dialog of the prototype): no shadow, so it does
3952
+ not read as a card inside a card. */
3953
+ filter: none;
3954
+ }
3955
+ .faast-summary-card__surface {
3956
+ position: absolute;
3957
+ inset: 0;
3958
+ overflow: hidden;
3959
+ border-radius: var(--faast-summary-card-radius);
3960
+ background-color: var(--faast-bg-surface);
3961
+ }
3962
+ /* sm: `bg.sunken` with a subtle border and without the diagonal blocks. */
3963
+ .faast-summary-card--sm > .faast-summary-card__surface {
3964
+ border: 1px solid var(--faast-border-subtle);
3965
+ background-color: var(--faast-bg-sunken);
3966
+ }
3967
+ .faast-summary-card--sm .faast-summary-card__shape {
3968
+ display: none;
3969
+ }
3970
+ .faast-summary-card:has(.faast-summary-card__action) > .faast-summary-card__surface {
3971
+ -webkit-mask-image: radial-gradient(
3972
+ circle var(--faast-summary-card-notch) at calc(100% - var(--faast-summary-card-notch-at))
3973
+ var(--faast-summary-card-notch-at),
3974
+ transparent 0 98%,
3975
+ currentcolor 100%
3976
+ );
3977
+ mask-image: radial-gradient(
3978
+ circle var(--faast-summary-card-notch) at calc(100% - var(--faast-summary-card-notch-at))
3979
+ var(--faast-summary-card-notch-at),
3980
+ transparent 0 98%,
3981
+ currentcolor 100%
3982
+ );
3983
+ }
3984
+ /* Two diagonal blocks, decorative only (they carry no meaning). */
3985
+ .faast-summary-card__shape {
3986
+ position: absolute;
3987
+ inset: 0 0 0 auto;
3988
+ width: 64%;
3989
+ background-color: var(--faast-bg-sunken);
3990
+ clip-path: polygon(44% 0, 100% 0, 100% 100%, 12% 100%);
3991
+ }
3992
+ .faast-summary-card__shape::after {
3993
+ content: '';
3994
+ position: absolute;
3995
+ inset: 0 auto 0 0;
3996
+ width: 100%;
3997
+ background-color: var(--faast-bg-hover);
3998
+ clip-path: polygon(0 0, 34% 0, 0 100%);
3999
+ }
4000
+ .faast-summary-card__content {
4001
+ position: relative;
4002
+ display: grid;
4003
+ gap: var(--faast-space-3);
4004
+ align-content: start;
4005
+ height: 100%;
4006
+ min-width: 0;
4007
+ padding: var(--faast-space-5);
4008
+ }
4009
+ .faast-summary-card--sm .faast-summary-card__content {
4010
+ gap: var(--faast-space-2);
4011
+ padding: var(--faast-space-4);
4012
+ }
4013
+ .faast-summary-card__top {
4014
+ display: flex;
4015
+ align-items: center;
4016
+ gap: var(--faast-space-3);
4017
+ min-width: 0;
4018
+ }
4019
+ /* Keep the title clear of the notch. */
4020
+ .faast-summary-card:has(.faast-summary-card__action) .faast-summary-card__top {
4021
+ padding-right: var(--faast-space-10);
4022
+ }
4023
+ .faast-summary-card__icon {
4024
+ display: inline-grid;
4025
+ place-items: center;
4026
+ flex: none;
4027
+ width: 2.25rem;
4028
+ height: 2.25rem;
4029
+ border-radius: var(--faast-radius-full);
4030
+ background-color: var(--faast-accent-tint);
4031
+ color: var(--faast-accent-text);
4032
+ }
4033
+ .faast-summary-card--sm .faast-summary-card__icon {
4034
+ width: 2rem;
4035
+ height: 2rem;
4036
+ }
4037
+ .faast-summary-card__title {
4038
+ flex: 1;
4039
+ min-width: 0;
4040
+ margin: 0;
4041
+ font-size: var(--faast-font-size-md);
4042
+ font-weight: var(--faast-font-weight-medium);
4043
+ letter-spacing: -0.01em;
4044
+ line-height: var(--faast-line-height-snug);
4045
+ }
4046
+ .faast-summary-card--sm .faast-summary-card__title {
4047
+ font-size: var(--faast-font-size-sm);
4048
+ }
4049
+ .faast-summary-card__value {
4050
+ margin: var(--faast-space-2) 0 0;
4051
+ font-size: calc(var(--faast-font-size-3xl) * 0.95);
4052
+ font-weight: var(--faast-font-weight-medium);
4053
+ letter-spacing: -0.035em;
4054
+ line-height: 1.05;
4055
+ overflow-wrap: anywhere;
4056
+ }
4057
+ .faast-summary-card--sm .faast-summary-card__value {
4058
+ margin-top: 0;
4059
+ font-size: var(--faast-font-size-2xl);
4060
+ letter-spacing: -0.03em;
4061
+ line-height: 1.1;
4062
+ }
4063
+ .faast-summary-card__unit {
4064
+ margin-left: var(--faast-space-2);
4065
+ color: var(--faast-text-secondary);
4066
+ font-size: var(--faast-font-size-xs);
4067
+ font-weight: var(--faast-font-weight-medium);
4068
+ letter-spacing: 0.02em;
4069
+ }
4070
+ .faast-summary-card__footer {
4071
+ display: flex;
4072
+ flex-wrap: wrap;
4073
+ align-items: center;
4074
+ gap: var(--faast-space-2);
4075
+ min-width: 0;
4076
+ margin: 0;
4077
+ color: var(--faast-text-secondary);
4078
+ font-size: var(--faast-font-size-xs);
4079
+ }
4080
+ .faast-summary-card__note {
4081
+ display: flex;
4082
+ align-items: center;
4083
+ gap: var(--faast-space-1);
4084
+ margin: 0;
4085
+ color: var(--faast-text-secondary);
4086
+ font-size: var(--faast-font-size-xs);
4087
+ }
4088
+ .faast-summary-card__note-icon {
4089
+ display: inline-flex;
4090
+ }
4091
+ /* Placeholder of the value while busy: one line of the value's own height (its line-height). */
4092
+ .faast-summary-card__value-placeholder {
4093
+ width: 68%;
4094
+ height: calc(1em * 1.05);
4095
+ height: 1lh;
4096
+ }
4097
+ /* Placeholder of the note while busy: one line of its own height. */
4098
+ .faast-summary-card__note-placeholder {
4099
+ width: 45%;
4100
+ height: calc(1em * var(--faast-line-height-normal));
4101
+ height: 1lh;
4102
+ }
4103
+ /* The round action, centred in the notch. */
4104
+ .faast-summary-card__action {
4105
+ position: absolute;
4106
+ top: calc(var(--faast-summary-card-notch-at) - var(--faast-size-touch-target) / 2);
4107
+ right: calc(var(--faast-summary-card-notch-at) - var(--faast-size-touch-target) / 2);
4108
+ display: inline-grid;
4109
+ place-items: center;
4110
+ width: var(--faast-size-touch-target);
4111
+ height: var(--faast-size-touch-target);
4112
+ padding: 0;
4113
+ border: 0;
4114
+ border-radius: var(--faast-radius-full);
4115
+ background-color: var(--faast-bg-surface);
4116
+ box-shadow: 0 0 0 1px var(--faast-border-subtle);
4117
+ color: var(--faast-text-primary);
4118
+ cursor: pointer;
4119
+ text-decoration: none;
4120
+ transition:
4121
+ background-color var(--faast-duration-fast) var(--faast-ease-standard),
4122
+ color var(--faast-duration-fast) var(--faast-ease-standard),
4123
+ transform var(--faast-duration-fast) var(--faast-ease-standard);
4124
+ }
4125
+ .faast-summary-card__action:hover {
4126
+ background-color: var(--faast-accent-soft);
4127
+ color: var(--faast-accent-on-soft);
4128
+ }
4129
+ .faast-summary-card__action:active {
4130
+ transform: scale(0.94);
4131
+ }
4132
+ .faast-summary-card__action[aria-disabled='true'] {
4133
+ opacity: 0.5;
4134
+ cursor: progress;
4135
+ }
4136
+ /* A card with an action lifts a little on hover; one without is not interactive and stays put. */
4137
+ .faast-summary-card:has(.faast-summary-card__action):hover {
4138
+ transform: translateY(-2px);
4139
+ }
4140
+ /* Featured: the soft brand colour. Text and icons on it are on-soft, never text-on-accent. */
4141
+ .faast-summary-card--featured > .faast-summary-card__surface {
4142
+ background-color: var(--faast-accent-soft);
4143
+ }
4144
+ /* The featured sm keeps the 1px border of sm, transparent, so it measures the same as the plain one. */
4145
+ .faast-summary-card--sm.faast-summary-card--featured > .faast-summary-card__surface {
4146
+ border-color: transparent;
4147
+ }
4148
+ .faast-summary-card--featured .faast-summary-card__shape {
4149
+ background-color: var(--faast-accent-soft-shape-a);
4150
+ }
4151
+ .faast-summary-card--featured .faast-summary-card__shape::after {
4152
+ background-color: var(--faast-accent-soft-shape-b);
4153
+ }
4154
+ .faast-summary-card--featured .faast-summary-card__content,
4155
+ .faast-summary-card--featured .faast-summary-card__unit,
4156
+ .faast-summary-card--featured .faast-summary-card__footer,
4157
+ .faast-summary-card--featured .faast-summary-card__note {
4158
+ color: var(--faast-accent-on-soft);
4159
+ }
4160
+ .faast-summary-card--featured .faast-summary-card__icon {
4161
+ background-color: var(--faast-accent-soft-glass);
4162
+ color: var(--faast-accent-on-soft);
4163
+ }
4164
+ /* A Badge inside the featured card becomes a glass chip: no border, no status colour. */
4165
+ .faast-summary-card--featured .faast-badge {
4166
+ border-color: transparent;
4167
+ background-color: var(--faast-accent-soft-glass);
4168
+ color: var(--faast-accent-on-soft);
4169
+ }
4170
+ .faast-summary-card--featured .faast-summary-card__action:hover {
4171
+ background-color: var(--faast-accent-soft-glass);
4172
+ }
4173
+ /* Placeholders on the featured card are glass, not the grey of the page surfaces. */
4174
+ .faast-summary-card--featured .faast-skeleton {
4175
+ background-color: var(--faast-accent-soft-glass);
4176
+ }
4177
+ @media (prefers-reduced-motion: reduce) {
4178
+ .faast-summary-card,
4179
+ .faast-summary-card__action {
4180
+ transition: none;
4181
+ }
4182
+ .faast-summary-card:has(.faast-summary-card__action):hover,
4183
+ .faast-summary-card__action:active {
4184
+ transform: none;
4185
+ }
4186
+ }
4187
+ @media (forced-colors: active) {
4188
+ /* The fills disappear in forced colours: keep the silhouette with a border on the surface. */
4189
+ .faast-summary-card__surface {
4190
+ border: 1px solid CanvasText;
4191
+ }
4192
+ }
4193
+
3756
4194
  /* ---------- Timeline ---------- */
3757
4195
  .faast-timeline {
3758
4196
  margin: 0;
@@ -4666,3 +5104,495 @@ html:has(.faast-welcome-dialog[open]:modal) {
4666
5104
  min-height: 40px;
4667
5105
  }
4668
5106
  }
5107
+
5108
+ /* ---------- StatusBadge variant="dot": status as text (dot + words, no pill) ---------- */
5109
+ /*
5110
+ * Colours are the `status-*-fg` roles (4.5:1 on bg-surface), never `status-*-solid`: the vivid
5111
+ * amber and green fills do not reach 3:1 on the page ground. `neutral` is ink: the dot uses
5112
+ * `text-secondary`. The label always stays in `text-primary`.
5113
+ */
5114
+ .faast-status-text {
5115
+ --faast-status-text-tone: var(--faast-text-secondary);
5116
+ display: inline-grid;
5117
+ justify-items: start;
5118
+ gap: var(--faast-space-1);
5119
+ color: var(--faast-text-primary);
5120
+ }
5121
+ .faast-status-text--success {
5122
+ --faast-status-text-tone: var(--faast-status-success-fg);
5123
+ }
5124
+ .faast-status-text--warning {
5125
+ --faast-status-text-tone: var(--faast-status-warning-fg);
5126
+ }
5127
+ .faast-status-text--danger {
5128
+ --faast-status-text-tone: var(--faast-status-danger-fg);
5129
+ }
5130
+ .faast-status-text--info {
5131
+ --faast-status-text-tone: var(--faast-status-info-fg);
5132
+ }
5133
+ .faast-status-text--violet {
5134
+ --faast-status-text-tone: var(--faast-status-violet-fg);
5135
+ }
5136
+ .faast-status-text--warning,
5137
+ .faast-status-text--danger {
5138
+ font-weight: var(--faast-font-weight-medium);
5139
+ }
5140
+ .faast-status-text__line {
5141
+ display: inline-flex;
5142
+ align-items: center;
5143
+ gap: var(--faast-space-2);
5144
+ white-space: nowrap;
5145
+ }
5146
+ .faast-status-text__dot {
5147
+ flex: none;
5148
+ box-sizing: border-box;
5149
+ width: 0.5rem;
5150
+ height: 0.5rem;
5151
+ border: 1.5px solid var(--faast-status-text-tone);
5152
+ border-radius: var(--faast-radius-full);
5153
+ background-color: transparent;
5154
+ }
5155
+ .faast-status-text--solid .faast-status-text__dot {
5156
+ background-color: var(--faast-status-text-tone);
5157
+ }
5158
+ .faast-status-text__note {
5159
+ font-size: var(--faast-font-size-xs);
5160
+ font-weight: var(--faast-font-weight-regular);
5161
+ color: var(--faast-text-secondary);
5162
+ }
5163
+ .faast-status-text--warning .faast-status-text__note,
5164
+ .faast-status-text--danger .faast-status-text__note {
5165
+ color: var(--faast-status-text-tone);
5166
+ }
5167
+ @media (forced-colors: active) {
5168
+ .faast-status-text__dot {
5169
+ border-color: CanvasText;
5170
+ }
5171
+ .faast-status-text--solid .faast-status-text__dot {
5172
+ background-color: CanvasText;
5173
+ }
5174
+ }
5175
+
5176
+ /* ---------- Glass material (Glass, glassClassName) ---------- */
5177
+ /*
5178
+ * For layers that FLOAT only. Solid by default; the translucent blur is an enhancement. The
5179
+ * opaque colour is the `bg-surface` role, so light, dark and tenant themes need nothing else.
5180
+ * No radius and no shadow here: the floating layer sets them.
5181
+ */
5182
+ .faast-glass {
5183
+ background-color: var(--faast-bg-surface);
5184
+ border: 1px solid var(--faast-border-default);
5185
+ }
5186
+ @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
5187
+ .faast-glass {
5188
+ background-color: color-mix(
5189
+ in srgb,
5190
+ var(--faast-bg-surface) var(--faast-glass-alpha-bar),
5191
+ transparent
5192
+ );
5193
+ -webkit-backdrop-filter: blur(var(--faast-glass-blur)) saturate(var(--faast-glass-saturate));
5194
+ backdrop-filter: blur(var(--faast-glass-blur)) saturate(var(--faast-glass-saturate));
5195
+ }
5196
+ .faast-glass--pop {
5197
+ background-color: color-mix(
5198
+ in srgb,
5199
+ var(--faast-bg-surface) var(--faast-glass-alpha-pop),
5200
+ transparent
5201
+ );
5202
+ }
5203
+ }
5204
+ @media (prefers-reduced-transparency: reduce) {
5205
+ .faast-glass,
5206
+ .faast-glass--pop {
5207
+ background-color: var(--faast-bg-surface);
5208
+ -webkit-backdrop-filter: none;
5209
+ backdrop-filter: none;
5210
+ }
5211
+ }
5212
+ /* "Reducir transparencia" switch: the app sets data-vidrio="solido" on <html> (or a subtree). */
5213
+ [data-vidrio='solido'] .faast-glass,
5214
+ [data-vidrio='solido'] .faast-glass--pop {
5215
+ background-color: var(--faast-bg-surface);
5216
+ -webkit-backdrop-filter: none;
5217
+ backdrop-filter: none;
5218
+ }
5219
+
5220
+ /* ---------- Toast variant="flotante" (glass notice) ---------- */
5221
+ /*
5222
+ * Sits after the glass block on purpose: `faast-glass` (same specificity) gives the translucent
5223
+ * background and the border, and wins over the dark background of `.faast-toast`. The material,
5224
+ * its solid fallbacks and the 92% opacity come from `faast-glass faast-glass--pop`.
5225
+ */
5226
+ .faast-toast--flotante {
5227
+ max-width: min(36rem, 100%);
5228
+ min-height: 0;
5229
+ padding: var(--faast-space-3) var(--faast-space-4);
5230
+ border-radius: var(--faast-radius-xl);
5231
+ color: var(--faast-text-primary);
5232
+ font-size: var(--faast-font-size-md);
5233
+ line-height: var(--faast-line-height-snug);
5234
+ animation-name: faast-toast-in-down;
5235
+ }
5236
+ .faast-toast--flotante:has(.faast-toast__close) {
5237
+ padding-right: var(--faast-space-2);
5238
+ }
5239
+ .faast-toast--flotante .faast-toast__message {
5240
+ padding-block: 0;
5241
+ text-wrap: balance;
5242
+ }
5243
+ /* A 20px box for the icon or the 16px ring, so the text does not move from waiting to done. */
5244
+ .faast-toast--flotante .faast-toast__icon {
5245
+ display: grid;
5246
+ flex: none;
5247
+ place-items: center;
5248
+ width: 1.25rem;
5249
+ height: 1.25rem;
5250
+ color: var(--faast-text-secondary);
5251
+ }
5252
+ .faast-toast--flotante.faast-toast--success .faast-toast__icon {
5253
+ color: var(--faast-status-success-fg);
5254
+ }
5255
+ .faast-toast--flotante .faast-toast__close:hover:not(:disabled) {
5256
+ background-color: var(--faast-bg-hover);
5257
+ opacity: 1;
5258
+ }
5259
+ @media (max-width: 639.98px) {
5260
+ .faast-toast--flotante {
5261
+ width: 100%;
5262
+ }
5263
+ }
5264
+
5265
+ /* ---------- Floating bar (BarraFlotante, BarraMarca, BarraModulos, BarraHerramientas) ---------- */
5266
+ /*
5267
+ * A glass capsule 12px from the top edge. Colours come only from theme roles, so tenant themes
5268
+ * (createTenantTheme) drive `accent-*` and `text-on-accent`. Text on the glass uses
5269
+ * `text-primary` and `text-secondary` only (`text-tertiary` fails 4.5:1 over a black backdrop).
5270
+ */
5271
+ :root {
5272
+ --faast-nav-bar-height: var(--faast-size-top-bar);
5273
+ --faast-nav-bar-margin: var(--faast-space-3);
5274
+ /*
5275
+ * Outer height of the bar as drawn: the brand link keeps the 44px touch target at every width,
5276
+ * plus the 8px padding above and below and the 1px glass border on each side = 62px, never
5277
+ * under --faast-nav-bar-height (the 56px minimum). What sits under the bar (the top notice
5278
+ * region) is measured from this one: the minimum alone left the notice 2px from the real bar.
5279
+ */
5280
+ --faast-nav-bar-outer-height: max(
5281
+ var(--faast-nav-bar-height),
5282
+ calc(var(--faast-size-touch-target) + var(--faast-space-2) * 2 + 2px)
5283
+ );
5284
+ }
5285
+ /* Anchors and focused fields never end up under the bar: bar + both margins + a breath. */
5286
+ :root:has(.faast-bar-wrap) {
5287
+ scroll-padding-top: calc(
5288
+ var(--faast-nav-bar-height) + var(--faast-nav-bar-margin) * 2 + var(--faast-space-4)
5289
+ );
5290
+ }
5291
+ .faast-bar-wrap {
5292
+ position: sticky;
5293
+ top: max(var(--faast-nav-bar-margin), var(--faast-safe-top));
5294
+ z-index: var(--faast-z-flyout);
5295
+ margin-top: var(--faast-nav-bar-margin);
5296
+ }
5297
+ .faast-bar {
5298
+ position: relative;
5299
+ display: flex;
5300
+ align-items: center;
5301
+ gap: var(--faast-space-2);
5302
+ min-height: var(--faast-nav-bar-height);
5303
+ padding: var(--faast-space-2) var(--faast-space-2) var(--faast-space-2) var(--faast-space-4);
5304
+ border-radius: var(--faast-radius-xl);
5305
+ transition: box-shadow var(--faast-duration-slow) var(--faast-ease-standard);
5306
+ }
5307
+ .faast-bar[data-elevada] {
5308
+ box-shadow: var(--faast-overlay-shadow);
5309
+ }
5310
+ @media (prefers-reduced-motion: reduce) {
5311
+ .faast-bar {
5312
+ transition: none;
5313
+ }
5314
+ }
5315
+ .faast-bar__brand {
5316
+ display: inline-flex;
5317
+ align-items: center;
5318
+ flex: none;
5319
+ color: inherit;
5320
+ text-decoration: none;
5321
+ min-height: var(--faast-size-touch-target);
5322
+ margin-right: var(--faast-space-3);
5323
+ border-radius: var(--faast-radius-sm);
5324
+ }
5325
+ .faast-bar__brand:focus-visible {
5326
+ outline: 2px solid var(--faast-focus-ring);
5327
+ outline-offset: 2px;
5328
+ }
5329
+ .faast-bar__nav {
5330
+ flex: 1 1 0;
5331
+ min-width: 0;
5332
+ }
5333
+ .faast-bar__list {
5334
+ display: flex;
5335
+ align-items: center;
5336
+ gap: var(--faast-space-1);
5337
+ margin: 0;
5338
+ padding: 0;
5339
+ list-style: none;
5340
+ }
5341
+ /* Invisible copy of the whole list the overflow is measured on (aria-hidden). */
5342
+ .faast-bar__measure {
5343
+ position: absolute;
5344
+ left: 0;
5345
+ top: 0;
5346
+ width: max-content;
5347
+ height: 0;
5348
+ overflow: hidden;
5349
+ visibility: hidden;
5350
+ pointer-events: none;
5351
+ }
5352
+ .faast-bar__item {
5353
+ display: inline-flex;
5354
+ align-items: center;
5355
+ gap: var(--faast-space-1);
5356
+ min-height: var(--faast-size-touch-target);
5357
+ padding: 0 var(--faast-space-3);
5358
+ border: 0;
5359
+ border-radius: var(--faast-radius-sm);
5360
+ background: transparent;
5361
+ color: var(--faast-text-secondary);
5362
+ font: inherit;
5363
+ font-size: var(--faast-font-size-sm);
5364
+ font-weight: var(--faast-font-weight-medium);
5365
+ text-decoration: none;
5366
+ white-space: nowrap;
5367
+ cursor: pointer;
5368
+ transition:
5369
+ background-color var(--faast-duration-fast) var(--faast-ease-standard),
5370
+ color var(--faast-duration-fast) var(--faast-ease-standard);
5371
+ }
5372
+ @media (min-width: 768px) and (pointer: fine) {
5373
+ .faast-bar__item,
5374
+ .faast-bar__tools .faast-icon-button {
5375
+ min-height: var(--faast-size-control-compact);
5376
+ }
5377
+ .faast-bar__tools .faast-icon-button {
5378
+ height: var(--faast-size-control-compact);
5379
+ }
5380
+ }
5381
+ /*
5382
+ * A long module name must never push "Más" or the tools out of reach: the list shrinks and the
5383
+ * label of a link ends in an ellipsis (the full text stays in the DOM and the accessible name).
5384
+ */
5385
+ .faast-bar__nav > .faast-bar__list:not(.faast-bar__measure) {
5386
+ min-width: 0;
5387
+ max-width: 100%;
5388
+ }
5389
+ .faast-bar__nav > .faast-bar__list:not(.faast-bar__measure) > li {
5390
+ flex: 0 1 auto;
5391
+ min-width: 0;
5392
+ }
5393
+ .faast-bar__nav > .faast-bar__list:not(.faast-bar__measure) > .faast-bar__more {
5394
+ flex: none;
5395
+ }
5396
+ .faast-bar__nav .faast-bar__item {
5397
+ max-width: 100%;
5398
+ }
5399
+ .faast-bar__label {
5400
+ min-width: 0;
5401
+ overflow: hidden;
5402
+ text-overflow: ellipsis;
5403
+ }
5404
+ .faast-bar__item:hover {
5405
+ background-color: var(--faast-bg-hover);
5406
+ color: var(--faast-text-primary);
5407
+ }
5408
+ .faast-bar__item[aria-current='page'] {
5409
+ background-color: var(--faast-bg-selected);
5410
+ color: var(--faast-text-primary);
5411
+ }
5412
+ .faast-bar__item[aria-expanded='true'] {
5413
+ background-color: var(--faast-bg-hover);
5414
+ color: var(--faast-text-primary);
5415
+ }
5416
+ .faast-bar__item:focus-visible,
5417
+ .faast-bar__tools .faast-icon-button:focus-visible,
5418
+ .faast-bar__tools .faast-button:focus-visible {
5419
+ outline: 2px solid var(--faast-focus-ring);
5420
+ outline-offset: 2px;
5421
+ }
5422
+ .faast-bar__tools {
5423
+ display: flex;
5424
+ align-items: center;
5425
+ gap: var(--faast-space-1);
5426
+ flex: none;
5427
+ }
5428
+ /* The list of modules lives in the sheet below 768px. */
5429
+ .faast-bar__menu-btn {
5430
+ display: none;
5431
+ min-width: var(--faast-size-touch-target);
5432
+ justify-content: center;
5433
+ }
5434
+ @media (max-width: 767.98px) {
5435
+ .faast-bar__nav {
5436
+ display: none;
5437
+ }
5438
+ .faast-bar__menu-btn {
5439
+ display: inline-flex;
5440
+ margin-inline-start: auto;
5441
+ }
5442
+ }
5443
+ /*
5444
+ * Very narrow phones (320px is a WCAG 1.4.10 reflow width): the bar gives back padding and gaps,
5445
+ * and "Módulos" shows only its icon (its name stays for assistive technology). 44px targets stay.
5446
+ */
5447
+ @media (max-width: 479.98px) {
5448
+ .faast-bar {
5449
+ gap: var(--faast-space-1);
5450
+ padding-left: var(--faast-space-3);
5451
+ }
5452
+ .faast-bar__brand {
5453
+ margin-right: var(--faast-space-1);
5454
+ }
5455
+ .faast-bar[data-marca='banda'] .faast-bar__brand {
5456
+ padding: 0 var(--faast-space-2);
5457
+ }
5458
+ .faast-bar__menu-label {
5459
+ position: absolute;
5460
+ width: 1px;
5461
+ height: 1px;
5462
+ overflow: hidden;
5463
+ clip-path: inset(50%);
5464
+ white-space: nowrap;
5465
+ }
5466
+ }
5467
+ /* The phone sheet floats, so it takes the same 20px as the bar on its top corners. */
5468
+ @media (max-width: 767.98px) {
5469
+ .faast-dialog.faast-bar__sheet {
5470
+ border-radius: var(--faast-radius-xl) var(--faast-radius-xl) 0 0;
5471
+ }
5472
+ }
5473
+ /*
5474
+ * "Más (n)" list: same radius and shadow as the bar, glass at the `pop` level. It is rendered as
5475
+ * a sibling of the bar's `header` inside `.faast-bar-wrap` (so its own blur sees the page, not
5476
+ * the bar's glass) and anchors to the wrap, whose right edge is the bar's.
5477
+ */
5478
+ .faast-bar__pop {
5479
+ position: absolute;
5480
+ top: calc(100% + var(--faast-space-2));
5481
+ right: 0;
5482
+ z-index: var(--faast-z-flyout);
5483
+ min-width: 15rem;
5484
+ max-width: calc(100vw - 2 * var(--faast-space-4));
5485
+ padding: var(--faast-space-2);
5486
+ border-radius: var(--faast-radius-xl);
5487
+ box-shadow: var(--faast-overlay-shadow);
5488
+ /* Taller than the window? It scrolls inside, keeping a margin under it (bar + 3 margins + gap). */
5489
+ max-height: calc(
5490
+ 100dvh - var(--faast-nav-bar-height) - var(--faast-nav-bar-margin) * 3 - var(--faast-space-2)
5491
+ );
5492
+ overflow-y: auto;
5493
+ overscroll-behavior: contain;
5494
+ }
5495
+ .faast-bar__pop-list,
5496
+ .faast-bar__sheet-list {
5497
+ display: grid;
5498
+ margin: 0;
5499
+ padding: 0;
5500
+ list-style: none;
5501
+ }
5502
+ .faast-bar__pop-list .faast-bar__item,
5503
+ .faast-bar__sheet-list .faast-bar__item {
5504
+ width: 100%;
5505
+ justify-content: space-between;
5506
+ color: var(--faast-text-primary);
5507
+ font-weight: var(--faast-font-weight-regular);
5508
+ }
5509
+ .faast-bar__sheet-list .faast-bar__item {
5510
+ min-height: var(--faast-size-touch-target);
5511
+ }
5512
+
5513
+ /* Brand variant "filo": a 2px edge in the brand colour on the bottom border. */
5514
+ .faast-bar[data-marca='filo']::after {
5515
+ content: '';
5516
+ position: absolute;
5517
+ left: var(--faast-radius-xl);
5518
+ right: var(--faast-radius-xl);
5519
+ bottom: -1px;
5520
+ height: 2px;
5521
+ border-radius: var(--faast-radius-full);
5522
+ background-color: var(--faast-accent-base);
5523
+ pointer-events: none;
5524
+ }
5525
+
5526
+ /*
5527
+ * Brand variant "banda": the bar is the brand colour; the logo sits on a bg-surface plate.
5528
+ * The current module is a 17% pill (the prototype used 18%: with the FaaST green over a pure
5529
+ * black backdrop 18% gives 4.49:1; 17% gives 4.60:1, asserted in @faast-app/themes).
5530
+ */
5531
+ .faast-bar[data-marca='banda'] {
5532
+ background-color: var(--faast-accent-base);
5533
+ border-color: var(--faast-accent-base);
5534
+ color: var(--faast-text-on-accent);
5535
+ }
5536
+ @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
5537
+ .faast-bar[data-marca='banda'] {
5538
+ background-color: color-mix(in srgb, var(--faast-accent-base) 94%, transparent);
5539
+ }
5540
+ }
5541
+ @media (prefers-reduced-transparency: reduce) {
5542
+ .faast-bar[data-marca='banda'] {
5543
+ background-color: var(--faast-accent-base);
5544
+ }
5545
+ }
5546
+ [data-vidrio='solido'] .faast-bar[data-marca='banda'] {
5547
+ background-color: var(--faast-accent-base);
5548
+ }
5549
+ .faast-bar[data-marca='banda'][data-elevada] {
5550
+ border-color: var(--faast-accent-hover);
5551
+ }
5552
+ .faast-bar[data-marca='banda'] .faast-bar__brand {
5553
+ padding: 0 var(--faast-space-3);
5554
+ background-color: var(--faast-bg-surface);
5555
+ }
5556
+ .faast-bar[data-marca='banda'] .faast-bar__item,
5557
+ .faast-bar[data-marca='banda'] .faast-bar__tools .faast-icon-button,
5558
+ .faast-bar[data-marca='banda'] .faast-bar__tools .faast-button--ghost {
5559
+ color: var(--faast-text-on-accent);
5560
+ }
5561
+ .faast-bar[data-marca='banda'] .faast-bar__item:hover,
5562
+ .faast-bar[data-marca='banda'] .faast-bar__item[aria-expanded='true'],
5563
+ .faast-bar[data-marca='banda'] .faast-bar__tools .faast-icon-button:hover:not(:disabled),
5564
+ .faast-bar[data-marca='banda'] .faast-bar__tools .faast-button--ghost:hover:not(:disabled) {
5565
+ background-color: color-mix(in srgb, var(--faast-text-on-accent) 12%, transparent);
5566
+ color: var(--faast-text-on-accent);
5567
+ }
5568
+ .faast-bar[data-marca='banda'] .faast-bar__item[aria-current='page'] {
5569
+ background-color: color-mix(in srgb, var(--faast-text-on-accent) 17%, transparent);
5570
+ color: var(--faast-text-on-accent);
5571
+ font-weight: var(--faast-font-weight-semibold);
5572
+ }
5573
+ .faast-bar[data-marca='banda'] .faast-bar__item:focus-visible,
5574
+ .faast-bar[data-marca='banda'] .faast-bar__tools .faast-icon-button:focus-visible,
5575
+ .faast-bar[data-marca='banda'] .faast-bar__tools .faast-button:focus-visible {
5576
+ outline-color: var(--faast-text-on-accent);
5577
+ }
5578
+ /* The "Más" list is a glass pop-over on bg-surface even over the brand band. */
5579
+ .faast-bar[data-marca='banda'] .faast-bar__pop .faast-bar__item {
5580
+ color: var(--faast-text-primary);
5581
+ }
5582
+ .faast-bar[data-marca='banda'] .faast-bar__pop .faast-bar__item:hover {
5583
+ background-color: var(--faast-bg-hover);
5584
+ color: var(--faast-text-primary);
5585
+ }
5586
+ .faast-bar[data-marca='banda'] .faast-bar__pop .faast-bar__item[aria-current='page'] {
5587
+ background-color: var(--faast-bg-selected);
5588
+ color: var(--faast-text-primary);
5589
+ font-weight: var(--faast-font-weight-medium);
5590
+ }
5591
+ .faast-bar[data-marca='banda'] .faast-bar__pop .faast-bar__item:focus-visible {
5592
+ outline-color: var(--faast-focus-ring);
5593
+ }
5594
+ @media (forced-colors: active) {
5595
+ .faast-bar[data-marca='filo']::after {
5596
+ background-color: Highlight;
5597
+ }
5598
+ }