blob: 7a3854cc611a5cb5c57ccb721145afdbfa803d1b [file] [log] [blame]
Saqib Ansari0fb2e022020-11-09 23:51:24 +05301.point-of-sale-app {
2 display: grid;
3 grid-template-columns: repeat(10, minmax(0, 1fr));
4 gap: var(--margin-md);
5
6 section {
7 min-height: 45rem;
Saqib Ansari7202e9f2020-11-13 17:33:20 +05308 height: calc(100vh - 200px);
Saqib Ansari0fb2e022020-11-09 23:51:24 +05309 max-height: calc(100vh - 200px);
10 }
11
12 .frappe-control {
13 margin: 0 !important;
Saqib Ansari0fb2e022020-11-09 23:51:24 +053014 width: 100%;
15 }
16
17 .form-group {
18 margin-bottom: 0px !important;
19 }
20
21 .pointer-no-select {
22 cursor: pointer;
23 user-select: none;
24 }
25
26 .nowrap {
27 overflow: hidden;
28 white-space: nowrap;
29 }
30
31 .image {
32 height: 100% !important;
33 object-fit: cover;
34 }
35
36 .abbr {
37 background-color: var(--gray-50);
38 font-size: var(--text-3xl);
39 }
40
41 .label {
42 display: flex;
43 align-items: center;
44 font-weight: 700;
45 font-size: var(--text-lg);
46 }
47
48 .pos-card {
49 background-color: var(--fg-color);
50 box-shadow: var(--shadow-base);
51 border-radius: var(--border-radius-md);
52 }
53
Saqib Ansari210baaf2020-11-11 12:04:00 +053054 .seperator {
Saqib Ansaricc208832020-11-11 20:47:20 +053055 margin-left: var(--margin-sm);
56 margin-right: var(--margin-sm);
Saqib Ansari210baaf2020-11-11 12:04:00 +053057 border-bottom: 1px solid var(--gray-300);
58 }
59
Saqib Ansaricc208832020-11-11 20:47:20 +053060 .primary-action {
61 @extend .pointer-no-select;
62 display: flex;
63 align-items: center;
64 justify-content: center;
65 padding: var(--padding-sm);
Saqib Ansaricc208832020-11-11 20:47:20 +053066 margin-top: var(--margin-sm);
Saqib Ansaricc208832020-11-11 20:47:20 +053067 border-radius: var(--border-radius-md);
68 font-size: var(--text-lg);
69 font-weight: 700;
70 }
71
72 .highlighted-numpad-btn {
73 box-shadow: inset 0 0px 4px 0px rgba(0, 0, 0, 0.15) !important;
74 font-weight: 700;
75 background-color: var(--gray-50);
76 }
77
Saqib Ansari0fb2e022020-11-09 23:51:24 +053078 > .items-selector {
Saqib Ansarib0b6aa92020-11-23 12:57:06 +053079 @extend .pos-card;
Saqib Ansari0fb2e022020-11-09 23:51:24 +053080 grid-column: span 6 / span 6;
81 display: flex;
82 flex-direction: column;
Saqib Ansaria6a37b72020-12-03 19:24:07 +053083 overflow: hidden;
Saqib Ansari0fb2e022020-11-09 23:51:24 +053084
85 > .filter-section {
86 display: grid;
87 grid-template-columns: repeat(12, minmax(0, 1fr));
88 background-color: var(--fg-color);
Saqib Ansari7202e9f2020-11-13 17:33:20 +053089 padding: var(--padding-lg);
Saqib Ansari0fb2e022020-11-09 23:51:24 +053090 padding-bottom: var(--padding-sm);
91 align-items: center;
92
93 > .label {
94 @extend .label;
95 grid-column: span 4 / span 4;
Saqib Ansari7202e9f2020-11-13 17:33:20 +053096 padding-bottom: var(--padding-xs);
Saqib Ansari0fb2e022020-11-09 23:51:24 +053097 }
98
99 > .search-field {
100 grid-column: span 5 / span 5;
101 display: flex;
102 align-items: center;
Saqib Ansarid0d6fc22020-11-23 13:33:40 +0530103 margin: 0px var(--margin-sm);
Saqib Ansari0fb2e022020-11-09 23:51:24 +0530104 }
105
106 > .item-group-field {
107 grid-column: span 3 / span 3;
108 display: flex;
109 align-items: center;
110 }
111 }
112
113 > .items-container {
114 display: grid;
115 grid-template-columns: repeat(4, minmax(0, 1fr));
116 gap: var(--margin-lg);
Saqib Ansari0fb2e022020-11-09 23:51:24 +0530117 padding: var(--padding-lg);
118 padding-top: var(--padding-xs);
Saqib Ansaria6a37b72020-12-03 19:24:07 +0530119 overflow-y: scroll;
120 overflow-x: hidden;
121
122 &:after {
123 content: "";
124 display: block;
125 height: 1px;
126 }
Saqib Ansari0fb2e022020-11-09 23:51:24 +0530127
128 > .item-wrapper {
129 @extend .pointer-no-select;
130 border-radius: var(--border-radius-md);
131 box-shadow: var(--shadow-base);
Saqib55d47a22021-05-10 15:59:37 +0530132 position: relative;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530133
134 &:hover {
135 transform: scale(1.02, 1.02);
136 }
prssanna62442d12021-02-01 20:26:09 +0530137
Saqib55d47a22021-05-10 15:59:37 +0530138 .item-qty-pill {
139 position: absolute;
140 display: flex;
141 margin: var(--margin-sm);
142 justify-content: flex-end;
143 right: 0px;
144 }
145
Saqib Ansari0fb2e022020-11-09 23:51:24 +0530146 .item-display {
147 display: flex;
148 align-items: center;
149 justify-content: center;
150 border-radius: var(--border-radius-md);
151 margin: var(--margin-sm);
152 margin-bottom: 0px;
153 min-height: 8rem;
154 height: 8rem;
155 color: var(--gray-500);
156
157 > img {
158 @extend .image;
159 }
160 }
161
162 > .item-detail {
163 display: flex;
164 flex-direction: column;
165 justify-content: center;
166 min-height: 3.5rem;
167 height: 3.5rem;
168 padding-left: var(--padding-sm);
169 padding-right: var(--padding-sm);
170
171 > .item-name {
172 @extend .nowrap;
173 display: flex;
174 align-items: center;
175 font-size: var(--text-md);
176 }
177
178 > .item-rate {
179 font-weight: 700;
180 }
181 }
182
183 }
184 }
185 }
Saqib Ansari210baaf2020-11-11 12:04:00 +0530186
187 > .customer-cart-container {
188 grid-column: span 4 / span 4;
189 display: flex;
190 flex-direction: column;
191
192 > .customer-section {
193 @extend .pos-card;
194 display: flex;
195 flex-direction: column;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530196 padding: var(--padding-md) var(--padding-lg);
Saqib Ansarid0508162020-12-15 12:02:26 +0530197 overflow: visible;
Saqib Ansari210baaf2020-11-11 12:04:00 +0530198
199 > .customer-field {
200 display: flex;
201 align-items: center;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530202 padding-top: var(--padding-xs);
Saqib Ansari210baaf2020-11-11 12:04:00 +0530203 }
204
205 > .customer-details {
206 display: flex;
207 flex-direction: column;
Saqib Ansari210baaf2020-11-11 12:04:00 +0530208 background-color: var(--fg-color);
209
210 > .header {
211 display: flex;
212 margin-bottom: var(--margin-md);
213 justify-content: space-between;
214 padding-top: var(--padding-md);
prssanna62442d12021-02-01 20:26:09 +0530215
Saqib Ansari210baaf2020-11-11 12:04:00 +0530216 > .label {
217 @extend .label;
218 }
prssanna62442d12021-02-01 20:26:09 +0530219
Saqib Ansari210baaf2020-11-11 12:04:00 +0530220 > .close-details-btn {
221 display: flex;
222 align-items: center;
223 cursor: pointer;
224 }
225 }
226
227 > .customer-display {
228 display: flex;
229 align-items: center;
230 cursor: pointer;
231
232 > .customer-image {
233 display: flex;
234 align-items: center;
235 justify-content: center;
236 width: 3rem;
237 height: 3rem;
238 border-radius: 50%;
239 color: var(--gray-500);
240 margin-right: var(--margin-md);
241
242 > img {
243 @extend .image;
244 border-radius: 50%;
245 }
246 }
247
248 > .customer-abbr {
249 @extend .abbr;
250 font-size: var(--text-2xl);
251 }
252
253 > .customer-name-desc {
254 @extend .nowrap;
255 display: flex;
256 flex-direction: column;
257 margin-right: auto;
258
259 >.customer-name {
260 font-weight: 700;
261 font-size: var(--text-lg);
262 }
prssanna62442d12021-02-01 20:26:09 +0530263
Saqib Ansari210baaf2020-11-11 12:04:00 +0530264 >.customer-desc {
265 color: var(--gray-600);
266 font-weight: 500;
267 font-size: var(--text-sm);
268 }
269 }
270
271 > .reset-customer-btn {
272 display: flex;
273 align-items: center;
274 cursor: pointer;
275 }
276
277 }
278
279 > .customer-fields-container {
280 display: grid;
281 grid-template-columns: repeat(2, minmax(0, 1fr));
Saqib Ansarifa0ef212020-11-23 16:05:55 +0530282 margin-top: var(--margin-md);
283 column-gap: var(--padding-sm);
284 row-gap: var(--padding-xs);
Saqib Ansari210baaf2020-11-11 12:04:00 +0530285 }
286
287 > .transactions-label {
288 @extend .label;
Saqib Ansarifa0ef212020-11-23 16:05:55 +0530289 margin-top: var(--margin-md);
Saqib Ansari210baaf2020-11-11 12:04:00 +0530290 margin-bottom: var(--margin-sm);
291 }
292 }
Saqib Ansari937dc462020-11-23 17:12:21 +0530293
294 > .customer-transactions {
295 height: 100%;
Saqib Ansaria6a37b72020-12-03 19:24:07 +0530296 overflow-x: hidden;
297 overflow-y: scroll;
298 margin-right: -12px;
299 padding-right: 12px;
300 margin-left: -10px;
Saqib Ansari937dc462020-11-23 17:12:21 +0530301
302 > .no-transactions-placeholder {
303 height: 100%;
304 display: flex;
305 align-items: center;
306 justify-content: center;
307 background-color: var(--gray-50);
308 border-radius: var(--border-radius-md);
309 }
310 }
Saqib Ansari210baaf2020-11-11 12:04:00 +0530311 }
312
313 > .cart-container {
Saqib Ansaricc208832020-11-11 20:47:20 +0530314 @extend .pos-card;
315 display: flex;
316 flex-direction: column;
317 align-items: center;
318 margin-top: var(--margin-md);
319 position: relative;
320 height: 100%;
Saqib Ansari210baaf2020-11-11 12:04:00 +0530321
Saqib Ansaricc208832020-11-11 20:47:20 +0530322 > .abs-cart-container {
323 position: absolute;
324 display: flex;
325 flex-direction: column;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530326 padding: var(--padding-lg);
Saqib Ansaricc208832020-11-11 20:47:20 +0530327 width: 100%;
328 height: 100%;
329
330 > .cart-label {
331 @extend .label;
332 padding-bottom: var(--padding-md);
Saqib Ansaricc208832020-11-11 20:47:20 +0530333 }
334
335 > .cart-header {
336 display: flex;
337 width: 100%;
338 font-size: var(--text-md);
Saqib Ansaricc208832020-11-11 20:47:20 +0530339 padding-bottom: var(--padding-md);
340
341 > .name-header {
342 flex: 1 1 0%;
Saqib Ansaricc208832020-11-11 20:47:20 +0530343 }
344
345 > .qty-header {
346 margin-right: var(--margin-lg);
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530347 text-align: center;
Saqib Ansaricc208832020-11-11 20:47:20 +0530348 }
349
350 > .rate-amount-header {
Saqib Ansaricc208832020-11-11 20:47:20 +0530351 text-align: right;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530352 margin-right: var(--margin-sm);
Saqib Ansaricc208832020-11-11 20:47:20 +0530353 }
354 }
355
356 .no-item-wrapper {
357 display: flex;
358 align-items: center;
359 justify-content: center;
360 background-color: var(--gray-50);
361 border-radius: var(--border-radius-md);
362 font-size: var(--text-md);
363 font-weight: 500;
364 width: 100%;
365 height: 100%;
366 }
367
368 > .cart-items-section {
369 display: flex;
370 flex-direction: column;
371 flex: 1 1 0%;
372 overflow-y: scroll;
373
374 > .cart-item-wrapper {
375 @extend .pointer-no-select;
376 display: flex;
377 align-items: center;
378 padding: var(--padding-sm);
379 border-radius: var(--border-radius-md);
380
381 &:hover {
382 background-color: var(--gray-50);
383 }
384
385 > .item-image {
386 display: flex;
387 align-items: center;
388 justify-content: center;
389 width: 2rem;
390 height: 2rem;
391 border-radius: var(--border-radius-md);
392 color: var(--gray-500);
393 margin-right: var(--margin-md);
394
395 > img {
396 @extend .image;
397 }
398 }
399
400 > .item-abbr {
401 @extend .abbr;
402 font-size: var(--text-lg);
403 }
prssanna62442d12021-02-01 20:26:09 +0530404
Saqib Ansaricc208832020-11-11 20:47:20 +0530405
406 > .item-name-desc {
407 @extend .nowrap;
408 display: flex;
409 flex-direction: column;
410 flex: 1 1 0%;
411 flex-shrink: 1;
412
413 > .item-name {
414 font-weight: 700;
415 }
416
417 > .item-desc {
418 font-size: var(--text-sm);
419 color: var(--gray-600);
420 font-weight: 500;
421 }
422 }
423
424 > .item-qty-rate {
425 display: flex;
426 flex-shrink: 0;
427 text-align: right;
428 margin-left: var(--margin-md);
429
430 > .item-qty {
431 display: flex;
432 align-items: center;
433 margin-right: var(--margin-lg);
434 font-weight: 700;
435 }
436
437 > .item-rate-amount {
438 display: flex;
439 flex-direction: column;
440 flex-shrink: 0;
441 text-align: right;
442
443 > .item-rate {
444 font-weight: 700;
445 }
446
447 > .item-amount {
448 font-size: var(--text-md);
449 font-weight: 600;
450 }
451 }
452 }
453
454 }
455 }
456
457 > .cart-totals-section {
458 display: flex;
459 flex-direction: column;
460 flex-shrink: 0;
461 width: 100%;
462 margin-top: var(--margin-md);
463
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530464 > .add-discount-wrapper {
465 @extend .pointer-no-select;
466 display: none;
467 align-items: center;
468 border-radius: var(--border-radius-md);
469 border: 1px dashed var(--gray-500);
470 padding: var(--padding-sm) var(--padding-md);
471 margin-bottom: var(--margin-sm);
472
473 > .add-discount-field {
474 width: 100%;
475 }
476
Saqib Ansarif7193802020-11-23 15:51:03 +0530477 .discount-icon {
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530478 margin-right: var(--margin-sm);
479 }
480
Saqib Ansarif7193802020-11-23 15:51:03 +0530481 .edit-discount-btn {
482 display: flex;
483 align-items: center;
484 font-weight: 500;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530485 color: var(--dark-green-500);
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530486 }
487 }
488
Saqib Ansaricc208832020-11-11 20:47:20 +0530489 > .net-total-container {
490 display: flex;
491 align-items: center;
492 justify-content: space-between;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530493 padding: var(--padding-sm) 0px;
Saqib Ansaricc208832020-11-11 20:47:20 +0530494 font-weight: 500;
495 font-size: var(--text-md);
496 }
497
Subin Tom2f6a6af2021-11-29 20:35:49 +0530498 > .item-qty-total-container {
499 @extend .net-total-container;
500 padding: 5px 0px 0px 0px;
501 }
502
Saqib Ansaricc208832020-11-11 20:47:20 +0530503 > .taxes-container {
504 display: none;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530505 flex-direction: column;
Saqib Ansaricc208832020-11-11 20:47:20 +0530506 font-weight: 500;
507 font-size: var(--text-md);
508
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530509 > .tax-row {
Saqib Ansaricc208832020-11-11 20:47:20 +0530510 display: flex;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530511 justify-content: space-between;
Saqib Ansarif7193802020-11-23 15:51:03 +0530512 line-height: var(--text-3xl);
Saqib Ansaricc208832020-11-11 20:47:20 +0530513 }
514 }
515
516 > .grand-total-container {
517 display: flex;
518 align-items: center;
519 justify-content: space-between;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530520 padding: var(--padding-sm) 0px;
Saqib Ansaricc208832020-11-11 20:47:20 +0530521 font-weight: 700;
522 font-size: var(--text-lg);
523 }
524
525 > .checkout-btn {
526 @extend .primary-action;
527 background-color: var(--blue-200);
528 color: white;
529 }
Saqib Ansarifc3315a2020-11-11 22:59:10 +0530530
531 > .edit-cart-btn {
532 @extend .primary-action;
533 display: none;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530534 background-color: var(--gray-300);
Saqib Ansarifc3315a2020-11-11 22:59:10 +0530535 font-weight: 500;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530536 transition: all 0.15s ease-in-out;
537
538 &:hover {
539 background-color: var(--gray-600);
540 color: white;
541 font-weight: 700;
542 }
Saqib Ansarifc3315a2020-11-11 22:59:10 +0530543 }
Saqib Ansaricc208832020-11-11 20:47:20 +0530544 }
545
546 > .numpad-section {
547 display: none;
548 flex-direction: column;
549 flex-shrink: 0;
550 margin-top: var(--margin-sm);
551 padding: var(--padding-sm);
552 padding-bottom: 0px;
553 width: 100%;
554
555 > .numpad-totals {
556 display: flex;
557 justify-content: space-between;
558 margin-bottom: var(--margin-md);
559 font-size: var(--text-md);
560 font-weight: 700;
561 }
562
563 > .numpad-container {
564 display: grid;
565 grid-template-columns: repeat(5, minmax(0, 1fr));
566 gap: var(--margin-md);
567 margin-bottom: var(--margin-md);
568
569 > .numpad-btn {
570 @extend .pointer-no-select;
571 border-radius: var(--border-radius-md);
572 display: flex;
573 align-items: center;
574 justify-content: center;
575 padding: var(--padding-md);
576 box-shadow: var(--shadow-sm);
577 }
578
579 > .col-span-2 {
580 grid-column: span 2 / span 2;
581 }
582
583 > .remove-btn {
584 font-weight: 700;
585 color: var(--red-500);
586 }
587 }
588
589 > .checkout-btn {
590 @extend .primary-action;
591 margin: 0px;
592 margin-bottom: var(--margin-sm);
593 background-color: var(--blue-200);
594 color: white;
595 }
596 }
597 }
Saqib Ansari210baaf2020-11-11 12:04:00 +0530598 }
599 }
600
601 .invoice-wrapper {
602 @extend .pointer-no-select;
603 display: flex;
604 justify-content: space-between;
605 border-radius: var(--border-radius-md);
606 padding: var(--padding-sm);
607
608 &:hover {
609 background-color: var(--gray-50);
610 }
611
612 > .invoice-name-date {
613 display: flex;
614 flex-direction: column;
Saqib Ansarifa0ef212020-11-23 16:05:55 +0530615 justify-content: space-around;
Saqib Ansari210baaf2020-11-11 12:04:00 +0530616
617 > .invoice-name {
618 @extend .nowrap;
619 font-size: var(--text-md);
620 font-weight: 700;
Saqib Ansari210baaf2020-11-11 12:04:00 +0530621 }
622
623 > .invoice-date {
624 @extend .nowrap;
625 font-size: var(--text-sm);
626 display: flex;
627 align-items: center;
628 }
629 }
630
631 > .invoice-total-status {
632 display: flex;
633 flex-direction: column;
634 font-weight: 500;
635 font-size: var(--text-sm);
636 margin-left: var(--margin-md);
637
638 > .invoice-total {
639 margin-bottom: var(--margin-xs);
640 font-size: var(--text-base);
641 font-weight: 700;
642 text-align: right;
643 }
644
645 > .invoice-status {
646 display: flex;
647 align-items: center;
648 justify-content: right;
649 }
650 }
651 }
Saqib Ansarifc3315a2020-11-11 22:59:10 +0530652
653 > .item-details-container {
654 @extend .pos-card;
655 grid-column: span 4 / span 4;
656 display: none;
657 flex-direction: column;
658 padding: var(--padding-lg);
659 padding-top: var(--padding-md);
660
661 > .item-details-header {
662 display: flex;
663 justify-content: space-between;
664 margin-bottom: var(--margin-md);
665
666 > .close-btn {
667 @extend .pointer-no-select;
668 }
669 }
670
671 > .item-display {
672 display: flex;
673
674 > .item-name-desc-price {
675 flex: 1 1 0%;
676 display: flex;
677 flex-direction: column;
678 justify-content: flex-end;
679 margin-right: var(--margin-md);
680
681 > .item-name {
682 font-size: var(--text-3xl);
683 font-weight: 600;
684 }
685
686 > .item-desc {
687 font-size: var(--text-md);
688 font-weight: 500;
689 }
690
691 > .item-price {
692 font-size: var(--text-3xl);
693 font-weight: 700;
694 }
695 }
696
697 > .item-image {
698 display: flex;
699 align-items: center;
700 justify-content: center;
701 width: 11rem;
702 height: 11rem;
703 border-radius: var(--border-radius-md);
704 margin-left: var(--margin-md);
705 color: var(--gray-500);
706
707 > img {
708 @extend .image;
709 }
710
711 > .item-abbr {
712 @extend .abbr;
713 display: flex;
714 align-items: center;
715 justify-content: center;
716 border-radius: var(--border-radius-md);
717 font-size: var(--text-3xl);
718 width: 100%;
719 height: 100%;
720 }
721 }
722 }
723
724 > .discount-section {
725 display: flex;
726 align-items: center;
727 margin-bottom: var(--margin-sm);
728
729 > .item-rate {
730 font-weight: 500;
731 margin-right: var(--margin-sm);
732 text-decoration: line-through;
733 }
734
735 > .item-discount {
736 padding: 3px var(--padding-sm);
737 border-radius: var(--border-radius-sm);
738 background-color: var(--green-100);
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530739 color: var(--dark-green-500);
Saqib Ansarifc3315a2020-11-11 22:59:10 +0530740 font-size: var(--text-sm);
741 font-weight: 700;
742 }
743 }
744
745 > .form-container {
746 display: grid;
747 grid-template-columns: repeat(2, minmax(0, 1fr));
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530748 column-gap: var(--padding-md);
Saqib Ansarifc3315a2020-11-11 22:59:10 +0530749
750 > .auto-fetch-btn {
751 @extend .pointer-no-select;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530752 margin: var(--margin-xs);
Saqib Ansarifc3315a2020-11-11 22:59:10 +0530753 }
754 }
755 }
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530756
757 > .payment-container {
758 @extend .pos-card;
759 grid-column: span 6 / span 6;
760 display: none;
761 flex-direction: column;
762 padding: var(--padding-lg);
763
764 .border-primary {
765 border: 1px solid var(--blue-500);
766 }
767
768 .submit-order-btn {
769 @extend .primary-action;
770 background-color: var(--blue-500);
771 color: white;
772 }
773
774 .section-label {
775 @extend .label;
776 @extend .pointer-no-select;
777 margin-bottom: var(--margin-md);
778 }
779
780 > .payment-modes {
781 display: flex;
Saqib Ansari69ef7662020-11-23 16:38:32 +0530782 padding-bottom: var(--padding-sm);
Saqib55d47a22021-05-10 15:59:37 +0530783 margin-bottom: var(--margin-sm);
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530784 overflow-x: scroll;
785 overflow-y: hidden;
Saqib55d47a22021-05-10 15:59:37 +0530786 flex-shrink: 0;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530787
788 > .payment-mode-wrapper {
789 min-width: 40%;
790 padding: var(--padding-xs);
791
792 > .mode-of-payment {
793 @extend .pos-card;
794 @extend .pointer-no-select;
795 padding: var(--padding-md) var(--padding-lg);
796
797 > .pay-amount {
798 display: inline;
799 float: right;
800 font-weight: 700;
801 }
802
803 > .mode-of-payment-control {
804 display: none;
805 align-items: center;
806 margin-top: var(--margin-sm);
807 margin-bottom: var(--margin-xs);
808 }
809
810 > .loyalty-amount-name {
811 display: none;
812 float: right;
813 font-weight: 700;
Afshand5c17252021-06-16 14:28:03 +0530814 white-space: nowrap;
815 overflow: hidden;
816 text-overflow: ellipsis;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530817 }
818
819 > .cash-shortcuts {
820 display: none;
821 grid-template-columns: repeat(3, minmax(0, 1fr));
822 gap: var(--margin-sm);
823 font-size: var(--text-sm);
824 text-align: center;
825
826 > .shortcut {
827 @extend .pointer-no-select;
828 border-radius: var(--border-radius-sm);
829 background-color: var(--gray-100);
830 font-weight: 500;
831 padding: var(--padding-xs) var(--padding-sm);
832 transition: all 0.15s ease-in-out;
833
834 &:hover {
835 background-color: var(--gray-300);
836 }
837 }
838 }
839 }
Afshand5c17252021-06-16 14:28:03 +0530840
841 > .loyalty-card {
842 display: flex;
843 flex-direction: column;
844 }
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530845 }
846 }
847
Saqib Ansari69ef7662020-11-23 16:38:32 +0530848 > .fields-numpad-container {
849 display: flex;
850 flex: 1;
Saqib55d47a22021-05-10 15:59:37 +0530851 height: 100%;
852 position: relative;
853 justify-content: flex-end;
Saqib Ansari69ef7662020-11-23 16:38:32 +0530854
855 > .fields-section {
856 flex: 1;
Saqib55d47a22021-05-10 15:59:37 +0530857 position: absolute;
858 display: flex;
859 flex-direction: column;
860 width: 50%;
861 height: 100%;
862 top: 0;
863 left: 0;
864 padding-bottom: var(--margin-md);
865
866 .invoice-fields {
867 overflow-y: scroll;
Subin Tomd4d5a422021-08-24 16:22:46 +0530868 height: 100%;
869 padding-right: var(--padding-sm);
Saqib55d47a22021-05-10 15:59:37 +0530870 }
Saqib Ansari69ef7662020-11-23 16:38:32 +0530871 }
prssanna62442d12021-02-01 20:26:09 +0530872
Saqib Ansari69ef7662020-11-23 16:38:32 +0530873 > .number-pad {
874 flex: 1;
875 display: flex;
876 justify-content: flex-end;
877 align-items: flex-end;
Saqib55d47a22021-05-10 15:59:37 +0530878 max-width: 50%;
Saqib Ansari69ef7662020-11-23 16:38:32 +0530879
880 .numpad-container {
881 display: grid;
882 grid-template-columns: repeat(3, minmax(0, 1fr));
883 gap: var(--margin-md);
884 margin-bottom: var(--margin-md);
prssanna62442d12021-02-01 20:26:09 +0530885
Saqib Ansari69ef7662020-11-23 16:38:32 +0530886 > .numpad-btn {
887 @extend .pointer-no-select;
888 border-radius: var(--border-radius-md);
889 display: flex;
890 align-items: center;
891 justify-content: center;
892 padding: var(--padding-md);
893 box-shadow: var(--shadow-sm);
894 }
895 }
896 }
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530897 }
898
899 > .totals-section {
900 display: flex;
901 margin-top: auto;
902 margin-bottom: var(--margin-sm);
903 justify-content: center;
904 flex-direction: column;
Saqib55d47a22021-05-10 15:59:37 +0530905 flex-shrink: 0;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530906
907 > .totals {
908 display: flex;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530909 background-color: var(--gray-100);
910 justify-content: center;
911 padding: var(--padding-md);
912 border-radius: var(--border-radius-md);
913
914 > .col {
915 flex-grow: 1;
916 text-align: center;
917
918 > .total-label {
919 font-size: var(--text-md);
920 font-weight: 500;
921 color: var(--gray-600);
922 }
prssanna62442d12021-02-01 20:26:09 +0530923
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530924 > .value {
925 font-size: var(--text-2xl);
926 font-weight: 700;
927 }
928 }
929
930 > .seperator-y {
931 margin-left: var(--margin-sm);
932 margin-right: var(--margin-sm);
933 border-right: 1px solid var(--gray-300);
934 }
935 }
936
937 > .number-pad {
938 display: none;
939 }
940 }
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530941 }
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530942
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530943 > .past-order-list {
944 @extend .pos-card;
945 grid-column: span 4 / span 4;
946 display: none;
947 flex-direction: column;
Saqib Ansaria6a37b72020-12-03 19:24:07 +0530948 overflow: hidden;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530949
950 > .filter-section {
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530951 display: flex;
952 flex-direction: column;
953 background-color: var(--fg-color);
954 padding: var(--padding-lg);
955
956 > .search-field {
957 width: 100%;
958 display: flex;
959 align-items: center;
Saqib Ansari937dc462020-11-23 17:12:21 +0530960 margin-top: var(--margin-md);
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530961 margin-bottom: var(--margin-xs);
962 }
963
964 > .status-field {
965 width: 100%;
966 display: flex;
967 align-items: center;
968 }
969 }
970
971 > .invoices-container {
972 padding: var(--padding-lg);
973 padding-top: 0px;
Saqib Ansaria6a37b72020-12-03 19:24:07 +0530974 overflow-x: hidden;
975 overflow-y: scroll;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530976 }
977 }
978
979 > .past-order-summary {
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530980 display: none;
981 grid-column: span 6 / span 6;
982 flex-direction: column;
983 align-items: center;
984 justify-content: center;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530985
986 > .no-summary-placeholder {
987 display: flex;
988 align-items: center;
989 justify-content: center;
990 width: 100%;
991 height: 100%;
992 background-color: var(--gray-50);
993 font-weight: 500;
994 border-radius: var(--border-radius-md);
995 }
996
997 > .invoice-summary-wrapper {
998 @extend .pos-card;
999 display: none;
1000 position: relative;
1001 width: 31rem;
1002 height: 100%;
1003
1004 > .abs-container {
1005 position: absolute;
1006 display: flex;
1007 flex-direction: column;
1008 width: 100%;
1009 height: 100%;
1010 padding: var(--padding-lg);
1011
1012 > .upper-section {
1013 display: flex;
1014 justify-content: space-between;
1015 width: 100%;
1016 margin-bottom: var(--margin-md);
1017
1018 > .left-section {
1019 display: flex;
1020 flex-direction: column;
1021 align-items: flex-start;
1022 justify-content: flex-end;
1023 padding-right: var(--padding-sm);
1024
1025 > .customer-name {
1026 font-size: var(--text-2xl);
1027 font-weight: 700;
1028 }
1029
1030 > .customer-email {
1031 font-size: var(--text-md);
1032 font-weight: 500;
1033 color: var(--gray-600);
1034 }
1035
1036 > .cashier {
1037 font-size: var(--text-md);
1038 font-weight: 500;
1039 color: var(--gray-600);
1040 margin-top: auto;
1041 }
1042 }
1043
1044 > .right-section {
1045 display: flex;
1046 flex-direction: column;
1047 align-items: flex-end;
1048 justify-content: space-between;
1049
1050 > .paid-amount {
1051 font-size: var(--text-2xl);
1052 font-weight: 700;
1053 }
1054
1055 > .invoice-name {
1056 font-size: var(--text-md);
1057 font-weight: 500;
1058 color: var(--gray-600);
1059 margin-bottom: var(--margin-sm);
1060 }
1061 }
1062 }
1063
1064 > .summary-container {
1065 display: flex;
1066 flex-direction: column;
1067 border-radius: var(--border-radius-md);
1068 background-color: var(--gray-50);
1069 margin: var(--margin-md) 0px;
1070
1071 > .summary-row-wrapper {
1072 display: flex;
1073 align-items: center;
1074 justify-content: space-between;
1075 padding: var(--padding-sm) var(--padding-md);
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301076 }
1077
1078 > .taxes-wrapper {
1079 display: flex;
1080 flex-direction: column;
Saqib Ansari937dc462020-11-23 17:12:21 +05301081 padding: 0px var(--padding-md);
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301082
1083 > .tax-row {
1084 display: flex;
1085 justify-content: space-between;
Saqib Ansarid0d6fc22020-11-23 13:33:40 +05301086 font-size: var(--text-md);
Saqib Ansarif7193802020-11-23 15:51:03 +05301087 line-height: var(--text-3xl);
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301088 }
1089 }
1090
1091 > .item-row-wrapper {
1092 display: flex;
1093 align-items: center;
1094 padding: var(--padding-sm) var(--padding-md);
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301095
1096 > .item-name {
1097 @extend .nowrap;
1098 font-weight: 500;
1099 margin-right: var(--margin-md);
1100 }
prssanna62442d12021-02-01 20:26:09 +05301101
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301102 > .item-qty {
1103 font-weight: 500;
1104 margin-left: auto;
1105 }
prssanna62442d12021-02-01 20:26:09 +05301106
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301107 > .item-rate-disc {
1108 display: flex;
1109 text-align: right;
1110 margin-left: var(--margin-md);
Saqib Ansari02d14912020-11-30 17:41:38 +05301111 justify-content: flex-end;
prssanna62442d12021-02-01 20:26:09 +05301112
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301113 > .item-disc {
1114 color: var(--dark-green-500);
1115 }
prssanna62442d12021-02-01 20:26:09 +05301116
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301117 > .item-rate {
1118 font-weight: 500;
1119 margin-left: var(--margin-md);
1120 }
1121 }
1122 }
1123
1124 > .grand-total {
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301125 font-weight: 700;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301126 }
1127
1128 > .payments {
1129 font-weight: 700;
1130 }
1131 }
1132
1133
1134 > .summary-btns {
1135 display: flex;
1136 justify-content: space-between;
1137
1138 > .summary-btn {
1139 flex: 1;
1140 margin: 0px var(--margin-xs);
1141 }
1142
1143 > .new-btn {
1144 background-color: var(--blue-500);
1145 color:white;
1146 font-weight: 500;
1147 }
1148 }
1149 }
1150 }
Saqib Ansari7202e9f2020-11-13 17:33:20 +05301151 }
Afshand5c17252021-06-16 14:28:03 +05301152}