PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.2.0
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.2.0
2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 All 57 releases
easy-invoice / assets / css / invoice-preview.css

invoice-preview.css in Easy Invoice – Invoice Generator, PDF Quotes & Payments 2.2.0, at assets/css/invoice-preview.css

1,544 lines 27.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*
2 * Invoice Preview Stylesheet
3 * Provides clean styling for the invoice preview
4 */
5
6 /**
7 * Invoice Preview Styles
8 *
9 * A clean, professional style for invoice previews
10 */
11
12 /* Reset WordPress toolbar padding */
13 html.wp-toolbar {
14 padding-top: 0 !important;
15 }
16
17 /* Base styles */
18 :root {
19 --ei-primary-color: #4e73df;
20 --ei-secondary-color: #1cc88a;
21 --ei-bg-color: #f8f9fc;
22 --ei-text-color: #5a5c69;
23 --ei-border-color: #e3e6f0;
24 --ei-danger-color: #e74a3b;
25 --ei-warning-color: #f6c23e;
26 --ei-success-color: #1cc88a;
27 --ei-info-color: #36b9cc;
28 }
29
30 body {
31 margin-top: 0 !important;
32 background-color: var(--ei-bg-color);
33 color: var(--ei-text-color);
34 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
35 line-height: 1.5;
36 padding: 0;
37 }
38
39 /* Hide admin bar in preview */
40 #wpadminbar {
41 display: none !important;
42 }
43
44 .easy-invoice-container {
45 max-width: 1024px;
46 margin: 40px auto;
47 padding: 0 20px;
48 }
49
50 .easy-invoice-paper {
51 background-color: #fff;
52 box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
53 border-radius: 8px;
54 margin-bottom: 40px;
55 }
56
57 /* Header styles */
58 .easy-invoice-header {
59 padding: 20px;
60 background-color: #f8f9fc;
61 border-top-left-radius: 8px;
62 border-top-right-radius: 8px;
63 display: flex;
64 justify-content: space-between;
65 align-items: center;
66 }
67
68 .easy-invoice-title {
69 font-size: 24px;
70 font-weight: 600;
71 color: var(--ei-primary-color);
72 margin: 0;
73 }
74
75 .easy-invoice-actions {
76 display: flex;
77 gap: 10px;
78 }
79
80 .easy-invoice-btn {
81 padding: 8px 16px;
82 border-radius: 4px;
83 font-weight: 500;
84 cursor: pointer;
85 display: inline-flex;
86 align-items: center;
87 gap: 5px;
88 transition: all 0.2s;
89 border: none;
90 font-size: 14px;
91 text-decoration: none;
92 }
93
94 .easy-invoice-btn-primary {
95 background-color: var(--ei-primary-color);
96 color: white;
97 }
98
99 .easy-invoice-btn-primary:hover {
100 background-color: #2e59d9;
101 color: white;
102 }
103
104 .easy-invoice-btn-secondary {
105 background-color: var(--ei-secondary-color);
106 color: white;
107 }
108
109 .easy-invoice-btn-secondary:hover {
110 background-color: #17a673;
111 color: white;
112 }
113
114 .easy-invoice-btn-light {
115 background-color: #f8f9fc;
116 color: #434a54;
117 border: 1px solid #e3e6f0;
118 }
119
120 .easy-invoice-btn-light:hover {
121 background-color: #e3e6f0;
122 }
123
124 /* Loading and Error states */
125 .easy-invoice-loading,
126 .easy-invoice-error {
127 padding: 40px;
128 text-align: center;
129 }
130
131 .easy-invoice-loading-icon {
132 display: inline-block;
133 width: 60px;
134 height: 60px;
135 border: 4px solid rgba(78, 115, 223, 0.1);
136 border-radius: 50%;
137 border-top-color: var(--ei-primary-color);
138 animation: spin 1s linear infinite;
139 }
140
141 @keyframes spin {
142 0% { transform: rotate(0deg); }
143 100% { transform: rotate(360deg); }
144 }
145
146 .easy-invoice-loading-text,
147 .easy-invoice-error-title {
148 font-size: 18px;
149 font-weight: 600;
150 margin: 16px 0 8px;
151 }
152
153 .easy-invoice-error-icon {
154 color: var(--ei-danger-color);
155 font-size: 40px;
156 }
157
158 /* Content styles */
159 .easy-invoice-content {
160 padding: 30px;
161 }
162
163 /* Company and Invoice Info */
164 .easy-invoice-company-section {
165 display: flex;
166 justify-content: space-between;
167 margin-bottom: 30px;
168 padding-bottom: 20px;
169 border-bottom: 1px solid var(--ei-border-color);
170 }
171
172 .easy-invoice-company-info {
173 flex: 1;
174 }
175
176 .easy-invoice-company-logo {
177 margin-bottom: 15px;
178 }
179
180 .easy-invoice-company-logo img {
181 max-height: 80px;
182 max-width: 200px;
183 }
184
185 .easy-invoice-company-name {
186 font-size: 20px;
187 font-weight: 600;
188 margin-bottom: 5px;
189 }
190
191 .easy-invoice-company-address,
192 .easy-invoice-company-contact {
193 font-size: 14px;
194 color: #6c757d;
195 }
196
197 .easy-invoice-invoice-info {
198 text-align: right;
199 min-width: 250px;
200 }
201
202 .easy-invoice-invoice-number {
203 font-size: 18px;
204 font-weight: 600;
205 margin-bottom: 10px;
206 }
207
208 .easy-invoice-meta-row {
209 display: flex;
210 justify-content: space-between;
211 margin-bottom: 5px;
212 font-size: 14px;
213 }
214
215 .easy-invoice-meta-label {
216 color: #6c757d;
217 font-weight: 500;
218 }
219
220 .invoice-status-paid {
221 color: var(--ei-success-color);
222 font-weight: 600;
223 }
224
225 .invoice-status-pending {
226 color: var(--ei-warning-color);
227 font-weight: 600;
228 }
229
230 .invoice-status-overdue {
231 color: var(--ei-danger-color);
232 font-weight: 600;
233 }
234
235 .invoice-status-draft {
236 color: #6c757d;
237 font-weight: 600;
238 }
239
240 /* Customer and Shipping sections */
241 .easy-invoice-customer-section {
242 display: flex;
243 gap: 20px;
244 margin-bottom: 30px;
245 }
246
247 .easy-invoice-customer-info,
248 .easy-invoice-shipping-info {
249 flex: 1;
250 padding: 15px;
251 background-color: #f8f9fc;
252 border-radius: 5px;
253 }
254
255 .easy-invoice-section-title {
256 font-size: 16px;
257 font-weight: 600;
258 margin-bottom: 10px;
259 color: var(--ei-primary-color);
260 }
261
262 .easy-invoice-customer-name,
263 .easy-invoice-shipping-name {
264 font-weight: 600;
265 margin-bottom: 5px;
266 }
267
268 .easy-invoice-customer-address,
269 .easy-invoice-shipping-address,
270 .easy-invoice-customer-email {
271 font-size: 14px;
272 color: #6c757d;
273 }
274
275 /* Items table */
276 .easy-invoice-items-section {
277 margin-bottom: 30px;
278 }
279
280 .easy-invoice-items-table {
281 width: 100%;
282 border-collapse: collapse;
283 }
284
285 .easy-invoice-items-table th,
286 .easy-invoice-items-table td {
287 padding: 12px 15px;
288 text-align: left;
289 border-bottom: 1px solid var(--ei-border-color);
290 }
291
292 .easy-invoice-items-table th {
293 background-color: #f8f9fc;
294 font-weight: 600;
295 border-top: 1px solid var(--ei-border-color);
296 }
297
298 .easy-invoice-items-table tr:last-child td {
299 border-bottom: none;
300 }
301
302 .easy-invoice-item-quantity,
303 .easy-invoice-item-price,
304 .easy-invoice-item-amount {
305 text-align: right;
306 }
307
308 /* Summary section */
309 .easy-invoice-summary-section {
310 display: flex;
311 justify-content: flex-end;
312 margin-bottom: 30px;
313 }
314
315 .easy-invoice-summary-table {
316 width: 300px;
317 border-collapse: collapse;
318 }
319
320 .easy-invoice-summary-table td {
321 padding: 8px 15px;
322 border-bottom: 1px solid var(--ei-border-color);
323 }
324
325 .easy-invoice-summary-label {
326 text-align: left;
327 font-weight: 500;
328 }
329
330 .easy-invoice-summary-value {
331 text-align: right;
332 }
333
334 .easy-invoice-total-row {
335 background-color: #f8f9fc;
336 font-weight: 600;
337 font-size: 16px;
338 }
339
340 .easy-invoice-total {
341 color: var(--ei-primary-color);
342 }
343
344 /* Notes and Payment Instructions */
345 .easy-invoice-notes-container,
346 .easy-invoice-payment-instructions-container {
347 padding: 15px;
348 background-color: #f8f9fc;
349 border-radius: 5px;
350 margin-bottom: 20px;
351 }
352
353 .easy-invoice-notes,
354 .easy-invoice-payment-instructions {
355 white-space: pre-wrap;
356 font-size: 14px;
357 }
358
359 /* Footer */
360 .easy-invoice-footer {
361 text-align: center;
362 padding: 20px;
363 border-top: 1px solid var(--ei-border-color);
364 font-size: 14px;
365 color: #6c757d;
366 }
367
368 /* Print styles */
369 @media print {
370 body {
371 background-color: white;
372 }
373
374 .easy-invoice-container {
375 max-width: 100%;
376 margin: 0;
377 padding: 0;
378 }
379
380 .easy-invoice-paper {
381 box-shadow: none;
382 border-radius: 0;
383 }
384
385 .easy-invoice-header,
386 .easy-invoice-loading,
387 .easy-invoice-error {
388 display: none !important;
389 }
390
391 .easy-invoice-content {
392 padding: 0;
393 }
394
395 .easy-invoice-company-section,
396 .easy-invoice-customer-section,
397 .easy-invoice-items-section,
398 .easy-invoice-summary-section,
399 .easy-invoice-notes-container,
400 .easy-invoice-payment-instructions-container,
401 .easy-invoice-footer {
402 page-break-inside: avoid;
403 }
404 }
405
406 /* Responsive styles */
407 @media (max-width: 768px) {
408 .easy-invoice-company-section {
409 flex-direction: column;
410 }
411
412 .easy-invoice-invoice-info {
413 text-align: left;
414 margin-top: 20px;
415 }
416
417 .easy-invoice-customer-section {
418 flex-direction: column;
419 }
420
421 .easy-invoice-customer-info,
422 .easy-invoice-shipping-info {
423 margin-bottom: 15px;
424 }
425
426 .easy-invoice-items-table {
427 display: block;
428 overflow-x: auto;
429 }
430 }
431
432 /* Global styles */
433 .easy-invoice-preview {
434 font-family: 'Helvetica Neue', Arial, sans-serif;
435 color: #333;
436 line-height: 1.5;
437 max-width: 800px;
438 margin: 0 auto;
439 padding: 20px;
440 background-color: #fff;
441 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
442 }
443
444 /* Header styles */
445 .easy-invoice-header {
446 display: flex;
447 justify-content: space-between;
448 padding-bottom: 20px;
449 border-bottom: 1px solid #eee;
450 margin-bottom: 30px;
451 }
452
453 .easy-invoice-company {
454 flex: 2;
455 }
456
457 .easy-invoice-company img {
458 max-height: 80px;
459 max-width: 240px;
460 margin-bottom: 10px;
461 }
462
463 .easy-invoice-company-name {
464 font-size: 22px;
465 font-weight: bold;
466 margin-bottom: 5px;
467 }
468
469 .easy-invoice-company-address {
470 font-size: 14px;
471 color: #555;
472 }
473
474 .easy-invoice-company-contact {
475 font-size: 14px;
476 color: #555;
477 margin-top: 5px;
478 }
479
480 .easy-invoice-meta {
481 flex: 1;
482 text-align: right;
483 }
484
485 .easy-invoice-meta-row {
486 margin-bottom: 10px;
487 }
488
489 .easy-invoice-meta-label {
490 font-weight: bold;
491 font-size: 14px;
492 color: #777;
493 }
494
495 .easy-invoice-meta-value {
496 font-size: 15px;
497 margin-top: 2px;
498 }
499
500 .easy-invoice-number {
501 font-size: 18px;
502 font-weight: bold;
503 margin-bottom: 15px;
504 }
505
506 /* Status styles */
507 .easy-invoice-status-paid {
508 color: #0a9928;
509 }
510
511 .easy-invoice-status-pending {
512 color: #e67e22;
513 }
514
515 .easy-invoice-status-overdue {
516 color: #e74c3c;
517 }
518
519 .easy-invoice-status-draft {
520 color: #7f8c8d;
521 }
522
523 /* Customer info styles */
524 .easy-invoice-info-section {
525 display: flex;
526 margin-bottom: 30px;
527 }
528
529 .easy-invoice-customer-info,
530 .easy-invoice-shipping-info {
531 flex: 1;
532 padding-right: 20px;
533 }
534
535 .easy-invoice-info-title {
536 font-size: 16px;
537 font-weight: bold;
538 margin-bottom: 10px;
539 color: #555;
540 }
541
542 .easy-invoice-info-content {
543 font-size: 14px;
544 }
545
546 .easy-invoice-customer-name,
547 .easy-invoice-shipping-name {
548 font-weight: bold;
549 margin-bottom: 5px;
550 }
551
552 .easy-invoice-customer-email {
553 margin-top: 5px;
554 color: #555;
555 }
556
557 /* Loading and error states */
558 .easy-invoice-loading,
559 .easy-invoice-error {
560 text-align: center;
561 padding: 40px 0;
562 }
563
564 .easy-invoice-loading {
565 min-height: 200px;
566 }
567
568 .easy-invoice-loading-spinner {
569 display: inline-block;
570 width: 40px;
571 height: 40px;
572 border: 3px solid rgba(0, 0, 0, 0.1);
573 border-radius: 50%;
574 border-top-color: #3498db;
575 animation: easy-invoice-spin 1s ease-in-out infinite;
576 margin-bottom: 15px;
577 }
578
579 @keyframes easy-invoice-spin {
580 to {
581 transform: rotate(360deg);
582 }
583 }
584
585 .easy-invoice-error-message {
586 color: #e74c3c;
587 margin-bottom: 15px;
588 }
589
590 .easy-invoice-retry {
591 background-color: #3498db;
592 color: white;
593 border: none;
594 padding: 8px 15px;
595 border-radius: 4px;
596 cursor: pointer;
597 font-size: 14px;
598 }
599
600 .easy-invoice-retry:hover {
601 background-color: #2980b9;
602 }
603
604 /* Items table styles */
605 .easy-invoice-items-table {
606 width: 100%;
607 border-collapse: collapse;
608 margin-bottom: 30px;
609 }
610
611 .easy-invoice-items-table th {
612 background-color: #f8f9fa;
613 text-align: left;
614 padding: 12px 10px;
615 font-weight: bold;
616 border-bottom: 2px solid #eee;
617 color: #555;
618 }
619
620 .easy-invoice-items-table td {
621 padding: 12px 10px;
622 border-bottom: 1px solid #eee;
623 color: #333;
624 }
625
626 .easy-invoice-item-quantity,
627 .easy-invoice-item-price,
628 .easy-invoice-item-amount {
629 text-align: right;
630 }
631
632 /* Summary table styles */
633 .easy-invoice-summary-table {
634 width: 100%;
635 max-width: 350px;
636 margin-left: auto;
637 margin-bottom: 30px;
638 }
639
640 .easy-invoice-summary-row td {
641 padding: 8px 0;
642 }
643
644 .easy-invoice-summary-label {
645 font-weight: bold;
646 color: #555;
647 }
648
649 .easy-invoice-summary-value {
650 text-align: right;
651 }
652
653 .easy-invoice-summary-total {
654 font-size: 18px;
655 font-weight: bold;
656 border-top: 1px solid #eee;
657 padding-top: 10px !important;
658 margin-top: 5px;
659 }
660
661 /* Notes and payment instructions */
662 .easy-invoice-notes,
663 .easy-invoice-payment-instructions {
664 margin-bottom: 30px;
665 color: #555;
666 }
667
668 .easy-invoice-notes-title,
669 .easy-invoice-payment-instructions-title {
670 font-size: 16px;
671 font-weight: bold;
672 margin-bottom: 10px;
673 color: #555;
674 }
675
676 .easy-invoice-notes-content,
677 .easy-invoice-payment-instructions-content {
678 font-size: 14px;
679 background-color: #f9f9f9;
680 padding: 15px;
681 border-radius: 4px;
682 }
683
684 /* Footer styles */
685 .easy-invoice-footer {
686 margin-top: 50px;
687 padding-top: 20px;
688 border-top: 1px solid #eee;
689 text-align: center;
690 font-size: 13px;
691 color: #777;
692 }
693
694 /* Action buttons */
695 .easy-invoice-actions {
696 margin: 20px 0;
697 text-align: right;
698 }
699
700 .easy-invoice-btn {
701 display: inline-block;
702 padding: 8px 16px;
703 margin-left: 10px;
704 color: white;
705 background-color: #3498db;
706 border: none;
707 border-radius: 4px;
708 cursor: pointer;
709 font-size: 14px;
710 text-decoration: none;
711 }
712
713 .easy-invoice-btn:hover {
714 background-color: #2980b9;
715 }
716
717 .easy-invoice-btn-pdf {
718 background-color: #e74c3c;
719 }
720
721 .easy-invoice-btn-pdf:hover {
722 background-color: #c0392b;
723 }
724
725 .easy-invoice-btn-email {
726 background-color: #27ae60;
727 }
728
729 .easy-invoice-btn-email:hover {
730 background-color: #219d55;
731 }
732
733 .easy-invoice-btn-loading {
734 opacity: 0.7;
735 cursor: not-allowed;
736 }
737
738 /* Print styles */
739 @media print {
740 body {
741 background-color: white;
742 }
743
744 .easy-invoice-preview {
745 box-shadow: none;
746 padding: 0;
747 }
748
749 .easy-invoice-actions {
750 display: none;
751 }
752
753 .easy-invoice-header,
754 .easy-invoice-info-section,
755 .easy-invoice-items-table,
756 .easy-invoice-summary-table,
757 .easy-invoice-notes,
758 .easy-invoice-payment-instructions {
759 page-break-inside: avoid;
760 }
761 }
762
763 /* Basic invoice preview styles */
764 .easy-invoice-preview {
765 max-width: 900px;
766 margin: 0 auto;
767 padding: 20px;
768 background-color: #fff;
769 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
770 }
771
772 .easy-invoice-actions {
773 margin-bottom: 20px;
774 text-align: right;
775 }
776
777 .easy-invoice-btn {
778 display: inline-block;
779 padding: 8px 16px;
780 margin-left: 10px;
781 background-color: #0073aa;
782 color: #fff;
783 border: none;
784 border-radius: 3px;
785 cursor: pointer;
786 text-decoration: none;
787 font-size: 14px;
788 }
789
790 .easy-invoice-btn:hover {
791 background-color: #005177;
792 }
793
794 .easy-invoice-btn-pdf {
795 background-color: #d63638;
796 }
797
798 .easy-invoice-btn-pdf:hover {
799 background-color: #b32d2e;
800 }
801
802 .easy-invoice-btn-email {
803 background-color: #2271b1;
804 }
805
806 .easy-invoice-btn-email:hover {
807 background-color: #135e96;
808 }
809
810 /* Loading and error states */
811 .easy-invoice-loading {
812 text-align: center;
813 padding: 40px 0;
814 }
815
816 .easy-invoice-loading-spinner {
817 display: inline-block;
818 width: 40px;
819 height: 40px;
820 border: 3px solid rgba(0, 0, 0, 0.1);
821 border-radius: 50%;
822 border-top-color: #0073aa;
823 animation: spin 1s linear infinite;
824 margin-bottom: 15px;
825 }
826
827 @keyframes spin {
828 to {
829 transform: rotate(360deg);
830 }
831 }
832
833 .easy-invoice-error {
834 text-align: center;
835 padding: 30px;
836 background-color: #f8d7da;
837 color: #721c24;
838 border: 1px solid #f5c6cb;
839 border-radius: 4px;
840 margin-bottom: 20px;
841 }
842
843 .easy-invoice-retry {
844 background-color: #0073aa;
845 color: white;
846 border: none;
847 padding: 8px 15px;
848 border-radius: 3px;
849 cursor: pointer;
850 margin-top: 15px;
851 }
852
853 /* Invoice content styling */
854 .easy-invoice-header {
855 display: flex;
856 justify-content: space-between;
857 margin-bottom: 30px;
858 padding-bottom: 20px;
859 border-bottom: 1px solid #e0e0e0;
860 }
861
862 .easy-invoice-logo {
863 max-width: 200px;
864 max-height: 80px;
865 margin-bottom: 10px;
866 }
867
868 .easy-invoice-company-name {
869 font-size: 18px;
870 font-weight: bold;
871 margin-bottom: 5px;
872 }
873
874 .easy-invoice-company-address,
875 .easy-invoice-company-contact {
876 font-size: 14px;
877 color: #666;
878 margin-bottom: 5px;
879 }
880
881 .easy-invoice-number {
882 font-size: 20px;
883 font-weight: bold;
884 margin-bottom: 10px;
885 }
886
887 .easy-invoice-meta-row {
888 margin-bottom: 5px;
889 }
890
891 .easy-invoice-meta-label {
892 font-weight: bold;
893 font-size: 14px;
894 color: #666;
895 }
896
897 .easy-invoice-meta-value {
898 font-size: 14px;
899 margin-top: 3px;
900 }
901
902 /* Customer and shipping info */
903 .easy-invoice-info-section {
904 display: flex;
905 margin-bottom: 30px;
906 }
907
908 .easy-invoice-customer-info,
909 .easy-invoice-shipping-info {
910 flex: 1;
911 }
912
913 .easy-invoice-info-title {
914 font-weight: bold;
915 margin-bottom: 10px;
916 color: #666;
917 }
918
919 .easy-invoice-customer-name,
920 .easy-invoice-shipping-name {
921 font-weight: bold;
922 margin-bottom: 5px;
923 }
924
925 /* Items table */
926 .easy-invoice-items-table {
927 width: 100%;
928 border-collapse: collapse;
929 margin-bottom: 30px;
930 }
931
932 .easy-invoice-items-table th {
933 background-color: #f9f9f9;
934 border-bottom: 2px solid #e0e0e0;
935 padding: 10px;
936 text-align: left;
937 }
938
939 .easy-invoice-items-table td {
940 padding: 10px;
941 border-bottom: 1px solid #e0e0e0;
942 }
943
944 /* Summary table */
945 .easy-invoice-summary-table {
946 width: 300px;
947 margin-left: auto;
948 margin-bottom: 30px;
949 }
950
951 .easy-invoice-summary-table td {
952 padding: 5px 0;
953 }
954
955 .easy-invoice-summary-label {
956 font-weight: bold;
957 }
958
959 .easy-invoice-summary-value {
960 text-align: right;
961 }
962
963 /* Notes and payment instructions */
964 .easy-invoice-notes,
965 .easy-invoice-payment-instructions {
966 margin-bottom: 30px;
967 }
968
969 .easy-invoice-notes-title,
970 .easy-invoice-payment-instructions-title {
971 font-weight: bold;
972 margin-bottom: 10px;
973 }
974
975 .easy-invoice-notes-content,
976 .easy-invoice-payment-instructions-content {
977 padding: 15px;
978 background-color: #f9f9f9;
979 border-radius: 4px;
980 }
981
982 /* Footer */
983 .easy-invoice-footer {
984 text-align: center;
985 padding-top: 20px;
986 margin-top: 30px;
987 border-top: 1px solid #e0e0e0;
988 color: #666;
989 font-size: 12px;
990 }
991
992 /* Print styles */
993 @media print {
994 .easy-invoice-actions,
995 .easy-invoice-retry {
996 display: none;
997 }
998
999 body {
1000 background: white;
1001 }
1002
1003 .easy-invoice-preview {
1004 box-shadow: none;
1005 margin: 0;
1006 padding: 0;
1007 }
1008 }
1009
1010 /**
1011 * Invoice Preview Styles
1012 *
1013 * Styling for the invoice preview interface
1014 */
1015
1016 /* General Layout */
1017 .invoice-preview-container {
1018 max-width: 1000px;
1019 margin: 0 auto;
1020 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
1021 color: #333;
1022 background-color: #fff;
1023 box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
1024 border-radius: 8px;
1025 overflow: hidden;
1026 position: relative;
1027 }
1028
1029 .invoice-preview-content {
1030 padding: 40px;
1031 }
1032
1033 @media print {
1034 .invoice-preview-container {
1035 box-shadow: none;
1036 max-width: 100%;
1037 }
1038
1039 .invoice-preview-actions,
1040 .invoice-preview-header-actions {
1041 display: none !important;
1042 }
1043
1044 .invoice-preview-content {
1045 padding: 0;
1046 }
1047 }
1048
1049 /* Loading and Error States */
1050 .invoice-preview-loading,
1051 .invoice-preview-error {
1052 padding: 60px 20px;
1053 text-align: center;
1054 }
1055
1056 .invoice-preview-loading img {
1057 width: 60px;
1058 height: 60px;
1059 margin-bottom: 20px;
1060 }
1061
1062 .invoice-preview-error {
1063 color: #d63638;
1064 }
1065
1066 .invoice-preview-error-icon {
1067 font-size: 40px;
1068 margin-bottom: 20px;
1069 }
1070
1071 /* Header Actions */
1072 .invoice-preview-header-actions {
1073 background-color: #f9f9f9;
1074 padding: 15px 20px;
1075 display: flex;
1076 justify-content: flex-end;
1077 border-bottom: 1px solid #eee;
1078 }
1079
1080 .invoice-preview-header-actions button {
1081 margin-left: 10px;
1082 padding: 8px 15px;
1083 background-color: #fff;
1084 border: 1px solid #ddd;
1085 border-radius: 4px;
1086 cursor: pointer;
1087 font-size: 14px;
1088 display: inline-flex;
1089 align-items: center;
1090 transition: all 0.2s ease;
1091 }
1092
1093 .invoice-preview-header-actions button:hover {
1094 background-color: #f5f5f5;
1095 }
1096
1097 .invoice-preview-header-actions button i {
1098 margin-right: 8px;
1099 }
1100
1101 /* Invoice Status Bar */
1102 .invoice-status-bar {
1103 height: 10px;
1104 width: 100%;
1105 }
1106
1107 .status-draft .invoice-status-bar {
1108 background-color: #72aee6;
1109 }
1110
1111 .status-pending .invoice-status-bar {
1112 background-color: #f0c33c;
1113 }
1114
1115 .status-paid .invoice-status-bar {
1116 background-color: #00a32a;
1117 }
1118
1119 .status-overdue .invoice-status-bar {
1120 background-color: #d63638;
1121 }
1122
1123 .status-cancelled .invoice-status-bar {
1124 background-color: #999;
1125 }
1126
1127 /* Invoice Header */
1128 .invoice-header {
1129 display: flex;
1130 justify-content: space-between;
1131 margin-bottom: 40px;
1132 }
1133
1134 .invoice-company-logo {
1135 margin-bottom: 15px;
1136 }
1137
1138 .invoice-company-logo img {
1139 max-height: 80px;
1140 max-width: 200px;
1141 }
1142
1143 .invoice-company-logo h2 {
1144 font-size: 24px;
1145 margin: 0;
1146 color: #333;
1147 }
1148
1149 .invoice-company-info {
1150 font-size: 14px;
1151 line-height: 1.5;
1152 }
1153
1154 .invoice-company-name {
1155 font-weight: bold;
1156 font-size: 16px;
1157 }
1158
1159 .invoice-info {
1160 text-align: right;
1161 font-size: 14px;
1162 }
1163
1164 .invoice-info h1 {
1165 font-size: 28px;
1166 color: #333;
1167 margin: 0 0 20px 0;
1168 font-weight: normal;
1169 }
1170
1171 .invoice-info-row {
1172 margin-bottom: 10px;
1173 }
1174
1175 .invoice-info-label {
1176 color: #777;
1177 margin-right: 5px;
1178 }
1179
1180 .invoice-status {
1181 display: inline-block;
1182 padding: 5px 10px;
1183 border-radius: 4px;
1184 text-transform: uppercase;
1185 font-size: 12px;
1186 font-weight: bold;
1187 color: #fff;
1188 }
1189
1190 .status-draft .invoice-status {
1191 background-color: #72aee6;
1192 }
1193
1194 .status-pending .invoice-status {
1195 background-color: #f0c33c;
1196 color: #333;
1197 }
1198
1199 .status-paid .invoice-status {
1200 background-color: #00a32a;
1201 }
1202
1203 .status-overdue .invoice-status {
1204 background-color: #d63638;
1205 }
1206
1207 .status-cancelled .invoice-status {
1208 background-color: #999;
1209 }
1210
1211 /* Customer Info */
1212 .invoice-customer-info {
1213 margin-bottom: 40px;
1214 padding: 20px;
1215 background-color: #f9f9f9;
1216 border-radius: 6px;
1217 }
1218
1219 .invoice-customer-info h3 {
1220 font-size: 16px;
1221 margin-top: 0;
1222 margin-bottom: 15px;
1223 color: #777;
1224 font-weight: normal;
1225 }
1226
1227 .invoice-customer-name {
1228 font-weight: bold;
1229 font-size: 18px;
1230 margin-bottom: 10px;
1231 }
1232
1233 .invoice-customer-details {
1234 font-size: 14px;
1235 line-height: 1.5;
1236 }
1237
1238 /* Items Table */
1239 .invoice-items {
1240 margin-bottom: 40px;
1241 }
1242
1243 .invoice-items-table {
1244 width: 100%;
1245 border-collapse: collapse;
1246 margin-top: 10px;
1247 }
1248
1249 .invoice-items-table th {
1250 background-color: #f5f5f5;
1251 text-align: left;
1252 padding: 12px 15px;
1253 font-weight: 600;
1254 font-size: 14px;
1255 color: #333;
1256 border-bottom: 2px solid #ddd;
1257 }
1258
1259 .invoice-items-table td {
1260 padding: 12px 15px;
1261 border-bottom: 1px solid #eee;
1262 vertical-align: top;
1263 }
1264
1265 .invoice-items-table tr:last-child td {
1266 border-bottom: 2px solid #ddd;
1267 }
1268
1269 .item-name {
1270 font-weight: 600;
1271 margin-bottom: 5px;
1272 }
1273
1274 .item-desc {
1275 font-size: 13px;
1276 color: #777;
1277 white-space: pre-line;
1278 }
1279
1280 .item-quantity,
1281 .item-price,
1282 .item-total {
1283 text-align: right;
1284 white-space: nowrap;
1285 }
1286
1287 .invoice-items-table th.item-quantity,
1288 .invoice-items-table th.item-price,
1289 .invoice-items-table th.item-total {
1290 text-align: right;
1291 }
1292
1293 /* Summary */
1294 .invoice-summary {
1295 margin-left: auto;
1296 width: 350px;
1297 margin-bottom: 40px;
1298 }
1299
1300 .invoice-summary-table {
1301 width: 100%;
1302 border-collapse: collapse;
1303 }
1304
1305 .invoice-summary-table td,
1306 .invoice-summary-table th {
1307 padding: 10px 15px;
1308 border-bottom: 1px solid #eee;
1309 }
1310
1311 .invoice-summary-table th {
1312 text-align: left;
1313 font-weight: normal;
1314 color: #777;
1315 }
1316
1317 .invoice-summary-table td {
1318 text-align: right;
1319 }
1320
1321 .invoice-total-row th,
1322 .invoice-total-row td {
1323 font-weight: bold;
1324 font-size: 18px;
1325 border-top: 2px solid #ddd;
1326 border-bottom: none;
1327 padding-top: 15px;
1328 }
1329
1330 /* Notes & Payment Instructions */
1331 .invoice-notes,
1332 .invoice-payment-instructions-container {
1333 margin-bottom: 40px;
1334 padding: 20px;
1335 background-color: #f9f9f9;
1336 border-radius: 6px;
1337 }
1338
1339 .invoice-notes h3,
1340 .invoice-payment-instructions-container h3 {
1341 font-size: 16px;
1342 margin-top: 0;
1343 margin-bottom: 15px;
1344 color: #777;
1345 font-weight: normal;
1346 }
1347
1348 .invoice-notes-content,
1349 .invoice-payment-instructions {
1350 font-size: 14px;
1351 line-height: 1.6;
1352 white-space: pre-line;
1353 }
1354
1355 /* Footer */
1356 .invoice-footer {
1357 margin-top: 60px;
1358 font-size: 13px;
1359 color: #777;
1360 text-align: center;
1361 padding-top: 20px;
1362 border-top: 1px solid #eee;
1363 }
1364
1365 /* Actions Bar */
1366 .invoice-preview-actions {
1367 display: flex;
1368 justify-content: center;
1369 gap: 10px;
1370 margin-top: 40px;
1371 }
1372
1373 .invoice-preview-actions button {
1374 padding: 12px 20px;
1375 border-radius: 4px;
1376 border: none;
1377 cursor: pointer;
1378 font-size: 14px;
1379 font-weight: 600;
1380 display: inline-flex;
1381 align-items: center;
1382 transition: all 0.2s ease;
1383 }
1384
1385 .invoice-print-btn {
1386 background-color: #f5f5f5;
1387 color: #333;
1388 border: 1px solid #ddd !important;
1389 }
1390
1391 .invoice-download-btn {
1392 background-color: #2271b1;
1393 color: #fff;
1394 }
1395
1396 .invoice-email-btn {
1397 background-color: #00a32a;
1398 color: #fff;
1399 }
1400
1401 .invoice-preview-actions button:hover {
1402 opacity: 0.9;
1403 }
1404
1405 .invoice-preview-actions button i {
1406 margin-right: 8px;
1407 }
1408
1409 /* Responsive */
1410 @media (max-width: 768px) {
1411 .invoice-preview-content {
1412 padding: 20px;
1413 }
1414
1415 .invoice-header {
1416 flex-direction: column;
1417 }
1418
1419 .invoice-info {
1420 text-align: left;
1421 margin-top: 20px;
1422 }
1423
1424 .invoice-summary {
1425 width: 100%;
1426 }
1427
1428 .invoice-items-table {
1429 font-size: 13px;
1430 }
1431
1432 .invoice-items-table th {
1433 padding: 8px;
1434 }
1435
1436 .invoice-items-table td {
1437 padding: 8px;
1438 }
1439
1440 .item-description {
1441 min-width: 200px;
1442 }
1443
1444 .invoice-preview-actions {
1445 flex-direction: column;
1446 }
1447
1448 .invoice-preview-actions button {
1449 width: 100%;
1450 }
1451 }
1452
1453 @media (max-width: 480px) {
1454 .invoice-items-table {
1455 display: block;
1456 overflow-x: auto;
1457 }
1458 }
1459
1460 /* Fix for invoice preview page */
1461 .easy-invoice-app {
1462 background-color: #f8f9fc;
1463 min-height: 100vh;
1464 }
1465
1466 /* Fix grid layout on smaller screens */
1467 @media (max-width: 640px) {
1468 .grid-cols-2 {
1469 grid-template-columns: 1fr !important;
1470 }
1471
1472 #shipping-section {
1473 margin-top: 20px;
1474 }
1475 }
1476
1477 /* Improve table responsiveness */
1478 @media (max-width: 768px) {
1479 table {
1480 display: block;
1481 width: 100%;
1482 overflow-x: auto;
1483 }
1484 }
1485
1486 /* Button styling */
1487 button {
1488 transition: all 0.2s ease;
1489 }
1490
1491 button:hover {
1492 transform: translateY(-1px);
1493 }
1494
1495 button:active {
1496 transform: translateY(1px);
1497 }
1498
1499 /* Resizable preview */
1500 .ei-resizable-preview { width: 100%; min-width: 360px; }
1501 .ei-resize-handle { position: absolute; top: 0; right: 0; width: 8px; height: 100%; cursor: ew-resize; background: transparent; }
1502 .ei-resize-handle:hover { background: rgba(0,0,0,0.05); }
1503
1504 /* Print styles */
1505 @media print {
1506 body {
1507 background-color: white;
1508 margin: 0;
1509 padding: 0;
1510 }
1511
1512 .easy-invoice-app {
1513 background-color: white;
1514 }
1515
1516 .bg-white.shadow-sm {
1517 display: none;
1518 }
1519
1520 .max-w-7xl {
1521 max-width: none !important;
1522 padding: 0 !important;
1523 margin: 0 !important;
1524 }
1525
1526 #invoice-container {
1527 box-shadow: none !important;
1528 border: none !important;
1529 }
1530
1531 .rounded-lg {
1532 border-radius: 0 !important;
1533 }
1534
1535 /* Ensure colors print correctly */
1536 .text-gray-900 { color: black !important; }
1537 .text-gray-600 { color: #444 !important; }
1538 .bg-gray-50 { background-color: #f9f9f9 !important; }
1539
1540 /* Table borders */
1541 table th, table td {
1542 border-color: #ddd !important;
1543 }
1544 }