File size: 8,780 Bytes
8729c1d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
.lp-proj-tasks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  color: var(--lp-ink);
  font-size: var(--lp-fs-sm);
}

.lp-proj-tasks-heading,
.lp-proj-task-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lp-proj-tasks-heading h3 {
  margin: 0;
  font-size: var(--lp-fs-sm);
  font-weight: 600;
}

.lp-proj-task-count {
  flex: none;
  color: var(--lp-muted);
  font-size: var(--lp-fs-xs);
  font-variant-numeric: tabular-nums;
}

.lp-proj-task-segments {
  display: flex;
  flex: 1;
  gap: 2px;
  height: 8px;
  border-radius: var(--lp-r-pill);
  background: var(--lp-wash);
  overflow: hidden;
}

.lp-proj-task-segments > span { flex-basis: 0; }
.lp-proj-task-segments > [data-status="Done"] { background: var(--lp-green-deep); }
.lp-proj-task-segments > [data-status="In progress"] { background: var(--lp-brand-navy); }
.lp-proj-task-segments > [data-status="Planned"] { background: var(--lp-yellow-deep); }

.lp-proj-task-list { min-width: 0; }
.lp-proj-task-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 104px 124px minmax(160px, auto) 32px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 0;
  border-bottom: 1px solid var(--lp-line);
  box-sizing: border-box;
}

.lp-proj-task-list:has([data-read-only]) .lp-proj-task-row {
  grid-template-columns: minmax(160px, 1fr) 104px 124px minmax(160px, auto);
}

.lp-proj-task-columns {
  min-height: 32px;
  background: var(--lp-surface-2);
  color: var(--lp-muted);
  font-size: var(--lp-fs-xs);
}

.lp-proj-task-columns > :first-child { padding-left: 28px; }
.lp-proj-task-row > [role="cell"] { min-width: 0; }
.lp-proj-task-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: calc(var(--task-depth, 0) * 20px);
}

.lp-proj-task-icon,
.lp-proj-task-name,
.lp-proj-task-link,
.lp-proj-task-add,
.lp-proj-task-menu-item {
  border: 0;
  border-radius: var(--lp-r-md);
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.lp-proj-task-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--lp-muted);
}

.lp-proj-task-caret,
.lp-proj-task-caret-space { flex: none; width: 20px; }
.lp-proj-task-caret > svg {
  transition: transform var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing);
}
.lp-proj-task-caret[data-expanded="true"] > svg { transform: rotate(90deg); }

.lp-proj-task-check {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--lp-green-deep);
  cursor: pointer;
}

.lp-proj-task-state-icon { display: inline-flex; flex: none; color: var(--lp-muted); }
.lp-proj-task-name-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lp-proj-task-name { display: block; padding: 4px 0; overflow-wrap: anywhere; }
.lp-proj-task-row[data-done] .lp-proj-task-name { color: var(--lp-muted); text-decoration: line-through; }
.lp-proj-task-backup { color: var(--lp-muted); font-size: var(--lp-fs-xs); overflow-wrap: anywhere; }
.lp-proj-task-targets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  color: var(--lp-muted);
  font-size: var(--lp-fs-xs);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.lp-proj-task-filter[data-closed] { color: var(--lp-green-deep); }
.lp-proj-task-targets > .lp-proj-task-link { padding: 0 4px; font-size: var(--lp-fs-xs); }

/* Task mode of the SKU picker: target kind and the separate completion filter. */
.lp-proj-task-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.lp-proj-task-pick > fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.lp-proj-task-pick-kind > label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--lp-fs-sm); cursor: pointer; }
.lp-proj-task-pick-kind input[type="radio"] { width: 16px; height: 16px; margin: 0; accent-color: var(--lp-brand-navy); cursor: pointer; }
.lp-proj-task-pick-kind input[type="radio"]:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; }
.lp-proj-task-pick-kind:disabled > label { cursor: not-allowed; }
.lp-proj-sku-table[data-preview] :is(th, td):first-child { width: auto; padding-left: 24px; padding-right: 16px; }

.lp-proj-task-status {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-md);
  font-size: var(--lp-fs-xs);
  color: var(--lp-muted);
}

