|
302 | 302 | gap: 0; |
303 | 303 | flex: 1; |
304 | 304 | min-height: 0; |
| 305 | + max-height: 60vh; |
305 | 306 | border: 1px solid $border-light; |
306 | 307 | border-radius: 8px; |
307 | | - overflow: hidden; |
| 308 | + position: relative; |
| 309 | + |
| 310 | + // Custom scrollbar styling |
| 311 | + &::-webkit-scrollbar { |
| 312 | + width: 8px; |
| 313 | + } |
| 314 | + |
| 315 | + &::-webkit-scrollbar-track { |
| 316 | + background: var(--bg-secondary); |
| 317 | + border-radius: 4px; |
| 318 | + } |
| 319 | + |
| 320 | + &::-webkit-scrollbar-thumb { |
| 321 | + background: $primary; |
| 322 | + border-radius: 4px; |
| 323 | + transition: background 0.3s ease; |
| 324 | + |
| 325 | + &:hover { |
| 326 | + background: darken($primary, 10%); |
| 327 | + } |
| 328 | + } |
| 329 | + |
| 330 | + // Scroll indicator gradient at bottom |
| 331 | + &::after { |
| 332 | + content: ""; |
| 333 | + position: sticky; |
| 334 | + bottom: 0; |
| 335 | + left: 0; |
| 336 | + right: 0; |
| 337 | + height: 40px; |
| 338 | + background: linear-gradient( |
| 339 | + to top, |
| 340 | + rgba(255, 255, 255, 0.95) 0%, |
| 341 | + rgba(255, 255, 255, 0.7) 50%, |
| 342 | + rgba(255, 255, 255, 0) 100% |
| 343 | + ); |
| 344 | + pointer-events: none; |
| 345 | + z-index: 1; |
| 346 | + } |
308 | 347 |
|
309 | 348 | .item-row { |
310 | 349 | display: flex; |
311 | 350 | align-items: center; |
312 | | - padding: 0.75rem 0.5rem; |
| 351 | + padding: 0.5rem 0.5rem; |
313 | 352 | background: white; |
314 | 353 | border-bottom: 1px solid $border-light; |
315 | 354 | transition: all 0.2s; |
316 | 355 | cursor: pointer; |
317 | 356 | gap: 0.5rem; |
| 357 | + min-height: 60px; |
318 | 358 |
|
319 | 359 | &:hover { |
320 | 360 | background: var(--bg-tertiary); |
321 | 361 | } |
322 | 362 |
|
| 363 | + &.selected { |
| 364 | + background: rgba($primary, 0.1); |
| 365 | + border-left: 3px solid $primary; |
| 366 | + padding-left: calc(0.5rem - 3px); |
| 367 | + |
| 368 | + .item-info { |
| 369 | + font-weight: 500; |
| 370 | + } |
| 371 | + } |
| 372 | + |
323 | 373 | &:last-child { |
324 | 374 | border-bottom: none; |
325 | 375 | } |
326 | 376 |
|
327 | 377 | .item-info { |
328 | 378 | display: flex; |
329 | 379 | flex-direction: column; |
330 | | - gap: 0.25rem; |
| 380 | + gap: 0.15rem; |
331 | 381 | cursor: pointer; |
332 | 382 | flex: 1; |
333 | 383 | min-width: 0; |
334 | 384 | padding: 0; |
335 | 385 | border-radius: 0; |
336 | 386 | transition: background 0.2s; |
337 | 387 | position: relative; |
338 | | - |
339 | 388 | &:hover { |
340 | 389 | background: none; |
341 | 390 | } |
|
361 | 410 | gap: 0.25rem; |
362 | 411 | order: -1; |
363 | 412 | flex-wrap: wrap; |
364 | | - margin-bottom: 0.25rem; |
| 413 | + margin-bottom: 0.15rem; |
365 | 414 |
|
366 | 415 | .item-quantity { |
367 | | - font-size: 0.8rem; |
| 416 | + font-size: 0.75rem; |
368 | 417 | font-weight: 600; |
369 | 418 | color: var(--text-secondary); |
370 | 419 | } |
371 | 420 |
|
372 | 421 | .item-unit-price { |
373 | | - font-size: 0.7rem; |
| 422 | + font-size: 0.65rem; |
374 | 423 | color: var(--text-muted); |
375 | 424 | } |
376 | 425 |
|
377 | 426 | .item-price { |
378 | | - font-size: 1rem; |
| 427 | + font-size: 0.95rem; |
379 | 428 | font-weight: 700; |
380 | 429 | color: var(--text-primary); |
381 | 430 | margin-left: auto; |
|
385 | 434 | .item-details { |
386 | 435 | display: flex; |
387 | 436 | flex-direction: column; |
388 | | - gap: 0.15rem; |
389 | | - font-size: 0.7rem; |
| 437 | + gap: 0.1rem; |
| 438 | + font-size: 0.65rem; |
390 | 439 | color: var(--text-muted); |
391 | | - margin-top: 0.05rem; |
| 440 | + margin-top: 0; |
392 | 441 |
|
393 | 442 | .item-description, |
394 | 443 | .item-weight { |
|
738 | 787 | justify-content: center; |
739 | 788 | z-index: 2000; |
740 | 789 | animation: fadeIn 0.2s ease-out; |
741 | | - |
| 790 | + backdrop-filter: blur(4px); |
742 | 791 | @keyframes fadeIn { |
743 | 792 | from { |
744 | 793 | opacity: 0; |
|
775 | 824 | align-items: center; |
776 | 825 | background: linear-gradient( |
777 | 826 | 135deg, |
778 | | - $primary 0%, |
779 | | - color.adjust($primary, $lightness: -10%) 100% |
| 827 | + $neumorphic-surface 0%, |
| 828 | + color.adjust($neumorphic-surface, $lightness: -10%) 100% |
780 | 829 | ); |
781 | 830 | border-radius: 16px 16px 0 0; |
782 | 831 |
|
|
818 | 867 |
|
819 | 868 | .modal-body { |
820 | 869 | padding: 2rem; |
| 870 | + background: $neumorphic-surface; |
821 | 871 |
|
822 | 872 | .sale-total { |
823 | 873 | display: flex; |
824 | 874 | justify-content: space-between; |
825 | 875 | align-items: center; |
826 | 876 | padding: 1.5rem; |
827 | | - background: var(--bg-secondary); |
| 877 | + background: $white; |
828 | 878 | border-radius: 12px; |
829 | 879 | margin-bottom: 2rem; |
830 | 880 |
|
|
0 commit comments