-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
267 lines (252 loc) · 18.5 KB
/
Copy pathstyles.css
File metadata and controls
267 lines (252 loc) · 18.5 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
:root {
--bg:#f0f2f5;--surface:#ffffff;--surface2:#f8f9fa;--border:#e0e0e0;
--text:#1a1a2e;--text2:#555e6d;--accent:#1a5276;--accent2:#2980b9;
--accent-light:#d6eaf8;--green:#1e8449;--green-bg:#d5f5e3;
--yellow:#b7770d;--yellow-bg:#fef9e7;--red:#c0392b;--red-bg:#fadbd8;
--shadow:0 2px 12px rgba(0,0,0,0.08);--radius:10px;--header-h:64px;
}
[data-theme="dark"] {
--bg:#0f1117;--surface:#1c1e26;--surface2:#252830;--border:#2e3040;
--text:#e8eaf0;--text2:#9aa0b0;--accent:#3d8fd1;--accent2:#5ba8e5;
--accent-light:#1a2f42;--green:#2ecc71;--green-bg:#0d2d1a;
--yellow:#f1c40f;--yellow-bg:#2a2200;--red:#e74c3c;--red-bg:#2d0e0e;
--shadow:0 2px 12px rgba(0,0,0,0.4);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:15px;scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;background:var(--bg);color:var(--text);min-height:100vh;transition:background .3s,color .3s}
button{cursor:pointer;font-family:inherit}
input,select,textarea{font-family:inherit}
/* HEADER */
.header{position:sticky;top:0;z-index:200;height:var(--header-h);background:var(--accent);display:flex;align-items:center;gap:12px;padding:0 20px;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:white;flex-shrink:0}
.logo-icon{width:40px;height:40px;background:rgba(255,255,255,0.12);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:22px;padding:7px}
.logo-text{line-height:1.1}
.logo-title{font-size:1rem;font-weight:700;letter-spacing:.5px}
.logo-sub{font-size:.7rem;opacity:.8;text-transform:uppercase;letter-spacing:1px}
.header-search{flex:1;max-width:420px;position:relative;margin:0 auto}
.header-search input{width:100%;padding:9px 16px 9px 40px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.3);border-radius:24px;color:white;font-size:.9rem;outline:none;transition:all .2s}
.header-search input::placeholder{color:rgba(255,255,255,.6)}
.header-search input:focus{background:rgba(255,255,255,.25);border-color:rgba(255,255,255,.6)}
.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:rgba(255,255,255,.7);font-size:16px;pointer-events:none}
.header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.icon-btn{width:38px;height:38px;border-radius:50%;border:none;background:rgba(255,255,255,.15);color:white;font-size:18px;display:flex;align-items:center;justify-content:center;transition:background .2s;flex-shrink:0}
.icon-btn:hover{background:rgba(255,255,255,.28)}
.icon-btn.active{background:rgba(255,255,255,.35)}
.lang-btn{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.3);color:white;border-radius:20px;padding:5px 12px;font-size:.8rem;font-weight:600;letter-spacing:.5px;transition:all .2s}
.lang-btn:hover{background:rgba(255,255,255,.28)}
/* SCANNER BANNER */
.scanner-banner{background:linear-gradient(135deg,#e67e22,#d35400);color:white;padding:10px 20px;display:none;align-items:center;gap:12px;font-size:.9rem;font-weight:500}
.scanner-banner.active{display:flex}
.scanner-pulse{width:12px;height:12px;border-radius:50%;background:white;animation:pulse 1.2s infinite}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.8)}}
#scanner-input{opacity:0;position:absolute;pointer-events:none}
/* STATS */
.stats-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:16px 20px}
.stat-card{background:var(--surface);border-radius:var(--radius);padding:14px 16px;box-shadow:var(--shadow);display:flex;align-items:center;gap:12px;border-left:4px solid var(--accent)}
.stat-card.green{border-left-color:var(--green)}
.stat-card.yellow{border-left-color:var(--yellow)}
.stat-card.red{border-left-color:var(--red)}
.stat-icon{font-size:22px;flex-shrink:0}
.stat-info{min-width:0}
.stat-num{font-size:1.4rem;font-weight:700;line-height:1}
.stat-label{font-size:.73rem;color:var(--text2);margin-top:2px;text-transform:uppercase;letter-spacing:.5px}
/* CONTROLS */
.controls{padding:0 20px 12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.filter-group{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
select.filter-select{padding:7px 12px;border:1px solid var(--border);border-radius:20px;background:var(--surface);color:var(--text);font-size:.85rem;cursor:pointer;outline:none}
select.filter-select:focus{border-color:var(--accent2)}
.btn{padding:7px 16px;border-radius:20px;font-size:.85rem;font-weight:600;border:none;transition:all .2s;display:flex;align-items:center;gap:6px}
.btn-primary{background:var(--accent);color:white}
.btn-primary:hover{background:var(--accent2)}
.btn-outline{background:var(--surface);border:1px solid var(--border);color:var(--text)}
.btn-outline:hover{border-color:var(--accent2);color:var(--accent2)}
.btn-success{background:var(--green);color:white}
.results-info{color:var(--text2);font-size:.82rem;margin-left:auto}
/* TABLE */
.table-wrap{margin:0 20px 20px;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.table-container{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:.875rem}
thead th{background:var(--surface2);padding:11px 14px;text-align:left;font-size:.75rem;text-transform:uppercase;letter-spacing:.6px;color:var(--text);font-weight:700;white-space:nowrap;cursor:pointer;user-select:none;border-bottom:2px solid var(--border)}
thead th:hover{color:var(--accent2)}
thead th.sorted{color:var(--accent)}
.sort-arrow{display:inline-block;margin-left:4px;opacity:.4}
thead th.sorted .sort-arrow{opacity:1}
tbody tr{border-bottom:1px solid var(--border);transition:background .12s}
tbody tr:nth-child(odd){background:#ffffff}
tbody tr:nth-child(even){background:#f4f5f7}
[data-theme="dark"] tbody tr:nth-child(odd){background:#1c1e26}
[data-theme="dark"] tbody tr:nth-child(even){background:#21232e}
tbody tr:last-child{border-bottom:none}
tbody tr:hover{background:var(--accent-light) !important}
tbody tr.low-stock{background:var(--yellow-bg) !important}
tbody tr.out-stock{background:#fde8e6 !important}
[data-theme="dark"] tbody tr.out-stock{background:#3b1212 !important}
td{padding:10px 14px;vertical-align:middle}
td.sku-cell{font-family:monospace;font-size:.78rem;color:var(--text2);white-space:nowrap;max-width:160px;overflow:hidden;text-overflow:ellipsis}
td.desc-cell{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
td.bin-cell{font-family:monospace;font-weight:600;font-size:.82rem;white-space:nowrap}
.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:12px;font-size:.72rem;font-weight:600;white-space:nowrap}
.badge-green{background:var(--green-bg);color:var(--green)}
.badge-yellow{background:var(--yellow-bg);color:var(--yellow)}
.badge-red{background:var(--red-bg);color:var(--red)}
.badge-gray{background:var(--surface2);color:var(--text2)}
.qty-cell{text-align:center;min-width:100px}
.qty-controls{display:flex;align-items:center;gap:4px;justify-content:center}
.qty-btn{width:26px;height:26px;border-radius:50%;border:none;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;transition:all .15s;line-height:1}
.qty-btn.minus{background:var(--red-bg);color:var(--red)}
.qty-btn.minus:hover{background:var(--red);color:white}
.qty-btn.plus{background:var(--green-bg);color:var(--green)}
.qty-btn.plus:hover{background:var(--green);color:white}
.qty-num{min-width:28px;text-align:center;font-weight:700;font-size:.95rem}
.action-cell{text-align:center;white-space:nowrap}
.edit-btn{padding:4px 10px;border-radius:8px;border:1px solid var(--border);background:var(--surface2);color:var(--text2);font-size:.75rem;transition:all .15s}
.edit-btn:hover{border-color:var(--accent2);color:var(--accent2)}
.overflow-badge{display:inline-block;padding:2px 7px;background:var(--accent-light);color:var(--accent);border-radius:8px;font-size:.7rem;font-weight:600}
.chip{display:inline-flex;align-items:center;padding:2px 8px;border-radius:10px;font-size:.72rem;font-weight:600;transition:background .2s,color .2s}
/* PAGINATION */
.pagination{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid var(--border);background:var(--surface2);flex-wrap:wrap;gap:8px}
.page-info{color:var(--text2);font-size:.82rem}
.page-btns{display:flex;gap:4px}
.page-btn{min-width:32px;height:32px;padding:0 8px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);font-size:.82rem;transition:all .15s;display:flex;align-items:center;justify-content:center}
.page-btn:hover{border-color:var(--accent2);color:var(--accent2)}
.page-btn.active{background:var(--accent);color:white;border-color:var(--accent)}
.page-btn:disabled{opacity:.4;cursor:not-allowed}
.per-page-select{padding:5px 10px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);font-size:.82rem;cursor:pointer}
/* MODAL */
.modal-overlay{display:none;position:fixed;inset:0;z-index:500;background:rgba(0,0,0,.5);backdrop-filter:blur(3px);align-items:center;justify-content:center;padding:20px}
.modal-overlay.open{display:flex}
.modal{background:var(--surface);border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.3);width:100%;max-width:520px;max-height:90vh;overflow-y:auto}
.modal-header{padding:20px 24px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}
.modal-title{font-size:1.05rem;font-weight:700}
.modal-close{width:32px;height:32px;border-radius:50%;border:none;background:var(--surface2);color:var(--text);font-size:18px;display:flex;align-items:center;justify-content:center;transition:background .15s}
.modal-close:hover{background:var(--border)}
.modal-body{padding:20px 24px}
.modal-footer{padding:16px 24px;border-top:1px solid var(--border);display:flex;gap:10px;justify-content:flex-end}
.form-group{margin-bottom:16px}
.form-label{display:block;font-size:.8rem;font-weight:600;color:var(--text2);margin-bottom:6px;text-transform:uppercase;letter-spacing:.5px}
.form-control{width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface2);color:var(--text);font-size:.9rem;outline:none;transition:border-color .2s}
.form-control:focus{border-color:var(--accent2)}
.info-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--border);font-size:.88rem}
.info-row:last-child{border-bottom:none}
.info-key{color:var(--text2)}
.info-val{font-weight:500;text-align:right;max-width:60%;word-break:break-all}
.qty-editor{display:flex;align-items:center;gap:14px;justify-content:center;padding:16px;background:var(--surface2);border-radius:10px;margin:12px 0}
.qty-editor-btn{width:42px;height:42px;border-radius:50%;border:none;font-size:22px;font-weight:700;display:flex;align-items:center;justify-content:center;transition:all .15s}
.qty-editor-btn.minus{background:var(--red);color:white}
.qty-editor-btn.minus:hover{filter:brightness(1.15)}
.qty-editor-btn.plus{background:var(--green);color:white}
.qty-editor-btn.plus:hover{filter:brightness(1.15)}
.qty-editor-num{font-size:2rem;font-weight:700;min-width:60px;text-align:center}
.qty-manual-input{width:80px;padding:8px;text-align:center;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:1.1rem;font-weight:700}
.divider{height:1px;background:var(--border);margin:12px 0}
.text-muted{color:var(--text2);font-size:.82rem}
/* REORDER PANEL */
.reorder-panel{margin:0 20px 20px;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;display:none}
.reorder-panel.visible{display:block}
.reorder-header{padding:14px 16px;background:linear-gradient(135deg,#e74c3c,#c0392b);color:white;display:flex;align-items:center;gap:10px;font-weight:700}
.reorder-list{padding:12px;display:flex;flex-direction:column;gap:8px}
.reorder-item{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--surface2);border-radius:8px;font-size:.85rem}
.reorder-item-info{flex:1;min-width:0}
.reorder-item-sku{font-family:monospace;font-size:.75rem;color:var(--text2)}
.reorder-item-desc{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.email-btn{padding:6px 14px;border-radius:20px;background:var(--accent);color:white;border:none;font-size:.78rem;font-weight:600;white-space:nowrap;transition:background .15s;text-decoration:none;display:inline-block}
.email-btn:hover{background:var(--accent2)}
.email-all-btn{margin:0 12px 12px;padding:10px;background:linear-gradient(135deg,var(--accent),var(--accent2));color:white;border:none;border-radius:8px;font-weight:700;font-size:.9rem;width:calc(100% - 24px);transition:filter .15s;cursor:pointer}
.email-all-btn:hover{filter:brightness(1.12)}
/* EMPTY STATE */
.empty-state{padding:60px 20px;text-align:center;color:var(--text2)}
.empty-state-icon{font-size:48px;margin-bottom:12px}
.empty-state-title{font-size:1.1rem;font-weight:600;margin-bottom:6px}
/* LOADING */
.loading-overlay{display:none;position:fixed;inset:0;z-index:999;background:var(--bg);align-items:center;justify-content:center;flex-direction:column;gap:16px}
.loading-overlay.show{display:flex}
.spinner{width:40px;height:40px;border:4px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
/* TOAST */
.toast-container{position:fixed;bottom:24px;right:24px;z-index:600;display:flex;flex-direction:column;gap:8px;max-width:360px}
.toast{background:var(--surface);border-radius:10px;box-shadow:0 4px 20px rgba(0,0,0,.2);padding:14px 16px;display:flex;gap:12px;align-items:flex-start;border-left:4px solid var(--accent);animation:slideIn .3s ease;cursor:pointer}
.toast.success{border-left-color:var(--green)}
.toast.warning{border-left-color:var(--yellow)}
.toast.error{border-left-color:var(--red)}
.toast-icon{font-size:20px;flex-shrink:0}
.toast-content{flex:1}
.toast-title{font-weight:700;font-size:.88rem}
.toast-msg{font-size:.8rem;color:var(--text2);margin-top:2px}
.toast-action{font-size:.78rem;color:var(--accent2);font-weight:600;margin-top:4px;display:block}
@keyframes slideIn{from{transform:translateX(100%);opacity:0}to{transform:none;opacity:1}}
@keyframes fadeOut{to{opacity:0;transform:translateX(20px)}}
/* HISTORY */
.history-toggle{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:var(--surface2);border-radius:8px;cursor:pointer;user-select:none;transition:background .15s;border:1px solid var(--border)}
.history-toggle:hover{background:var(--accent-light)}
.history-chevron{font-size:12px;color:var(--text2);transition:transform .2s}
.history-panel{max-height:0;overflow:hidden;transition:max-height .3s ease}
.history-panel.open{max-height:400px;overflow-y:auto}
.history-empty{padding:16px;text-align:center;color:var(--text2);font-size:.82rem}
.history-entry{padding:10px 0;border-bottom:1px solid var(--border);position:relative;padding-left:18px}
.history-entry::before{content:'';position:absolute;left:6px;top:0;bottom:0;width:2px;background:var(--border)}
.history-entry:last-child{border-bottom:none}
.history-entry:last-child::before{bottom:50%}
.history-meta{display:flex;align-items:center;gap:8px;margin-bottom:6px;flex-wrap:wrap}
.history-ts{font-size:.75rem;color:var(--text2);font-family:monospace}
.history-src{font-size:.7rem;font-weight:600;padding:1px 7px;border-radius:10px;background:var(--accent-light);color:var(--accent)}
.history-changes{display:flex;flex-direction:column;gap:4px}
.history-change{display:flex;align-items:center;gap:6px;font-size:.8rem;flex-wrap:wrap}
.history-field-icon{font-size:13px;flex-shrink:0}
.history-field{font-weight:600;color:var(--text2);flex-shrink:0}
.history-from{color:var(--red);text-decoration:line-through;word-break:break-all;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-arrow{color:var(--text2);flex-shrink:0}
.history-to{color:var(--green);font-weight:600;word-break:break-all;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-added{color:var(--green);font-weight:600}
/* CONTACTS */
.contacts-section{background:var(--surface2);border-radius:10px;padding:14px 16px;border:1px solid var(--border)}
.contacts-group-header{display:flex;align-items:center;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.contacts-group-icon{font-size:16px;flex-shrink:0}
.contacts-group-label{font-weight:700;font-size:.85rem}
.contacts-group-hint{font-size:.75rem;color:var(--text2);flex:1}
.contacts-add-btn{margin-left:auto;padding:4px 12px;border-radius:14px;border:1px dashed var(--accent2);background:transparent;color:var(--accent2);font-size:.78rem;font-weight:600;cursor:pointer;transition:all .15s;white-space:nowrap}
.contacts-add-btn:hover{background:var(--accent2);color:white}
.contacts-list{display:flex;flex-direction:column;gap:6px}
.contact-row{display:flex;align-items:center;gap:8px}
.contact-input{flex:1;padding:7px 10px;font-size:.85rem}
.contact-remove-btn{width:28px;height:28px;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--text2);font-size:13px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:all .15s}
.contact-remove-btn:hover:not(:disabled){background:var(--red);color:white;border-color:var(--red)}
.contact-remove-btn:disabled{opacity:.3;cursor:not-allowed}
/* HIGHLIGHT */
.highlight{background:#ffe27a;border-radius:2px;padding:0 2px}
[data-theme="dark"] .highlight{background:#7d6a00;color:white}
/* RESPONSIVE */
@media(max-width:768px){
.stats-bar{grid-template-columns:repeat(2,1fr);padding:12px;gap:8px}
.stat-num{font-size:1.2rem}
.controls{padding:0 12px 10px}
.table-wrap{margin:0 12px 16px}
td.desc-cell{max-width:160px}
td.sku-cell{max-width:100px}
.header-search{max-width:200px}
.logo-sub{display:none}
.reorder-panel{margin:0 12px 16px}
}
@media(max-width:480px){
:root{--header-h:56px}
.header{padding:0 12px;gap:8px}
.header-search{display:none}
.stats-bar{grid-template-columns:repeat(2,1fr);padding:10px}
.stat-card{padding:10px 12px}
.stat-icon{display:none}
.controls{gap:6px}
.btn{padding:6px 12px;font-size:.8rem}
.table-wrap{margin:0 10px 14px;border-radius:8px}
table{font-size:.8rem}
td{padding:8px 10px}
thead th{padding:9px 10px}
.toast-container{left:12px;right:12px;bottom:12px}
}
@media print{
.header,.stats-bar,.controls,.pagination,.action-cell,.toast-container{display:none!important}
.table-wrap{margin:0;box-shadow:none}
}
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:var(--text2)}