Repository navigation
Expand file tree
/
Copy pathinventory.css
More file actions
354 lines (310 loc) · 7.62 KB
/
Copy pathinventory.css
File metadata and controls
354 lines (310 loc) · 7.62 KB
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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
/* -------------------------------------------- INVENTORY STARTS HERE -------------------------------------------------------------------- */
/* Inventory Grid Styles */
.inventory-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
margin-top: 20px;
}
/* Inventory Item Box Styles */
.inventory-item-box {
background-color: #0D3B66; /* Light blue background */
color: #333;
padding: 20px;
border-radius: 12px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
border: 1px solid #cce0ff; /* Light blue border to match */
display: flex;
flex-direction: column;
min-height: 180px;
}
.inventory-item-box:hover {
background-color: #3c649c; /* Slightly darker blue on hover */
transform: translateY(-3px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
border-color: #d0d0d0;
}
.inventory-item-box h3 {
margin: 0 0 15px; /* Increase bottom margin */
padding-bottom: 10px; /* Add padding for the underline */
border-bottom: 2px solid white; /* Subtle underline */
font-size: 1.2rem;
color: #ffffff;
font-weight: 600;
}
/* Low stock items */
.inventory-item-box.low-stock {
background-color: #5c1a1a; /* Dark red background */
border-color: #ff6b6b;
}
.inventory-item-box.low-stock:hover {
background-color: #7a2323; /* Slightly lighter red on hover */
}
/* Inventory Meta Styles */
.inventory-meta-inv {
display: flex;
flex-direction: column; /* Stack vertically */
gap: 8px; /* Space between rows */
margin-bottom: 15px;
width: 100%; /* Take full width */
}
.inventory-id-inv {
font-size: 0.95rem; /* Larger font size */
color: #ffffff; /* Example color - change as needed */
text-align: center; /* Align to center */
padding: 4px 0;
width: 100%;
}
.stock-count-inv {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 6px 8px;
border-radius: 6px;
font-size: 0.95rem; /* Larger font size */
font-weight: 500;
width: 100%;
box-sizing: border-box;
background-color: rgba(255, 255, 255, 0.1);
color: #ffffff;
}
.stock-count-inv.out-of-stock {
background-color: rgba(255, 0, 0, 0.2);
color: #ff6b6b;
}
/* Add Inventory Item Box Styles */
#addInventoryItemBoxInv {
background-color: #f8f9fa;
color: #495057;
border: 2px dashed #adb5bd;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
transition: all 0.3s ease;
}
#addInventoryItemBoxInv:hover {
background-color: #f1f3f5;
border-color: #868e96;
color: #212529;
}
#addInventoryItemBoxInv .add-icon {
stroke: #495057;
margin-bottom: 10px;
}
#addInventoryItemBoxInv:hover .add-icon {
stroke: #212529;
}
/* Inventory Actions Styles */
.inventory-actions-inv {
display: flex;
justify-content: space-between;
margin-top: auto;
gap: 10px;
min-width: 0; /* Allows children to shrink below content size */
}
.inventory-actions-inv button {
flex: 1;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 8px 12px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 0.85rem;
font-weight: 500;
transition: all 0.2s ease;
min-width: 0; /* Allows text truncation */
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
padding: 8px 6px; /* Reduced side padding */
}
.inventory-actions-inv .restock-btn-inv {
background-color: #e8f5e9;
color: #2e7d32;
}
.inventory-actions-inv .restock-btn-inv:hover {
background-color: #c8e6c9;
}
.inventory-actions-inv .edit-btn-inv {
background-color: #e3f2fd;
color: #1565c0;
}
.inventory-actions-inv .edit-btn-inv:hover {
background-color: #bbdefb;
}
/* Inventory Popup Styles */
.inventory-edit-popup-inv {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #ffffff;
padding: 25px;
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
z-index: 1000;
width: 380px;
max-width: 90%;
text-align: center;
}
.inventory-popup-content-inv h2 {
margin-top: 15px;
color: #2c3e50;
font-size: 1.4rem;
}
.popup-buttons-inv {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 25px;
}
.popup-buttons-inv button {
padding: 10px 20px;
border-radius: 6px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
gap: 6px;
}
.primary-btn-inv {
background-color: #0D3B66;
color: white;
border: none;
}
.primary-btn-inv:hover {
background-color: #184876;
}
.secondary-btn-inv {
background-color: #f8f9fa;
color: #495057;
border: 1px solid #dee2e6;
}
.secondary-btn-inv:hover {
background-color: #e9ecef;
}
/* Inventory Form Group Styles */
.inventory-form-group-inv {
margin-bottom: 15px;
text-align: left;
}
.inventory-form-group-inv label {
display: block;
margin-bottom: 5px;
font-weight: 500;
color: #555;
}
.inventory-popup-content-inv input {
width: 100%;
padding: 10px 15px;
font-size: 16px;
border: 1px solid #ddd;
border-radius: 8px;
transition: border-color 0.3s;
}
.inventory-popup-content-inv input:focus {
outline: none;
border-color: #1976d2;
box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}
.inventory-popup-content-inv input[type="number"] {
text-align: center;
}
/* Low Stock Banner */
.low-stock-banner {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 20px;
background-color: #ffebee;
color: #c62828;
border-radius: 8px;
margin-bottom: 15px;
font-weight: 500;
}
.low-stock-banner svg {
stroke-width: 2;
}
/* Inventory Search Styles */
#inventorySearchInv {
width: 100%;
padding: 12px 20px 12px 40px;
border: 3px solid #ddd;
border-radius: 4px;
font-size: 16px;
box-sizing: border-box;
}
#inventorySearchInv:focus {
outline: none;
border-color: #4a90e2;
box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}
/* Empty State Styles (shared with categories) */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px 20px;
text-align: center;
color: #7f8c8d;
}
.empty-state svg {
margin-bottom: 15px;
stroke-width: 1.5;
}
.empty-state p {
font-size: 1.1rem;
margin: 0;
}
/* Container for Inventory Dependencies (Checkboxes) */
#inventory-checklist {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-bottom: 16px;
max-height: 150px;
overflow-y: auto;
padding: 8px;
border: 1px solid #ccc;
border-radius: 8px;
background-color: #fafafa;
font-size: 14px;
}
/* Individual checkbox item style */
#inventory-checklist div {
display: flex;
align-items: center;
gap: 6px;
background-color: #fff;
padding: 6px 10px;
border: 1px solid #e0e0e0;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.2s ease;
}
/* Hover effect for individual items */
#inventory-checklist div:hover {
background-color: #f0f0f0;
}
/* Style for the checkboxes */
#inventory-checklist input[type="checkbox"] {
transform: scale(1.2);
accent-color: #4caf50; /* Custom checkbox color */
cursor: pointer;
}
.delete-btn-inv {
background-color: #ffebee;
color: #c62828;
border: none;
}
/* -------------------------------------------- INVENTORY ENDS HERE -------------------------------------------------------------------- */