File size: 6,214 Bytes
a3d0e2c
29905f4
07ac4d8
a3d0e2c
 
07ac4d8
 
 
 
 
a3d0e2c
 
 
 
 
 
 
24f5700
a3d0e2c
 
07ac4d8
6607dfd
a3d0e2c
29905f4
 
a3d0e2c
 
591e088
07ac4d8
 
24f5700
 
 
 
 
 
 
 
 
 
 
 
591e088
24f5700
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
591e088
24f5700
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a3d0e2c
07ac4d8
 
 
 
 
 
 
 
 
 
591e088
07ac4d8
a3d0e2c
 
07ac4d8
 
 
 
 
591e088
07ac4d8
 
 
 
29905f4
 
07ac4d8
591e088
29905f4
 
a3d0e2c
07ac4d8
 
 
 
29905f4
 
07ac4d8
 
 
591e088
29905f4
07ac4d8
 
591e088
6607dfd
07ac4d8
 
 
a3d0e2c
ba35fd4
 
 
 
 
 
 
 
 
 
 
07ac4d8
ba35fd4
6607dfd
 
ba35fd4
591e088
ba35fd4
54d873d
 
ba35fd4
591e088
ed562c1
 
ba35fd4
591e088
 
ed562c1
 
ba35fd4
591e088
54d873d
 
ba35fd4
591e088
ba35fd4
ed562c1
 
ba35fd4
591e088
1d2c142
 
a3d0e2c
1d2c142
a3d0e2c
1d2c142
 
 
 
591e088
1d2c142
 
 
591e088
54d873d
 
a5a99e1
 
 
 
 
 
 
 
 
 
591e088
a5a99e1
 
 
 
 
591e088
a5a99e1
 
 
 
 
 
a3d0e2c
6607dfd
a3d0e2c
6607dfd
 
a3d0e2c
 
 
 
 
9a76d4f
 
c7ccf7e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a3d0e2c
7b81688
 
 
 
 
 
 
 
 
 
 
 
 
 
a3d0e2c
7b81688
 
 
 
a3d0e2c
7b81688
 
 
 
 
 
 
 
 
591e088
7b81688
 
 
 
 
 
 
 
 
 
 
 
 
 
591e088
7b81688
 
 
 
591e088
a3d0e2c
7b81688
 
 
 
 
 
 
 
 
591e088
7b81688
 
 
 
591e088
7b81688
 
 
591e088
1e65b47
 
f9152ee
1e65b47
 
 
 
 
 
 
f9152ee
 
1e65b47
 
 
f9152ee
 
1e65b47
 
 
f9152ee
1e65b47
 
 
 
 
 
 
 
 
 
07ac4d8
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
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
/* Основные стили */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.column {
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-top: 0;
    color: #000;
}

/* Бургер-меню */
.burger-menu {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

.burger-icon {
    font-size: 24px;
    cursor: pointer;
    background-color: #000;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
}

.menu-items {
    display: none;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.menu-items div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    color: #000;
}

.menu-items div:last-child {
    border-bottom: none;
}

.menu-items div:hover {
    background-color: #f1f1f1;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .column {
        display: none; /* Скрываем все колонки по умолчанию */
    }

    .burger-menu {
        display: block; /* Показываем бургер-меню */
    }

    .column.active {
        display: block; /* Показываем активную колонку */
    }
}

/* Форма добавления товара */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #000;
    border-radius: 5px;
    background-color: #fff;
    color: #000;
}

button {
    padding: 10px;
    font-size: 16px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #333;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #000;
}

th {
    background-color: #000;
    color: #fff;
}

tr:hover {
    background-color: #f1f1f1;
}

.actions {
    display: flex;
    gap: 5px;
}

.add-to-cart-btn, .add-stock-btn, .delete-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.add-to-cart-btn {
    background-color: #000;
    color: #fff;
}

.add-to-cart-btn:hover {
    background-color: #333;
}

.add-stock-btn {
    background-color: #000;
    color: #fff;
}

.add-stock-btn:hover {
    background-color: #333;
}

.delete-btn {
    background-color: #000;
    color: #fff;
}

.delete-btn:hover {
    background-color: #333;
}

/* Корзина */
.cart {
    background-color: #f9f9f9;
}

#sellCartBtn {
    margin-top: 10px;
    background-color: #000;
}

#sellCartBtn:hover {
    background-color: #333;
}

/* Стили для контейнера скидки */
.discount-container {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.discount-container label {
    font-weight: bold;
    color: #000;
}

.discount-container input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #000;
    border-radius: 5px;
    background-color: #fff;
    color: #000;
    width: 100px;
}

/* Отчеты */
.stats {
    background-color: #f9f9f9;
}

.stats-content {
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Стили для контейнера чеков */
.receipts-container {
    margin-top: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.receipts-container h3 {
    margin-top: 0;
    color: #000;
}

#receiptsList {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 10px;
}

.receipt-item {
    padding: 10px;
    border-bottom: 1px solid #000;
    cursor: pointer;
}

.receipt-item:last-child {
    border-bottom: none;
}

.receipt-item:hover {
    background-color: #f1f1f1;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    color: #000;
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

.modal-content h2 {
    margin-top: 0;
}

#receiptTable {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

#receiptTable th, #receiptTable td {
    padding: 8px;
    border-bottom: 1px solid #000;
    text-align: left;
}

#receiptTable th {
    background-color: #000;
    color: #fff;
}

#confirmSaleBtn, #cancelSaleBtn {
    padding: 10px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    background-color: #000;
    color: #fff;
}

#confirmSaleBtn:hover {
    background-color: #333;
}

#cancelSaleBtn:hover {
    background-color: #333;
}

/* Стили для контейнера фильтрации */
.filter-container {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-container input[type="date"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #000;
    border-radius: 5px;
    background-color: #fff;
    color: #000;
}

.filter-container button {
    padding: 10px;
    font-size: 16px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.filter-container button:hover {
    background-color: #333;
}