//
// Invoice 1
// Pages SASS files are compiled into separate css files
//



// Global config
@import "../../config";

// Layout config
@import "../../global/layout/config.scss";

.kt-invoice-2 {
	@include kt-rounded {
		border-top-left-radius: $kt-border-radius;
		border-top-right-radius: $kt-border-radius;
	}

	.kt-invoice__container {
		width: 100%;
		margin: 0;
		padding: 0 30px;
	}

    .kt-invoice__head {
		@include kt-rounded {
			border-top-left-radius: $kt-border-radius;
			border-top-right-radius: $kt-border-radius;
		}

		.kt-invoice__container {
			@include kt-rounded {
				border-top-left-radius: $kt-border-radius;
				border-top-right-radius: $kt-border-radius;
			}
		}

        background-size: cover;
		background-repeat: no-repeat;
		padding: 80px 0;

		.kt-invoice__brand {
            display: flex;
			justify-content: space-between;
			flex-wrap: wrap;

			.kt-invoice__title {
				font-weight: 700;
				font-size: 2.7rem;
				margin-right: 10px;
				margin-top: 5px;
				color: kt-base-color(label, 3);
				vertical-align: top;
			}

			.kt-invoice__logo {
				display: flex;
				flex-direction: column;
				margin-top: 5px;
				text-align: right;

				img {
					text-align: right;
				}

				.kt-invoice__desc {
					display: flex;
					flex-direction: column;
					text-align: right;
					font-weight: 400;
					padding: 1rem 0 1rem 0;
					color: kt-base-color(label, 2);
				}
			}
        }

		.kt-invoice__items {
			display: flex;
			flex-wrap: wrap;
			margin-top: 50px;
            width: 100%;
            border-top: 1px solid kt-base-color(grey, 2);

			.kt-invoice__item {
				display: flex;
				flex-direction: column;
                flex: 1;
				color: kt-base-color(label, 3);
				margin-right: 10px;
				margin-top: 20px;

				&:last-child {
					margin-right: 0;
				}

				.kt-invoice__subtitle {
                    font-weight: 500;
                    padding-bottom: 0.5rem;
                }

				.kt-invoice__text {
					font-weight: 400;
                    color: kt-base-color(label, 2);
                }
            }
        }
    }

	.kt-invoice__body {
        padding: 3rem 0;

		table {
			background-color: transparent;

            thead {
                tr {
                    th {
						background-color: transparent;
                        padding: 1rem 0 0.5rem 0;
						color: kt-base-color(label, 2);
						border-top: 0;
						border-bottom: 1px solid kt-base-color(grey, 2);

						&:not(:first-child) {
                            text-align: right;
                        }
                    }
                }
            }
            tbody {
                tr {
                    td {
						background-color: transparent;
                        padding: 1rem 0 1rem 0;
                        border-top: none;
                        font-weight: 700;
                        font-size: 1.1rem;
						color: kt-base-color(label, 3);

                        &:not(:first-child) {
                            text-align: right;
                        }
					}

                    &:first-child td {
                        padding-top: 1.8rem;
                    }
                }
            }
        }
	}

    .kt-invoice__footer {
		padding: 3rem 0;
		background-color: kt-base-color(grey, 1);

		.kt-invoice__container {
            display: flex;
            flex-direction: row;
			justify-content: space-between;
			flex-wrap: wrap;
		}

		.table {
			background-color: transparent;
			padding: 0;

			th {
				font-size: 1.1rem;
				text-transform: capitalize;
				font-weight: 500;
				color: kt-base-color(label, 2);
				border-top: 0;
				border-bottom: 1px solid kt-base-color(grey, 2);
				padding: 10px 10px 10px 0;
				background-color: transparent;

				&:last-child {
					padding-right: 0;
				}
			}

			td {
				font-size: 1.1rem;
				text-transform: capitalize;
				background-color: transparent;
				font-weight: 500;
				color: kt-base-color(label, 3);
				padding: 10px 10px 10px 0;

				&:last-child {
					padding-right: 0;
				}
			}
		}
    }

	.kt-invoice__actions {
        padding: 2rem 0;

		.kt-invoice__container {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
        }
	}
}

@include kt-desktop {
	.kt-invoice-2 {
		.kt-invoice__container {
			width: 80%;
			margin: 0 auto;
		}
	}
}

@include kt-mobile {
    .kt-invoice-2 {
		.kt-invoice__container {
			width: 100%;
			margin: 0;
			padding: 0 20px;
		}

        .kt-invoice__head {
			padding: 20px 0;

			.kt-invoice__brand {
				display: flex;
				flex-direction: column;

				.kt-invoice__title {
					font-weight: 700;
					font-size: 2rem;
					margin-bottom: 30px;
				}

				.kt-invoice__logo {
					text-align: left;

					img {
						text-align: left;
					}

					.kt-invoice__desc {
						text-align: left;
					}
				}
			}

			.kt-invoice__items {
				margin-top: 20px;

				.kt-invoice__item {
					.kt-invoice__subtitle {
					}

					.kt-invoice__text {
					}
				}
			}
		}

		.kt-invoice__body {
			padding: 2rem 0;
		}

		.kt-invoice__footer {
			padding: 2rem 0;
		}
    }
}

// Print media
@media print {
	// Hide partials
	.kt-header,
    .kt-header-mobile,
    .kt-aside,
    .kt-footer,
    .kt-subheader,
    .kt-scrolltop,
    .kt-quick-panel,
    .kt-demo-panel,
    .kt-sticky-toolbar {
        display: none !important;
    }

	// Parent containers
    body,
    .kt-wrapper,
    .kt-body,
    .kt-content {
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
	}

	// Invoice
	.kt-invoice-2 {
		@include kt-rounded {
			border-top-left-radius: 0;
			border-top-right-radius: 0;
		}

		.kt-invoice__head {
			@include kt-rounded {
				border-top-left-radius: 0;
				border-top-right-radius: 0;
			}

			.kt-invoice__container {
				@include kt-rounded {
					border-top-left-radius: 0;
					border-top-right-radius: 0;
				}
			}
		}

		.kt-invoice__actions {
			display: none !important;
		}

		.kt-invoice__footer {
			background-color: transparent !important;
		}

		.kt-invoice__container {
			width: 100%;
            padding: 0 10px;
		}
	}
}
