@layerfi/components 0.1.7 → 0.1.9

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.
@@ -58,7 +58,7 @@
58
58
  --text-heading: 24px;
59
59
  --text-heading-sm: 16px;
60
60
  --font-weight-normal: 460;
61
- --font-weight-bold: 580;
61
+ --font-weight-bold: 540;
62
62
  --spacing-4xs: 2px;
63
63
  --spacing-3xs: 4px;
64
64
  --spacing-2xs: 6px;
@@ -106,6 +106,7 @@
106
106
  --tooltip-bg-color: var(--color-base-800);
107
107
  --bar-color-income: var(--color-base-400);
108
108
  --bar-color-expenses: var(--color-base-900);
109
+ --chart-indicator-color: var(--color-base-700);
109
110
  --color-alabaster: #f9f9f9;
110
111
  --color-athens-gray: #eaecf0;
111
112
  --color-blue-ribbon: #0c48e5;
@@ -122,7 +123,6 @@
122
123
  --buttons-border-color: var(--color-mischke);
123
124
  --button-color-dark: var(--color-fiord);
124
125
  --corner-radius: 0.5rem;
125
- --indicator-color: var(--color-mine-shaft);
126
126
  --table-border-color: var(--color-athens-gray);
127
127
  --table-expanded-background-color: var(--color-alabaster);
128
128
  --text-color: var(--color-ebony);
@@ -424,6 +424,12 @@
424
424
  .Layer__chart__tooltip-list .Layer__chart__tooltip-value {
425
425
  color: var(--color-base-300);
426
426
  }
427
+ .Layer__chart__tooltip-list .Layer__chart__tooltip-value.positive {
428
+ color: var(--color-success);
429
+ }
430
+ .Layer__chart__tooltip-list .Layer__chart__tooltip-value.negative {
431
+ color: var(--color-danger);
432
+ }
427
433
  .Layer__component-container {
428
434
  border-radius: var(--border-radius-sm);
429
435
  border: 1px solid var(--border-color);
@@ -473,6 +479,27 @@
473
479
  display: flex;
474
480
  flex-direction: column;
475
481
  }
482
+ .Layer__input-group.Layer__input-group--inline {
483
+ flex-direction: row;
484
+ align-items: center;
485
+ width: 100%;
486
+ flex: 1;
487
+ }
488
+ .Layer__input-group.Layer__input-group--inline label {
489
+ width: 33%;
490
+ flex: 1 1 auto;
491
+ display: flex;
492
+ }
493
+ .Layer__input-group.Layer__input-group--inline input {
494
+ flex: 3 3 auto;
495
+ }
496
+ .Layer__input-group.Layer__input-group--inline .Layer__input-tooltip {
497
+ flex: 3 3 auto;
498
+ width: 100%;
499
+ }
500
+ .Layer__input-group.Layer__input-group--inline .Layer__input {
501
+ width: 100%;
502
+ }
476
503
  .Layer__input-label {
477
504
  padding: var(--spacing-2xs);
478
505
  color: var(--label-color);
@@ -654,6 +681,29 @@
654
681
  .Layer__select .Layer__select__control--is-focused {
655
682
  box-shadow: 0px 0px 0px 3px rgba(26, 26, 26, 0.08), 0px 0px 0px 1px var(--color-base-700);
656
683
  }
684
+ .Layer__select .Layer__select__multi-value {
685
+ border-radius: var(--border-radius-3xs);
686
+ background-color: var(--color-base-100);
687
+ color: var(--color-base-700);
688
+ }
689
+ .Layer__select .Layer__select__multi-value .Layer__select__multi-value__remove:hover {
690
+ background: #f3b9b9;
691
+ color: var(--color-danger);
692
+ cursor: pointer;
693
+ }
694
+ .Layer__select .Layer__select__multi-all-placeholder-badge {
695
+ border-radius: var(--border-radius-3xs);
696
+ background-color: var(--color-base-100);
697
+ color: var(--color-base-700);
698
+ padding: var(--spacing-2xs) var(--spacing-sm);
699
+ line-height: 120%;
700
+ height: 24px;
701
+ box-sizing: border-box;
702
+ }
703
+ .Layer__select .Layer__select__menu-notice {
704
+ white-space: nowrap;
705
+ font-size: 12px;
706
+ }
657
707
  .Layer__select .Layer__select__indicator-separator {
658
708
  display: none;
659
709
  }
@@ -780,6 +830,42 @@
780
830
  font-size: var(--text-sm) !important;
781
831
  }
782
832
  }
