blob: 7b7530b1501b627393d71447cbb3feef802ff3e3 [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
Sabu Siyad2f4940c2022-11-17 12:56:42 +0530162 .item-img {
163 @extend .image;
164 border-radius: 8px 8px 0 0;
165 object-fit: cover;
166 }
167
Saqib Ansari0fb2e022020-11-09 23:51:24 +0530168 > .item-detail {
169 display: flex;
170 flex-direction: column;
171 justify-content: center;
172 min-height: 3.5rem;
173 height: 3.5rem;
174 padding-left: var(--padding-sm);
175 padding-right: var(--padding-sm);
176
177 > .item-name {
178 @extend .nowrap;
179 display: flex;
180 align-items: center;
181 font-size: var(--text-md);
182 }
183
184 > .item-rate {
185 font-weight: 700;
186 }
187 }
188
189 }
190 }
191 }
Saqib Ansari210baaf2020-11-11 12:04:00 +0530192
193 > .customer-cart-container {
194 grid-column: span 4 / span 4;
195 display: flex;
196 flex-direction: column;
197
198 > .customer-section {
199 @extend .pos-card;
200 display: flex;
201 flex-direction: column;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530202 padding: var(--padding-md) var(--padding-lg);
Saqib Ansarid0508162020-12-15 12:02:26 +0530203 overflow: visible;
Saqib Ansari210baaf2020-11-11 12:04:00 +0530204
205 > .customer-field {
206 display: flex;
207 align-items: center;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530208 padding-top: var(--padding-xs);
Saqib Ansari210baaf2020-11-11 12:04:00 +0530209 }
210
211 > .customer-details {
212 display: flex;
213 flex-direction: column;
Saqib Ansari210baaf2020-11-11 12:04:00 +0530214 background-color: var(--fg-color);
215
216 > .header {
217 display: flex;
218 margin-bottom: var(--margin-md);
219 justify-content: space-between;
220 padding-top: var(--padding-md);
prssanna62442d12021-02-01 20:26:09 +0530221
Saqib Ansari210baaf2020-11-11 12:04:00 +0530222 > .label {
223 @extend .label;
224 }
prssanna62442d12021-02-01 20:26:09 +0530225
Saqib Ansari210baaf2020-11-11 12:04:00 +0530226 > .close-details-btn {
227 display: flex;
228 align-items: center;
229 cursor: pointer;
230 }
231 }
232
233 > .customer-display {
234 display: flex;
235 align-items: center;
236 cursor: pointer;
237
238 > .customer-image {
239 display: flex;
240 align-items: center;
241 justify-content: center;
242 width: 3rem;
243 height: 3rem;
244 border-radius: 50%;
245 color: var(--gray-500);
246 margin-right: var(--margin-md);
247
248 > img {
249 @extend .image;
250 border-radius: 50%;
251 }
252 }
253
254 > .customer-abbr {
255 @extend .abbr;
256 font-size: var(--text-2xl);
257 }
258
259 > .customer-name-desc {
260 @extend .nowrap;
261 display: flex;
262 flex-direction: column;
263 margin-right: auto;
264
265 >.customer-name {
266 font-weight: 700;
267 font-size: var(--text-lg);
268 }
prssanna62442d12021-02-01 20:26:09 +0530269
Saqib Ansari210baaf2020-11-11 12:04:00 +0530270 >.customer-desc {
271 color: var(--gray-600);
272 font-weight: 500;
273 font-size: var(--text-sm);
274 }
275 }
276
277 > .reset-customer-btn {
278 display: flex;
279 align-items: center;
280 cursor: pointer;
281 }
282
283 }
284
285 > .customer-fields-container {
286 display: grid;
287 grid-template-columns: repeat(2, minmax(0, 1fr));
Saqib Ansarifa0ef212020-11-23 16:05:55 +0530288 margin-top: var(--margin-md);
289 column-gap: var(--padding-sm);
290 row-gap: var(--padding-xs);
Saqib Ansari210baaf2020-11-11 12:04:00 +0530291 }
292
293 > .transactions-label {
294 @extend .label;
Saqib Ansarifa0ef212020-11-23 16:05:55 +0530295 margin-top: var(--margin-md);
Saqib Ansari210baaf2020-11-11 12:04:00 +0530296 margin-bottom: var(--margin-sm);
297 }
298 }
Saqib Ansari937dc462020-11-23 17:12:21 +0530299
300 > .customer-transactions {
301 height: 100%;
Saqib Ansaria6a37b72020-12-03 19:24:07 +0530302 overflow-x: hidden;
303 overflow-y: scroll;
304 margin-right: -12px;
305 padding-right: 12px;
306 margin-left: -10px;
Saqib Ansari937dc462020-11-23 17:12:21 +0530307
308 > .no-transactions-placeholder {
309 height: 100%;
310 display: flex;
311 align-items: center;
312 justify-content: center;
313 background-color: var(--gray-50);
314 border-radius: var(--border-radius-md);
315 }
316 }
Saqib Ansari210baaf2020-11-11 12:04:00 +0530317 }
318
319 > .cart-container {
Saqib Ansaricc208832020-11-11 20:47:20 +0530320 @extend .pos-card;
321 display: flex;
322 flex-direction: column;
323 align-items: center;
324 margin-top: var(--margin-md);
325 position: relative;
326 height: 100%;
Saqib Ansari210baaf2020-11-11 12:04:00 +0530327
Saqib Ansaricc208832020-11-11 20:47:20 +0530328 > .abs-cart-container {
329 position: absolute;
330 display: flex;
331 flex-direction: column;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530332 padding: var(--padding-lg);
Saqib Ansaricc208832020-11-11 20:47:20 +0530333 width: 100%;
334 height: 100%;
335
336 > .cart-label {
337 @extend .label;
338 padding-bottom: var(--padding-md);
Saqib Ansaricc208832020-11-11 20:47:20 +0530339 }
340
341 > .cart-header {
342 display: flex;
343 width: 100%;
344 font-size: var(--text-md);
Saqib Ansaricc208832020-11-11 20:47:20 +0530345 padding-bottom: var(--padding-md);
346
347 > .name-header {
348 flex: 1 1 0%;
Saqib Ansaricc208832020-11-11 20:47:20 +0530349 }
350
351 > .qty-header {
352 margin-right: var(--margin-lg);
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530353 text-align: center;
Saqib Ansaricc208832020-11-11 20:47:20 +0530354 }
355
356 > .rate-amount-header {
Saqib Ansaricc208832020-11-11 20:47:20 +0530357 text-align: right;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530358 margin-right: var(--margin-sm);
Saqib Ansaricc208832020-11-11 20:47:20 +0530359 }
360 }
361
362 .no-item-wrapper {
363 display: flex;
364 align-items: center;
365 justify-content: center;
366 background-color: var(--gray-50);
367 border-radius: var(--border-radius-md);
368 font-size: var(--text-md);
369 font-weight: 500;
370 width: 100%;
371 height: 100%;
372 }
373
374 > .cart-items-section {
375 display: flex;
376 flex-direction: column;
377 flex: 1 1 0%;
378 overflow-y: scroll;
379
380 > .cart-item-wrapper {
381 @extend .pointer-no-select;
382 display: flex;
383 align-items: center;
384 padding: var(--padding-sm);
385 border-radius: var(--border-radius-md);
386
387 &:hover {
388 background-color: var(--gray-50);
389 }
390
391 > .item-image {
392 display: flex;
393 align-items: center;
394 justify-content: center;
395 width: 2rem;
396 height: 2rem;
397 border-radius: var(--border-radius-md);
398 color: var(--gray-500);
399 margin-right: var(--margin-md);
400
401 > img {
402 @extend .image;
403 }
404 }
405
406 > .item-abbr {
407 @extend .abbr;
408 font-size: var(--text-lg);
409 }
prssanna62442d12021-02-01 20:26:09 +0530410
Saqib Ansaricc208832020-11-11 20:47:20 +0530411
412 > .item-name-desc {
413 @extend .nowrap;
414 display: flex;
415 flex-direction: column;
416 flex: 1 1 0%;
417 flex-shrink: 1;
418
419 > .item-name {
420 font-weight: 700;
421 }
422
423 > .item-desc {
424 font-size: var(--text-sm);
425 color: var(--gray-600);
426 font-weight: 500;
427 }
428 }
429
430 > .item-qty-rate {
431 display: flex;
432 flex-shrink: 0;
433 text-align: right;
434 margin-left: var(--margin-md);
435
436 > .item-qty {
437 display: flex;
438 align-items: center;
439 margin-right: var(--margin-lg);
440 font-weight: 700;
441 }
442
443 > .item-rate-amount {
444 display: flex;
445 flex-direction: column;
446 flex-shrink: 0;
447 text-align: right;
448
449 > .item-rate {
450 font-weight: 700;
451 }
452
453 > .item-amount {
454 font-size: var(--text-md);
455 font-weight: 600;
456 }
457 }
458 }
459
460 }
461 }
462
463 > .cart-totals-section {
464 display: flex;
465 flex-direction: column;
466 flex-shrink: 0;
467 width: 100%;
468 margin-top: var(--margin-md);
469
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530470 > .add-discount-wrapper {
471 @extend .pointer-no-select;
472 display: none;
473 align-items: center;
474 border-radius: var(--border-radius-md);
475 border: 1px dashed var(--gray-500);
476 padding: var(--padding-sm) var(--padding-md);
477 margin-bottom: var(--margin-sm);
478
479 > .add-discount-field {
480 width: 100%;
481 }
482
Saqib Ansarif7193802020-11-23 15:51:03 +0530483 .discount-icon {
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530484 margin-right: var(--margin-sm);
485 }
486
Saqib Ansarif7193802020-11-23 15:51:03 +0530487 .edit-discount-btn {
488 display: flex;
489 align-items: center;
490 font-weight: 500;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530491 color: var(--dark-green-500);
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530492 }
493 }
494
Saqib Ansaricc208832020-11-11 20:47:20 +0530495 > .net-total-container {
496 display: flex;
497 align-items: center;
498 justify-content: space-between;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530499 padding: var(--padding-sm) 0px;
Saqib Ansaricc208832020-11-11 20:47:20 +0530500 font-weight: 500;
501 font-size: var(--text-md);
502 }
503
Subin Tom2f6a6af2021-11-29 20:35:49 +0530504 > .item-qty-total-container {
505 @extend .net-total-container;
506 padding: 5px 0px 0px 0px;
507 }
508
Saqib Ansaricc208832020-11-11 20:47:20 +0530509 > .taxes-container {
510 display: none;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530511 flex-direction: column;
Saqib Ansaricc208832020-11-11 20:47:20 +0530512 font-weight: 500;
513 font-size: var(--text-md);
514
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530515 > .tax-row {
Saqib Ansaricc208832020-11-11 20:47:20 +0530516 display: flex;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530517 justify-content: space-between;
Saqib Ansarif7193802020-11-23 15:51:03 +0530518 line-height: var(--text-3xl);
Saqib Ansaricc208832020-11-11 20:47:20 +0530519 }
520 }
521
522 > .grand-total-container {
523 display: flex;
524 align-items: center;
525 justify-content: space-between;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530526 padding: var(--padding-sm) 0px;
Saqib Ansaricc208832020-11-11 20:47:20 +0530527 font-weight: 700;
528 font-size: var(--text-lg);
529 }
530
531 > .checkout-btn {
532 @extend .primary-action;
533 background-color: var(--blue-200);
534 color: white;
535 }
Saqib Ansarifc3315a2020-11-11 22:59:10 +0530536
537 > .edit-cart-btn {
538 @extend .primary-action;
539 display: none;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530540 background-color: var(--gray-300);
Saqib Ansarifc3315a2020-11-11 22:59:10 +0530541 font-weight: 500;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530542 transition: all 0.15s ease-in-out;
543
544 &:hover {
545 background-color: var(--gray-600);
546 color: white;
547 font-weight: 700;
548 }
Saqib Ansarifc3315a2020-11-11 22:59:10 +0530549 }
Saqib Ansaricc208832020-11-11 20:47:20 +0530550 }
551
552 > .numpad-section {
553 display: none;
554 flex-direction: column;
555 flex-shrink: 0;
556 margin-top: var(--margin-sm);
557 padding: var(--padding-sm);
558 padding-bottom: 0px;
559 width: 100%;
560
561 > .numpad-totals {
562 display: flex;
563 justify-content: space-between;
564 margin-bottom: var(--margin-md);
565 font-size: var(--text-md);
566 font-weight: 700;
567 }
568
569 > .numpad-container {
570 display: grid;
571 grid-template-columns: repeat(5, minmax(0, 1fr));
572 gap: var(--margin-md);
573 margin-bottom: var(--margin-md);
574
575 > .numpad-btn {
576 @extend .pointer-no-select;
577 border-radius: var(--border-radius-md);
578 display: flex;
579 align-items: center;
580 justify-content: center;
581 padding: var(--padding-md);
582 box-shadow: var(--shadow-sm);
583 }
584
585 > .col-span-2 {
586 grid-column: span 2 / span 2;
587 }
588
589 > .remove-btn {
590 font-weight: 700;
591 color: var(--red-500);
592 }
593 }
594
595 > .checkout-btn {
596 @extend .primary-action;
597 margin: 0px;
598 margin-bottom: var(--margin-sm);
599 background-color: var(--blue-200);
600 color: white;
601 }
602 }
603 }
Saqib Ansari210baaf2020-11-11 12:04:00 +0530604 }
605 }
606
607 .invoice-wrapper {
608 @extend .pointer-no-select;
609 display: flex;
610 justify-content: space-between;
611 border-radius: var(--border-radius-md);
612 padding: var(--padding-sm);
613
614 &:hover {
615 background-color: var(--gray-50);
616 }
617
618 > .invoice-name-date {
619 display: flex;
620 flex-direction: column;
Saqib Ansarifa0ef212020-11-23 16:05:55 +0530621 justify-content: space-around;
Saqib Ansari210baaf2020-11-11 12:04:00 +0530622
623 > .invoice-name {
624 @extend .nowrap;
625 font-size: var(--text-md);
626 font-weight: 700;
Saqib Ansari210baaf2020-11-11 12:04:00 +0530627 }
628
629 > .invoice-date {
630 @extend .nowrap;
631 font-size: var(--text-sm);
632 display: flex;
633 align-items: center;
634 }
635 }
636
637 > .invoice-total-status {
638 display: flex;
639 flex-direction: column;
640 font-weight: 500;
641 font-size: var(--text-sm);
642 margin-left: var(--margin-md);
643
644 > .invoice-total {
645 margin-bottom: var(--margin-xs);
646 font-size: var(--text-base);
647 font-weight: 700;
648 text-align: right;
649 }
650
651 > .invoice-status {
652 display: flex;
653 align-items: center;
654 justify-content: right;
655 }
656 }
657 }
Saqib Ansarifc3315a2020-11-11 22:59:10 +0530658
659 > .item-details-container {
660 @extend .pos-card;
661 grid-column: span 4 / span 4;
662 display: none;
663 flex-direction: column;
664 padding: var(--padding-lg);
665 padding-top: var(--padding-md);
666
667 > .item-details-header {
668 display: flex;
669 justify-content: space-between;
670 margin-bottom: var(--margin-md);
671
672 > .close-btn {
673 @extend .pointer-no-select;
674 }
675 }
676
677 > .item-display {
678 display: flex;
679
680 > .item-name-desc-price {
681 flex: 1 1 0%;
682 display: flex;
683 flex-direction: column;
684 justify-content: flex-end;
685 margin-right: var(--margin-md);
686
687 > .item-name {
688 font-size: var(--text-3xl);
689 font-weight: 600;
690 }
691
692 > .item-desc {
693 font-size: var(--text-md);
694 font-weight: 500;
695 }
696
697 > .item-price {
698 font-size: var(--text-3xl);
699 font-weight: 700;
700 }
701 }
702
703 > .item-image {
704 display: flex;
705 align-items: center;
706 justify-content: center;
707 width: 11rem;
708 height: 11rem;
709 border-radius: var(--border-radius-md);
710 margin-left: var(--margin-md);
711 color: var(--gray-500);
712
713 > img {
714 @extend .image;
715 }
716
717 > .item-abbr {
718 @extend .abbr;
719 display: flex;
720 align-items: center;
721 justify-content: center;
722 border-radius: var(--border-radius-md);
723 font-size: var(--text-3xl);
724 width: 100%;
725 height: 100%;
726 }
727 }
728 }
729
730 > .discount-section {
731 display: flex;
732 align-items: center;
733 margin-bottom: var(--margin-sm);
734
735 > .item-rate {
736 font-weight: 500;
737 margin-right: var(--margin-sm);
738 text-decoration: line-through;
739 }
740
741 > .item-discount {
742 padding: 3px var(--padding-sm);
743 border-radius: var(--border-radius-sm);
744 background-color: var(--green-100);
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530745 color: var(--dark-green-500);
Saqib Ansarifc3315a2020-11-11 22:59:10 +0530746 font-size: var(--text-sm);
747 font-weight: 700;
748 }
749 }
750
751 > .form-container {
752 display: grid;
753 grid-template-columns: repeat(2, minmax(0, 1fr));
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530754 column-gap: var(--padding-md);
Saqib Ansarifc3315a2020-11-11 22:59:10 +0530755
756 > .auto-fetch-btn {
757 @extend .pointer-no-select;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530758 margin: var(--margin-xs);
Saqib Ansarifc3315a2020-11-11 22:59:10 +0530759 }
760 }
761 }
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530762
763 > .payment-container {
764 @extend .pos-card;
765 grid-column: span 6 / span 6;
766 display: none;
767 flex-direction: column;
768 padding: var(--padding-lg);
769
770 .border-primary {
771 border: 1px solid var(--blue-500);
772 }
773
774 .submit-order-btn {
775 @extend .primary-action;
776 background-color: var(--blue-500);
777 color: white;
778 }
779
780 .section-label {
781 @extend .label;
782 @extend .pointer-no-select;
783 margin-bottom: var(--margin-md);
784 }
785
786 > .payment-modes {
787 display: flex;
Saqib Ansari69ef7662020-11-23 16:38:32 +0530788 padding-bottom: var(--padding-sm);
Saqib55d47a22021-05-10 15:59:37 +0530789 margin-bottom: var(--margin-sm);
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530790 overflow-x: scroll;
791 overflow-y: hidden;
Saqib55d47a22021-05-10 15:59:37 +0530792 flex-shrink: 0;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530793
794 > .payment-mode-wrapper {
795 min-width: 40%;
796 padding: var(--padding-xs);
797
798 > .mode-of-payment {
799 @extend .pos-card;
800 @extend .pointer-no-select;
801 padding: var(--padding-md) var(--padding-lg);
802
803 > .pay-amount {
804 display: inline;
805 float: right;
806 font-weight: 700;
807 }
808
809 > .mode-of-payment-control {
810 display: none;
811 align-items: center;
812 margin-top: var(--margin-sm);
813 margin-bottom: var(--margin-xs);
814 }
815
816 > .loyalty-amount-name {
817 display: none;
818 float: right;
819 font-weight: 700;
Afshand5c17252021-06-16 14:28:03 +0530820 white-space: nowrap;
821 overflow: hidden;
822 text-overflow: ellipsis;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530823 }
824
825 > .cash-shortcuts {
826 display: none;
827 grid-template-columns: repeat(3, minmax(0, 1fr));
828 gap: var(--margin-sm);
829 font-size: var(--text-sm);
830 text-align: center;
831
832 > .shortcut {
833 @extend .pointer-no-select;
834 border-radius: var(--border-radius-sm);
835 background-color: var(--gray-100);
836 font-weight: 500;
837 padding: var(--padding-xs) var(--padding-sm);
838 transition: all 0.15s ease-in-out;
839
840 &:hover {
841 background-color: var(--gray-300);
842 }
843 }
844 }
845 }
Afshand5c17252021-06-16 14:28:03 +0530846
847 > .loyalty-card {
848 display: flex;
849 flex-direction: column;
850 }
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530851 }
852 }
853
Saqib Ansari69ef7662020-11-23 16:38:32 +0530854 > .fields-numpad-container {
855 display: flex;
856 flex: 1;
Saqib55d47a22021-05-10 15:59:37 +0530857 height: 100%;
858 position: relative;
859 justify-content: flex-end;
Saqib Ansari69ef7662020-11-23 16:38:32 +0530860
861 > .fields-section {
862 flex: 1;
Saqib55d47a22021-05-10 15:59:37 +0530863 position: absolute;
864 display: flex;
865 flex-direction: column;
866 width: 50%;
867 height: 100%;
868 top: 0;
869 left: 0;
870 padding-bottom: var(--margin-md);
871
872 .invoice-fields {
873 overflow-y: scroll;
Subin Tomd4d5a422021-08-24 16:22:46 +0530874 height: 100%;
875 padding-right: var(--padding-sm);
Saqib55d47a22021-05-10 15:59:37 +0530876 }
Saqib Ansari69ef7662020-11-23 16:38:32 +0530877 }
prssanna62442d12021-02-01 20:26:09 +0530878
Saqib Ansari69ef7662020-11-23 16:38:32 +0530879 > .number-pad {
880 flex: 1;
881 display: flex;
882 justify-content: flex-end;
883 align-items: flex-end;
Saqib55d47a22021-05-10 15:59:37 +0530884 max-width: 50%;
Saqib Ansari69ef7662020-11-23 16:38:32 +0530885
886 .numpad-container {
887 display: grid;
888 grid-template-columns: repeat(3, minmax(0, 1fr));
889 gap: var(--margin-md);
890 margin-bottom: var(--margin-md);
prssanna62442d12021-02-01 20:26:09 +0530891
Saqib Ansari69ef7662020-11-23 16:38:32 +0530892 > .numpad-btn {
893 @extend .pointer-no-select;
894 border-radius: var(--border-radius-md);
895 display: flex;
896 align-items: center;
897 justify-content: center;
898 padding: var(--padding-md);
899 box-shadow: var(--shadow-sm);
900 }
901 }
902 }
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530903 }
904
905 > .totals-section {
906 display: flex;
907 margin-top: auto;
908 margin-bottom: var(--margin-sm);
909 justify-content: center;
910 flex-direction: column;
Saqib55d47a22021-05-10 15:59:37 +0530911 flex-shrink: 0;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530912
913 > .totals {
914 display: flex;
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530915 background-color: var(--gray-100);
916 justify-content: center;
917 padding: var(--padding-md);
918 border-radius: var(--border-radius-md);
919
920 > .col {
921 flex-grow: 1;
922 text-align: center;
923
924 > .total-label {
925 font-size: var(--text-md);
926 font-weight: 500;
927 color: var(--gray-600);
928 }
prssanna62442d12021-02-01 20:26:09 +0530929
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530930 > .value {
931 font-size: var(--text-2xl);
932 font-weight: 700;
933 }
934 }
935
936 > .seperator-y {
937 margin-left: var(--margin-sm);
938 margin-right: var(--margin-sm);
939 border-right: 1px solid var(--gray-300);
940 }
941 }
942
943 > .number-pad {
944 display: none;
945 }
946 }
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530947 }
Saqib Ansari7202e9f2020-11-13 17:33:20 +0530948
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530949 > .past-order-list {
950 @extend .pos-card;
951 grid-column: span 4 / span 4;
952 display: none;
953 flex-direction: column;
Saqib Ansaria6a37b72020-12-03 19:24:07 +0530954 overflow: hidden;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530955
956 > .filter-section {
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530957 display: flex;
958 flex-direction: column;
959 background-color: var(--fg-color);
960 padding: var(--padding-lg);
961
962 > .search-field {
963 width: 100%;
964 display: flex;
965 align-items: center;
Saqib Ansari937dc462020-11-23 17:12:21 +0530966 margin-top: var(--margin-md);
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530967 margin-bottom: var(--margin-xs);
968 }
969
970 > .status-field {
971 width: 100%;
972 display: flex;
973 align-items: center;
974 }
975 }
976
977 > .invoices-container {
978 padding: var(--padding-lg);
979 padding-top: 0px;
Saqib Ansaria6a37b72020-12-03 19:24:07 +0530980 overflow-x: hidden;
981 overflow-y: scroll;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530982 }
983 }
984
985 > .past-order-summary {
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530986 display: none;
987 grid-column: span 6 / span 6;
988 flex-direction: column;
989 align-items: center;
990 justify-content: center;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +0530991
992 > .no-summary-placeholder {
993 display: flex;
994 align-items: center;
995 justify-content: center;
996 width: 100%;
997 height: 100%;
998 background-color: var(--gray-50);
999 font-weight: 500;
1000 border-radius: var(--border-radius-md);
1001 }
1002
1003 > .invoice-summary-wrapper {
1004 @extend .pos-card;
1005 display: none;
1006 position: relative;
1007 width: 31rem;
1008 height: 100%;
1009
1010 > .abs-container {
1011 position: absolute;
1012 display: flex;
1013 flex-direction: column;
1014 width: 100%;
1015 height: 100%;
1016 padding: var(--padding-lg);
1017
1018 > .upper-section {
1019 display: flex;
1020 justify-content: space-between;
1021 width: 100%;
1022 margin-bottom: var(--margin-md);
1023
1024 > .left-section {
1025 display: flex;
1026 flex-direction: column;
1027 align-items: flex-start;
1028 justify-content: flex-end;
1029 padding-right: var(--padding-sm);
1030
1031 > .customer-name {
1032 font-size: var(--text-2xl);
1033 font-weight: 700;
1034 }
1035
1036 > .customer-email {
1037 font-size: var(--text-md);
1038 font-weight: 500;
1039 color: var(--gray-600);
1040 }
1041
1042 > .cashier {
1043 font-size: var(--text-md);
1044 font-weight: 500;
1045 color: var(--gray-600);
1046 margin-top: auto;
1047 }
1048 }
1049
1050 > .right-section {
1051 display: flex;
1052 flex-direction: column;
1053 align-items: flex-end;
1054 justify-content: space-between;
1055
1056 > .paid-amount {
1057 font-size: var(--text-2xl);
1058 font-weight: 700;
1059 }
1060
1061 > .invoice-name {
1062 font-size: var(--text-md);
1063 font-weight: 500;
1064 color: var(--gray-600);
1065 margin-bottom: var(--margin-sm);
1066 }
1067 }
1068 }
1069
1070 > .summary-container {
1071 display: flex;
1072 flex-direction: column;
1073 border-radius: var(--border-radius-md);
1074 background-color: var(--gray-50);
1075 margin: var(--margin-md) 0px;
1076
1077 > .summary-row-wrapper {
1078 display: flex;
1079 align-items: center;
1080 justify-content: space-between;
1081 padding: var(--padding-sm) var(--padding-md);
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301082 }
1083
1084 > .taxes-wrapper {
1085 display: flex;
1086 flex-direction: column;
Saqib Ansari937dc462020-11-23 17:12:21 +05301087 padding: 0px var(--padding-md);
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301088
1089 > .tax-row {
1090 display: flex;
1091 justify-content: space-between;
Saqib Ansarid0d6fc22020-11-23 13:33:40 +05301092 font-size: var(--text-md);
Saqib Ansarif7193802020-11-23 15:51:03 +05301093 line-height: var(--text-3xl);
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301094 }
1095 }
1096
1097 > .item-row-wrapper {
1098 display: flex;
1099 align-items: center;
1100 padding: var(--padding-sm) var(--padding-md);
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301101
1102 > .item-name {
1103 @extend .nowrap;
1104 font-weight: 500;
1105 margin-right: var(--margin-md);
1106 }
prssanna62442d12021-02-01 20:26:09 +05301107
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301108 > .item-qty {
1109 font-weight: 500;
1110 margin-left: auto;
1111 }
prssanna62442d12021-02-01 20:26:09 +05301112
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301113 > .item-rate-disc {
1114 display: flex;
1115 text-align: right;
1116 margin-left: var(--margin-md);
Saqib Ansari02d14912020-11-30 17:41:38 +05301117 justify-content: flex-end;
prssanna62442d12021-02-01 20:26:09 +05301118
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301119 > .item-disc {
1120 color: var(--dark-green-500);
1121 }
prssanna62442d12021-02-01 20:26:09 +05301122
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301123 > .item-rate {
1124 font-weight: 500;
1125 margin-left: var(--margin-md);
1126 }
1127 }
1128 }
1129
1130 > .grand-total {
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301131 font-weight: 700;
Saqib Ansarib0b6aa92020-11-23 12:57:06 +05301132 }
1133
1134 > .payments {
1135 font-weight: 700;
1136 }
1137 }
1138
1139
1140 > .summary-btns {
1141 display: flex;
1142 justify-content: space-between;
1143
1144 > .summary-btn {
1145 flex: 1;
1146 margin: 0px var(--margin-xs);
1147 }
1148
1149 > .new-btn {
1150 background-color: var(--blue-500);
1151 color:white;
1152 font-weight: 500;
1153 }
1154 }
1155 }
1156 }
Saqib Ansari7202e9f2020-11-13 17:33:20 +05301157 }
Afshand5c17252021-06-16 14:28:03 +05301158}