.lp-proj-task-status[data-status="Done"] { background: var(--lp-green-tint); color: var(--lp-green-deep); }
.lp-proj-task-status[data-status="In progress"] { background: var(--lp-blue-tint); color: var(--lp-brand-navy); }
.lp-proj-task-status[data-status="Planned"] { background: var(--lp-yellow-tint); color: var(--lp-yellow-deep); }
.lp-proj-task-assignee { display: flex; align-items: center; gap: 8px; }
.lp-proj-task-assignee > .lp-proj-owner { flex: none; }
.lp-proj-task-assignee > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-proj-task-assignee .lp-proj-avatar { background: var(--lp-blue-tint); color: var(--lp-brand-navy); }
.lp-proj-task-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: var(--lp-fs-xs); font-variant-numeric: tabular-nums; }
.lp-proj-task-dates > svg { flex: none; color: var(--lp-muted); }
.lp-proj-task-dates > time { white-space: nowrap; }
.lp-proj-task-actions { position: relative; }
.lp-proj-task-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  z-index: var(--cg-z-overlay);
  display: flex;
  flex-direction: column;
  width: 192px;
  padding: 4px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-md);
  background: var(--lp-surface);
  color: var(--lp-ink);
  box-shadow: var(--lp-panel-shadow);
}

.lp-proj-task-menu-item { min-height: 32px; padding: 6px 8px; font-size: var(--lp-fs-xs); }
.lp-proj-task-menu-item[data-danger] { color: var(--lp-red-deep); }
.lp-proj-task-add { display: flex; align-items: center; align-self: flex-start; gap: 8px; min-height: 32px; padding: 4px 8px; color: var(--lp-muted); }
.lp-proj-task-link { padding: 4px 8px; color: var(--lp-brand-navy); }
.lp-proj-task-empty { margin: 0; color: var(--lp-muted); }
.lp-proj-task-error { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lp-proj-tasks > .lp-proj-error,
.lp-proj-task-error > p { margin: 0; }

.lp-proj-task-skeleton { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.lp-proj-task-skeleton > span { height: 28px; border-radius: var(--lp-r-md); background: var(--lp-wash); }
.lp-proj-task-skeleton > span:last-child { width: 72%; }
.lp-cpop.lp-proj-task-editor[data-size="narrow"] { width: min(480px, 100%); }
.lp-proj-task-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.lp-proj-task-form > p { margin: 0; overflow-wrap: anywhere; }
.lp-proj-task-form .lp-proj-input { box-sizing: border-box; }
.lp-proj-task-date-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-proj-task-form-actions { display: flex; justify-content: flex-end; gap: 8px; }

.lp-proj-tasks button:disabled,
.lp-proj-task-check:disabled,
.lp-proj-task-form :is(input, select, button):disabled { opacity: 0.55; cursor: not-allowed; }
.lp-proj-tasks :is(button, input):focus-visible,
.lp-proj-task-form :is(input, select, button):focus-visible {
  outline: 2px solid var(--lp-blue-deep);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .lp-proj-tasks button:hover:not(:disabled) { background: var(--lp-wash); }
  .lp-proj-task-icon:active:not(:disabled) { transform: scale(0.97); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-proj-task-caret > svg { transition: none; }
  .lp-proj-task-icon:active:not(:disabled) { transform: none; }
}

@media (max-width: 1100px) {
  .lp-proj-task-row,
  .lp-proj-task-list:has([data-read-only]) .lp-proj-task-row {
    grid-template-columns: minmax(0, 1fr) 104px 32px;
  }
  .lp-proj-task-columns { display: none; }
  .lp-proj-task-name-cell { grid-column: 1; grid-row: 1 / span 2; }
  .lp-proj-task-row > [role="cell"]:nth-child(2) { grid-column: 2; grid-row: 1; }
  .lp-proj-task-assignee { grid-column: 2; grid-row: 2; }
  .lp-proj-task-row > [role="cell"]:nth-child(4) { grid-column: 1 / span 2; grid-row: 3; padding-left: 28px; }
  .lp-proj-task-row > [role="cell"]:nth-child(5) { grid-column: 3; grid-row: 1 / span 2; }
  .lp-proj-task-row { padding: 8px 0; }
}

@media (max-width: 480px) {
  .lp-proj-task-date-inputs { grid-template-columns: minmax(0, 1fr); }
}