833
+ .Layer__profit-and-loss-date-picker {
834
+ width: 210px;
835
+ font-size: 14px;
836
+ display: flex;
837
+ flex-direction: row;
838
+ justify-content: center;
839
+ align-items: center;
840
+ padding: 0.25rem;
841
+ border: 1px solid var(--input-border-color);
842
+ border-radius: var(--input-border-radius);
843
+ }
844
+ .Layer__profit-and-loss-date-picker__button {
845
+ padding: 0.25rem;
846
+ display: flex;
847
+ justify-content: center;
848
+ align-items: center;
849
+ text-align: center;
850
+ background-color: var(--color-base-0);
851
+ border: 0;
852
+ border-radius: var(--input-border-radius);
853
+ }
854
+ .Layer__profit-and-loss-date-picker__button:active {
855
+ background-color: var(--color-base-0);
856
+ }
857
+ .Layer__profit-and-loss-date-picker__button-icon path {
858
+ stroke: var(--text-color);
859
+ }
860
+ .Layer__profit-and-loss-date-picker__label {
861
+ flex: 1;
862
+ font-size: 14px;
863
+ display: flex;
864
+ justify-content: flex-start;
865
+ align-items: center;
866
+ text-align: center;
867
+ padding: 0 var(--spacing-xs);
868
+ }
783
869
  .Layer__table {
784
870
  width: 100%;
785
871
  border-collapse: separate;
@@ -907,6 +993,7 @@
907
993
  "cv08" on,
908
994
  "ss03" on;
909
995
  line-height: 140%;
996
+ margin: 0;
910
997
  }
911
998
  .Layer__text--sm {
912
999
  font-size: var(--text-sm);
@@ -2240,147 +2327,238 @@
2240
2327
  border-right-color: transparent;
2241
2328
  }
2242
2329
  }
