Bin
2025-12-17 2b99d77d73ba568beff0a549534017caaad8a6de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
.columns__selector {
  position: absolute;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  top: 0;
 
  &__button-new.columns__selector__button-new {
    z-index: 1000;
    height: 28px;
    width: 28px;
    background-color: var(--white);
    box-shadow: 0 2px 5px 0 var(--black_20);
    margin: 6.5px 20px;
    border-radius: 4px;
 
    &:hover {
      border: none;
      filter: none;
      background: #ebf3fc;
    }
 
    &:active {
      background: linear-gradient(0deg, var(--black_2), var(--black_2)), #FFF;
      box-shadow: 0 0 5px 0 var(--black_20);
    }
  }
}
 
.table {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background-color: var(--color-neutral-background);
 
  &_fit {
    width: max-content;
  }
 
  &__sticky-header {
    width: 100%;
  }
 
  &__auto-size,
  &__virtual {
    width: auto;
 
    .table_fit & {
      width: fit-content;
    }
  }
 
  &__virtual {
    max-width: 100vw;
    min-width: 100vw;
  }
 
  &__virtual>div {
    min-width: fit-content;
  }
 
  &__row-wrapper {
    min-width: fit-content;
    position: relative;
    cursor: pointer;
    background-color: var(--color-neutral-background);
 
    &_disabled,
    &_loading {
      opacity: 0.6;
      pointer-events: none;
    }
 
    &_even:not(.table__row_wrapper_selected) {
      background-color: var(--color-neutral-surface);
    }
 
    &_selected {
      background-color: var(--color-primary-surface-content);
    }
 
    &:not(.table__row_wrapper_selected):hover {
      background-color: var(--color-primary-surface-content);
    }
 
    &_highlighted:not(.table__row_wrapper_selected)::after {
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      content: "";
      z-index: 50;
      position: absolute;
      pointer-events: none;
      box-shadow: 0 0 0 1px rgb(var(--accent_color-raw) / 80%) inset;
    }
  }
 
  &__cell {
    flex: 150 0 auto;
    width: fit-content;
    min-width: min-content;
    max-width: min-content;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: relative;
    word-break: break-word;
  }
 
  &__cell-content {
    flex: 0;
    display: flex;
    white-space: nowrap;
    align-items: center;
 
    &_disabled {
      opacity: 0.6;
      pointer-events: none;
    }
  }
}