2243
- .Layer__chart-of-accounts {
2244
- background-color: var(--background-color);
2245
- border: 1px solid var(--border-color);
2246
- border-radius: var(--corner-radius);
2330
+ .Layer__component-container.Layer__ledger-accounts {
2331
+ display: flex;
2332
+ align-items: stretch;
2333
+ position: relative;
2247
2334
  }
2248
- .Layer__chart-of-accounts * {
2249
- color: var(--text-color);
2250
- stroke: var(--text-color);
2251
- font-family: Inter;
2252
- font-weight: 500;
2253
- font-style: normal;
2335
+ .Layer__ledger-accounts__loader-container {
2336
+ padding: var(--spacing-2xl);
2254
2337
  }
2255
- .Layer__chart-of-accounts__table {
2256
- display: grid;
2257
- grid-template-columns: 2fr 1fr 1fr 1fr auto;
2258
- gap: 1px 0;
2259
- font-size: 1rem;
2338
+ .Layer__ledger-accounts__main-panel {
2339
+ padding-bottom: var(--spacing-lg);
2340
+ flex: 1;
2341
+ }
2342
+ .Layer__ledger-accounts__sidebar {
2343
+ width: 480px;
2344
+ max-width: 0;
2345
+ overflow: hidden;
2346
+ transition: max-width 250ms ease-out;
2260
2347
  }
2261
- .Layer__chart-of-accounts__header {
2348
+ .Layer__ledger-accounts__sidebar .Layer__ledger-accounts__sidebar-content {
2349
+ width: 480px;
2350
+ height: 100%;
2351
+ opacity: 0.2;
2352
+ transition: opacity 250ms ease-out;
2353
+ background: var(--color-base-0);
2354
+ border-left: 1px solid var(--color-base-300);
2355
+ box-shadow: 0px -1px 0px 0px var(--color-base-300) inset;
2356
+ }
2357
+ .Layer__ledger-accounts__sidebar.Layer__ledger-accounts__sidebar.open {
2358
+ max-width: 480px;
2359
+ }
2360
+ .Layer__ledger-accounts__sidebar.Layer__ledger-accounts__sidebar.open .Layer__ledger-accounts__sidebar-content {
2361
+ opacity: 1;
2362
+ }
2363
+ .Layer__ledger-accounts__actions {
2262
2364
  display: flex;
2263
- flex: 1;
2264
- flex-direction: row;
2265
- padding: 1rem;
2266
- border-bottom: 1px solid var(--border-color);
2267
2365
  align-items: center;
2366
+ gap: var(--spacing-sm);
2268
2367
  }
2269
- .Layer__chart-of-accounts__title {
2270
- display: inline;
2271
- flex: 1;
2272
- font-size: 1.5rem;
2273
- font-weight: 600;
2274
- margin: 0;
2368
+ .Layer__coa__type.Layer__alt-table__head-cell,
2369
+ .Layer__coa__type.Layer__alt-table__cell,
2370
+ .Layer__coa__subtype.Layer__alt-table__head-cell,
2371
+ .Layer__coa__subtype.Layer__alt-table__cell,
2372
+ .Layer__coa__balance.Layer__alt-table__head-cell,
2373
+ .Layer__coa__balance.Layer__alt-table__cell,
2374
+ .Layer__coa__actions.Layer__alt-table__head-cell,
2375
+ .Layer__coa__actions.Layer__alt-table__cell {
2376
+ width: 18%;
2377
+ flex: 18 18 auto;
2378
+ }
2379
+ .Layer__coa__name.Layer__alt-table__head-cell,
2380
+ .Layer__coa__name.Layer__alt-table__cell {
2381
+ width: 28%;
2382
+ flex: 28 28 auto;
2383
+ }
2384
+ .Layer__alt-table__cell.Layer__coa__name,
2385
+ .Layer__alt-table__cell.Layer__coa__balance {
2386
+ color: var(--color-base-800);
2387
+ }
2388
+ .Layer__alt-table__cell.Layer__coa__balance {
2389
+ font-variation-settings: "wght" var(--font-weight-bold);
2275
2390
  }
2276
- .Layer__chart-of-accounts__actions {
2391
+ .Layer__alt-table-row--depth-0 .Layer__alt-table__cell.Layer__coa__name {
2392
+ font-variation-settings: "wght" var(--font-weight-bold);
2393
+ }
2394
+ .Layer__coa__balance {
2395
+ text-align: right;
2396
+ justify-content: flex-end;
2397
+ }
2398
+ .Layer__coa__actions {
2277
2399
  display: flex;
2278
- flex-direction: row;
2400
+ justify-content: flex-end;
2401
+ align-items: center;
2402
+ min-width: 192px;
2279
2403
  }
2280
- .Layer__chart-of-accounts__download-button {
2281
- align-self: center;
2282
- border: 2px solid var(--border-color);
2283
- background-color: var(--background-color);
2284
- border-radius: var(--corner-radius);
2285
- margin-left: 0.5rem;
2404
+ .Layer__coa__actions > .Layer__btn {
2405
+ opacity: 0;
2406
+ visibility: hidden;
2407
+ transition: all 300ms ease-out;
2408
+ transform: scale(0.92);
2409
+ }
2410
+ .Layer__alt-table-row:hover .Layer__coa__actions > .Layer__btn {
2411
+ opacity: 1;
2412
+ visibility: visible;
2413
+ transform: scale(1);
2414
+ }
2415
+ .Layer__ledger-accounts__sidebar__header {
2286
2416
  display: flex;
2287
- flex-direction: row;
2288
- justify-content: center;
2417
+ justify-content: space-between;
2418
+ align-items: flex-start;
2419
+ padding: var(--spacing-xl);
2420
+ padding-bottom: var(--spacing-lg);
2421
+ gap: var(--spacing-md);
2422
+ }
2423
+ .Layer__ledger-accounts__sidebar__header .title {
2424
+ margin: 0;
2425
+ font-size: 24px;
2426
+ }
2427
+ .Layer__ledger-accounts__sidebar__header .actions {
2428
+ display: flex;
2429
+ gap: var(--spacing-sm);
2289
2430
  align-items: center;
2290
- padding: 0.5rem 1rem;
2291
- font-weight: 600;
2292
2431
  }
2293
- .Layer__chart-of-accounts__download-button:active {
2294
- background-color: var(--active);
2432
+ .Layer__ledger-accounts__form {
2433
+ display: flex;
2434
+ flex-direction: column;
2435
+ padding: var(--spacing-xl);
2295
2436
  }
2296
- .Layer__chart-of-accounts__download-button svg {
2297
- margin-right: 0.5rem;
2437
+ .Layer__ledger-accounts__form .Layer__input-group.Layer__input-group--inline {
2438
+ padding: var(--spacing-sm) 0;
2298
2439
  }
2299
- .Layer__chart-of-accounts__edit-accounts-button {
2300
- align-self: center;
2301
- border: 2px solid var(--button-color-dark);
2302
- border-radius: var(--corner-radius);
2303
- margin-left: 0.5rem;
2440
+ .Layer__ledger-accounts__form .Layer__input-group.Layer__input-group--inline label {
2441
+ width: 140px;
2442
+ min-width: 140px;
2443
+ max-width: 140px;
2444
+ }
2445
+ .Layer__ledger-accounts__form-edit-entry {
2446
+ padding: var(--spacing-md) var(--spacing-xl);
2304
2447
  display: flex;
2305
- flex-direction: row;
2306
- justify-content: center;
2307
2448
  align-items: center;
2308
- color: var(--background-color);
2309
- background-color: var(--button-color-dark);
2310
- padding: 0.5rem 1rem;
2311
- font-weight: 600;
2449
+ justify-content: space-between;
2450
+ gap: var(--spacing-md);
2312
2451
  }
2313
- .Layer__chart-of-accounts__edit-accounts-button svg {
2314
- margin-right: 0.5rem;
2452
+ .Layer__ledger-accounts__form-edit-entry .Layer__text {
2453
+ margin: 0;
2315
2454
  }
2316
- .Layer__chart-of-accounts__edit-accounts-button:active {
2317
- background-color: var(--active);
2455
+ .Layer__alt-table-row {
2456
+ width: 100%;
2457
+ display: flex;
2458
+ align-items: center;
2459
+ padding: 0 var(--spacing-md);
2460
+ box-sizing: border-box;
2461
+ box-shadow: 0px -1px 0px 0px var(--color-base-300) inset;
2462
+ transition: background 200ms ease-in-out;
2463
+ position: relative;
2318
2464
  }
2319
- .Layer__chart-of-accounts__table-cell--header {
2320
- font-weight: 700;
2465
+ .Layer__alt-table-row:not(.Layer__alt-table-row--header) {
2466
+ cursor: pointer;
2321
2467
  }
2322
- .Layer__chart-of-accounts__table-cell--header,
2323
- .Layer__chart-of-accounts-row__table-cell {
2324
- background-color: var(--background-color);
2325
- padding: 1rem 1.5rem;
2468
+ .Layer__alt-table-row:not(.Layer__alt-table-row--header):hover {
2469
+ background-color: var(--color-base-50);
2470
+ }
2471
+ .Layer__alt-table-row.active {
2472
+ background-color: var(--color-base-50);
2473
+ }
2474
+ .Layer__alt-table-row.active:before {
2475
+ content: "";
2476
+ background-color: var(--color-base-400);
2477
+ height: 100%;
2478
+ width: 2px;
2479
+ position: absolute;
2480
+ left: 0;
2481
+ top: 0;
2482
+ bottom: 0;
2483
+ }
2484
+ .Layer__alt-table__head-cell,
2485
+ .Layer__alt-table__cell {
2486
+ flex: 1;
2487
+ padding: var(--spacing-md);
2488
+ }
2489
+ .Layer__alt-table__head-cell {
2490
+ color: var(--color-base-600);
2491
+ font-size: 12px;
2492
+ }
2493
+ .Layer__alt-table__cell {
2494
+ color: var(--color-base-600);
2495
+ font-size: 14px;
2326
2496
  display: flex;
2327
- flex-direction: row;
2328
2497
  align-items: center;
2498
+ gap: var(--spacing-md);
2329
2499
  }
2330
- .Layer__chart-of-accounts__table-cell--header-balance,
2331
- .Layer__chart-of-accounts-row__table-cell--balance {
2332
- justify-content: flex-end;
2500
+ .Layer__alt-table__expand-icon {
2501
+ transition: transform 150ms ease-out;
2502
+ color: var(--color-base-600);
2333
2503
  }
2334
- .Layer__chart-of-accounts-row__table-cell--amount-positive::before {
2335
- content: "$";
2504
+ .Layer__alt-table-row:not(.Layer__alt-table-row--depth-0):not(.Layer__alt-table-row--header) {
2505
+ background-color: var(--color-base-50);
2336
2506
  }
2337
- .Layer__chart-of-accounts-row__table-cell--amount-negative::before {
2338
- content: "-$";
2507
+ .Layer__alt-table-row--collapsed .Layer__alt-table__expand-icon {
2508
+ transform: rotate(-90deg);
2339
2509
  }
2340
- .Layer__chart-of-accounts-row__table-cell--depth-0 {
2341
- font-weight: 700;
2510
+ .Layer__accounts-receivable__index {
2511
+ position: fixed;
2512
+ visibility: hidden;
2513
+ top: 0;
2514
+ left: 0;
2515
+ width: 100%;
2516
+ height: 100%;
2517
+ z-index: 1;
2518
+ background-color: var(--color-base-0);
2519
+ transform: scale(0.5), translateY(-100);
2520
+ opacity: 0.4;
2521
+ transition: transform 200ms ease-out, opacity 300ms ease-out;
2342
2522
  }
2343
- .Layer__chart-of-accounts-row__table-cell--depth-1.Layer__chart-of-accounts-row__table-cell--name {
2344
- padding-right: 2em;
2345
- padding-left: 2em;
2523
+ .Layer__accounts-receivable__index.open {
2524
+ visibility: visible;
2525
+ transform: scale(1), translateY(0);
2526
+ opacity: 1;
2346
2527
  }
2347
- .Layer__chart-of-accounts-row__table-cell--depth-2.Layer__chart-of-accounts-row__table-cell--name {
2348
- padding-right: 2em;
2349
- padding-left: 4em;
2528
+ .Layer__accounts-receivable__header {
2529
+ display: flex;
2530
+ flex-direction: column;
2531
+ padding: var(--spacing-xl);
2532
+ padding-bottom: var(--spacing-md);
2533
+ align-items: flex-start;
2534
+ justify-content: flex-start;
2350
2535
  }
2351
- .Layer__chart-of-accounts-row__view-entries-button {
2352
- align-self: center;
2353
- border: 2px solid var(--border-color);
2354
- background-color: var(--background-color);
2355
- border-radius: var(--corner-radius);
2356
- margin-left: 0.5rem;
2536
+ .Layer__accounts-receivable__title-container {
2357
2537
  display: flex;
2358
- flex-direction: row;
2359
- justify-content: center;
2538
+ justify-content: space-between;
2360
2539
  align-items: center;
2361
- padding: 0.5rem 1rem;
2362
- font-weight: 600;
2540
+ width: 100%;
2541
+ padding-top: var(--spacing-md);
2542
+ padding-bottom: var(--spacing-3xs);
2363
2543
  }
2364
- .Layer__chart-of-accounts-row__view-entries-button:active {
2365
- background-color: var(--active);
2544
+ .Layer__accounts-receivable__title {
2545
+ font-size: 24px;
2366
2546
  }
2367
- .Layer__chart-of-accounts-new-form {
2368
- display: grid;
2369
- grid-template-columns: auto 1fr;
2370
- border: 1px solid var(--border-color);
2371
- border-radius: var(--corner-radius);
2372
- font-size: 1rem;
2547
+ .Layer__accounts-receivable__balance-container {
2548
+ display: flex;
2549
+ align-items: center;
2550
+ gap: var(--spacing-xs);
2373
2551
  }
2374
- .Layer__chart-of-accounts-new-form__field {
2375
- display: grid;
2376
- grid-column: span 2;
2377
- grid-template-columns: subgrid;
2378
- padding: 0.5rem;
2379
- margin: 0.5rem;
2552
+ .Layer__accounts-receivable__balance-label {
2553
+ color: var(--color-base-600);
2380
2554
  }
2381
- .Layer__chart-of-accounts-new-form__field span {
2382
- padding-right: 0.5rem;
2383
- align-self: center;
2555
+ .Layer__accounts-receivable-table .Layer__table-cell {
2556
+ border-top: 1px solid var(--border-color);
2557
+ }
2558
+ @container (max-width: 1400px) {
2559
+ .Layer__accounts-receivable__header {
2560
+ padding: var(--spacing-md);
2561
+ }
2384
2562
  }
2385
2563
  .Layer__data-state {
2386
2564
  display: flex;
@@ -2646,15 +2824,25 @@
2646
2824
  max-width: 480px;
2647
2825
  opacity: 1;
2648
2826
  }
2649
- @container (max-width: 1100px) {
2827
+ @container (max-width: 1023px) {
2650
2828
  .Layer__profit-and-loss__side-panel {
2829
+ transition: transform 200ms ease-out;
2651
2830
  position: absolute;
2652
- right: -500px;
2831
+ left: 0;
2832
+ right: 0;
2653
2833
  top: 0;
2834
+ transform: translateX(-100%);
2835
+ z-index: -1;
2836
+ max-width: 100%;
2837
+ width: 100%;
2654
2838
  height: 100%;
2655
2839
  }
2656
2840
  .Layer__profit-and-loss__side-panel.open {
2841
+ left: 0;
2657
2842
  right: 0;
2843
+ max-width: 100%;
2844
+ transform: translateX(0);
2845
+ z-index: 1;
2658
2846
  }
2659
2847
  }
2660
2848
  .Layer__profit-and-loss__title {
@@ -2677,7 +2865,7 @@
2677
2865
  min-height: 950px;
2678
2866
  }
2679
2867
  .Layer__profit-and-loss-table__outflows {
2680
- margin-top: 1rem;
2868
+ padding-top: var(--spacing-2xs);
2681
2869
  }
2682
2870
  .Layer__profit-and-loss-row {
2683
2871
  padding: 1em;
@@ -2711,10 +2899,14 @@
2711
2899
  }
2712
2900
  .Layer__profit-and-loss-row__label {
2713
2901
  display: flex;
2714
- justify-content: flex-start;
2902
+ justify-content: space-between;
2903
+ align-items: center;
2904
+ }
2905
+ .Layer__profit-and-loss-row__label .Layer__profit-and-loss-row__label__title {
2906
+ display: flex;
2715
2907
  align-items: center;
2716
2908
  }
2717
- .Layer__profit-and-loss-row__label svg {
2909
+ .Layer__profit-and-loss-row__label svg.Layer__profit-and-loss-row__label__chevron {
2718
2910
  color: var(--color-base-600);
2719
2911
  width: 1.25rem;
2720
2912
  height: 1.25rem;
@@ -2728,7 +2920,7 @@
2728
2920
  .Layer__profit-and-loss-row__value.Layer__profit-and-loss-row__value--display-children-true:hover + .Layer__profit-and-loss-row__label {
2729
2921
  background: var(--color-base-50);
2730
2922
  }
2731
- .Layer__profit-and-loss-row__label--expanded svg {
2923
+ .Layer__profit-and-loss-row__label--expanded svg.Layer__profit-and-loss-row__label__chevron {
2732
2924
  transform: rotate(0deg);
2733
2925
  }
2734
2926
  .Layer__profit-and-loss-row__value--expanded {
@@ -2749,7 +2941,7 @@
2749
2941
  .Layer__profit-and-loss-row__label--display-children-false {
2750
2942
  font-weight: normal;
2751
2943
  }
2752
- .Layer__profit-and-loss-row__label--display-children-false svg {
2944
+ .Layer__profit-and-loss-row__label--display-children-false svg.Layer__profit-and-loss-row__label__chevron {
2753
2945
  visibility: hidden;
2754
2946
  display: none;
2755
2947
  }
@@ -2810,48 +3002,15 @@
2810
3002
  font-variation-settings: "wght" var(--font-weight-normal);
2811
3003
  margin: 0;
2812
3004
  }
2813
- .Layer__profit-and-loss-date-picker {
2814
- width: 270px;
2815
- display: flex;
2816
- flex-direction: row;
2817
- justify-content: center;
2818
- align-items: center;
2819
- padding: 0.25rem;
2820
- border: 1px solid var(--border-color);
2821
- border-radius: var(--corner-radius);
2822
- }
2823
- .Layer__profit-and-loss-date-picker__button {
2824
- padding: 0.25rem;
2825
- display: flex;
2826
- justify-content: center;
2827
- align-items: center;
2828
- text-align: center;
2829
- background-color: var(--background-color);
2830
- border: 0;
2831
- border-radius: var(--corner-radius);
2832
- }
2833
- .Layer__profit-and-loss-date-picker__button:active {
2834
- background-color: var(--active);
2835
- }
2836
- .Layer__profit-and-loss-date-picker__button-icon path {
2837
- stroke: var(--text-color);
2838
- }
2839
- .Layer__profit-and-loss-date-picker__label {
2840
- flex: 1;
2841
- font-size: 1rem;
2842
- display: flex;
2843
- justify-content: center;
2844
- align-items: center;
2845
- text-align: center;
2846
- }
2847
3005
  .Layer__profit-and-loss-chart .recharts-cartesian-axis-tick-value tspan {
2848
3006
  font-size: 0.75rem;
2849
3007
  }
2850
3008
  .Layer__profit-and-loss-chart .recharts-legend-wrapper {
2851
- margin-top: -1.25rem;
3009
+ margin-top: 1.75rem;
2852
3010
  }
2853
3011
  .Layer__profit-and-loss-chart .recharts-legend-item-text {
2854
- font-size: 1rem;
3012
+ font-size: 12px;
3013
+ color: var(--color-base-700);
2855
3014
  vertical-align: middle;
2856
3015
  }
2857
3016
  .Layer__profit-and-loss-chart .recharts-legend-item {
@@ -2865,9 +3024,9 @@
2865
3024
  fill: var(--bar-color-expenses);
2866
3025
  }
2867
3026
  .Layer__profit-and-loss-chart__selection-indicator {
2868
- stroke: var(--indicator-color);
3027
+ stroke: var(--chart-indicator-color);
2869
3028
  fill: none;
2870
- transition: x 0.5s;
3029
+ transition: x 0.35s ease-in-out;
2871
3030
  }
2872
3031
  .Layer__profit-and-loss__chart_with_summaries {
2873
3032
  display: flex;
@@ -2893,7 +3052,6 @@
2893
3052
  flex-direction: column;
2894
3053
  flex: 1;
2895
3054
  padding: var(--spacing-md);
2896
- padding-top: 68px;
2897
3055
  }
2898
3056
  .Layer__profit-and-loss-summaries {
2899
3057
  display: flex;
@@ -2909,23 +3067,36 @@
2909
3067
  .Layer__profit-and-loss-summaries__summary {
2910
3068
  display: flex;
2911
3069
  flex: 1;
2912
- flex-direction: column;
2913
- gap: var(--spacing-4xs);
2914
- justify-content: center;
3070
+ gap: var(--spacing-xs);
3071
+ align-items: center;
2915
3072
  box-shadow: 0px 0px 0px 1px var(--color-base-300);
2916
3073
  border-radius: var(--border-radius-xs);
2917
- padding: var(--spacing-md);
2918
- min-height: 72px;
3074
+ padding: var(--spacing-4xs);
3075
+ min-height: 52px;
2919
3076
  box-sizing: border-box;
2920
3077
  }
2921
3078
  .Layer__profit-and-loss-summaries__summary.Layer__actionable {
2922
3079
  cursor: pointer;
2923
3080
  }
2924
3081
  .Layer__profit-and-loss-summaries__summary.Layer__actionable:hover {
2925
- box-shadow: 0px 0px 0px 1px var(--color-base-500);
3082
+ background: var(--color-base-50);
2926
3083
  }
2927
3084
  .Layer__profit-and-loss-summaries__summary.active {
2928
- box-shadow: 0px 0px 0px 1px var(--color-base-900);
3085
+ box-shadow: 0px 0px 0px 1px var(--color-base-200);
3086
+ background: var(--color-base-50);
3087
+ }
3088
+ .Layer__profit-and-loss-summaries__summary .mini-chart {
3089
+ background: var(--color-base-50);
3090
+ border-radius: 6px;
3091
+ border-width: 0;
3092
+ box-shadow: none;
3093
+ }
3094
+ .Layer__profit-and-loss-summaries__summary.net-profit {
3095
+ padding-left: var(--spacing-xs);
3096
+ background: var(--color-base-50);
3097
+ border-color: transparent;
3098
+ box-shadow: none;
3099
+ min-height: 56px;
2929
3100
  }
2930
3101
  .Layer__profit-and-loss-summaries__loader {
2931
3102
  height: 17px;
@@ -2935,18 +3106,22 @@
2935
3106
  .Layer__profit-and-loss-summaries__loader .Layer__skeleton-loader {
2936
3107
  height: 14px;
2937
3108
  }
3109
+ .Layer__profit-and-loss-summaries__text {
3110
+ display: flex;
3111
+ flex-direction: column;
3112
+ gap: var(--spacing-4xs);
3113
+ }
2938
3114
  .Layer__profit-and-loss-summaries__title {
2939
- color: var(--text-color-primary);
3115
+ color: var(--color-base-700);
2940
3116
  font-size: var(--text-sm);
2941
3117
  }
2942
3118
  .Layer__profit-and-loss-summaries__month {
2943
3119
  font-size: 1.125rem;
2944
3120
  margin-bottom: 0.25rem;
2945
- color: red;
2946
3121
  }
2947
3122
  .Layer__profit-and-loss-summaries__amount,
2948
3123
  .Layer__profit-and-loss-summaries__amount--positive {
2949
- color: var(--text-color-primary);
3124
+ color: var(--color-base-900);
2950
3125
  font-size: var(--text-md);
2951
3126
  }
2952
3127
  .Layer__profit-and-loss-summaries__amount::before,
@@ -3038,7 +3213,24 @@
3038
3213
  min-width: 150px;
3039
3214
  }
3040
3215
  }
3041
- .Layer__profit-and-loss-detailed-charts > header {
3216
+ .Layer__profit-and-loss-row__detailed-chart-btn {
3217
+ width: 20px;
3218
+ height: 20px;
3219
+ border-radius: 50%;
3220
+ display: flex;
3221
+ align-items: center;
3222
+ justify-content: center;
3223
+ background: var(--color-base-100);
3224
+ color: var(--color-base-600);
3225
+ cursor: pointer;
3226
+ transition: color 150ms ease-out, background-color 150ms ease-out;
3227
+ }
3228
+ .Layer__profit-and-loss-row__detailed-chart-btn:hover {
3229
+ background: var(--color-base-200);
3230
+ color: var(--color-base-900);
3231
+ }
3232
+ .Layer__profit-and-loss-detailed-charts__header--tablet,
3233
+ .Layer__profit-and-loss-detailed-charts__header {
3042
3234
  display: flex;
3043
3235
  justify-content: space-between;
3044
3236
  align-items: flex-start;
@@ -3046,12 +3238,24 @@
3046
3238
  padding-bottom: var(--spacing-lg);
3047
3239
  box-shadow: 0px -1px 0px 0px var(--color-base-300) inset;
3048
3240
  }
3049
- .Layer__profit-and-loss-detailed-charts > header button.Layer__btn.Layer__btn--icon-only {
3241
+ .Layer__profit-and-loss-detailed-charts__header--tablet button.Layer__btn.Layer__btn--icon-only,
3242
+ .Layer__profit-and-loss-detailed-charts__header button.Layer__btn.Layer__btn--icon-only {
3050
3243
  width: 32px;
3051
3244
  height: 32px;
3052
3245
  min-height: 32px;
3053
3246
  padding: 0;
3054
3247
  }
3248
+ header.Layer__profit-and-loss-detailed-charts__header--tablet {
3249
+ display: none;
3250
+ }
3251
+ @container (max-width: 1023px) and (min-width: 768px) {
3252
+ header.Layer__profit-and-loss-detailed-charts__header {
3253
+ display: none;
3254
+ }
3255
+ header.Layer__profit-and-loss-detailed-charts__header--tablet {
3256
+ display: flex;
3257
+ }
3258
+ }
3055
3259
  .Layer__profit-and-loss-detailed-charts__head {
3056
3260
  display: flex;
3057
3261
  flex-direction: column;
@@ -3066,6 +3270,9 @@
3066
3270
  .Layer__profit-and-loss-detailed-charts__head > .Layer__text {
3067
3271
  margin: 0;
3068
3272
  }
3273
+ .Layer__profit-and-loss-detailed-charts__head .Layer__profit-and-loss-date-picker {
3274
+ display: none;
3275
+ }
3069
3276
  .Layer__profit-and-loss-detailed-charts {
3070
3277
  width: 480px;
3071
3278
  background: var(--color-base-0);
@@ -3111,6 +3318,7 @@
3111
3318
  "cv05" on,
3112
3319
  "cv08" on,
3113
3320
  "ss03" on;
3321
+ display: inline-flex;
3114
3322
  }
3115
3323
  .Layer__profit-and-loss-detailed-charts .type-select .Layer__select__control {
3116
3324
  border-color: transparent;
@@ -3122,6 +3330,7 @@
3122
3330
  "cv05" on,
3123
3331
  "cv08" on,
3124
3332
  "ss03" on;
3333
+ box-shadow: none;
3125
3334
  }
3126
3335
  .Layer__profit-and-loss-detailed-charts .type-select .Layer__select__placeholder {
3127
3336
  font-size: 12px;
@@ -3160,7 +3369,7 @@
3160
3369
  }
3161
3370
  .Layer__profit-and-loss-detailed-charts .details-container {
3162
3371
  padding: var(--spacing-md);
3163
- padding-top: var(--spacing-sm);
3372
+ padding-top: var(--spacing-2xs);
3164
3373
  }
3165
3374
  .Layer__profit-and-loss-detailed-charts .details-container table {
3166
3375
  width: 100%;
@@ -3184,6 +3393,7 @@
3184
3393
  color: var(--color-base-500);
3185
3394
  border-bottom: 1px solid var(--color-base-300);
3186
3395
  transition: color 150ms ease-out;
3396
+ padding-bottom: var(--spacing-sm);
3187
3397
  }
3188
3398
  .Layer__profit-and-loss-detailed-charts .details-container table th:hover {
3189
3399
  color: var(--color-base-800);
@@ -3207,24 +3417,99 @@
3207
3417
  height: 12px;
3208
3418
  border-radius: 2px;
3209
3419
  }
3420
+ .Layer__profit-and-loss-detailed-table__row {
3421
+ transition: background-color 300ms ease-out;
3422
+ background: transparent;
3423
+ border-radius: 2px;
3424
+ }
3210
3425
  .Layer__profit-and-loss-detailed-table__row .category-col,
3211
3426
  .Layer__profit-and-loss-detailed-table__row .value-col {
3212
3427
  color: var(--color-base-900);
3213
3428
  }
3214
3429
  .Layer__profit-and-loss-detailed-table__row .type-col,
3215
3430
  .Layer__profit-and-loss-detailed-table__row .share-col {
3216
- color: var(--color-base-1000);
3217
- }
3218
- .Layer__profit-and-loss-detailed-table__row.inactive .type-col,
3219
- .Layer__profit-and-loss-detailed-table__row.inactive .share-col {
3220
3431
  color: var(--color-base-500);
3221
3432
  }
3433
+ .Layer__profit-and-loss-detailed-table__row.active {
3434
+ background: var(--color-base-50);
3435
+ }
3436
+ .Layer__profit-and-loss-detailed-table__row.active .category-col,
3437
+ .Layer__profit-and-loss-detailed-table__row.active .value-col,
3438
+ .Layer__profit-and-loss-detailed-table__row.active .type-col,
3439
+ .Layer__profit-and-loss-detailed-table__row.active .share-col {
3440
+ color: var(--color-base-1000);
3441
+ }
3222
3442
  .Layer__profit-and-loss-detailed-charts__pie {
3223
3443
  transition: fill 1000ms ease-out;
3224
3444
  }
3225
3445
  .Layer__profit-and-loss-detailed-charts__pie.inactive {
3226
3446
  fill: var(--color-base-300);
3227
3447
  }
3448
+ .Layer__profit-and-loss-detailed-charts .header--tablet {
3449
+ display: none;
3450
+ }
3451
+ .Layer__profit-and-loss-detailed-charts .chart-field {
3452
+ display: flex;
3453
+ flex-direction: column;
3454
+ }
3455
+ @container (max-width: 1023px) {
3456
+ .Layer__profit-and-loss-detailed-charts {
3457
+ width: 100%;
3458
+ height: 100%;
3459
+ }
3460
+ }
3461
+ @container (max-width: 1023px) and (min-width: 768px) {
3462
+ .Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__content {
3463
+ display: flex;
3464
+ flex-direction: row;
3465
+ justify-content: space-between;
3466
+ }
3467
+ .Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__content .chart-container {
3468
+ max-width: 300px;
3469
+ }
3470
+ .Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__table-wrapper {
3471
+ display: flex;
3472
+ flex-direction: column;
3473
+ flex: 1;
3474
+ }
3475
+ .Layer__profit-and-loss-detailed-charts .header--tablet {
3476
+ display: flex;
3477
+ flex-direction: column;
3478
+ padding-left: var(--spacing-xl);
3479
+ padding-top: var(--spacing-lg);
3480
+ }
3481
+ .Layer__profit-and-loss-detailed-charts .header--tablet .Layer__text {
3482
+ margin: 0;
3483
+ }
3484
+ .Layer__profit-and-loss-detailed-charts .header--tablet .title {
3485
+ font-size: 24px;
3486
+ }
3487
+ .Layer__profit-and-loss-detailed-charts .header--tablet .Layer__profit-and-loss-date-picker {
3488
+ margin-top: var(--spacing-sm);
3489
+ }
3490
+ .Layer__profit-and-loss-detailed-charts .header--tablet .Layer__profit-and-loss-date-picker .Layer__profit-and-loss-date-picker__label {
3491
+ font-size: 14px;
3492
+ }
3493
+ }
3494
+ @container (max-width: 767px) {
3495
+ .Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__content {
3496
+ display: flex;
3497
+ flex-direction: column;
3498
+ align-items: center;
3499
+ }
3500
+ .Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__table-wrapper {
3501
+ width: 100%;
3502
+ }
3503
+ .Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__head .date {
3504
+ display: none;
3505
+ }
3506
+ .Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__head .Layer__profit-and-loss-date-picker {
3507
+ display: flex;
3508
+ }
3509
+ .Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__head .Layer__profit-and-loss-date-picker .Layer__profit-and-loss-date-picker__label {
3510
+ font-size: 14px;
3511
+ }
3512
+ }
3228
3513
  .Layer__radio-button-group {
3229
3514
  display: flex;
3230
3515
  font-size: 1rem;